-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.ts
78 lines (77 loc) · 1.8 KB
/
config.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
import type { ICfg } from './typings';
export const defaultConfig: ICfg = {
fill: true,
width: 1000,
height: 60,
bgColor: 'rgba(0,0,0,0.5)',
textColor: '#ffffff',
fontFamily: 'Arial',
scaleColor: '#ffffff',
scaleSpacing: 7,
areaBgColor: '#ffffff55',
pointerColor: '#00aeec',
pointerWidth: 3,
pointerDisplayWidth: 100,
pointerDisplayHeight: 14,
fps: 60,
zoom: 3,
timeSpacingList: [10, 100, 1000, 10000, 60000, 600000, 3600000, 86400000, 604800000],
// scaleHeight: ,
// bgTextColor: ,
thresholdsConfig: {
10: {
scaleTimeFormat: 'mm:ss:SSS',
bgTimeFormat: 'YYYY/MM/DD',
pointerTimeFormat: 'HH:mm:ss:SSS',
space: 10,
},
100: {
scaleTimeFormat: 'mm:ss',
bgTimeFormat: 'YYYY/MM/DD',
pointerTimeFormat: 'HH:mm:ss:SSS',
space: 10,
},
1000: {
scaleTimeFormat: 'mm:ss',
bgTimeFormat: 'YYYY/MM/DD',
pointerTimeFormat: 'HH:mm:ss',
space: 10,
},
10000: {
scaleTimeFormat: 'HH:mm:ss',
bgTimeFormat: 'YYYY/MM/DD',
pointerTimeFormat: 'HH:mm:ss',
space: 12,
},
60000: {
scaleTimeFormat: 'HH:mm',
bgTimeFormat: 'YYYY/MM/DD',
pointerTimeFormat: 'HH:mm:ss',
space: 10,
},
600000: {
scaleTimeFormat: 'HH:mm',
bgTimeFormat: 'YYYY/MM/DD',
pointerTimeFormat: 'HH:mm:ss',
space: 10,
},
3600000: {
scaleTimeFormat: 'MM/DD HH:mm',
bgTimeFormat: 'YYYY/MM',
pointerTimeFormat: 'MM/DD HH:mm',
space: 12,
},
86400000: {
scaleTimeFormat: 'MM/DD HH:mm',
bgTimeFormat: 'YYYY/MM',
pointerTimeFormat: 'YYYY/MM/DD HH:mm',
space: 12,
},
604800000: {
scaleTimeFormat: 'YYYY/MM/DD',
bgTimeFormat: 'YYYY',
pointerTimeFormat: 'YYYY/MM/DD',
space: 10,
},
}
};