MindFusion.Diagramming for JavaScript allows attaching a node to another node, establishing a subordinate - master relationship between them. The easiest way to attach nodes is to call the attachTo method. When a master node is moved, its subordinated nodes follow it, so that the initial distance between the nodes stays constant. This happens both when a user moves the master node around, and when the node position is changed using a method or a property.
Every node in a group can be the master node of another group, that is, a node can be subordinate in one group and meanwhile be another group's master. MindFusion.Diagramming for JavaScript doesn't impose any limits to the depth and width of group hierarchies built that way. However, it is not possible to put a node as a subordinate in more than one groups because the hierarchy relations would become ambiguous.
It is possible to create such groups, that if any item in the hierarchy is modified, all other items are updated too. This can be done by putting the items in circular chain of dependencies - that is, item1 is attached to item2, item2 to item3 ... itemN to item1. If any of these items is modified, the change will propagate through the chain until it reaches its originator.
The master node in a group can be accessed using the masterNode property of attached nodes. The array returned by attachedNodes getter on a master node contains references to all subordinate nodes attached to it.