forked from fgnass/spin.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpinnerOptions.d.ts
103 lines (84 loc) · 1.79 KB
/
SpinnerOptions.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
export interface SpinnerOptions {
/**
* The number of lines to draw
*/
lines?: number;
/**
* The length of each line
*/
length?: number;
/**
* The line thickness
*/
width?: number;
/**
* The radius of the inner circle
*/
radius?: number;
/**
* Scales overall size of the spinner
*/
scale?: number;
/**
* Corner roundness (0..1)
*/
corners?: number;
/**
* A CSS color string, or array of strings to set the line color
*/
color?: string | string[];
/**
* A CSS color string, or array of strings to set the color that lines will fade to.
* Defaults to transparent.
*/
fadeColor?: string | string[];
/**
* The minimum opacity the line color will fade to (0..1)
*/
opacity?: number;
/**
* The rotation offset
*/
rotate?: number;
/**
* 1: clockwise, -1: counterclockwise
*/
direction?: number;
/**
* Rounds per second
*/
speed?: number;
/**
* Afterglow percentage (0..100)
*/
trail?: number;
/**
* Frames per second when using setTimeout() as a fallback in IE 9
*/
fps?: number;
/**
* The z-index (defaults to 2000000000)
*/
zIndex?: number;
/**
* The CSS class to assign to the spinner
*/
className?: string;
/**
* Top position relative to parent (defaults to 50%)
*/
top?: string;
/**
* Left position relative to parent (defaults to 50%)
*/
left?: string;
/**
* Whether to render the default shadow (boolean).
* A string can be used to set a custom box-shadow value.
*/
shadow?: boolean | string;
/**
* Element positioning
*/
position?: string;
}