breadthLimit property

num get breadthLimit

Gets or sets a limit on how broad a tree should be.

A value of zero (the default) means there is no limit; a positive value specifies a limit. The default value is zero.

This property is just a suggested constraint on how broadly the tree will be laid out. When there isn't enough breadth for all of the children of a node, the children are placed in as many rows as needed to try to stay within the given breadth limit. If the value is too small, since this layout algorithm does not modify the size or shape of any node, the nodes will just be laid out in a line, one per row, and the breadth is determined by the broadest node. The distance between rows is specified by #rowSpacing. To make room for the links that go around earlier rows to get to later rows, when the alignment is not a "center" alignment, the #rowIndent property specifies that space at the start of each row.

This sets the #rootDefaults' property of the same name.

Implementation

_i2.num get breadthLimit => _i4.getProperty(
      this,
      'breadthLimit',
    );
set breadthLimit (num value)

Implementation

set breadthLimit(_i2.num value) {
  _i4.setProperty(
    this,
    'breadthLimit',
    value,
  );
}