Rectangle Layout.

Property Value
Identifier: org.eclipse.elk.rectpacking.rectPacking
Meta Data Provider: options.RectPackingMetaDataProvider

Description

Algorithm for packing of unconnected boxes, i.e. graphs without edges. In the default settings, the algorithm checks for a case where one big rectangle is present with a lot of smaller rectangles with the same height and applies a special algorithm to it. If this is not the case, the algorithm then uses to phases. One phase approximates an area where the rectangles can be placed and then another to place them there and align them nicely. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces.

Supported Options

Option Default Value
Aspect Ratio 1.3
Check for special case one big rectangle. false
Expand Nodes false
Only first iteration should be executed. false
Packing Strategy PackingStrategy.MAX_SCALE_DRIVEN
Padding new ElkPadding(15)
Shift when placing at last placed rectangle. true