A CanvasLayer for displaying coloration visual effects

Hierarchy (View Summary)

Properties

filter: VisualEffectsMaskingFilter

The filter used to mask visual effects on this layer

interactiveChildren: boolean = false

Whether this event target has any children that need UI events. This can be used optimize event propagation.

options: { name: string } = ...

Options for this layer instance.

Accessors

  • get hookName(): string

    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.

    Returns string

  • get name(): string

    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.

    Returns string

    canvas.lighting.name -> "LightingLayer"
    
  • get instance(): CanvasLayer

    Return a reference to the active instance of this canvas layer

    Returns CanvasLayer

  • get layerOptions(): { name: string }

    Customize behaviors of this CanvasLayer by modifying some behaviors at a class level.

    Returns { name: string }

Methods

  • Parameters

    • options: any

    Returns Promise<void>

  • Parameters

    • options: any

    Returns Promise<void>

  • Clear coloration effects container

    Returns void

  • 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.

    Parameters

    • Optionaloptions: object = {}

      Options which configure how the layer is drawn

    Returns Promise<CanvasLayer>

  • Deconstruct data used in the current layer in preparation to re-draw the canvas

    Parameters

    • Optionaloptions: object = {}

      Options which configure how the layer is deconstructed

    Returns Promise<CanvasLayer>