@joint/react
    Preparing search index...

    Interface IncrementalCellsChange<Element, Link>

    A batch of cell changes reported after each graph update, delivered to the onIncrementalCellsChange callback of GraphProviderProps. Lets you apply just the delta to an external store instead of diffing the whole graph.

    interface IncrementalCellsChange<
        Element extends ElementJSONInit = ElementJSONInit,
        Link extends LinkJSONInit = LinkJSONInit,
    > {
        added: Map<ID, Element | Link>;
        changed: Map<ID, Element | Link>;
        removed: Set<ID>;
    }

    Type Parameters

    • Element extends ElementJSONInit = ElementJSONInit

      Shape of the element cells stored in the graph.

    • Link extends LinkJSONInit = LinkJSONInit

      Shape of the link cells stored in the graph.

    Index

    Properties

    Properties

    added: Map<ID, Element | Link>

    Cells added since the last commit, keyed by cell id.

    changed: Map<ID, Element | Link>

    Cells whose attributes changed since the last commit, keyed by cell id.

    removed: Set<ID>

    Ids of cells removed since the last commit (including a removed element's links).