isValidCycle method
Checks whether a proposed link would be valid according to Diagram#validCycle. This does not distinguish between different ports on a node, so this method does not need to take port arguments. This is called by #isValidLink.
This method may be overridden, but we recommend that you call this base method. It is rare that you will want to override this method. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {Node} from @param {Node} to @param {Link} ignore may be null; this is useful during relinking to ignore the #originalLink @return {boolean} @since 1.5
Implementation
_i2.bool isValidCycle([
_i3.Node? from,
_i3.Node? to,
_i3.Link? ignore,
]) =>
_i4.callMethod(
this,
'isValidCycle',
[
from ?? _i5.undefined,
to ?? _i5.undefined,
ignore ?? _i5.undefined,
],
);