Skip to content

Interface: TreeOptions ​

Options every tree layout takes.

Extended by ​

Properties ​

PropertyModifierTypeDescription
collapsed?readonlyCollapsedInputCollapsed nodes: node indices (any iterable), or a Uint8Array with one byte per node, non-zero for a collapsed one. The descendants of a collapsed node are left out of the layout (TreeLayoutResult.hidden), take no room, and are given the position of their nearest visible ancestor. Default none.
sort?readonlyTreeSortOrder of siblings: 'input' (node order for a tree input, link order otherwise), 'size' (by the number of nodes in the subtree, hidden ones included) or 'value' (by graph.value, nodes without one last). Default 'input'.
sortOrder?readonly"descending" | "ascending"Which way 'size' and 'value' sort. Default 'descending' (largest first).

Released under the MIT License.