expandTree method
Show each child node and the connecting link, and perhaps recursively expand their child nodes. This may change the value of Part#isVisible of the whole subtree and the parts owned by those nodes and links. However, this root node's visibility is unchanged.
This sets #isTreeExpanded to true on this node and on all of the children nodes. Links are assumed to go from the parent node to the children nodes, unless Diagram#isTreePathToChildren is false. Links for which Link#isTreeLink is false are ignored.
This will expand a tree child node only if its #wasTreeExpanded property was true.
You can also pass in a number of levels in order to be sure that all nodes
starting at this node and up through that number of levels are visible.
If you want to make sure that there are no nodes expanded after a particular level, call #collapseTree.
If you want to do both, call expandTree
before calling collapseTree
to
collapse nodes expanded due to the #wasTreeExpanded flag.
This method does not perform a transaction or start any animation. You may want to call the CommandHandler#expandTree command, which does perform a transaction and raise a DiagramEvent.
To expand a Group's subgraph of Nodes and Links, use Group#expandSubGraph. @param {number=} level How many levels of the tree should be expanded; the default is 2, showing all tree children of this node and potentially more. Values less than 2 are treated as 2. @see #collapseTree @see #findTreeParts
Implementation
void expandTree([_i2.num? level]) {
_i4.callMethod(
this,
'expandTree',
[level ?? _i5.undefined],
);
}