isInTreeOf method
This predicate is true if this node is a child of the given Node, perhaps indirectly as a descendant.
If this node is a child of the given node according to Diagram#isTreePathToChildren, this returns true. Otherwise this searches recursively the chain of tree parents of this node, ignoring links for which Link#isTreeLink is false. A node cannot be in its own subtree.
If you what to find out whether this Node is (perhaps indirectly) contained by a Group, use Part#isMemberOf. @param {Node} node the Node that might be a parent or ancestor of this node. @return {boolean} true if the given node is an ancestor of this node, but false otherwise, including false if it is the same node. @see #findTreeRoot @see #findTreeParentChain
Implementation
_i2.bool isInTreeOf(_i3.Node node) => _i4.callMethod(
this,
'isInTreeOf',
[node],
);