react-diagrams icon indicating copy to clipboard operation
react-diagrams copied to clipboard

Creating a link between two nodes, not their ports

Open mkhoussid opened this issue 2 years ago • 2 comments

Suppose I have two nodes, each with an arbitrary amount of ports. I'm trying to figure out if I can create a link between these two DefaultNodeModel components, not between their ports. It seems as though the link method only exists on DefaultPortModel.

Any ideas, am I missing something?

mkhoussid avatar Dec 07 '21 11:12 mkhoussid

setup a phantom port that spans the size of the node and implement custom links which offset the arrow so that they touch the border. I am doing this in my own project, I cant yet share the source code but I may add a similar demo in the project gallery.

dylanvorster avatar Jun 10 '22 17:06 dylanvorster

@dylanvorster Demo added?

malavshah-9 avatar Nov 24 '22 09:11 malavshah-9