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
Parameter | Type | Description |
---|---|---|
grid | Grid | Grid to use. If you provide null as the value the grid will be cleared. |
Returns:
void