by escot · 2w ago · 0 comments
In the end I decided to go a different route. The current version only does incremental relayout — it tries to move only a small number of nodes to make space for the current edit. And I wrote a custom algorithm that shifts nodes out of the way to make space on edits, and trys best effort to keep edges in the same direction by detecting which got bent and iteratively moving one of their nodes.