UNPKG

@gravity-ui/graph

Version:

Modern graph editor component

10 lines (9 loc) 421 B
import React from "react"; import { Graph } from "../graph"; import { TBlockListProps } from "./BlocksList"; import { TGraphEventCallbacks } from "./events"; export type GraphProps = Pick<Partial<TBlockListProps>, "renderBlock"> & Partial<TGraphEventCallbacks> & { className?: string; graph: Graph; }; export declare function GraphCanvas({ graph, className, renderBlock, ...cbs }: GraphProps): React.JSX.Element;