An abstract pattern for primary layers of the game canvas to implement.
Options for this layer instance.
The canonical name of the CanvasLayer
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.