The specified root hierarchy.
Returns the current padding, which defaults to zero.
Sets the padding to the specified number and returns this partition layout. The padding is used to separate a node’s adjacent children.
The specified padding value.
Returns the current rounding state, which defaults to false.
Enables or disables rounding according to the given boolean and returns this partition layout.
The specified boolean flag.
Returns the current size, which defaults to [1, 1].
Sets this partition layout’s size to the specified [width, height] array and returns this partition layout.
The specified two-element size array.
Lays out the specified root hierarchy. You must call
root.sum
before passing the hierarchy to the partition layout. You probably also want to callroot.sort
to order the hierarchy before computing the layout.