TreeNodeInfo
Defined in: packages/components/src/components/PhyloTree/types.ts:85
What a node or branch click reports about the node (for a branch: the node below it).
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
id |
string |
- |
name |
string |
- |
isLeaf |
boolean |
A tip of the displayed tree that is not a collapsed clade. |
isRoot |
boolean |
- |
isCollapsed |
boolean |
- |
length |
number |
Length of the branch above the node. |
support? |
number |
The internal node’s numeric label (bootstrap support), if it has one. |
leafNames |
string[] |
Every leaf below the node (the node’s own name, for a leaf). |
descendantIds |
string[] |
The node and all its descendants — e.g. to style a whole clade in nodeStyles/branchStyles. |
rerootAbove |
| Pick<TreeSelection, "rerootedAt" | "rerootPosition"> | null |
Spread into the selection to reroot halfway along the branch drawn above this node (null for the root) — correct even when the tree is already rerooted; see rerootAbove. |
clientX |
number |
- |
clientY |
number |
- |