react-phylogeny-tree-gl
Version:
React integration of phylocanvas.gl. Component and hook for phylogenetic tree visualistion.
10 lines (9 loc) • 709 B
TypeScript
import React from 'react';
import type { Phylocanvas, Plugins } from '../types/phylocanvas.gl';
import type { Hooks, Props, InitProps } from '../types/react-phylogeny-tree';
export declare function usePhylogenyTree<IP extends InitProps<CP>, CP extends Props = Record<string, unknown>, M extends Record<string, (...args: unknown[]) => unknown> = Record<string, never>>(canvasRef: React.RefObject<HTMLDivElement>, initProps: IP, controlledProps?: CP, plugins?: Plugins<IP & CP, M>, hooks?: Hooks<IP & CP, M>): {
handleZoomIn: () => void;
handleZoomOut: () => void;
getTree: () => Phylocanvas<IP & CP, M> | null;
};
export declare const loopHooks: (hooks: any, getInstance: any, props: any) => void;