Class with common functions shared by all layers.

Hierarchy (view full)

Constructors

Properties

asyncLoop: AsyncLoop = ...
config: Config
containers: {
    labels: Container<DisplayObject>;
    roots: Container<DisplayObject>;
    wellbores: Container<DisplayObject>;
}
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<DisplayObject>

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

    • Rest...keys: string[]

      Optional list of keys for which groups to clear

    Returns void

  • Parameters

    • OptionalonHighlightOff: (() => void)
        • (): void
        • Returns void

    Returns boolean

  • 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)
        • (v): boolean
        • Parameters

          • v: SourceData

          Returns boolean

    • Rest...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
    • Rest...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
    • Rest...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)
        • (v): boolean
        • Parameters

          • v: any

          Returns boolean

    • Rest...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
    • Rest...keys: string[]

    Returns void

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

    Parameters

    • filterFunction: ((v: SourceData) => boolean)
        • (v): boolean
        • Parameters

          • v: SourceData

          Returns boolean

    • Rest...keys: string[]

    Returns void