elk
elk copied to clipboard
rectpacking: Add rectpacking improvement.
Adds an option to move a node from the next row that is higher than the current row inside it during compaction, which requires repacking the current row. This eliminates one ONO case by giving more control over the drawing via aspect ratio or target width.
Signed-off-by: Soeren Domroes [email protected]
Simple example:
algorithm: rectpacking
// rowHeightReevaluation: true
spacing.nodeNode: 0
elk.padding: "[top=0.0,left=0.0,bottom=0.0,right=0.0]"
node n1 {
layout [size: 20, 20]
}
node n2 {
layout [size: 20, 20]
}
node n3 {
layout [size: 20, 20]
}
node n4 {
layout [size: 20, 20]
}
node n5 {
layout [size: 80, 80]
}
is drawn like this
but could be drawn like this
if the row height is reevaluated during compaction.
Superseded by #865