UNPKG

1.16 kBTypeScriptView Raw
1import { Behavior } from './scroller/Behavior';
2import Actions from './scroller/Actions';
3import { ExposedAPI as ExposedAPIByScroller } from './scroller/Scroller';
4import { Animater } from './animater';
5import { ExposedAPI as ExposedAPIByAnimater } from './animater/Base';
6export interface BScrollInstance extends ExposedAPIByScroller, ExposedAPIByAnimater {
7 [key: string]: any;
8 x: Behavior['currentPos'];
9 y: Behavior['currentPos'];
10 hasHorizontalScroll: Behavior['hasScroll'];
11 hasVerticalScroll: Behavior['hasScroll'];
12 scrollerWidth: Behavior['contentSize'];
13 scrollerHeight: Behavior['contentSize'];
14 maxScrollX: Behavior['maxScrollPos'];
15 maxScrollY: Behavior['maxScrollPos'];
16 minScrollX: Behavior['minScrollPos'];
17 minScrollY: Behavior['minScrollPos'];
18 movingDirectionX: Behavior['movingDirection'];
19 movingDirectionY: Behavior['movingDirection'];
20 directionX: Behavior['direction'];
21 directionY: Behavior['direction'];
22 enabled: Actions['enabled'];
23 pending: Animater['pending'];
24}
25export declare const propertiesConfig: {
26 sourceKey: string;
27 key: string;
28}[];