UNPKG

@hydro-project/hydroscope

Version:

React-based graph visualization library for Hydro dataflow programs

23 lines 1.09 kB
import type { VisualizationState } from '../core/VisualizationState'; import type { ReactFlowData } from '../bridges/ReactFlowBridge'; import type { RenderConfig, FlowGraphEventHandlers, LayoutConfig } from '../core/types'; export interface UseFlowGraphControllerArgs { visualizationState: VisualizationState; config: RenderConfig; layoutConfig?: LayoutConfig; eventHandlers?: FlowGraphEventHandlers; } export interface UseFlowGraphControllerReturn { reactFlowData: ReactFlowData | null; loading: boolean; error: string | null; refreshLayout: () => Promise<void>; fitOnce: () => void; onNodeClick: (event: any, node: any) => void; onEdgeClick: (event: any, edge: any) => void; onNodeDrag: (event: any, node: any) => void; onNodeDragStop: (event: any, node: any) => void; onNodesChange: (changes: any[]) => void; } export declare function useFlowGraphController({ visualizationState, config, layoutConfig, eventHandlers, }: UseFlowGraphControllerArgs): UseFlowGraphControllerReturn; //# sourceMappingURL=useFlowGraphController.d.ts.map