UNPKG

react-phylogeny-tree-gl

Version:

React integration of phylocanvas.gl. Component and hook for phylogenetic tree visualistion.

12 lines 469 B
export function createOnRedrawReRootTreePlugin(onRedrawReRootTree) { return function onRedrawReRootTreePlugin(tree, decorate) { decorate('setSource', (delegate, args) => { delegate(...args); if (tree) { const ids = tree.getGraphWithoutLayout().leaves.map((value) => value.id); onRedrawReRootTree(tree, ids); } }); }; } //# sourceMappingURL=createPluginOnRedrawReRootTree.js.map