If the answer is totally obvious then sorry to waste everyone’s time. But, if not…
In our application we are fairly certain that after a user drops a node onto the canvas they are going to want to link it up to one of the other nodes already on the canvas. We have an auto-linking capability already, but I want something a little more useful.
When the user drags a node out from the toolbox and enters the canvas, I’d like the user to be able to see what links would connect if the node were to be dropped in that location… maybe even using some configurable value (a sort of port gravity) so that as they drag the image of the node closer to some existing node and a connection is possible then, zing! and the two nodes seem connected… if the user doesn’t let go of the mouse button from that initial drag and drags out of this radius the connection disappears indicating that no auto connection would happen.
Since the node as it’s being dragged is not a part of the canvas I didn’t see how this could work… so maybe I’d have to temporarily add it to the canvas and then make some sort of custom tool…? Help!