elk
elk copied to clipboard
Layered: Unexpected disregard of aspect ratio/direction of unconnected subnodes when INCLUDE_CHILDREN is set
In this example, I would expect the subnodes of n2 to be stacked on top of each other even though there is no edge between them.
I believe due to cross-hierarchy edge handling it's not possible to influence the aspect ratio on the inside.
Thank you for the reply. Is there any other way to have the subnodes arranged vertically in such a case? Partitions don't seem to work.
hierarchyHandling: "INCLUDE_CHILDREN"
elk.direction: DOWN
aspectRatio: 0.1
node n1
node n2
Partitioning works for children of the root node, but not for their children:
hierarchyHandling: "INCLUDE_CHILDREN"
elk.direction: DOWN
aspectRatio: 0.1
partitioning.activate: true
node n0
{
partitioning.activate: true
partitioning.partition: 1
node n1
{
partitioning.partition: 2
}
node n2
{
partitioning.partition: 3
}
}
node n1
{
partitioning.partition: 4
}
Do you plan to only layout nodes without any edges? If this is the case I would try out the box
or rectpacking
algorithms.
Thanks for the suggestion. They can sometimes have edges like in the first example unfortunately...