UNPKG

@greg-md/ng-lazy-load

Version:
14 lines (13 loc) 679 B
export declare function offset(element: HTMLElement): { top: number; left: number; }; export interface ViewportSettings { container?: HTMLElement | Window; threshold?: number; } export declare function aboveTheTop(element: HTMLElement, settings?: ViewportSettings): boolean; export declare function rightOfFold(element: HTMLElement, settings?: ViewportSettings): boolean; export declare function belowTheFold(element: HTMLElement, settings?: ViewportSettings): boolean; export declare function leftOfBegin(element: HTMLElement, settings?: ViewportSettings): boolean; export declare function inViewport(element: HTMLElement, settings?: ViewportSettings): boolean;