Options for the grid on a surface

interface SurfaceGridOptions {
    fitGroupsToGrid?: boolean;
    size?: Grid;
    snap?: boolean;
}

Properties

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.

size?: Grid

width/height of the grid

snap?: boolean

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