@equinor/videx-map
    Preparing search index...

    Class FaultlineModule

    Module for displaying faultlines.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    config: Config = ...

    Default config.

    pixiOverlay: pixiOverlayBase

    Function for pixi overlay.

    pool: Graphics[] = []

    Pool of initialized graphic elements.

    root: Container

    Root container for layer.

    spawned: Graphics[] = []

    Graphic elements currently existing in world space.

    visibility: boolean = true

    True if layer is currently visible.

    Methods

    • Clear all spawned graphic elements and return to pool.

      Returns void

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

      Parameters

      • data: FaultlineData[]

        Faultlines to draw

      • redraw: boolean = false

        Should pixiOverlay be redrawn after setting data? (Default: false)

      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