Enumeration PackMode

GoJS® Diagramming Components
version 3.0.12
by Northwoods Software®

This is an extension and not part of the main GoJS library. Note that the API for this class may change at any time. If you intend to use an extension in production, you should copy the code to your own source directory. See the Extensions intro page for more information.

This enumeration is used to determine the size of the PackedLayout. Used for PackedLayout.packShape.

Note: this enumeration is only exists in extensionsJSM, not in extensions.

since

3.0

Index

Enumeration Members

Enumeration Members

Nodes will be packed using the PackedLayout.aspectRatio property, with no size considerations.

The PackedLayout.spacing property will be respected in this mode.

Nodes will be either compressed or spaced evenly to fit the given PackedLayout.size.

The PackedLayout.spacing property will not be respected in this mode, and will not do anything if set.

Nodes will be compressed if necessary (using negative spacing) to fit the given PackedLayout.size. However, if the PackedLayout.size is bigger than the packed shape (with 0 spacing), it will not expand to fit it.

The PackedLayout.spacing property will be respected in this mode, but only if it does not cause the layout to grow larger than the PackedLayout.size.