forked from adrian2x/odometer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathodometer.d.ts
54 lines (54 loc) · 1.44 KB
/
odometer.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
50
51
52
53
54
export = Odometer;
declare class Odometer {
static init(): any;
constructor(options: any);
options: any;
el: any;
MAX_VALUES: number;
value: number;
renderInside(): any;
inside: HTMLDivElement;
watchForMutations(): void;
observer: MutationObserver;
watchMutations: boolean;
startWatchingMutations(): void;
stopWatchingMutations(): void;
cleanValue(val: any): number;
bindTransitionEnd(): any[];
transitionEndBound: boolean;
resetFormat(): {
repeating: string;
radix: string;
precision: number;
fractional: number;
};
format: {
repeating: string;
radix: string;
precision: number;
fractional: number;
};
render(value?: number): void;
ribbons: {};
formatDigits(value: any): void;
digits: any[];
update(newValue: any): any;
renderDigit(): Element;
insertDigit(digit: any, before: any): any;
addSpacer(chr: any, before: any, ...extraClasses: any[]): any;
addDigit(value: any, repeating?: boolean): any;
animate(newValue: any): any;
animateCount(newValue: any): any;
getDigitCount(...values: any[]): number;
getFractionalDigitCount(...values: any[]): number;
resetDigits(): {
repeating: string;
radix: string;
precision: number;
fractional: number;
};
animateSlide(newValue: any): any;
}
declare namespace Odometer {
const options: any;
}