Function: partition()
ts
function partition(entry, dx, dy, padding?): PartitionCell[];Experimental
d3's partition of the subtree at entry over [0, dx] × [0, dy]: each level is dy / (entry.height + 1) tall, and children split their parent's x span by value (d3's treemapDice; a remainder or total above the children's sum leaves a gap at the end). Cells come breadth first (d3 descendants), so parents precede their children. With padding (icicle's tiling.pad), every cell then gives up padding px at its far x and y ends, and the entry starts padding px in, as in d3.
Parameters
| Parameter | Type | Default value |
|---|---|---|
entry | HierNode | undefined |
dx | number | undefined |
dy | number | undefined |
padding | number | 0 |