Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

edit edge: restore original controlNodes position when dragged into nothing #3965

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dropletzz
Copy link

@dropletzz dropletzz commented May 14, 2018

When editing an edge, if it's dragged into something that is not a node, the position of the control nodes will not be immediately updated, ending up with something like this.

screen shot 2018-05-14 at 11 02 49

As far as I can tell, this PR should fix that.

PS: fiy, I am using vis at work in order to create some kind of a graph editor. This is why I would like to change the ManipulationSystem in order to make it UI-indipendent, or at least to add the possibility for it to be UI-indipendent, so that it could be easily integrated with custom UI elements. Any help, suggestions or insights would be very welcome (:
EDIT: found out it can already be made independent of the menu buttons, I'll just add some functionality to it

@micahstubbs
Copy link

@dropletzz thanks for the contribution, this looks nice. can you provide an example of this improvement in action or point us to an existing example that demonstrates the new behavior?

https://github.com/almende/vis/tree/master/examples/network

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants