UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

16 lines (15 loc) 512 B
/** * Resolves offset value for given axis. * @param offset - Offset value or object containing axis-specific offsets * @param axis - Axis for which to resolve the offset ('x' or 'y') * @returns Resolved offset value for the specified axis */ export declare function resolveOffset(offset: number | { x?: number; y?: number; } | undefined, axis: 'x' | 'y'): number; /** * Gets the document's scrolling element. * @returns Scrolling element */ export declare function getDocScrollingEl(): Element;