alignOption property

num alignOption

Gets or sets the options used by the straighten and pack function, as a potentially faster alternative to #packOption.

When using this option, nodes are assigned coordinates within their layers to produce straighter paths of nodes and small edge lengths.

When used as an alternative to #packOption, this tends to be faster, particularly for larger graphs. Larger graphs, however, will usually be less compact than when using packOption. If this option is set, packOption is ignored.

This option does not use columns, but rather uses #columnSpacing to space nodes within a layer.

The value must be a combination of the following bit flags: LayeredDigraphLayout.AlignUpperLeft, LayeredDigraphLayout.AlignUpperRight, LayeredDigraphLayout.AlignLowerLeft, and LayeredDigraphLayout.AlignLowerRight.

Using LayeredDigraphLayout.AlignAll will tend to provide the most balanced results and is what we recommend starting with.

The default value is LayeredDigraphLayout.AlignNone, meaning #packOption is used. LayeredDigraphLayout.AlignAll may become the default in a future major version.

Implementation

_i2.num get alignOption => _i4.getProperty(
      this,
      'alignOption',
    );
void alignOption=(num value)

Implementation

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