CanvasLayer

CanvasLayer

An abstract pattern for primary layers of the game canvas to implement

Constructor

new CanvasLayer()

Source:

Members

_active :Boolean

Source:

Track whether the canvas layer is currently active for interaction

Type:
  • Boolean

Methods

(async) draw() → {Promise.<CanvasLayer>}

Source:

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.

Returns:
Type
Promise.<CanvasLayer>