Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > setGrid

Surface.setGrid() method

Sets the current grid for element dragging, magnetization and group sizing.

Signature:

setGrid(grid: Grid): void;

Parameters

ParameterTypeDescription
gridGridGrid to use. If you provide null as the value the grid will be cleared.

Returns:

void