mrxy-yk 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import * as echarts from "echarts";
|
|
2
|
+
const contrastColor = "#B9B8CE";
|
|
3
|
+
const backgroundColor = "rgba(0, 0, 0, 0)";
|
|
4
|
+
const axisCommon = function() {
|
|
5
|
+
return {
|
|
6
|
+
axisLine: {
|
|
7
|
+
lineStyle: {
|
|
8
|
+
color: contrastColor
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
splitLine: {
|
|
12
|
+
lineStyle: {
|
|
13
|
+
color: "#B9B8CE33",
|
|
14
|
+
type: "dashed"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
splitArea: {
|
|
18
|
+
areaStyle: {
|
|
19
|
+
color: ["rgba(255,255,255,0.02)", "rgba(255,255,255,0.05)"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
minorSplitLine: {
|
|
23
|
+
lineStyle: {
|
|
24
|
+
color: "#20203B"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
const colorPalette = [
|
|
30
|
+
"#4992ff",
|
|
31
|
+
"#7cffb2",
|
|
32
|
+
"#fddd60",
|
|
33
|
+
"#ff6e76",
|
|
34
|
+
"#58d9f9",
|
|
35
|
+
"#05c091",
|
|
36
|
+
"#ff8a45",
|
|
37
|
+
"#8d48e3",
|
|
38
|
+
"#dd79ff"
|
|
39
|
+
];
|
|
40
|
+
const theme = {
|
|
41
|
+
darkMode: true,
|
|
42
|
+
color: colorPalette,
|
|
43
|
+
backgroundColor,
|
|
44
|
+
axisPointer: {
|
|
45
|
+
lineStyle: {
|
|
46
|
+
color: "#817f91"
|
|
47
|
+
},
|
|
48
|
+
crossStyle: {
|
|
49
|
+
color: "#817f91"
|
|
50
|
+
},
|
|
51
|
+
label: {
|
|
52
|
+
// TODO Contrast of label backgorundColor
|
|
53
|
+
color: "#fff"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
legend: {
|
|
57
|
+
textStyle: {
|
|
58
|
+
color: contrastColor
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
textStyle: {
|
|
62
|
+
color: contrastColor
|
|
63
|
+
},
|
|
64
|
+
title: {
|
|
65
|
+
textStyle: {
|
|
66
|
+
color: "#EEF1FA"
|
|
67
|
+
},
|
|
68
|
+
subtextStyle: {
|
|
69
|
+
color: "#B9B8CE"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
toolbox: {
|
|
73
|
+
iconStyle: {
|
|
74
|
+
borderColor: contrastColor
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
dataZoom: {
|
|
78
|
+
borderColor: "#71708A",
|
|
79
|
+
textStyle: {
|
|
80
|
+
color: contrastColor
|
|
81
|
+
},
|
|
82
|
+
brushStyle: {
|
|
83
|
+
color: "rgba(135,163,206,0.3)"
|
|
84
|
+
},
|
|
85
|
+
handleStyle: {
|
|
86
|
+
color: "#353450",
|
|
87
|
+
borderColor: "#C5CBE3"
|
|
88
|
+
},
|
|
89
|
+
moveHandleStyle: {
|
|
90
|
+
color: "#B0B6C3",
|
|
91
|
+
opacity: 0.3
|
|
92
|
+
},
|
|
93
|
+
fillerColor: "rgba(135,163,206,0.2)",
|
|
94
|
+
emphasis: {
|
|
95
|
+
handleStyle: {
|
|
96
|
+
borderColor: "#91B7F2",
|
|
97
|
+
color: "#4D587D"
|
|
98
|
+
},
|
|
99
|
+
moveHandleStyle: {
|
|
100
|
+
color: "#636D9A",
|
|
101
|
+
opacity: 0.7
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
dataBackground: {
|
|
105
|
+
lineStyle: {
|
|
106
|
+
color: "#71708A",
|
|
107
|
+
width: 1
|
|
108
|
+
},
|
|
109
|
+
areaStyle: {
|
|
110
|
+
color: "#71708A"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
selectedDataBackground: {
|
|
114
|
+
lineStyle: {
|
|
115
|
+
color: "#87A3CE"
|
|
116
|
+
},
|
|
117
|
+
areaStyle: {
|
|
118
|
+
color: "#87A3CE"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
visualMap: {
|
|
123
|
+
textStyle: {
|
|
124
|
+
color: contrastColor
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
timeline: {
|
|
128
|
+
lineStyle: {
|
|
129
|
+
color: contrastColor
|
|
130
|
+
},
|
|
131
|
+
label: {
|
|
132
|
+
color: contrastColor
|
|
133
|
+
},
|
|
134
|
+
controlStyle: {
|
|
135
|
+
color: contrastColor,
|
|
136
|
+
borderColor: contrastColor
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
calendar: {
|
|
140
|
+
itemStyle: {
|
|
141
|
+
color: backgroundColor
|
|
142
|
+
},
|
|
143
|
+
dayLabel: {
|
|
144
|
+
color: contrastColor
|
|
145
|
+
},
|
|
146
|
+
monthLabel: {
|
|
147
|
+
color: contrastColor
|
|
148
|
+
},
|
|
149
|
+
yearLabel: {
|
|
150
|
+
color: contrastColor
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
timeAxis: axisCommon(),
|
|
154
|
+
logAxis: axisCommon(),
|
|
155
|
+
valueAxis: axisCommon(),
|
|
156
|
+
categoryAxis: axisCommon(),
|
|
157
|
+
line: {
|
|
158
|
+
symbol: "circle"
|
|
159
|
+
},
|
|
160
|
+
graph: {
|
|
161
|
+
color: colorPalette
|
|
162
|
+
},
|
|
163
|
+
gauge: {
|
|
164
|
+
title: {
|
|
165
|
+
color: contrastColor
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
candlestick: {
|
|
169
|
+
itemStyle: {
|
|
170
|
+
color: "#FD1050",
|
|
171
|
+
color0: "#0CF49B",
|
|
172
|
+
borderColor: "#FD1050",
|
|
173
|
+
borderColor0: "#0CF49B"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
theme.categoryAxis.splitLine.show = false;
|
|
178
|
+
echarts.registerTheme("dark", theme);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mrxy-yk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A collection of Vue 3 components and utilities",
|
|
@@ -25,9 +25,6 @@
|
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
26
|
"import": "./dist/index.js"
|
|
27
27
|
},
|
|
28
|
-
"./global": {
|
|
29
|
-
"import": "./global.d.ts"
|
|
30
|
-
},
|
|
31
28
|
"./config": {
|
|
32
29
|
"types": "./dist/config/index.d.ts",
|
|
33
30
|
"import": "./dist/config/index.js"
|
|
@@ -48,7 +45,12 @@
|
|
|
48
45
|
"types": "./dist/element-plus/index.d.ts",
|
|
49
46
|
"import": "./dist/element-plus/index.js"
|
|
50
47
|
},
|
|
51
|
-
"
|
|
48
|
+
"./global": "./global.d.ts",
|
|
49
|
+
"./utils/amap/@type": "./dist/utils/amap/@type/index.d.ts",
|
|
50
|
+
"./*": {
|
|
51
|
+
"import": "./dist/*",
|
|
52
|
+
"types": "./dist/*.d.ts"
|
|
53
|
+
}
|
|
52
54
|
},
|
|
53
55
|
"sideEffects": [
|
|
54
56
|
"dist/*",
|