makeNodeDataKeyUnique method

void makeNodeDataKeyUnique(
  1. Object nodedata
)

This method is called when a node data object is added to the model to make sure that #getKeyForNodeData returns a unique key value.

The key value should be unique within the set of data managed by this model: #nodeDataArray. If the key is already in use, this will assign an unused number to the #nodeKeyProperty property on the data.

If you want to customize the way in which node data gets a unique key, you can set the #makeUniqueKeyFunction functional property.

If the node data object is already in the model and you want to change its key value, call #setKeyForNodeData and give it a new unique key value. @param {Object} nodedata a JavaScript object represented by a node, group, or non-link.

Implementation

void makeNodeDataKeyUnique(_i2.Object nodedata) {
  _i4.callMethod(
    this,
    'makeNodeDataKeyUnique',
    [nodedata],
  );
}