Extends mxGraphLayout for partitioning the parent cell vertically or horizontally by filling the complete area with the child cells. A horizontal layout partitions the height of the given parent whereas a a non-horizontal layout partitions the width. If the parent is a layer (that is, a child of the root node), then the current graph size is partitioned. The children do not need to be connected for this layout to work.
var layout = new mxPartitionLayout(graph, true, 10, 20);
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
Boolean indicating the direction in which the space is partitioned. Default is true.
Integer that specifies the absolute spacing in pixels between the children. Default is 0.
Integer that specifies the absolute inset in pixels for the parent that contains the children. Default is 0.
Boolean that specifies if vertices should be resized. Default is true.
|mxPartitionLayout.prototype.isHorizontal = function()|
|mxPartitionLayout.prototype.execute = function(||parent||)|
Implements mxGraphLayout.execute. All children where <isVertexIgnored> returns false and <isVertexMovable> returns true are modified.