Skip to content

ladderizeOrder

function ladderizeOrder(
tree,
selection,
direction
): Record<string, string[]>;

Defined in: packages/components/src/components/PhyloTree/utils/treeOps.ts:46

A selection.order that sorts every internal node’s children by clade size — "asc" puts the smaller clade first (on top), "desc" the larger — giving the tree a “ladder” shape.

Parameter Type
tree Tree
selection Partial<TreeSelection>
direction "desc" | "asc"

Record<string, string[]>