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 Parameter | Default type | Description |
|---|---|---|
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. |
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).