Coral 0.2.17 candidate API
    Preparing search index...

    Interface SyncActions

    Sync actions returned by the hook

    interface SyncActions {
        forceSync: (text: string) => void;
        setFromVisual: (
            nodes: CoralNode[],
            edges: CoralEdge[],
            originalGraph: GraphIR,
        ) => void;
        setGraph: (graph: GraphIR) => void;
        setText: (text: string) => void;
    }
    Index
    forceSync: (text: string) => void

    Force sync from external source

    setFromVisual: (
        nodes: CoralNode[],
        edges: CoralEdge[],
        originalGraph: GraphIR,
    ) => void

    Update from visual editor nodes/edges changes

    setGraph: (graph: GraphIR) => void

    Update graph (from visual editor)

    setText: (text: string) => void

    Update text (from text editor)