Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UIHelper

Helper methods for wellog specific DOM queries

Hierarchy

  • UIHelper

Index

Methods

Static attachTrackLoader

  • attachTrackLoader(elm: HTMLElement, track: Track): void
  • Create a sample loader element for tracks. Requires track-loader-styles.scss or styles.css.

    Parameters

    • elm: HTMLElement

      Track HTML element

    • track: Track

      Track instance

    Returns void

Static pickHStackedElement

  • pickHStackedElement(elements: HTMLElement[], xpos: number): HTMLElement
  • Find and return the element of elements positioned at a given x-coordinate of its container element. NOTE: Requires elements to be within the same containing DOM element and stacked side-by-side horizontally.

    Parameters

    • elements: HTMLElement[]
    • xpos: number

    Returns HTMLElement

Static pickVStackedElement

  • pickVStackedElement(elements: HTMLElement[], ypos: number): HTMLElement
  • Find and return the element of elements positioned at a given y-coordinate of its container element. NOTE: Requires elements to be within the same containing DOM element and stacked top-by-down vertically.

    Parameters

    • elements: HTMLElement[]
    • ypos: number

    Returns HTMLElement

Generated using TypeDoc