@greg-md/ng-facebook
Version:
Using Facebook SDK with Angular.
14 lines (13 loc) • 692 B
TypeScript
export declare function offset(element: HTMLElement): ClientRect | {
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;