Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    A CanvasLayer for displaying visual effects like weather, transitions, flashes, or more.

    Index

    Properties

    effects: Map<string, any[]> = ...

    Array of weather effects linked to this weather container.

    The inverse occlusion mask filter bound to this container.

    A default configuration of the terrain mask that is automatically applied to any shader-based weather effects. This configuration is automatically passed to WeatherShaderEffect#configureTerrainMask upon construction.

    suppression: Container<DisplayObject>

    The container in which suppression meshed are added.

    A default configuration of the terrain mask that is automatically applied to any shader-based weather effects. This configuration is automatically passed to WeatherShaderEffect#configureTerrainMask upon construction.

    weatherEffects: Container<DisplayObject>

    The container in which effects are added.

    Accessors

    • get elevation(): number

      The elevation of this object.

      Returns number

      Infinity
      
    • get hookName(): string

      Returns string

    • get sort(): number

      A key which resolves ties amongst objects at the same elevation within the same layer.

      Returns number

      0
      
    • get sortLayer(): number

      A key which resolves ties amongst objects at the same elevation of different layers.

      Returns number

      PrimaryCanvasGroup.SORT_LAYERS.WEATHER
      
    • get zIndex(): number

      A key which resolves ties amongst objects at the same elevation within the same layer and same sort.

      Returns number

      0
      
    • set zIndex(value: number): void

      The zIndex of the displayObject.

      If a container has the sortableChildren property set to true, children will be automatically sorted by zIndex value; a higher value will mean it will be moved towards the end of the array, and thus rendered on top of other display objects within the same container.

      Parameters

      • value: number

      Returns void

      PIXI.Container#sortableChildren

    • get layerOptions(): object

      Returns object

    Methods

    • Parameters

      • options: any

      Returns Promise<void>

    • Parameters

      • options: any

      Returns Promise<any>

    • Returns void

    • Clear the weather container.

      Returns void

    • Initialize the weather container from a weather config object.

      Parameters

      • OptionalweatherEffectsConfig: object

        Weather config object (or null/undefined to clear the container).

      Returns void