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.
Static
instanceStatic
layerCustomize 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.
Optional
options: 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
.
Optional
alpha?: numberThe opacity of the highlight
Optional
border?: null | ColorSourceThe border color of the highlight
Optional
color?: ColorSourceThe fill color of the highlight
Optional
shape?: PolygonA predefined shape to highlight
Optional
x?: numberThe x-coordinate of the highlighted position
Optional
y?: numberThe y-coordinate of the highlighted position
Initialize the grid mesh appearance and configure the grid shader.
Optional
alpha?: numberThe grid alpha
Optional
color?: stringThe grid color
Optional
style?: stringThe grid style
Optional
thickness?: numberThe grid thickness
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
_tearProtected
The 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