tbo47 / dagre-es

The dagrejs library exported as ES modules.
Other
32 stars 14 forks source link

Autolayout does not work correctly for groups of nodes. Where did I go wrong? #24

Closed AHTOHO4 closed 1 year ago

AHTOHO4 commented 1 year ago

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. image 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? image

aloisklink commented 1 year ago

Hi @anton12042001, are you having the same issue with https://github.com/dagrejs/dagre?

This project is mainly just the https://github.com/dagrejs/dagre library with some slight modifications to be an ECMAScript module.

If your issue is also with https://github.com/dagrejs/dagre, you might have better luck reporting the issue in that project :smile:

AHTOHO4 commented 1 year ago

thanks, figured it out❤️

aloisklink commented 1 year ago

thanks, figured it out :heart:

Awesome! Do you know if it was a bug on the dagre-es end or on your end?

Either way, it might be worth commenting your solution here, since somebody might have the same problem as you and find this same issue!

Obligatory xkcd: https://xkcd.com/979/