Module for displaying faultlines.

Hierarchy (view full)

Constructors

Properties

config: Config = ...

Default config.

pixiOverlay: pixiOverlayBase

Function for pixi overlay.

pool: Graphics[] = []

Pool of initialized graphic elements.

root: Container<DisplayObject>

Root container for layer.

spawned: Graphics[] = []

Graphic elements currently existing in world space.

visibility: boolean = true

True if layer is currently visible.

Methods

  • Set collection of faultlines to display. Clears previous content on execution.

    Parameters

    • data: FaultlineData[]

      Faultlines to draw

    Returns void

  • Set visibility of the root PIXI container to a given value.

    Parameters

    • visible: boolean

      Should layer be visible?

    Returns boolean

    True if new visibility was set