Skip to main content

blockly > Grid > (constructor)

Grid.(constructor)

Constructs a new instance of the Grid class

Signature:

constructor(pattern: SVGElement, options: GridOptions);

Parameters

Parameter

Type

Description

pattern

SVGElement

The grid's SVG pattern, created during injection.

options

GridOptions

A dictionary of normalized options for the grid. See grid documentation: /blockly/guides/configure/web/grid