@equinor/videx-wellog
Version:
Visualisation components for wellbore log data
27 lines (26 loc) • 1.05 kB
TypeScript
import { Track } from '../tracks';
/**
* Helper methods for wellog specific DOM queries
*/
export default class UIHelper {
/**
* 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.
*/
static pickHStackedElement(elements: HTMLElement[], xpos: 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.
*/
static pickVStackedElement(elements: HTMLElement[], ypos: number): HTMLElement;
/**
* Create a sample loader element for tracks. Requires track-loader-styles.scss or styles.css.
* @param elm Track HTML element
* @param track Track instance
*/
static attachTrackLoader(elm: HTMLElement, track: Track): void;
}