Creates a new SnapGrid instance
The [[Board]]
editor.snapGrid.setOffset(10) Copy
editor.snapGrid.setOffset(10)
editor.snapGrid.setOptions({ stroke: '#fff', strokeWidth: 2}) Copy
editor.snapGrid.setOptions({ stroke: '#fff', strokeWidth: 2})
editor.snapGrid.disable() Copy
editor.snapGrid.disable()
editor.snapGrid.enable() Copy
editor.snapGrid.enable()
Returns the active state of the snap grid
Disables snap grid
Enables snap grid
Sets offset to the given value
the offset value
editor.snapGrid.setOffset(5) Copy
editor.snapGrid.setOffset(5)
Updates configs of guide line
the line config
editor.snapGrid.setOptions({ stroke: '#262626', strokeWidth: 2}) Copy
editor.snapGrid.setOptions({ stroke: '#262626', strokeWidth: 2})
Creates a new SnapGrid instance