@ant-design/pro-flow
Version:
A React based Flow components
23 lines (22 loc) • 1.18 kB
TypeScript
import { FlowViewEdge, FlowViewNode, MiniMapPosition } from "../../constants";
import { type ReactNode } from 'react';
import { Edge, Node, ReactFlowInstance } from 'reactflow';
import { NodeMapping, SelectType } from '../constants';
import { LayoutOptions } from './../constants';
interface FlowViewContextProps {
flowDataAdapter?: (nodes: FlowViewNode[], edges: FlowViewEdge[], zoom: number, autoLayout: boolean, layoutOptions: LayoutOptions) => void;
nodes?: Node[];
edges?: Edge[];
mapping?: NodeMapping;
isUseProvider?: boolean;
reactFlowInstance?: ReactFlowInstance<any, any>;
miniMapPosition?: MiniMapPosition;
flowViewRef?: React.MutableRefObject<ReactNode>;
setMiniMapPosition?: React.Dispatch<React.SetStateAction<MiniMapPosition>>;
updateSelectNode?: (nodeId: string, selectType: SelectType) => void;
updateSelectEdge?: (edgeId: string, selectType: SelectType) => void;
updateSelectNodes?: (nodeIds: string[], selectType: SelectType) => void;
updateSelectEdges?: (edgeIds: string[], selectType: SelectType) => void;
}
export declare const FlowViewContext: import("react").Context<FlowViewContextProps>;
export {};