Abstract
Interface
Whether this event target has any children that need UI events. This can be used optimize event propagation.
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
instanceReturn a reference to the active instance of this canvas layer
Static
layerCustomize behaviors of this CanvasLayer by modifying some behaviors at a class level.
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
Abstract
_drawProtected
The inner _draw method which must be defined by each CanvasLayer subclass.
Options which configure how the layer is drawn
Protected
_tearProtected
The inner _tearDown method which may be customized by each CanvasLayer subclass.
Options which configure how the layer is deconstructed
An abstract pattern for primary layers of the game canvas to implement.