The grid mesh.
The Grid Highlight container
Map named highlight layers
Options for this layer instance.
Private
#drawingAn internal reference to a Promise in-progress to draw the CanvasLayer.
Private
#drawnIs the layer drawn?
The canonical name of the CanvasLayer is the name of the constructor that is the immediate child of the defined baseClass for the layer type.
canvas.lighting.name -> "LightingLayer"
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.
Static
layerCustomize behaviors of this CanvasLayer by modifying some behaviors at a class level.
Static
instanceReturn a reference to the active instance of this canvas layer
Initialize the grid mesh appearance and configure the grid shader.
The grid style
The grid thickness
The grid color
The grid alpha
Define a new Highlight graphic
The name for the referenced highlight layer
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
Optional
options: { Options for the grid position that should be highlighted
The x-coordinate of the highlighted position
The y-coordinate of the highlighted position
The fill color of the highlight
The border color of the highlight
The opacity of the highlight
A predefined shape to highlight
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.
Optional
options: object = {}Options which configure how the layer is drawn
Deconstruct data used in the current layer in preparation to re-draw the canvas
Optional
options: object = {}Options which configure how the layer is deconstructed
Protected
_drawProtected
_tear
A CanvasLayer responsible for drawing a square grid