Options for this layer instance.
Private #drawingAn internal reference to a Promise in-progress to draw the CanvasLayer.
Private #drawnIs the layer drawn?
Is this layer currently active
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.
canvas.lighting.name -> "LightingLayer"
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 layerCustomize behaviors of this CanvasLayer by modifying some behaviors at a class level.
Static instanceReturn a reference to the active instance of this canvas layer
Activate the InteractionLayer, deactivating other layers and marking this layer's children as interactive.
Optional options: { Options which configure layer activation
A specific tool in the control palette to set as active
The layer instance, now activated
Deactivate the InteractionLayer, removing interactivity from its children.
The layer instance, now inactive
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 _activateProtected _deactivateProtected _onProtected _onProtected _canProtected Does the User have permission to left-click drag on the Canvas?
The User performing the action.
The event object.
Protected _onProtected _onProtected _onProtected _onProtected _onProtected _onProtected _onProtected _tear
A subclass of CanvasLayer which provides support for user interaction with its contained objects.