addLinkData method
When you want to add a link to the diagram, call this method with a new data object. This will add that data to the #linkDataArray and notify all listeners that a new link data object has been inserted into the collection.
Presumably the link data object will already have its "from" and "to" node key references set, but it is also possible to set them after the link data is in the model by calling #setFromKeyForLinkData and #setToKeyForLinkData.
This operation does nothing if the link data is already part of this model's #linkDataArray. @param {ObjectData} linkdata a JavaScript object represented by a link. @see #removeLinkData
Implementation
void addLinkData(_i2.Object linkdata) {
_i4.callMethod(
this,
'addLinkData',
[linkdata],
);
}