-
Notifications
You must be signed in to change notification settings - Fork 60
/
number-flip.d.ts
47 lines (47 loc) · 1.23 KB
/
number-flip.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
interface FlipOptions {
node: HTMLElement;
from: number;
to?: number;
duration?: number;
delay?: number;
easeFn?: (pos: number) => number;
systemArr?: Array<string | number>;
direct?: boolean;
separator?: string | string[];
separateOnly?: number;
separateEvery?: number;
}
export declare class Flip {
private beforeArr;
private afterArr;
private ctnrArr;
private duration;
private systemArr;
private easeFn;
from: number;
to: number;
private node;
private direct;
private separator?;
private separateOnly;
private separateEvery;
private height?;
constructor({ node, from, to, duration, delay, easeFn, systemArr, direct, separator, separateOnly, separateEvery, }: FlipOptions);
_initHTML(digits: number): void;
_draw({ per, alter, digit }: {
per: number;
alter: number;
digit: number;
}): void;
_resize(): void;
frame(per: number): void;
flipTo({ to, duration, easeFn, direct, }: {
to: number;
duration?: number;
easeFn?: () => any;
direct?: boolean;
}): void;
setSelect(num: any): void;
destroy(): void;
}
export {};