UNPKG

614 BTypeScriptView Raw
1import { ElementRef } from '@angular/core';
2export declare type ContainerRef = Window | ElementRef | any;
3export interface InfiniteScrollEvent {
4 currentScrollPosition: number;
5}
6export interface PositionElements {
7 windowElement: ContainerRef;
8 horizontal: boolean;
9}
10export interface PositionStats {
11 height: number;
12 scrolledUntilNow: number;
13 totalToScroll: number;
14}
15export interface ScrollerConfig {
16 distance: {
17 down: number;
18 up: number;
19 };
20 scrollParent?: ContainerRef;
21}
22export interface ScrollStats {
23 isScrollingDown: boolean;
24 shouldScroll: boolean;
25}