drawio
drawio copied to clipboard
Please optimize the sub-node sorting rules of automatic tree layout
- [x ] I agree to follow the Code of Conduct that this project adheres to.
- [x ] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Is your feature request related to a problem? Please describe. The ordering rules of child nodes in automatic tree layout are based on the creation time of the child node connecting lines. If I modify the properties of a sub-node connection line (for example: constraint direction, front and back position in graphics options), the creation time (sequence) of the connection line (sub-node) will be disrupted. If you reapply automatic tree layout at this time, the order of the child nodes will change to the order after changing the connection line properties.
I think this layout rule method is unreasonable, the user experience is very bad, and there are no relevant instructions in the user manual document. It is best to sort the child nodes of automatic layout according to the xy coordinates of the child nodes.
Describe the solution you'd like The sorting of child nodes in automatic layout is best sorted according to the xy coordinates of the child nodes.
Describe alternatives you've considered The alternative I've found so far is to delete all related connecting lines and create new connecting lines for each related child node in the new order.
I'm a beginner in drawio and don't know if there is a better solution. If anyone has a better solution, I would be very grateful.
Additional context
The related problem description has been published at this link: https://github.com/jgraph/drawio-desktop/issues/1650
I have exactly the same issue. That renders the whole automatic layout feature virtually unusable. Once created, you can't add more nodes. Every node triggers a complete rearranging. But I want to keep my original ordering of children. I would think this is a reasonable expectation...