An abstract pattern for primary layers of the game canvas to implement.
Options for this layer instance.
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.
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.
Customize behaviors of this CanvasLayer by modifying some behaviors at a class level.
Return a reference to the active instance of this canvas 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.
Deconstruct data used in the current layer in preparation to re-draw the canvas
The inner _draw method which must be defined by each CanvasLayer subclass.
The inner _tearDown method which may be customized by each CanvasLayer subclass.