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

Added dragStart event for adding edges. #3141

Merged
merged 4 commits into from
Jul 21, 2017

Conversation

wimrijnders
Copy link
Contributor

Fix for #3131.

This adds a dragStart event when adding an edge using the Manipulation system. No selected node and edge id's are passed with the event, because it doesn't make sense to pass them.

There is no need to add a specific dragEnd for adding an edge in ManipulationSystem, the regular event fires already.

Adding dragStart and dragEnd events to the editing of a current edge has not been done. The problem here is that extra control nodes are added to the view to manipulate the edit. In dragStart, when trying to determine the starting node, what you get is the control node, and not the original node. I did not manage to find a way around this.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@yotamberk yotamberk merged commit 16a639b into almende:develop Jul 21, 2017
@wimrijnders wimrijnders deleted the issue3131 branch July 22, 2017 05:20
primozs pushed a commit to primozs/vis that referenced this pull request Jan 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants