Skip to main content

DiagramGridOptions

Options for a Diagram grid

Extends​

Properties​

fitGroupsToGrid?​

optional fitGroupsToGrid: boolean

Whether or not to ensure calculated group sizes (from auto sized groups) are a multiple of the grid size in each axis. Defaults to false.

Inherited from​

GridOptions.fitGroupsToGrid


size?​

optional size: Grid

Width/height of the grid cells

Inherited from​

GridOptions.size


snap?​

optional snap: boolean

Whether or not to snap elements to the grid when dragging. Defaults to false.

Inherited from​

GridOptions.snap


visible?​

optional visible: boolean

Whether or not to show the grid. Defaults to true.