anteriovieira / vue-mindmap

VueMindmap is a vue component for mindnode maps

Home Page:https://codesandbox.io/s/jv7pl7wn15

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graph rotate indefinitely with 2 subsequent nodes

Wardormeur opened this issue · comments

Using the following example (https://codesandbox.io/s/6wrx3q654z), making use of optional fx and fy, the graph will rotate until it's being clicked on (which is pretty challenging).
Once clicked, the following nodes will start rotating slowly around the clicked one.
Removing one of the 2 children nodes from basics solves the issue, but that kind of defeats the goal of a mindmap :)

I can confirm.
Even when I set values for fx and fy for my root element, the root element is fixed but all the other are rotating.

It's not an issue for me if the nodes overlap when I don't provide values for fx and fy, but I would like to have the graph stay in place.

It seems to be an issue with the calculation of the fx and fy since when I drag a box it then becomes fixed while the others continue to wander... 🤔