Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove a connection? #28

Open
dominicgan opened this issue Sep 2, 2019 · 0 comments
Open

How to remove a connection? #28

dominicgan opened this issue Sep 2, 2019 · 0 comments

Comments

@dominicgan
Copy link

Is there a straightforward way to remove a connection between 2 nodes?

What I'm doing right now is to:

  1. Find the connector object
  2. Remove it's line node connectorObj.line.remove()
  3. Remove it's marker node connectorObj.marker.remove()
  4. Remove the connector instance within the .cons param of the source connector node

This works to visibly remove the connector, however when I add a new connector between the same nodes, the new line generated is curved (it assumes the previous connector still exists).

I end up with something like this when I add and remove connectors between two nodes multiple times (when it should be a straight line since only one connection exists):

image

Is there anything else I should be updating to completely remove the connection between nodes?

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

No branches or pull requests

1 participant