You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure out how to make edits to existing connections, so that user could just drag from an arrowhead and change the target of the connection. Currently I need to delete the existing connection and start a new connection from the source.
Unless I'm missing something?
The text was updated successfully, but these errors were encountered:
Hi. I can't suggest a good solution for implementing this functionality and I also believe that it may not be possible without heavy modifications to the library.
The way it works right now is that each connection (wire) has a Source and a Target point. Each of these two points is usually bound to and updated by a connector's Anchor point.
Nonetheless, I can think of two approaches:
Bind the Target point of the connection to the mouse location on the mouse down event. Then, find the Connector at the mouse location on the mouse up event and bind the connection to its Anchor.
Remove the original connection and start a new PendingConnection by raising the Connector.PendingConnectionStartedEvent on the mouse down event and Connector.PendingConnectionDragEvent on the mouse move event. To complete the connection, the Connector.PendingConnectionCompletedEvent must be raised on mouse up event.
Retargeting connections is now possible (see PR: #183). While this is not provided as built-in functionality, the editor exposes the necessary APIs to implement it. Please re-open the issue if you need more information.
I'm trying to figure out how to make edits to existing connections, so that user could just drag from an arrowhead and change the target of the connection. Currently I need to delete the existing connection and start a new connection from the source.
Unless I'm missing something?
The text was updated successfully, but these errors were encountered: