Skip to main content
DiagramGridOptions
Options for a Diagram grid
NameTypeDescription
fitGroupsToGrid?booleanWhether or not to ensure calculated group sizes (from auto sized groups) are a multiple of the grid size in each axis. Defaults to false.
size?GridWidth/height of the grid cells
snap?booleanWhether or not to snap elements to the grid when dragging. Defaults to false.
visible?booleanWhether or not to show the grid. Defaults to true.