isValidFrom method
This predicate is true if it is permissible to connect a link from a given node/port. This is called by #isValidLink.
For a more general discussion of validation, see Introduction to Validation.
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 {Node} fromnode @param {GraphObject} fromport @return {boolean} False if the node is in a Layer that does not Layer#allowLink. False if the port's GraphObject#fromLinkable is either false or null. False if the number of links connected to the port would exceed the port's GraphObject#fromMaxLinks. Otherwise true.
Implementation
_i2.bool isValidFrom([
_i3.Node? fromnode,
_i3.GraphObject? fromport,
]) =>
_i4.callMethod(
this,
'isValidFrom',
[
fromnode ?? _i5.undefined,
fromport ?? _i5.undefined,
],
);