projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.45k stars 1.16k forks source link

Question: Is it feasible to have a node that acts as a container for other nodes #1033

Open ronnyek opened 1 month ago

ronnyek commented 1 month ago

Ultimately what I'd like to do is have categories or a container for nodes... and moving the container would move the nodes within. I realize I could build a completely custom node types, with completely custom port configurations...

I'm curious if anyone has done anything like this or has any ideas about how feasible this idea could be. Thanks in advance

ronnyek commented 1 month ago

I actually think I could achieve what I want if I was able to achieve something like this image of this library ... but individual items just had two ports with no specified directionality

image

In that I assume there are in ports on left, and out ports on right. I'd want to have a sub node entry that would have a label, and two ports just to be able to say this sub node is connected to that other sub node, regardless of which side the connector was attached to.

I realize creating a custom node type will let me do probably virtually anything I could want... but I must be having a brain fart.