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