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

    Class WellboreModule

    Class with common functions shared by all layers.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    asyncLoop: AsyncLoop = ...
    config: Config
    containers: { labels: Container; roots: Container; wellbores: Container }
    currentZoom: number = 20
    groups: { [key: string]: Group } = {}
    highlight: Highlight = ...
    lineDict: LineDictionary<WellboreData>
    marker: Graphics
    pixiOverlay: pixiOverlayBase

    Function for pixi overlay.

    pointDict: PointDictionary<RootData>
    root: Container

    Root container for layer.

    roots: RootData[] = []
    scaling: (zoom: number) => number

    Zoom event handler.

    visibility: boolean = true

    True if layer is currently visible.

    Accessors

    Methods

    • Add a single wellbore

      Parameters

      • data: SourceData

        Wellbore data

      • group: Group = ...

        Group to add wellbore into

      Returns void

    • Clear all data or data mapped to the groups specified by keys

      Parameters

      • ...keys: string[]

        Optional list of keys for which groups to clear

      Returns void

    • Parameters

      • ...keys: string[]

      Returns void

    • Parameters

      • OptionalonHighlightOff: () => void

      Returns boolean

    • Parameters

      • ...keys: string[]

      Returns void

    • Calculate root radius based on formula used in Shader.ts!

      Parameters

      • zoom: number = ...

        Reference zoom level

      Returns number

    • Calculate wellbore radius based on formula used in Shader.ts!

      Parameters

      • zoom: number = ...

        Reference zoom level

      Returns number

    • "Hard" filtering function. Will turn wellbores that does not pass filter into "ghost" lines.

      Parameters

      • filterFunction: (v: SourceData) => boolean
      • ...keys: string[]

      Returns void

    • Registers a new detail on given group.

      Parameters

      • key: string

        Detail key.

      • groupKeys: string[]

        Target group keys.

      • options: DetailOptions

      Returns void

    • Parameters

      • key: string
      • Optionaloptions: GroupOptions

      Returns void

    • Parameters

      • wells: SourceData[]
      • key: string = 'default'
      • batchSize: number = null

      Returns Promise<void>

    • Enable/disable completion

      Parameters

      • visible: boolean
      • ...keys: string[]

      Returns void

    • Enable/disable details

      Parameters

      • visible: boolean
      • key: string

        Key of detail to set visibility for

      Returns void

    • Set highlight of wellbore module. Does not override mousemove events.

      Parameters

      • label: string
      • ...keys: string[]

        Keys of groups to search. Can improve performance.

      Returns RealtimeWellbore

      Screen coordinates (in pixels) of highlighted wellbore's root

    • Enable/disable labels

      Parameters

      • visible: boolean

      Returns void

    • Parameters

      • selectFunction: (v: any) => boolean
      • ...keys: string[]

      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

    • Enable/disable wellbores

      Parameters

      • visible: boolean
      • ...keys: string[]

      Returns void

    • "Soft" filtering function. Will turn wellbores that does not pass filter gray-ish.

      Parameters

      • filterFunction: (v: SourceData) => boolean
      • ...keys: string[]

      Returns void