Fake class which should be extended to avoid inheriting static properties
Class for a workspace's grid.
The grid's SVG pattern, created during injection.
A dictionary of normalized options for the grid. See grid documentation: https://developers.google.com/blockly/guides/configure/web/grid
Dispose of this grid and unlink from the DOM.
Get the ID of the pattern element, which should be randomized to avoid conflicts with other Blockly instances on the page.
The pattern ID.
Get the spacing of the grid points (in px).
The spacing of the grid points.
Move the grid to a new x and y position, and make sure that change is visible.
The new x position of the grid (in px).
The new y position of the grid (in px).
Whether blocks should snap to the grid, based on the initial configuration.
True if blocks should snap, false otherwise.
Update the grid with a new scale.
The new workspace scale.
Fake class which should be extended to avoid inheriting static properties