The Grid Highlight container
Map named highlight layers
Whether this event target has any children that need UI events. This can be used optimize event propagation.
The grid mesh.
Options for this layer instance.
The name used by hooks to construct their hook string. Note: You should override this getter if hookName should not return the class constructor name.
StaticinstanceStaticlayerCustomize behaviors of this CanvasLayer by modifying some behaviors at a class level.
Define a new Highlight graphic
The name for the referenced highlight layer
Clear a specific Highlight graphic
The name for the referenced highlight layer
Destroy a specific Highlight graphic
The name for the referenced highlight layer
Draw the canvas layer, rendering its internal components and returning a Promise. The Promise resolves to the drawn layer once its contents are successfully rendered.
Optionaloptions: object = {}Options which configure how the layer is drawn
Obtain the highlight layer graphic by name
The name for the referenced highlight layer
Add highlighting for a specific grid position to a named highlight graphic
The name for the referenced highlight layer
If gridless you need to pass shape but not x and y.
- If not gridless you need to pass x and y, but not shape.
Optionalalpha?: numberThe opacity of the highlight
Optionalborder?: null | ColorSourceThe border color of the highlight
Optionalcolor?: ColorSourceThe fill color of the highlight
Optionalshape?: PolygonA predefined shape to highlight
Optionalx?: numberThe x-coordinate of the highlighted position
Optionaly?: numberThe y-coordinate of the highlighted position
Initialize the grid mesh appearance and configure the grid shader.
Optionalalpha?: numberThe grid alpha
Optionalcolor?: stringThe grid color
Optionalstyle?: stringThe grid style
Optionalthickness?: numberThe grid thickness
Deconstruct data used in the current layer in preparation to re-draw the canvas
Optionaloptions: object = {}Options which configure how the layer is deconstructed
Protected_drawProtected_tearProtectedThe inner _tearDown method which may be customized by each CanvasLayer subclass.
Options which configure how the layer is deconstructed
A CanvasLayer responsible for drawing a square grid