Is there a way to control which ports are connected to which?
Meaning that only certain ports should be able to be connected to others, but to do this not programmatically but through the canvas
Thanks
Unfortunately not at the moment, we wanted to add it as an overridable method in the PortModel or NodeModel, but never got to it
I achieved this by utilizing custom port models that extend the default ones.
Would be awesome if you're able to share the custom port model.
this is now possible with a recent merge of a PR that adds this: https://github.com/projectstorm/react-diagrams/blob/9a90a5e8f5c5e11c15050a9d78a391af3a61face/src/models/PortModel.ts#L57
Most helpful comment
I achieved this by utilizing custom port models that extend the default ones.