@gravity-ui/graph
Version:
Modern graph editor component
13 lines (12 loc) • 590 B
TypeScript
import React from "react";
import { Graph } from "../graph";
import { TBlockListProps } from "./BlocksList";
import { TGraphEventCallbacks } from "./events";
import { ReactLayer } from "./layer";
export type GraphProps = Pick<Partial<TBlockListProps>, "renderBlock"> & Partial<TGraphEventCallbacks> & {
className?: string;
blockListClassName?: string;
graph: Graph;
reactLayerRef?: React.MutableRefObject<ReactLayer | null>;
};
export declare function GraphCanvas({ graph, className, blockListClassName, renderBlock, reactLayerRef, ...cbs }: GraphProps): React.JSX.Element;