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.
let layout = new mxPartitionLayout(graph, true, 10, 20); layout.execute(graph.getDefaultParent());
mxPartitionLayout | Extends mxGraphLayout for partitioning the parent cell vertically or horizontally by filling the complete area with the child cells. |
Functions | |
mxPartitionLayout | Constructs a new stack layout layout for the specified graph, spacing, orientation and offset. |
Variables | |
horizontal | Boolean indicating the direction in which the space is partitioned. |
spacing | Integer that specifies the absolute spacing in pixels between the children. |
border | Integer that specifies the absolute inset in pixels for the parent that contains the children. |
resizeVertices | Boolean that specifies if vertices should be resized. |
Functions | |
isHorizontal | Returns horizontal. |
moveCell | Implements mxGraphLayout.moveCell. |
execute | Implements mxGraphLayout.execute. |
mxPartitionLayout.prototype.isHorizontal = function()
Returns horizontal.
mxPartitionLayout.prototype.moveCell = function( cell, x, y )
Implements mxGraphLayout.moveCell.
mxPartitionLayout.prototype.execute = function( parent )
Implements mxGraphLayout.execute. All children where <isVertexIgnored> returns false and <isVertexMovable> returns true are modified.
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
function mxPartitionLayout( graph, horizontal, spacing, border )
Boolean indicating the direction in which the space is partitioned.
mxPartitionLayout.prototype.horizontal
Integer that specifies the absolute spacing in pixels between the children.
mxPartitionLayout.prototype.spacing
Integer that specifies the absolute inset in pixels for the parent that contains the children.
mxPartitionLayout.prototype.border
Boolean that specifies if vertices should be resized.
mxPartitionLayout.prototype.resizeVertices
Returns horizontal.
mxPartitionLayout.prototype.isHorizontal = function()
Implements mxGraphLayout.moveCell.
mxPartitionLayout.prototype.moveCell = function( cell, x, y )
Notified when a cell is being moved in a parent that has automatic layout to update the cell state (eg.
mxGraphLayout.prototype.moveCell = function( cell, x, y )
Implements mxGraphLayout.execute.
mxPartitionLayout.prototype.execute = function( parent )
Executes the layout algorithm for the children of the given parent.
mxGraphLayout.prototype.execute = function( parent )