copyPortProperties method

void copyPortProperties(
  1. Node tempnode,
  2. GraphObject tempport,
  3. bool toend, [
  4. Node? realnode,
  5. GraphObject? realport,
])

Make a temporary port look and act like a real one.

This is called by #doMouseMove as the tool finds new valid target ports. If #findTargetPort returns null, it calls #setNoTargetPortProperties instead.

If the #portTargeted property is a function, that function is called. It is easier to customize the behavior by setting that functional property than it is to override this method and the #setNoTargetPortProperties method. But you may want to call this method to get the standard behavior for dynamically adapting the temporary node/port to "act like" the target port. Please read the Introduction page on Extensions for how to override methods and how to call this base method.

Implementation

void copyPortProperties(
  _i3.Node tempnode,
  _i3.GraphObject tempport,
  _i2.bool toend, [
  _i3.Node? realnode,
  _i3.GraphObject? realport,
]) {
  _i4.callMethod(
    this,
    'copyPortProperties',
    [
      realnode ?? _i5.undefined,
      realport ?? _i5.undefined,
      tempnode,
      tempport,
      toend,
    ],
  );
}