@nodeject/ui-components
Version:
UI library for non-trivial components
30 lines (29 loc) • 677 B
TypeScript
import * as React from 'react';
declare type Node = {
data: any;
};
declare type CytoGraph = {
nodes?: Node[];
};
export declare type Edge = {
id: string;
coordinates: {
fromX: number;
fromY: number;
toX: number;
toY: number;
};
group: string;
from: string;
to: string;
type: any;
};
export interface SchedioTreeProps {
cytoGraph: CytoGraph;
id?: string;
moveNodeTo?: (nodeKey: string, index: number, parentKey: string) => void;
NodeContainer: (props: any) => JSX.Element;
options?: any;
}
export declare const TreeView: React.FC<SchedioTreeProps>;
export {};