UNPKG

react-phylogeny-tree-gl

Version:

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

17 lines (16 loc) 813 B
import React from 'react'; import type { Phylocanvas, PhylocanvasInitProps } from '../types/phylocanvas.gl'; import type { GetTree, UndoRedoMethods, UndoRedoProps } from '../types/react-phylogeny-tree'; export declare function RedoUndo<P extends PhylocanvasInitProps = UndoRedoProps, M extends Record<string, (...args: unknown[]) => unknown> = UndoRedoMethods>({ getTree }: { getTree: GetTree<P, M>; }): JSX.Element | null; export declare function RedoUndoView<P extends UndoRedoProps, M extends UndoRedoMethods>({ tree, }: { tree: Phylocanvas<P, M>; }): JSX.Element | null; export declare function RedoUndoButtons({ canUndo, canRedo, onUndo, onRedo, style, }: { canUndo: boolean; canRedo: boolean; onUndo: () => void; onRedo: () => void; style?: React.CSSProperties; }): JSX.Element;