findTreeParts method

Set<Part> findTreeParts([
  1. num? level
])

Return a collection of Parts including this Node, all of the Links going to child Nodes, and all of their tree child nodes and links. Links for which Link#isTreeLink is false are ignored.

Whether child nodes are found for a parent node by following links out of the parent node or by links coming into the parent node is determined by the value of Diagram#isTreePathToChildren.

The result will include this, the "root" node. If any of the nodes are Groups, their member parts are not included.

If you want to find the collection of Parts that are contained by a Group, use Group#findSubGraphParts. @param {number=} level How many levels of the tree, starting at this node, to include; the default is Infinity, including all tree children of this node. Values less than 1 are treated as 1. @return {Set.

Implementation

_i3.Set<_i3.Part> findTreeParts([_i2.num? level]) => _i4.callMethod(
      this,
      'findTreeParts',
      [level ?? _i5.undefined],
    );