copyLinkData method

Object copyLinkData(
  1. Object linkdata
)

Make a copy of a link data object. This uses the value of #copyLinkDataFunction to actually perform the copy, unless it is null, in which case this method just makes a shallow copy of the JavaScript Object.

This does not modify the model -- the returned data object is not added to this model. This assumes that the data's constructor can be called with no arguments. This also makes sure there is no reference to either the "from" or the "to" node of the original data. @param {ObjectData} linkdata a JavaScript object represented by a link. @return {ObjectData} @see #addLinkData

Implementation

_i2.Object copyLinkData(_i2.Object linkdata) => _i4.callMethod(
      this,
      'copyLinkData',
      [linkdata],
    );