TreeSelection
Defined in: packages/components/src/components/PhyloTree/types.ts:63
Where the tree is rooted, which clades are collapsed, and how siblings are ordered. Ids are those of the tree as passed in, and stay valid across reroots.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
rerootedAt? |
string |
undefined |
id of the node whose branch (the edge to its parent) holds the root — a new bifurcating root is inserted on it — or undefined for the tree’s own root. See also midpointRoot. |
rerootPosition? |
number |
0.5 |
Where on that branch the root sits, as a fraction from the node (0) to its parent (1). |
collapsed |
string[] |
undefined |
ids of internal nodes whose clades are drawn collapsed, as a triangle. |
order? |
Record<string, string[]> |
undefined |
Maps a node’s id to a reordered sequence of its children’s ids, overriding the source data’s sibling order (set by dragging a node, or by ladderizeOrder/rotateOrder/ orderForLeafNames). |