packOption property

num packOption

Gets or sets the options used by the straighten and pack function; this option is deprecated -- we recommend using #alignOption instead for better alignment and speed.

The value must be a combination of the following bit flags: LayeredDigraphLayout.PackMedian, LayeredDigraphLayout.PackStraighten, and LayeredDigraphLayout.PackExpand. The default value is LayeredDigraphLayout.PackAll, which is a combination of all three flags.

Each of the flags has a cost; PackExpand is particularly slow. However if you do not set this property, this layout will automatically turn off the PackExpand option for you if the graph is large enough. You can set this property value to LayeredDigraphLayout.PackNone to avoid most of the work.

This option is ignored if #alignOption is set to a value other than LayeredDigraphLayout.AlignNone. This tends to be slower than #alignOption, particularly for larger graphs. Larger graphs, however, will usually be more compact than when using alignOption.

Implementation

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

Implementation

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