Autolayout does not work correctly for groups of nodes. Where did I go wrong? Dargre-d3-es

48 Views Asked by At

I use the library dagre-d3-es

Autolayout does not work correctly for groups of nodes. I made an autolayout for nodes, but when I use groups, the position for this group is not set correctly. I put all the nodes in the graph, and the nodes that contain the parent group I used in the setParent method.

After calling the Laout function, the positions are given out, but not quite the correct positions are given to the groups of nodes. What could be the problem?

I tried to set the parent group through the setParent method; without this, the group of nodes is considered a node, and the autolayout behaves not like with a group of nodes in which there should be nodes but as with a separate node and allocates space for it. I need to put the nodes in a node group and make it look even. It will look exactly the same if the autolayout gives the correct position to this group of nodes. Screenshot example 1enter image description here Example screen 3 - what result is requiredenter image description here

0

There are 0 best solutions below