findTargetPort method
Find a port with which the user could complete a valid link.
This finds objects near to the current mouse point for which a valid link connection is possible.
For each port element found, this calls #isValidLink to find out if a link between the original node/port and the found node/port would be valid. The result is saved in a cache for faster decisions later during operation of this tool. The closest valid port is returned.
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 {boolean} toend true if looking for a "to" port. @return {GraphObject} a valid port, or null if no such port is near the current mouse point within the #portGravity distance.
Implementation
_i3.GraphObject? findTargetPort(_i2.bool toend) => _i4.callMethod(
this,
'findTargetPort',
[toend],
);