Interface: RadialTreeOptions
Options of radialTreeLayout. Lengths are layout units (CSS px), angles degrees.
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 a ring, on top of their sizes. Default 20. | - |
ranksep? | readonly | number | Room between two rings, on top of their largest nodes. Default 50. | - |
sector? | readonly | object | The part of the circle the tree fans out over: start is the angle it begins at and span how far it goes, in degrees, counter-clockwise from the +x axis (3 o'clock), y up. A negative span runs clockwise. Default { start: 0, span: 360 }. | - |
sector.span? | readonly | number | - | - |
sector.start? | readonly | number | - | - |
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 on a ring that are not siblings. Default: nodesep. | - |