Skip to main content
Version: 4.3

IncrementalCellsChange

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.

Type Parameters​

Type ParameterDefault typeDescription
Element extends ElementJSONInitElementJSONInitShape of the element cells stored in the graph.
Link extends LinkJSONInitLinkJSONInitShape of the link cells stored in the graph.

Properties​

added​

readonly added: Map<ID, Element | Link>;

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


changed​

readonly changed: Map<ID, Element | Link>;

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


removed​

readonly removed: Set<ID>;

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

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub