kieler / elkjs

ELK's layout algorithms for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Two Sided Layered Layout

magnussentio opened this issue · comments

Hello,

Got a question here. I'm building a diagram that has a parent node, two children, and a bunch of grandchildren nodes between the two children. Is there a way using the layered algorithm to have the two children be separated on either side of the parent node?

Meaning the first child (and hence all of its grandchildren) would be aligned left of the parent node, and the second child would be a aligned right of the parent node.

Any thoughts would be helpful!

The layered algorithm cannot do this. I suggest trying the mrtree algorithm. Since the new release will fix some issues with it, the documented options may not yet be supported by elkjs which does not have snapshot releases.

Here is an mrtree example to play around with.

Hello, when will the direction=RIGHT bug in mrtree mode be fixed?

@Eddykasp did you fix something regarding directions?

I haven't touched anything in MrTree. Is there an issue documenting this bug? And I think this is offtopic for the original question.