UNPKG

@graphql-hive/laboratory

Version:

29 lines (28 loc) 850 B
import { LucideProps } from 'lucide-react'; export interface FlowNode { id: string; title: string; next?: string[]; icon?: (props: LucideProps) => React.ReactNode; content?: (props: { node: FlowNode; }) => React.ReactNode; parent?: string; } export interface FlowGraphInternal extends FlowNode { x: number; y: number; width: number; height: number; isCluster: boolean; } export type Point = { x: number; y: number; }; export declare function orthogonalPoints(from: Point, to: Point, t?: number): [Point, Point, Point, Point]; export declare function roundedOrthogonalPath([p0, p1, p2, p3]: [Point, Point, Point, Point], radius?: number): string; export declare const Flow: (props: { nodes: FlowNode[]; graph?: Record<string, any>; }) => import("react/jsx-runtime").JSX.Element;