-
Notifications
You must be signed in to change notification settings - Fork 1k
/
SpinnerOptions.d.ts
93 lines (76 loc) · 1.65 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
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 animation name used for the spinner lines. Defaults to 'spinner-line-fade-default'.
*/
animation?: string;
/**
* The rotation offset
*/
rotate?: number;
/**
* 1: clockwise, -1: counterclockwise
*/
direction?: number;
/**
* Rounds per second
*/
speed?: 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;
}