@lingshugroup/web-plus 1.8.7 → 1.8.8
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/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.js +47 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.js +46 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.js +159 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/install/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/install/index.js +11 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.js +113 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.js +388 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.js +220 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.js +120 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.js +166 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.js +81 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.js +28 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/install/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/install/index.js +12 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installCommon/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installCommon/index.js +18 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous/index.js +12 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise/index.js +12 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/preprocessor/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/preprocessor/index.js +24 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.js +54 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualMapAction/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualMapAction/index.js +19 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.cjs +1 -1
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.js +199 -165
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.cjs +1 -1
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.js +129 -113
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.js +278 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.cjs +1 -1
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js +30 -10
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualDefault/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualDefault/index.js +48 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.js +81 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.cjs +1 -1
- package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js +165 -123
- package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js.br +0 -0
- package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js.gz +0 -0
- package/lib/packages/ls-components/components/chart/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/chart/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/chart/Index.vue/index2.js +17 -13
- package/lib/packages/ls-components/components/chart/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/chart/Index.vue/index2.js.gz +0 -0
- package/package.json +1 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { isString as
|
|
4
|
-
var
|
|
5
|
-
function
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var u = (r, n) => m(r, "name", { value: n, configurable: !0 });
|
|
3
|
+
import { isString as D, reduce as I, map as P } from "../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
|
|
4
|
+
var R = 1e-4, p = 20;
|
|
5
|
+
function g(r) {
|
|
6
6
|
return r.replace(/^\s+|\s+$/g, "");
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
function
|
|
10
|
-
var
|
|
11
|
-
if (
|
|
12
|
-
return
|
|
8
|
+
u(g, "_trim");
|
|
9
|
+
function y(r, n, e, o) {
|
|
10
|
+
var i = n[0], a = n[1], t = e[0], N = e[1], f = a - i, s = N - t;
|
|
11
|
+
if (f === 0)
|
|
12
|
+
return s === 0 ? t : (t + N) / 2;
|
|
13
13
|
if (o)
|
|
14
|
-
if (
|
|
15
|
-
if (r <= u)
|
|
16
|
-
return a;
|
|
17
|
-
if (r >= i)
|
|
18
|
-
return s;
|
|
19
|
-
} else {
|
|
20
|
-
if (r >= u)
|
|
21
|
-
return a;
|
|
14
|
+
if (f > 0) {
|
|
22
15
|
if (r <= i)
|
|
23
|
-
return
|
|
16
|
+
return t;
|
|
17
|
+
if (r >= a)
|
|
18
|
+
return N;
|
|
19
|
+
} else {
|
|
20
|
+
if (r >= i)
|
|
21
|
+
return t;
|
|
22
|
+
if (r <= a)
|
|
23
|
+
return N;
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
|
-
if (r === u)
|
|
27
|
-
return a;
|
|
28
26
|
if (r === i)
|
|
29
|
-
return
|
|
27
|
+
return t;
|
|
28
|
+
if (r === a)
|
|
29
|
+
return N;
|
|
30
30
|
}
|
|
31
|
-
return (r -
|
|
31
|
+
return (r - i) / f * s + t;
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
function
|
|
33
|
+
u(y, "linearMap");
|
|
34
|
+
function A(r, n) {
|
|
35
35
|
switch (r) {
|
|
36
36
|
case "center":
|
|
37
37
|
case "middle":
|
|
@@ -46,20 +46,20 @@ function C(r, n) {
|
|
|
46
46
|
r = "100%";
|
|
47
47
|
break;
|
|
48
48
|
}
|
|
49
|
-
return
|
|
49
|
+
return D(r) ? g(r).match(/%$/) ? parseFloat(r) / 100 * n : parseFloat(r) : r == null ? NaN : +r;
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
function
|
|
53
|
-
return n == null && (n = 10), n = Math.min(Math.max(0, n),
|
|
51
|
+
u(A, "parsePercent");
|
|
52
|
+
function F(r, n, e) {
|
|
53
|
+
return n == null && (n = 10), n = Math.min(Math.max(0, n), p), r = (+r).toFixed(n), e ? r : +r;
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
function
|
|
55
|
+
u(F, "round");
|
|
56
|
+
function U(r) {
|
|
57
57
|
return r.sort(function(n, e) {
|
|
58
58
|
return n - e;
|
|
59
59
|
}), r;
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
function
|
|
61
|
+
u(U, "asc");
|
|
62
|
+
function h(r) {
|
|
63
63
|
if (r = +r, isNaN(r))
|
|
64
64
|
return 0;
|
|
65
65
|
if (r > 1e-14) {
|
|
@@ -67,63 +67,63 @@ function D(r) {
|
|
|
67
67
|
if (Math.round(r * n) / n === r)
|
|
68
68
|
return e;
|
|
69
69
|
}
|
|
70
|
-
return
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function
|
|
74
|
-
var n = r.toString().toLowerCase(), e = n.indexOf("e"), o = e > 0 ? +n.slice(e + 1) : 0,
|
|
75
|
-
return Math.max(0,
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function
|
|
79
|
-
var e = Math.log, o = Math.LN10,
|
|
80
|
-
return isFinite(
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function
|
|
84
|
-
var e =
|
|
85
|
-
return
|
|
70
|
+
return T(r);
|
|
71
|
+
}
|
|
72
|
+
u(h, "getPrecision");
|
|
73
|
+
function T(r) {
|
|
74
|
+
var n = r.toString().toLowerCase(), e = n.indexOf("e"), o = e > 0 ? +n.slice(e + 1) : 0, i = e > 0 ? e : n.length, a = n.indexOf("."), t = a < 0 ? 0 : i - 1 - a;
|
|
75
|
+
return Math.max(0, t - o);
|
|
76
|
+
}
|
|
77
|
+
u(T, "getPrecisionSafe");
|
|
78
|
+
function _(r, n) {
|
|
79
|
+
var e = Math.log, o = Math.LN10, i = Math.floor(e(r[1] - r[0]) / o), a = Math.round(e(Math.abs(n[1] - n[0])) / o), t = Math.min(Math.max(-i + a, 0), 20);
|
|
80
|
+
return isFinite(t) ? t : 20;
|
|
81
|
+
}
|
|
82
|
+
u(_, "getPixelPrecision");
|
|
83
|
+
function b(r, n) {
|
|
84
|
+
var e = I(r, function(c, M) {
|
|
85
|
+
return c + (isNaN(M) ? 0 : M);
|
|
86
86
|
}, 0);
|
|
87
87
|
if (e === 0)
|
|
88
88
|
return [];
|
|
89
|
-
for (var o = Math.pow(10, n),
|
|
90
|
-
return (isNaN(
|
|
91
|
-
}),
|
|
92
|
-
return Math.floor(
|
|
93
|
-
}),
|
|
94
|
-
return
|
|
95
|
-
}, 0),
|
|
96
|
-
return
|
|
97
|
-
});
|
|
98
|
-
for (var
|
|
99
|
-
|
|
100
|
-
++
|
|
89
|
+
for (var o = Math.pow(10, n), i = P(r, function(c) {
|
|
90
|
+
return (isNaN(c) ? 0 : c) / e * o * 100;
|
|
91
|
+
}), a = o * 100, t = P(i, function(c) {
|
|
92
|
+
return Math.floor(c);
|
|
93
|
+
}), N = I(t, function(c, M) {
|
|
94
|
+
return c + M;
|
|
95
|
+
}, 0), f = P(i, function(c, M) {
|
|
96
|
+
return c - t[M];
|
|
97
|
+
}); N < a; ) {
|
|
98
|
+
for (var s = Number.NEGATIVE_INFINITY, d = null, v = 0, S = f.length; v < S; ++v)
|
|
99
|
+
f[v] > s && (s = f[v], d = v);
|
|
100
|
+
++t[d], f[d] = 0, ++N;
|
|
101
101
|
}
|
|
102
|
-
return
|
|
103
|
-
return
|
|
102
|
+
return P(t, function(c) {
|
|
103
|
+
return c / o;
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
|
|
107
|
-
function
|
|
108
|
-
var e = Math.max(
|
|
109
|
-
return e >
|
|
106
|
+
u(b, "getPercentSeats");
|
|
107
|
+
function k(r, n) {
|
|
108
|
+
var e = Math.max(h(r), h(n)), o = r + n;
|
|
109
|
+
return e > p ? o : F(o, e);
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
function
|
|
111
|
+
u(k, "addSafe");
|
|
112
|
+
function l(r) {
|
|
113
113
|
var n = Math.PI * 2;
|
|
114
114
|
return (r % n + n) % n;
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
u(l, "remRadian");
|
|
117
117
|
function G(r) {
|
|
118
|
-
return r > -1e-4 && r <
|
|
118
|
+
return r > -1e-4 && r < R;
|
|
119
119
|
}
|
|
120
|
-
|
|
121
|
-
var
|
|
120
|
+
u(G, "isRadianAroundZero");
|
|
121
|
+
var C = /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;
|
|
122
122
|
function Q(r) {
|
|
123
123
|
if (r instanceof Date)
|
|
124
124
|
return r;
|
|
125
|
-
if (
|
|
126
|
-
var n =
|
|
125
|
+
if (D(r)) {
|
|
126
|
+
var n = C.exec(r);
|
|
127
127
|
if (!n)
|
|
128
128
|
return /* @__PURE__ */ new Date(NaN);
|
|
129
129
|
if (n[8]) {
|
|
@@ -135,63 +135,79 @@ function Q(r) {
|
|
|
135
135
|
return /* @__PURE__ */ new Date(NaN);
|
|
136
136
|
return new Date(Math.round(r));
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
u(Q, "parseDate");
|
|
139
139
|
function Z(r) {
|
|
140
|
-
return Math.pow(10,
|
|
140
|
+
return Math.pow(10, w(r));
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
function
|
|
142
|
+
u(Z, "quantity");
|
|
143
|
+
function w(r) {
|
|
144
144
|
if (r === 0)
|
|
145
145
|
return 0;
|
|
146
146
|
var n = Math.floor(Math.log(r) / Math.LN10);
|
|
147
147
|
return r / Math.pow(10, n) >= 10 && n++, n;
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
u(w, "quantityExponent");
|
|
150
150
|
function $(r, n) {
|
|
151
|
-
var e =
|
|
152
|
-
return
|
|
151
|
+
var e = w(r), o = Math.pow(10, e), i = r / o, a;
|
|
152
|
+
return i < 1.5 ? a = 1 : i < 2.5 ? a = 2 : i < 4 ? a = 3 : i < 7 ? a = 5 : a = 10, r = a * o, e >= -20 ? +r.toFixed(e < 0 ? -e : 0) : r;
|
|
153
153
|
}
|
|
154
|
-
|
|
155
|
-
function
|
|
154
|
+
u($, "nice");
|
|
155
|
+
function q(r) {
|
|
156
|
+
r.sort(function(f, s) {
|
|
157
|
+
return N(f, s, 0) ? -1 : 1;
|
|
158
|
+
});
|
|
159
|
+
for (var n = -1 / 0, e = 1, o = 0; o < r.length; ) {
|
|
160
|
+
for (var i = r[o].interval, a = r[o].close, t = 0; t < 2; t++)
|
|
161
|
+
i[t] <= n && (i[t] = n, a[t] = t ? 1 : 1 - e), n = i[t], e = a[t];
|
|
162
|
+
i[0] === i[1] && a[0] * a[1] !== 1 ? r.splice(o, 1) : o++;
|
|
163
|
+
}
|
|
164
|
+
return r;
|
|
165
|
+
function N(f, s, d) {
|
|
166
|
+
return f.interval[d] < s.interval[d] || f.interval[d] === s.interval[d] && (f.close[d] - s.close[d] === (d ? -1 : 1) || !d && N(f, s, 1));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
u(q, "reformIntervals");
|
|
170
|
+
function L(r) {
|
|
156
171
|
var n = parseFloat(r);
|
|
157
|
-
return n == r && (n !== 0 || !
|
|
172
|
+
return n == r && (n !== 0 || !D(r) || r.indexOf("x") <= 0) ? n : NaN;
|
|
158
173
|
}
|
|
159
|
-
|
|
160
|
-
function
|
|
161
|
-
return !isNaN(
|
|
174
|
+
u(L, "numericToNumber");
|
|
175
|
+
function z(r) {
|
|
176
|
+
return !isNaN(L(r));
|
|
162
177
|
}
|
|
163
|
-
|
|
164
|
-
function
|
|
178
|
+
u(z, "isNumeric");
|
|
179
|
+
function B() {
|
|
165
180
|
return Math.round(Math.random() * 9);
|
|
166
181
|
}
|
|
167
|
-
|
|
168
|
-
function
|
|
169
|
-
return n === 0 ? r :
|
|
182
|
+
u(B, "getRandomIdBase");
|
|
183
|
+
function x(r, n) {
|
|
184
|
+
return n === 0 ? r : x(n, r % n);
|
|
170
185
|
}
|
|
171
|
-
|
|
172
|
-
function
|
|
173
|
-
return r == null ? n : n == null ? r : r * n /
|
|
186
|
+
u(x, "getGreatestCommonDividor");
|
|
187
|
+
function V(r, n) {
|
|
188
|
+
return r == null ? n : n == null ? r : r * n / x(r, n);
|
|
174
189
|
}
|
|
175
|
-
|
|
190
|
+
u(V, "getLeastCommonMultiple");
|
|
176
191
|
export {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
192
|
+
k as addSafe,
|
|
193
|
+
U as asc,
|
|
194
|
+
x as getGreatestCommonDividor,
|
|
195
|
+
V as getLeastCommonMultiple,
|
|
196
|
+
b as getPercentSeats,
|
|
197
|
+
_ as getPixelPrecision,
|
|
198
|
+
h as getPrecision,
|
|
199
|
+
T as getPrecisionSafe,
|
|
200
|
+
B as getRandomIdBase,
|
|
201
|
+
z as isNumeric,
|
|
187
202
|
G as isRadianAroundZero,
|
|
188
|
-
|
|
203
|
+
y as linearMap,
|
|
189
204
|
$ as nice,
|
|
190
|
-
|
|
205
|
+
L as numericToNumber,
|
|
191
206
|
Q as parseDate,
|
|
192
|
-
|
|
207
|
+
A as parsePercent,
|
|
193
208
|
Z as quantity,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
209
|
+
w as quantityExponent,
|
|
210
|
+
q as reformIntervals,
|
|
211
|
+
l as remRadian,
|
|
212
|
+
F as round
|
|
197
213
|
};
|
package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.js.br
CHANGED
|
Binary file
|
package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.js.gz
CHANGED
|
Binary file
|
package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var D=Object.defineProperty;var t=(a,i)=>D(a,"name",{value:i,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.cjs"),c=require("../../../../../../zrender@5.6.1/node_modules/zrender/lib/tool/color/index.cjs"),V=require("../../util/number/index.cjs"),N=require("../../util/log/index.cjs");var y=u.each,O=u.isObject,b=-1,_=function(){function a(i){var r=i.mappingMethod,n=i.type,e=this.option=u.clone(i);this.type=n,this.mappingMethod=r,this._normalizeData=j[r];var o=a.visualHandlers[n];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[r],r==="piecewise"?(x(e),C(e)):r==="category"?e.categories?E(e):x(e,!0):(u.assert(r!=="linear"||e.dataExtent),x(e))}return t(a,"VisualMapping"),a.prototype.mapValueToVisual=function(i){var r=this._normalizeData(i);return this._normalizedToVisual(r,i)},a.prototype.getNormalizer=function(){return u.bind(this._normalizeData,this)},a.listVisualTypes=function(){return u.keys(a.visualHandlers)},a.isValidType=function(i){return a.visualHandlers.hasOwnProperty(i)},a.eachVisual=function(i,r,n){u.isObject(i)?u.each(i,r,n):r.call(n,i)},a.mapVisual=function(i,r,n){var e,o=u.isArray(i)?[]:u.isObject(i)?{}:(e=!0,null);return a.eachVisual(i,function(l,f){var s=r.call(n,l,f);e?o=s:o[f]=s}),o},a.retrieveVisuals=function(i){var r={},n;return i&&y(a.visualHandlers,function(e,o){i.hasOwnProperty(o)&&(r[o]=i[o],n=!0)}),n?r:null},a.prepareVisualTypes=function(i){if(u.isArray(i))i=i.slice();else if(O(i)){var r=[];y(i,function(n,e){r.push(e)}),i=r}else return[];return i.sort(function(n,e){return e==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),i},a.dependsOn=function(i,r){return r==="color"?!!(i&&i.indexOf(r)===0):i===r},a.findPieceIndex=function(i,r,n){for(var e,o=1/0,l=0,f=r.length;l<f;l++){var s=r[l].value;if(s!=null){if(s===i||u.isString(s)&&s===i+"")return l;n&&z(s,l)}}for(var l=0,f=r.length;l<f;l++){var I=r[l],p=I.interval,m=I.close;if(p){if(p[0]===-1/0){if(M(m[1],i,p[1]))return l}else if(p[1]===1/0){if(M(m[0],p[0],i))return l}else if(M(m[0],p[0],i)&&M(m[1],i,p[1]))return l;n&&z(p[0],l),n&&z(p[1],l)}}if(n)return i===1/0?r.length-1:i===-1/0?0:e;function z(L,A){var P=Math.abs(L-i);P<o&&(o=P,e=A)}t(z,"updatePossible")},a.visualHandlers={color:{applyVisual:h("color"),getColorMapper:t(function(){var i=this.option;return u.bind(i.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),g.call(this,r)}:function(r,n,e){var o=!!e;return!n&&(r=this._normalizeData(r)),e=c.fastLerp(r,i.parsedVisual,e),o?e:c.stringify(e,"rgba")},this)},"getColorMapper"),_normalizedToVisual:{linear:t(function(i){return c.stringify(c.fastLerp(i,this.option.parsedVisual),"rgba")},"linear"),category:g,piecewise:t(function(i,r){var n=S.call(this,r);return n==null&&(n=c.stringify(c.fastLerp(i,this.option.parsedVisual),"rgba")),n},"piecewise"),fixed:d}},colorHue:v(function(i,r){return c.modifyHSL(i,r)}),colorSaturation:v(function(i,r){return c.modifyHSL(i,null,r)}),colorLightness:v(function(i,r){return c.modifyHSL(i,null,null,r)}),colorAlpha:v(function(i,r){return c.modifyAlpha(i,r)}),decal:{applyVisual:h("decal"),_normalizedToVisual:{linear:null,category:g,piecewise:null,fixed:null}},opacity:{applyVisual:h("opacity"),_normalizedToVisual:w([0,1])},liftZ:{applyVisual:h("liftZ"),_normalizedToVisual:{linear:d,category:d,piecewise:d,fixed:d}},symbol:{applyVisual:t(function(i,r,n){var e=this.mapValueToVisual(i);n("symbol",e)},"applyVisual"),_normalizedToVisual:{linear:T,category:g,piecewise:t(function(i,r){var n=S.call(this,r);return n==null&&(n=T.call(this,i)),n},"piecewise"),fixed:d}},symbolSize:{applyVisual:h("symbolSize"),_normalizedToVisual:w([0,1])}},a}();function C(a){var i=a.pieceList;a.hasSpecialVisual=!1,u.each(i,function(r,n){r.originIndex=n,r.visual!=null&&(a.hasSpecialVisual=!0)})}t(C,"preprocessForPiecewise");function E(a){var i=a.categories,r=a.categoryMap={},n=a.visual;if(y(i,function(l,f){r[l]=f}),!u.isArray(n)){var e=[];u.isObject(n)?y(n,function(l,f){var s=r[f];e[s??b]=l}):e[b]=n,n=H(a,e)}for(var o=i.length-1;o>=0;o--)n[o]==null&&(delete r[i[o]],i.pop())}t(E,"preprocessForSpecifiedCategory");function x(a,i){var r=a.visual,n=[];u.isObject(r)?y(r,function(o){n.push(o)}):r!=null&&n.push(r);var e={color:1,symbol:1};!i&&n.length===1&&!e.hasOwnProperty(a.type)&&(n[1]=n[0]),H(a,n)}t(x,"normalizeVisualRange");function v(a){return{applyVisual:t(function(i,r,n){var e=this.mapValueToVisual(i);n("color",a(r("color"),e))},"applyVisual"),_normalizedToVisual:w([0,1])}}t(v,"makePartialColorVisualHandler");function T(a){var i=this.option.visual;return i[Math.round(V.linearMap(a,[0,1],[0,i.length-1],!0))]||{}}t(T,"doMapToArray");function h(a){return function(i,r,n){n(a,this.mapValueToVisual(i))}}t(h,"makeApplyVisual");function g(a){var i=this.option.visual;return i[this.option.loop&&a!==b?a%i.length:a]}t(g,"doMapCategory");function d(){return this.option.visual[0]}t(d,"doMapFixed");function w(a){return{linear:t(function(i){return V.linearMap(i,a,this.option.visual,!0)},"linear"),category:g,piecewise:t(function(i,r){var n=S.call(this,r);return n==null&&(n=V.linearMap(i,a,this.option.visual,!0)),n},"piecewise"),fixed:d}}t(w,"createNormalizedToNumericVisual");function S(a){var i=this.option,r=i.pieceList;if(i.hasSpecialVisual){var n=_.findPieceIndex(a,r),e=r[n];if(e&&e.visual)return e.visual[this.type]}}t(S,"getSpecifiedVisual");function H(a,i){return a.visual=i,a.type==="color"&&(a.parsedVisual=u.map(i,function(r){var n=c.parse(r);return!n&&process.env.NODE_ENV!=="production"&&N.warn("'"+r+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),i}t(H,"setVisualToOption");var j={linear:t(function(a){return V.linearMap(a,this.option.dataExtent,[0,1],!0)},"linear"),piecewise:t(function(a){var i=this.option.pieceList,r=_.findPieceIndex(a,i,!0);if(r!=null)return V.linearMap(r,[0,i.length-1],[0,1],!0)},"piecewise"),category:t(function(a){var i=this.option.categories?this.option.categoryMap[a]:a;return i??b},"category"),fixed:u.noop};function M(a,i,r){return a?i<=r:i<r}t(M,"littleThan");exports.default=_;
|
package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.js
ADDED
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
|
+
var e = (a, r) => O(a, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { bind as N, keys as R, isObject as d, each as T, isArray as _, isString as k, clone as G, noop as U, assert as Z, map as $ } from "../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
|
|
4
|
+
import { stringify as x, fastLerp as b, parse as j, modifyAlpha as B, modifyHSL as w } from "../../../../../../zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js";
|
|
5
|
+
import { linearMap as V } from "../../util/number/index.js";
|
|
6
|
+
import { warn as X } from "../../util/log/index.js";
|
|
7
|
+
var g = T, Y = d, z = -1, L = (
|
|
8
|
+
/** @class */
|
|
9
|
+
function() {
|
|
10
|
+
function a(r) {
|
|
11
|
+
var i = r.mappingMethod, n = r.type, t = this.option = G(r);
|
|
12
|
+
this.type = n, this.mappingMethod = i, this._normalizeData = K[i];
|
|
13
|
+
var o = a.visualHandlers[n];
|
|
14
|
+
this.applyVisual = o.applyVisual, this.getColorMapper = o.getColorMapper, this._normalizedToVisual = o._normalizedToVisual[i], i === "piecewise" ? (I(t), q(t)) : i === "category" ? t.categories ? J(t) : I(t, !0) : (Z(i !== "linear" || t.dataExtent), I(t));
|
|
15
|
+
}
|
|
16
|
+
return e(a, "VisualMapping"), a.prototype.mapValueToVisual = function(r) {
|
|
17
|
+
var i = this._normalizeData(r);
|
|
18
|
+
return this._normalizedToVisual(i, r);
|
|
19
|
+
}, a.prototype.getNormalizer = function() {
|
|
20
|
+
return N(this._normalizeData, this);
|
|
21
|
+
}, a.listVisualTypes = function() {
|
|
22
|
+
return R(a.visualHandlers);
|
|
23
|
+
}, a.isValidType = function(r) {
|
|
24
|
+
return a.visualHandlers.hasOwnProperty(r);
|
|
25
|
+
}, a.eachVisual = function(r, i, n) {
|
|
26
|
+
d(r) ? T(r, i, n) : i.call(n, r);
|
|
27
|
+
}, a.mapVisual = function(r, i, n) {
|
|
28
|
+
var t, o = _(r) ? [] : d(r) ? {} : (t = !0, null);
|
|
29
|
+
return a.eachVisual(r, function(l, s) {
|
|
30
|
+
var u = i.call(n, l, s);
|
|
31
|
+
t ? o = u : o[s] = u;
|
|
32
|
+
}), o;
|
|
33
|
+
}, a.retrieveVisuals = function(r) {
|
|
34
|
+
var i = {}, n;
|
|
35
|
+
return r && g(a.visualHandlers, function(t, o) {
|
|
36
|
+
r.hasOwnProperty(o) && (i[o] = r[o], n = !0);
|
|
37
|
+
}), n ? i : null;
|
|
38
|
+
}, a.prepareVisualTypes = function(r) {
|
|
39
|
+
if (_(r))
|
|
40
|
+
r = r.slice();
|
|
41
|
+
else if (Y(r)) {
|
|
42
|
+
var i = [];
|
|
43
|
+
g(r, function(n, t) {
|
|
44
|
+
i.push(t);
|
|
45
|
+
}), r = i;
|
|
46
|
+
} else
|
|
47
|
+
return [];
|
|
48
|
+
return r.sort(function(n, t) {
|
|
49
|
+
return t === "color" && n !== "color" && n.indexOf("color") === 0 ? 1 : -1;
|
|
50
|
+
}), r;
|
|
51
|
+
}, a.dependsOn = function(r, i) {
|
|
52
|
+
return i === "color" ? !!(r && r.indexOf(i) === 0) : r === i;
|
|
53
|
+
}, a.findPieceIndex = function(r, i, n) {
|
|
54
|
+
for (var t, o = 1 / 0, l = 0, s = i.length; l < s; l++) {
|
|
55
|
+
var u = i[l].value;
|
|
56
|
+
if (u != null) {
|
|
57
|
+
if (u === r || k(u) && u === r + "")
|
|
58
|
+
return l;
|
|
59
|
+
n && M(u, l);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
for (var l = 0, s = i.length; l < s; l++) {
|
|
63
|
+
var H = i[l], c = H.interval, m = H.close;
|
|
64
|
+
if (c) {
|
|
65
|
+
if (c[0] === -1 / 0) {
|
|
66
|
+
if (v(m[1], r, c[1]))
|
|
67
|
+
return l;
|
|
68
|
+
} else if (c[1] === 1 / 0) {
|
|
69
|
+
if (v(m[0], c[0], r))
|
|
70
|
+
return l;
|
|
71
|
+
} else if (v(m[0], c[0], r) && v(m[1], r, c[1]))
|
|
72
|
+
return l;
|
|
73
|
+
n && M(c[0], l), n && M(c[1], l);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (n)
|
|
77
|
+
return r === 1 / 0 ? i.length - 1 : r === -1 / 0 ? 0 : t;
|
|
78
|
+
function M(E, F) {
|
|
79
|
+
var D = Math.abs(E - r);
|
|
80
|
+
D < o && (o = D, t = F);
|
|
81
|
+
}
|
|
82
|
+
e(M, "updatePossible");
|
|
83
|
+
}, a.visualHandlers = {
|
|
84
|
+
color: {
|
|
85
|
+
applyVisual: p("color"),
|
|
86
|
+
getColorMapper: /* @__PURE__ */ e(function() {
|
|
87
|
+
var r = this.option;
|
|
88
|
+
return N(r.mappingMethod === "category" ? function(i, n) {
|
|
89
|
+
return !n && (i = this._normalizeData(i)), h.call(this, i);
|
|
90
|
+
} : function(i, n, t) {
|
|
91
|
+
var o = !!t;
|
|
92
|
+
return !n && (i = this._normalizeData(i)), t = b(i, r.parsedVisual, t), o ? t : x(t, "rgba");
|
|
93
|
+
}, this);
|
|
94
|
+
}, "getColorMapper"),
|
|
95
|
+
_normalizedToVisual: {
|
|
96
|
+
linear: /* @__PURE__ */ e(function(r) {
|
|
97
|
+
return x(b(r, this.option.parsedVisual), "rgba");
|
|
98
|
+
}, "linear"),
|
|
99
|
+
category: h,
|
|
100
|
+
piecewise: /* @__PURE__ */ e(function(r, i) {
|
|
101
|
+
var n = S.call(this, i);
|
|
102
|
+
return n == null && (n = x(b(r, this.option.parsedVisual), "rgba")), n;
|
|
103
|
+
}, "piecewise"),
|
|
104
|
+
fixed: f
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
colorHue: y(function(r, i) {
|
|
108
|
+
return w(r, i);
|
|
109
|
+
}),
|
|
110
|
+
colorSaturation: y(function(r, i) {
|
|
111
|
+
return w(r, null, i);
|
|
112
|
+
}),
|
|
113
|
+
colorLightness: y(function(r, i) {
|
|
114
|
+
return w(r, null, null, i);
|
|
115
|
+
}),
|
|
116
|
+
colorAlpha: y(function(r, i) {
|
|
117
|
+
return B(r, i);
|
|
118
|
+
}),
|
|
119
|
+
decal: {
|
|
120
|
+
applyVisual: p("decal"),
|
|
121
|
+
_normalizedToVisual: {
|
|
122
|
+
linear: null,
|
|
123
|
+
category: h,
|
|
124
|
+
piecewise: null,
|
|
125
|
+
fixed: null
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
opacity: {
|
|
129
|
+
applyVisual: p("opacity"),
|
|
130
|
+
_normalizedToVisual: P([0, 1])
|
|
131
|
+
},
|
|
132
|
+
liftZ: {
|
|
133
|
+
applyVisual: p("liftZ"),
|
|
134
|
+
_normalizedToVisual: {
|
|
135
|
+
linear: f,
|
|
136
|
+
category: f,
|
|
137
|
+
piecewise: f,
|
|
138
|
+
fixed: f
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
symbol: {
|
|
142
|
+
applyVisual: /* @__PURE__ */ e(function(r, i, n) {
|
|
143
|
+
var t = this.mapValueToVisual(r);
|
|
144
|
+
n("symbol", t);
|
|
145
|
+
}, "applyVisual"),
|
|
146
|
+
_normalizedToVisual: {
|
|
147
|
+
linear: A,
|
|
148
|
+
category: h,
|
|
149
|
+
piecewise: /* @__PURE__ */ e(function(r, i) {
|
|
150
|
+
var n = S.call(this, i);
|
|
151
|
+
return n == null && (n = A.call(this, r)), n;
|
|
152
|
+
}, "piecewise"),
|
|
153
|
+
fixed: f
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
symbolSize: {
|
|
157
|
+
applyVisual: p("symbolSize"),
|
|
158
|
+
_normalizedToVisual: P([0, 1])
|
|
159
|
+
}
|
|
160
|
+
}, a;
|
|
161
|
+
}()
|
|
162
|
+
);
|
|
163
|
+
function q(a) {
|
|
164
|
+
var r = a.pieceList;
|
|
165
|
+
a.hasSpecialVisual = !1, T(r, function(i, n) {
|
|
166
|
+
i.originIndex = n, i.visual != null && (a.hasSpecialVisual = !0);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
e(q, "preprocessForPiecewise");
|
|
170
|
+
function J(a) {
|
|
171
|
+
var r = a.categories, i = a.categoryMap = {}, n = a.visual;
|
|
172
|
+
if (g(r, function(l, s) {
|
|
173
|
+
i[l] = s;
|
|
174
|
+
}), !_(n)) {
|
|
175
|
+
var t = [];
|
|
176
|
+
d(n) ? g(n, function(l, s) {
|
|
177
|
+
var u = i[s];
|
|
178
|
+
t[u ?? z] = l;
|
|
179
|
+
}) : t[z] = n, n = C(a, t);
|
|
180
|
+
}
|
|
181
|
+
for (var o = r.length - 1; o >= 0; o--)
|
|
182
|
+
n[o] == null && (delete i[r[o]], r.pop());
|
|
183
|
+
}
|
|
184
|
+
e(J, "preprocessForSpecifiedCategory");
|
|
185
|
+
function I(a, r) {
|
|
186
|
+
var i = a.visual, n = [];
|
|
187
|
+
d(i) ? g(i, function(o) {
|
|
188
|
+
n.push(o);
|
|
189
|
+
}) : i != null && n.push(i);
|
|
190
|
+
var t = {
|
|
191
|
+
color: 1,
|
|
192
|
+
symbol: 1
|
|
193
|
+
};
|
|
194
|
+
!r && n.length === 1 && !t.hasOwnProperty(a.type) && (n[1] = n[0]), C(a, n);
|
|
195
|
+
}
|
|
196
|
+
e(I, "normalizeVisualRange");
|
|
197
|
+
function y(a) {
|
|
198
|
+
return {
|
|
199
|
+
applyVisual: /* @__PURE__ */ e(function(r, i, n) {
|
|
200
|
+
var t = this.mapValueToVisual(r);
|
|
201
|
+
n("color", a(i("color"), t));
|
|
202
|
+
}, "applyVisual"),
|
|
203
|
+
_normalizedToVisual: P([0, 1])
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
e(y, "makePartialColorVisualHandler");
|
|
207
|
+
function A(a) {
|
|
208
|
+
var r = this.option.visual;
|
|
209
|
+
return r[Math.round(V(a, [0, 1], [0, r.length - 1], !0))] || {};
|
|
210
|
+
}
|
|
211
|
+
e(A, "doMapToArray");
|
|
212
|
+
function p(a) {
|
|
213
|
+
return function(r, i, n) {
|
|
214
|
+
n(a, this.mapValueToVisual(r));
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
e(p, "makeApplyVisual");
|
|
218
|
+
function h(a) {
|
|
219
|
+
var r = this.option.visual;
|
|
220
|
+
return r[this.option.loop && a !== z ? a % r.length : a];
|
|
221
|
+
}
|
|
222
|
+
e(h, "doMapCategory");
|
|
223
|
+
function f() {
|
|
224
|
+
return this.option.visual[0];
|
|
225
|
+
}
|
|
226
|
+
e(f, "doMapFixed");
|
|
227
|
+
function P(a) {
|
|
228
|
+
return {
|
|
229
|
+
linear: /* @__PURE__ */ e(function(r) {
|
|
230
|
+
return V(r, a, this.option.visual, !0);
|
|
231
|
+
}, "linear"),
|
|
232
|
+
category: h,
|
|
233
|
+
piecewise: /* @__PURE__ */ e(function(r, i) {
|
|
234
|
+
var n = S.call(this, i);
|
|
235
|
+
return n == null && (n = V(r, a, this.option.visual, !0)), n;
|
|
236
|
+
}, "piecewise"),
|
|
237
|
+
fixed: f
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
e(P, "createNormalizedToNumericVisual");
|
|
241
|
+
function S(a) {
|
|
242
|
+
var r = this.option, i = r.pieceList;
|
|
243
|
+
if (r.hasSpecialVisual) {
|
|
244
|
+
var n = L.findPieceIndex(a, i), t = i[n];
|
|
245
|
+
if (t && t.visual)
|
|
246
|
+
return t.visual[this.type];
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
e(S, "getSpecifiedVisual");
|
|
250
|
+
function C(a, r) {
|
|
251
|
+
return a.visual = r, a.type === "color" && (a.parsedVisual = $(r, function(i) {
|
|
252
|
+
var n = j(i);
|
|
253
|
+
return !n && process.env.NODE_ENV !== "production" && X("'" + i + "' is an illegal color, fallback to '#000000'", !0), n || [0, 0, 0, 1];
|
|
254
|
+
})), r;
|
|
255
|
+
}
|
|
256
|
+
e(C, "setVisualToOption");
|
|
257
|
+
var K = {
|
|
258
|
+
linear: /* @__PURE__ */ e(function(a) {
|
|
259
|
+
return V(a, this.option.dataExtent, [0, 1], !0);
|
|
260
|
+
}, "linear"),
|
|
261
|
+
piecewise: /* @__PURE__ */ e(function(a) {
|
|
262
|
+
var r = this.option.pieceList, i = L.findPieceIndex(a, r, !0);
|
|
263
|
+
if (i != null)
|
|
264
|
+
return V(i, [0, r.length - 1], [0, 1], !0);
|
|
265
|
+
}, "piecewise"),
|
|
266
|
+
category: /* @__PURE__ */ e(function(a) {
|
|
267
|
+
var r = this.option.categories ? this.option.categoryMap[a] : a;
|
|
268
|
+
return r ?? z;
|
|
269
|
+
}, "category"),
|
|
270
|
+
fixed: U
|
|
271
|
+
};
|
|
272
|
+
function v(a, r, i) {
|
|
273
|
+
return a ? r <= i : r < i;
|
|
274
|
+
}
|
|
275
|
+
e(v, "littleThan");
|
|
276
|
+
export {
|
|
277
|
+
L as default
|
|
278
|
+
};
|
|
Binary file
|
|
Binary file
|
package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var r=Object.defineProperty;var i=(e,s)=>r(e,"name",{value:s,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(e,s,t){switch(t){case"color":var o=e.getItemVisual(s,"style");return o[e.getVisual("drawType")];case"opacity":return e.getItemVisual(s,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(s,t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}i(a,"getItemVisualFromData");function c(e,s){switch(s){case"color":var t=e.getVisual("style");return t[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(s);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+s)}}i(c,"getVisualFromData");function u(e,s,t,o){switch(t){case"color":var l=e.ensureUniqueItemVisual(s,"style");l[e.getVisual("drawType")]=o,e.setItemVisual(s,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(s,"style").opacity=o;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(s,t,o);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}i(u,"setItemVisualFromData");exports.getItemVisualFromData=a;exports.getVisualFromData=c;exports.setItemVisualFromData=u;
|