graph-toolkit
    Preparing search index...

    Interface GraphHistory

    Immutable undo/redo state over successive versions of a graph. Stores one diff per step, not one graph. Build it with createHistory; every function returns a new history.

    interface GraphHistory {
        current: Graph;
        redoable: readonly GraphDiff[];
        undoable: readonly GraphDiff[];
    }
    Index
    current: Graph
    redoable: readonly GraphDiff[]

    Undone diffs, the next one to redo last.

    undoable: readonly GraphDiff[]

    Diffs that led to current, oldest first.