You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ask your questions
I've got a diagram with some nodes being partitioned: elklive
There are a few instances here where multiple layers can work for the partitions that are selected - I want to add preference for which layer is chosen.
For the top portion of nodes, I want them to prefer being placed in a layer towards the top, and for the bottom portion of nodes, I want to prefer them being placed in a layer towards the bottom, like so:
ELK Version
snapshot (latest/0.9.1?)
Additional context
The alignment option got me excited, but I think that's intended for aligning nodes within a layer (e.g. when nodes vary in size).
I also thought the nodePromotion.strategy might work with a parent node around the top portion with MODEL_ORDER_LEFT_TO_RIGHT and a parent node around the bottom portion with MODEL_ORDER_RIGHT_TO_LEFT... right to left seems to make the nodes prefer the bottom layer, but MODEL_ORDER_LEFT_TO_RIGHT throws a runtime exception. I didn't make this ticket a bug for that because I'm unsure if I'm using it as intended - when I delete most of the bottom portion nodes, LEFT_TO_RIGHT stops erroring but doesn't seem to make them prefer the top layer (elklive - I'd expect c2 to be in same layer as c1, also maybe a separate issue but x1 should be below x12).
The text was updated successfully, but these errors were encountered:
The model order node promotion strategies are somehow different than the other promotion strategies and require certain constraint to be true such that edges only lead to nodes that are defined below the target node or are backward edges.
Partition works by trying to add nodes with the same partition in the same layer and moving nodes to succeeding layers if this is not possible.
The other way around: if it is possible to put the nodes of the same partition in the same layer, it will happen.
Ask your questions
I've got a diagram with some nodes being partitioned: elklive
There are a few instances here where multiple layers can work for the partitions that are selected - I want to add preference for which layer is chosen.
For the top portion of nodes, I want them to prefer being placed in a layer towards the top, and for the bottom portion of nodes, I want to prefer them being placed in a layer towards the bottom, like so:
ELK Version
snapshot (latest/0.9.1?)
Additional context
The alignment option got me excited, but I think that's intended for aligning nodes within a layer (e.g. when nodes vary in size).
I also thought the nodePromotion.strategy might work with a parent node around the top portion with
MODEL_ORDER_LEFT_TO_RIGHT
and a parent node around the bottom portion withMODEL_ORDER_RIGHT_TO_LEFT
... right to left seems to make the nodes prefer the bottom layer, butMODEL_ORDER_LEFT_TO_RIGHT
throws a runtime exception. I didn't make this ticket a bug for that because I'm unsure if I'm using it as intended - when I delete most of the bottom portion nodes,LEFT_TO_RIGHT
stops erroring but doesn't seem to make them prefer the top layer (elklive - I'd expect c2 to be in same layer as c1, also maybe a separate issue but x1 should be below x12).The text was updated successfully, but these errors were encountered: