@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
21 lines (20 loc) • 841 B
TypeScript
/**
* Small utility to provide 100vw and 100vh alternative CSS Variables
* - vwProp (default: `--100vw`) - scroll independent viewport width value
* - vhProp (default: `--100vh`) - device independent viewport height value (also known as 100vh iOS fix)
*/
export declare class ESLVSizeCSSProxy {
static vwProp: string;
static vhProp: string;
/** Inits custom CSS variables for viewport sizes and it's observation */
static observe(): void;
/** Destroys observer */
static destroy(): void;
/** Update custom CSS variables with actual viewport sizes */
protected static update(): void;
protected static readonly updateDebounced: any;
/** @returns current viewport width */
static get viewportWidth(): number;
/** @returns current viewport height */
static get viewportHeight(): number;
}