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