Support for Multiple Source and Target Positions? #270
-
Hey There, Thanks for the amazing library! Wondering if it's possible to allow edges to connect to more than one position / side of a node. I have a complex workflow where I want nodes coming in and exiting from both the tops / bottoms and sides and am unsure how to accomplish that currently. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
You can implement custom nodes that have as many handles as you want on whatever side you want. If you want edges to be able to fork, you'll have to implement your own custom edges as the built-in ones only handle connection from one handle to another. |
Beta Was this translation helpful? Give feedback.
You can implement custom nodes that have as many handles as you want on whatever side you want.
Check the Custom Node Example. In that example there is a node with 2 handles on the right side.
Also read this part of the docs if you plan on adding handles dynamically.
If you want edges to be able to fork, you'll have to implement your own custom edges as the built-in ones only handle connection from one handle to another.