findTreeLevel method

num findTreeLevel()

Return how deep this node is in a tree structure. For tree root nodes, this returns zero. This calls #findTreeParentNode to find any tree parent node, so this respects Diagram#isTreePathToChildren and Link#isTreeLink to know which way to traverse links and to know to ignore non-tree links.

This may result in undefined behavior if there are cycles of Links that are Link#isTreeLink.

If you want to know how deep a Part is nested inside Groups, call Part#findSubGraphLevel. @return {number} @see #findTreeRoot @see #findTreeParentChain @since 1.5

Implementation

_i2.num findTreeLevel() => _i4.callMethod(
      this,
      'findTreeLevel',
      [],
    );