Closed koskiniko closed 4 months ago
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:
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
.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.There's no straightforward way of implementing this. Please feel free to reopen 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?