Interface: TidyTreeOptions
Options of tidyTreeLayout. Lengths are layout units (CSS px).
Extends
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
collapsed? | readonly | CollapsedInput | Collapsed 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. | TreeOptions.collapsed |
links? | readonly | TreeLinkShape | Shape of the tree edges: see the file header. Default 'straight'. | - |
nodesep? | readonly | number | Room between two siblings, on top of their sizes. Default 20. | - |
orientation? | readonly | TreeOrientation | Where the root is. Default 'TB' (root at the top). | - |
ranksep? | readonly | number | Room between two levels, on top of their thickest nodes. Default 50. | - |
sort? | readonly | TreeSort | Order 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'. | TreeOptions.sort |
sortOrder? | readonly | "descending" | "ascending" | Which way 'size' and 'value' sort. Default 'descending' (largest first). | TreeOptions.sortOrder |
subtreesep? | readonly | number | Room between two neighbours that are not siblings (the ends of two subtrees, two trees of a forest), on top of their sizes. Default: nodesep. | - |