Skip to main content

Home > @jsplumbtoolkit/browser-ui > SurfaceGridOptions

SurfaceGridOptions interface#

Options for the grid in a Surface.

Signature:

export interface SurfaceGridOptions 

Properties#

PropertyTypeDescription
fitGroupsToGrid?boolean(Optional) 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.
size?Grid(Optional) width/height of the grid
snap?boolean(Optional) Whether or not to snap elements to the grid when dragging. Defaults to false.