tgdwyer / WebCola

Javascript constraint-based graph layout
http://marvl.infotech.monash.edu/webcola/
MIT License
2.01k stars 257 forks source link

Layout jump on node add #239

Open ancashoria opened 6 years ago

ancashoria commented 6 years ago

Hi! First of I'd like to thank you guys for this awesome work. I'm sure it's a lot of work to maintain this library and it's greatly appreciated.

I have the functionality to add new nodes when clicking on any of the existing nodes. I do this by adding an entry to layout.nodes([...oldNodes, newNode]) and calling layout.start(). First off, is this the way to add new nodes in WebCola?

Second thing would be that the nodes really jump around when adding new ones. That is confusing because it's hard to know which node I just clicked. Is there a way to prevent the nodes jumping like this?

graph-anim

Thanks

Does666 commented 5 years ago

How do you fix this issue?

ancashoria commented 5 years ago

I haven't fixed the issue and my project is currently on stand-by