mergeNodeDataArray method
Take an Array of node data objects and update #nodeDataArray without replacing the Array and without replacing any existing node data objects that are identified by key.
For node data objects that have the same key value, this makes calls to #setDataProperty to update the existing node data object. For new keys, this calls #cloneDeep to copy the data and then #addNodeData to add a new node to the model. For existing nodes that have keys that are not present in the given Array, this calls #removeNodeData to remove the existing node from the model.
This method is typically used when GoJS is being used within an application that is maintaining state related to the diagram model. When state is updated, this method can be called to keep the GoJS model synchronized. Any updates to the data should use new references since this method will use reference equality to check if a node data object needs to be updated.
This method does not conduct a transaction. @param {Array.
Implementation
void mergeNodeDataArray(_i7.Array<_i2.Object> arr) {
_i4.callMethod(
this,
'mergeNodeDataArray',
[arr],
);
}