-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.d.ts
49 lines (34 loc) · 1.12 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
declare function optiscroll(element: Element, options: optiscroll.OptiscrollOptions): optiscroll.Instance;
declare namespace optiscroll {
class Instance {
constructor(element: Element, options: OptiscrollOptions)
init(): void;
bind(): void;
update(): void;
scrollTo(destX: number, destY: number, duration: number): void;
animateScroll(startX: number, endX: number, startY: number, endY: number, duration: number): void;
scrollIntoView(elem: Element, duration: number, delta: number): void;
destroy(): void;
fireCustomEvent(eventName: string): void;
}
interface OptiscrollOptions {
preventParentScroll?: boolean;
forceScrollbars?: boolean;
scrollStopDelay?: number;
maxTrackSize?: number;
minTrackSize?: number;
draggableTracks?: boolean;
autoUpdate?: boolean;
classPrefix?: string;
wrapContent?: boolean;
rtl?: boolean;
}
interface GlobalSettings {
scrollMinUpdateInterval: number;
checkFrequency: number;
pauseCheck: boolean;
}
const defaults: OptiscrollOptions;
const globalSettings: GlobalSettings;
}
export = optiscroll;