Skip to content

applyTreeSelection

function applyTreeSelection(tree, selection?): Tree;

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

The tree as displayed for selection (rerooted and reordered), as plain data — e.g. to export it with toNewick exactly as the user arranged it.

Parameter Type
tree Tree
selection Partial<TreeSelection>

Tree