Skip to content

Interface: RadialTreeOptions ​

Options of radialTreeLayout. Lengths are layout units (CSS px), angles degrees.

Extends ​

Properties ​

PropertyModifierTypeDescriptionInherited from
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.TreeOptions.collapsed
links?readonlyTreeLinkShapeShape of the tree edges: see the file header. Default 'straight'.-
nodesep?readonlynumberRoom between two siblings on a ring, on top of their sizes. Default 20.-
ranksep?readonlynumberRoom between two rings, on top of their largest nodes. Default 50.-
sector?readonlyobjectThe 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?readonlynumber--
sector.start?readonlynumber--
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'.TreeOptions.sort
sortOrder?readonly"descending" | "ascending"Which way 'size' and 'value' sort. Default 'descending' (largest first).TreeOptions.sortOrder
subtreesep?readonlynumberRoom between two neighbours on a ring that are not siblings. Default: nodesep.-

Released under the MIT License.