rete
rete copied to clipboard
Is there any way to select the links/connections between nodes and after selection if we can remove it?
Currently we can remove connections between nodes in editor but for that we need to click on the input socket of node then if we move mouse then that connection can be removed. But I think it will be a lot easier if we can select any connection and then we can delete it using 'Delete' key.
It can be implemented as a plugin.
You need to add clickable (transparent) area on renderconnection and update it on renderconnection. First of all, this is for UX, as the original connection curve is too thin.
It can be implemented as a plugin.
You need to add clickable (transparent) area on
renderconnectionand update it onrenderconnection. First of all, this is for UX, as the original connection curve is too thin.
How to update it? I didn't find the update event
All what I found - this is an events when user clicked on a node socket but not on a connection between nodes. And I can add a class to connections on renderconnection, but how I can get the connection data I don't know, because we can see DOM-element data only.
Event click on a connection returned:
container: div#rete.node-editor
e: PointerEvent {isTrusted: true, pointerId: 1, width: 1, height: 1, pressure: 0, …}
target: path.main-path
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.