mergeLinkDataArray method
Take an Array of link data objects and update #linkDataArray without replacing the Array and without replacing any existing link data objects that are identified by key. This depends on #linkKeyProperty being a non-empty string.
For link data objects that have the same key value, this makes calls to #setDataProperty to update the existing link data object. For new keys, this calls #cloneDeep to copy the data and then #addLinkData to add a new link to the model. For existing links that have keys that are not present in the given Array, this calls #removeLinkData to remove the existing link 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 link data object needs to be updated.
This method does not conduct a transaction. @param {Array.
Implementation
void mergeLinkDataArray(_i7.Array<_i2.Object> arr) {
_i4.callMethod(
this,
'mergeLinkDataArray',
[arr],
);
}