reconnectLink method

bool reconnectLink(
  1. Link existinglink,
  2. bool toend, [
  3. Node? newnode,
  4. GraphObject? newport,
])

Modify an existing Link to connect to a new node and port.

This method may be overridden, but we recommend that you call this base method. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {Link} existinglink @param {Node} newnode the Node to connect to or from. @param {GraphObject} newport the GraphObject port to connect to or from. @param {boolean} toend If true, this modifies the link's "to" node and port; otherwise it modifies the "from" node and port. @return {boolean} true if successful. @see #doNoRelink

Implementation

_i2.bool reconnectLink(
  _i3.Link existinglink,
  _i2.bool toend, [
  _i3.Node? newnode,
  _i3.GraphObject? newport,
]) =>
    _i4.callMethod(
      this,
      'reconnectLink',
      [
        existinglink,
        newnode ?? _i5.undefined,
        newport ?? _i5.undefined,
        toend,
      ],
    );