reke-ui 0.5.2 → 0.5.4
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/custom-elements.json +764 -3
- package/dist/components/reke-bar-chart/reke-bar-chart.d.ts +99 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.d.ts.map +1 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.js +319 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts +2 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts.map +1 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.js +36 -0
- package/dist/components/reke-dialog/reke-dialog.d.ts +19 -0
- package/dist/components/reke-dialog/reke-dialog.d.ts.map +1 -1
- package/dist/components/reke-dialog/reke-dialog.js +40 -15
- package/dist/components/reke-dialog/reke-dialog.styles.d.ts.map +1 -1
- package/dist/components/reke-dialog/reke-dialog.styles.js +110 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +52 -1
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -1
- package/dist/components/reke-pie-chart/reke-pie-chart.js +181 -42
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -1
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +47 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -20
- package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +50 -0
- package/dist/node_modules/echarts/lib/chart/bar/BarView.js +431 -0
- package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +65 -0
- package/dist/node_modules/echarts/lib/chart/bar/install.js +22 -0
- package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +142 -0
- package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +99 -0
- package/dist/node_modules/echarts/lib/chart/helper/axisSnippets.js +19 -0
- package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +50 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +55 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -3
- package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +24 -0
- package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +60 -0
- package/dist/node_modules/echarts/lib/chart/line/LineView.js +471 -0
- package/dist/node_modules/echarts/lib/chart/line/helper.js +34 -0
- package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
- package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +59 -0
- package/dist/node_modules/echarts/lib/chart/line/poly.js +135 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +32 -32
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js +69 -69
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +25 -25
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +16 -16
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +153 -153
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js +13 -13
- package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +106 -0
- package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +50 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +20 -20
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +30 -30
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +13 -13
- package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +114 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +15 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +21 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +67 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +75 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +465 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +17 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +55 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +88 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +14 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +132 -0
- package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
- package/dist/node_modules/echarts/lib/component/grid/installSimple.js +32 -0
- package/dist/node_modules/echarts/lib/component/helper/RoamController.js +172 -0
- package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +17 -0
- package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +15 -0
- package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +31 -31
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js +61 -61
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +29 -29
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +4 -4
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +105 -105
- package/dist/node_modules/echarts/lib/coord/Axis.js +92 -0
- package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
- package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +76 -0
- package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
- package/dist/node_modules/echarts/lib/coord/axisDefault.js +124 -0
- package/dist/node_modules/echarts/lib/coord/axisHelper.js +123 -14
- package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +9 -0
- package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +39 -0
- package/dist/node_modules/echarts/lib/coord/axisNiceTicks.js +64 -0
- package/dist/node_modules/echarts/lib/coord/axisStatistics.js +101 -22
- package/dist/node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js +43 -0
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +151 -5
- package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +24 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +18 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +23 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +69 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +314 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +40 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +43 -12
- package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +175 -0
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +39 -16
- package/dist/node_modules/echarts/lib/core/echarts.js +421 -421
- package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +30 -0
- package/dist/node_modules/echarts/lib/data/SeriesData.js +18 -18
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +6 -6
- package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +59 -0
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +13 -13
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +7 -4
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +40 -8
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +3 -3
- package/dist/node_modules/echarts/lib/data/helper/transform.js +8 -8
- package/dist/node_modules/echarts/lib/extension.js +10 -10
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +10 -10
- package/dist/node_modules/echarts/lib/label/labelStyle.js +34 -25
- package/dist/node_modules/echarts/lib/label/sectorLabel.js +83 -0
- package/dist/node_modules/echarts/lib/layout/barCommon.js +19 -0
- package/dist/node_modules/echarts/lib/layout/barGrid.js +165 -0
- package/dist/node_modules/echarts/lib/layout/points.js +37 -0
- package/dist/node_modules/echarts/lib/loading/default.js +6 -6
- package/dist/node_modules/echarts/lib/model/Component.js +39 -39
- package/dist/node_modules/echarts/lib/model/Global.js +122 -122
- package/dist/node_modules/echarts/lib/model/Series.js +78 -78
- package/dist/node_modules/echarts/lib/model/referHelper.js +58 -0
- package/dist/node_modules/echarts/lib/processor/dataSample.js +43 -0
- package/dist/node_modules/echarts/lib/scale/Interval.js +68 -0
- package/dist/node_modules/echarts/lib/scale/Log.js +100 -0
- package/dist/node_modules/echarts/lib/scale/Ordinal.js +92 -0
- package/dist/node_modules/echarts/lib/scale/Scale.js +13 -0
- package/dist/node_modules/echarts/lib/scale/Time.js +242 -0
- package/dist/node_modules/echarts/lib/scale/break.js +10 -2
- package/dist/node_modules/echarts/lib/scale/helper.js +61 -3
- package/dist/node_modules/echarts/lib/scale/minorTicks.js +22 -0
- package/dist/node_modules/echarts/lib/scale/scaleMapper.js +89 -7
- package/dist/node_modules/echarts/lib/util/clazz.js +35 -35
- package/dist/node_modules/echarts/lib/util/component.js +16 -16
- package/dist/node_modules/echarts/lib/util/cycleCache.js +4 -1
- package/dist/node_modules/echarts/lib/util/decal.js +11 -11
- package/dist/node_modules/echarts/lib/util/format.js +1 -1
- package/dist/node_modules/echarts/lib/util/graphic.js +170 -170
- package/dist/node_modules/echarts/lib/util/layout.js +23 -23
- package/dist/node_modules/echarts/lib/util/model.js +128 -68
- package/dist/node_modules/echarts/lib/util/number.js +55 -37
- package/dist/node_modules/echarts/lib/util/shape/sausage.js +25 -0
- package/dist/node_modules/echarts/lib/util/states.js +96 -82
- package/dist/node_modules/echarts/lib/util/styleCompat.js +10 -0
- package/dist/node_modules/echarts/lib/util/symbol.js +24 -21
- package/dist/node_modules/echarts/lib/util/time.js +154 -18
- package/dist/node_modules/echarts/lib/util/vendor.js +26 -0
- package/dist/node_modules/echarts/lib/view/Chart.js +19 -19
- package/dist/node_modules/echarts/lib/view/Component.js +7 -7
- package/dist/node_modules/echarts/lib/visual/style.js +5 -5
- package/dist/node_modules/zrender/lib/Element.js +35 -35
- package/dist/node_modules/zrender/lib/canvas/graphic.js +36 -36
- package/dist/node_modules/zrender/lib/core/PathProxy.js +25 -25
- package/dist/node_modules/zrender/lib/core/event.js +4 -1
- package/dist/node_modules/zrender/lib/core/util.js +69 -64
- package/dist/node_modules/zrender/lib/graphic/TSpan.js +7 -7
- package/dist/node_modules/zrender/lib/graphic/Text.js +37 -37
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +59 -59
- package/dist/node_modules/zrender/lib/tool/color.js +60 -41
- package/dist/react.d.ts +10 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +85 -73
- package/dist/shared/tailwind.js +1 -1
- package/dist/tokens/reke-tokens.css +1 -0
- package/package.json +5 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { each as e, extend as t, indexOf as n, isArray as r, isArrayLike as i, isObject as a, keys as o } from "../../../zrender/lib/core/util.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import d from "
|
|
2
|
+
import { liftColor as s } from "../../../zrender/lib/tool/color.js";
|
|
3
|
+
import c from "../../../zrender/lib/graphic/Path.js";
|
|
4
|
+
import { error as l } from "./log.js";
|
|
5
|
+
import { makeInner as u, queryDataIndex as d } from "./model.js";
|
|
6
6
|
import { getECData as f } from "./innerStore.js";
|
|
7
7
|
import { getViewOfComponentOrSeries as p } from "../core/ExtensionAPI.js";
|
|
8
8
|
//#region node_modules/echarts/lib/util/states.js
|
|
9
|
-
var m = 1, h = {}, g =
|
|
9
|
+
var m = 1, h = {}, g = u(), _ = u(), ee = [
|
|
10
10
|
"emphasis",
|
|
11
11
|
"blur",
|
|
12
12
|
"select"
|
|
@@ -15,40 +15,54 @@ var m = 1, h = {}, g = c(), _ = c(), ee = [
|
|
|
15
15
|
"emphasis",
|
|
16
16
|
"blur",
|
|
17
17
|
"select"
|
|
18
|
-
], y = "highlight",
|
|
19
|
-
function
|
|
18
|
+
], y = "highlight", b = "downplay", x = "select", S = "unselect", C = "toggleSelect", te = "selectchanged";
|
|
19
|
+
function w(e) {
|
|
20
20
|
return e != null && e !== "none";
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function T(e, t, n) {
|
|
23
23
|
e.onHoverStateChange && (e.hoverState || 0) !== n && e.onHoverStateChange(t), e.hoverState = n;
|
|
24
24
|
}
|
|
25
|
-
function T(e) {
|
|
26
|
-
w(e, "emphasis", 2);
|
|
27
|
-
}
|
|
28
25
|
function E(e) {
|
|
29
|
-
|
|
26
|
+
T(e, "emphasis", 2);
|
|
30
27
|
}
|
|
31
28
|
function D(e) {
|
|
32
|
-
|
|
29
|
+
e.hoverState === 2 && T(e, "normal", 0);
|
|
33
30
|
}
|
|
34
31
|
function O(e) {
|
|
35
|
-
|
|
32
|
+
T(e, "blur", 1);
|
|
33
|
+
}
|
|
34
|
+
function k(e) {
|
|
35
|
+
e.hoverState === 1 && T(e, "normal", 0);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function A(e) {
|
|
38
38
|
e.selected = !0;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function j(e) {
|
|
41
41
|
e.selected = !1;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function M(e, t, n) {
|
|
44
44
|
t(e, n);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
function N(e, t, n) {
|
|
47
|
+
M(e, t, n), e.isGroup && e.traverse(function(e) {
|
|
48
|
+
M(e, t, n);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function ne(e, t) {
|
|
52
|
+
switch (t) {
|
|
53
|
+
case "emphasis":
|
|
54
|
+
e.hoverState = 2;
|
|
55
|
+
break;
|
|
56
|
+
case "normal":
|
|
57
|
+
e.hoverState = 0;
|
|
58
|
+
break;
|
|
59
|
+
case "blur":
|
|
60
|
+
e.hoverState = 1;
|
|
61
|
+
break;
|
|
62
|
+
case "select": e.selected = !0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function re(e, t, n, r) {
|
|
52
66
|
for (var i = e.style, a = {}, o = 0; o < t.length; o++) {
|
|
53
67
|
var s = t[o];
|
|
54
68
|
a[s] = i[s] ?? (r && r[s]);
|
|
@@ -59,24 +73,24 @@ function M(e, t, n, r) {
|
|
|
59
73
|
}
|
|
60
74
|
return a;
|
|
61
75
|
}
|
|
62
|
-
function
|
|
63
|
-
var o = i && n(i, "select") >= 0,
|
|
64
|
-
if (e instanceof
|
|
65
|
-
var
|
|
66
|
-
if (
|
|
76
|
+
function ie(e, r, i, a) {
|
|
77
|
+
var o = i && n(i, "select") >= 0, l = !1;
|
|
78
|
+
if (e instanceof c) {
|
|
79
|
+
var u = g(e), d = o && u.selectFill || u.normalFill, f = o && u.selectStroke || u.normalStroke;
|
|
80
|
+
if (w(d) || w(f)) {
|
|
67
81
|
a ||= {};
|
|
68
82
|
var p = a.style || {};
|
|
69
|
-
p.fill === "inherit" ? (
|
|
83
|
+
p.fill === "inherit" ? (l = !0, a = t({}, a), p = t({}, p), p.fill = d) : !w(p.fill) && w(d) ? (l = !0, a = t({}, a), p = t({}, p), p.fill = s(d)) : !w(p.stroke) && w(f) && (l || (a = t({}, a), p = t({}, p)), p.stroke = s(f)), a.style = p;
|
|
70
84
|
}
|
|
71
85
|
}
|
|
72
86
|
if (a && a.z2 == null) {
|
|
73
|
-
|
|
87
|
+
l || (a = t({}, a));
|
|
74
88
|
var m = e.z2EmphasisLift;
|
|
75
89
|
a.z2 = e.z2 + (m ?? 10);
|
|
76
90
|
}
|
|
77
91
|
return a;
|
|
78
92
|
}
|
|
79
|
-
function
|
|
93
|
+
function ae(e, n, r) {
|
|
80
94
|
if (r && r.z2 == null) {
|
|
81
95
|
r = t({}, r);
|
|
82
96
|
var i = e.z2SelectLift;
|
|
@@ -84,8 +98,8 @@ function ie(e, n, r) {
|
|
|
84
98
|
}
|
|
85
99
|
return r;
|
|
86
100
|
}
|
|
87
|
-
function
|
|
88
|
-
var a = n(e.currentStates, r) >= 0, o = e.style.opacity, s = a ? null :
|
|
101
|
+
function oe(e, r, i) {
|
|
102
|
+
var a = n(e.currentStates, r) >= 0, o = e.style.opacity, s = a ? null : re(e, ["opacity"], r, { opacity: 1 });
|
|
89
103
|
i ||= {};
|
|
90
104
|
var c = i.style || {};
|
|
91
105
|
return c.opacity ?? (i = t({}, i), c = t({ opacity: a ? o : s.opacity * .1 }, c), i.style = c), i;
|
|
@@ -93,40 +107,40 @@ function ae(e, r, i) {
|
|
|
93
107
|
function P(e, t) {
|
|
94
108
|
var n = this.states[e];
|
|
95
109
|
if (this.style) {
|
|
96
|
-
if (e === "emphasis") return
|
|
97
|
-
if (e === "blur") return
|
|
98
|
-
if (e === "select") return
|
|
110
|
+
if (e === "emphasis") return ie(this, e, t, n);
|
|
111
|
+
if (e === "blur") return oe(this, e, n);
|
|
112
|
+
if (e === "select") return ae(this, e, n);
|
|
99
113
|
}
|
|
100
114
|
return n;
|
|
101
115
|
}
|
|
102
|
-
function
|
|
116
|
+
function se(e) {
|
|
103
117
|
e.stateProxy = P;
|
|
104
118
|
var t = e.getTextContent(), n = e.getTextGuideLine();
|
|
105
119
|
t && (t.stateProxy = P), n && (n.stateProxy = P);
|
|
106
120
|
}
|
|
107
121
|
function F(e, t) {
|
|
108
|
-
!U(e, t) && !e.__highByOuter &&
|
|
122
|
+
!U(e, t) && !e.__highByOuter && N(e, E);
|
|
109
123
|
}
|
|
110
124
|
function I(e, t) {
|
|
111
|
-
!U(e, t) && !e.__highByOuter &&
|
|
125
|
+
!U(e, t) && !e.__highByOuter && N(e, D);
|
|
112
126
|
}
|
|
113
127
|
function L(e, t) {
|
|
114
|
-
e.__highByOuter |= 1 << (t || 0),
|
|
128
|
+
e.__highByOuter |= 1 << (t || 0), N(e, E);
|
|
115
129
|
}
|
|
116
130
|
function R(e, t) {
|
|
117
|
-
!(e.__highByOuter &= ~(1 << (t || 0))) &&
|
|
131
|
+
!(e.__highByOuter &= ~(1 << (t || 0))) && N(e, D);
|
|
118
132
|
}
|
|
119
133
|
function z(e) {
|
|
120
|
-
|
|
134
|
+
N(e, O);
|
|
121
135
|
}
|
|
122
136
|
function B(e) {
|
|
123
|
-
|
|
137
|
+
N(e, k);
|
|
124
138
|
}
|
|
125
139
|
function V(e) {
|
|
126
|
-
|
|
140
|
+
N(e, A);
|
|
127
141
|
}
|
|
128
142
|
function H(e) {
|
|
129
|
-
|
|
143
|
+
N(e, j);
|
|
130
144
|
}
|
|
131
145
|
function U(e, t) {
|
|
132
146
|
return e.__highDownSilentOnTouch && t.zrByTouch;
|
|
@@ -136,7 +150,7 @@ function W(t) {
|
|
|
136
150
|
n.eachComponent(function(e, n) {
|
|
137
151
|
var a = _(n), o = p(t, n), s = e === "series";
|
|
138
152
|
!s && i.push(o), a.isBlured && (o.group.traverse(function(e) {
|
|
139
|
-
|
|
153
|
+
k(e);
|
|
140
154
|
}), s && r.push(n)), a.isBlured = !1;
|
|
141
155
|
}), e(i, function(e) {
|
|
142
156
|
e && e.toggleBlurSeries && e.toggleBlurSeries(r, !1, n);
|
|
@@ -159,7 +173,7 @@ function G(e, t, n, r) {
|
|
|
159
173
|
var s = l === e, f = e.coordinateSystem;
|
|
160
174
|
if (f && f.master && (f = f.master), !(n === "series" && !s || n === "coordinateSystem" && !(f && u ? f === u : s) || t === "series" && s)) {
|
|
161
175
|
if (r.getViewOfSeriesModel(e).group.traverse(function(e) {
|
|
162
|
-
e.__highByOuter && s && t === "self" ||
|
|
176
|
+
e.__highByOuter && s && t === "self" || O(e);
|
|
163
177
|
}), i(t)) c(e.getData(), t);
|
|
164
178
|
else if (a(t)) for (var p = o(t), m = 0; m < p.length; m++) c(e.getData(p[m]), t[p[m]]);
|
|
165
179
|
d.push(e), _(e).isBlured = !0;
|
|
@@ -179,23 +193,23 @@ function K(e, t, n) {
|
|
|
179
193
|
_(r).isBlured = !0;
|
|
180
194
|
var i = n.getViewOfComponentModel(r);
|
|
181
195
|
!i || !i.focusBlurEnabled || i.group.traverse(function(e) {
|
|
182
|
-
|
|
196
|
+
O(e);
|
|
183
197
|
});
|
|
184
198
|
}
|
|
185
199
|
}
|
|
186
200
|
}
|
|
187
|
-
function
|
|
201
|
+
function ce(e, t, n) {
|
|
188
202
|
var i = e.seriesIndex, a = e.getData(t.dataType);
|
|
189
203
|
if (!a) {
|
|
190
|
-
process.env.NODE_ENV !== "production" &&
|
|
204
|
+
process.env.NODE_ENV !== "production" && l("Unknown dataType " + t.dataType);
|
|
191
205
|
return;
|
|
192
206
|
}
|
|
193
|
-
var o =
|
|
207
|
+
var o = d(a, t);
|
|
194
208
|
o = (r(o) ? o[0] : o) || 0;
|
|
195
|
-
var
|
|
196
|
-
if (!
|
|
197
|
-
if (
|
|
198
|
-
var p = f(
|
|
209
|
+
var s = a.getItemGraphicEl(o);
|
|
210
|
+
if (!s) for (var c = a.count(), u = 0; !s && u < c;) s = a.getItemGraphicEl(u++);
|
|
211
|
+
if (s) {
|
|
212
|
+
var p = f(s);
|
|
199
213
|
G(i, p.focus, p.blurScope, n);
|
|
200
214
|
} else {
|
|
201
215
|
var m = e.get(["emphasis", "focus"]), h = e.get(["emphasis", "blurScope"]);
|
|
@@ -212,36 +226,36 @@ function q(e, t, n, r) {
|
|
|
212
226
|
if (!a) return i;
|
|
213
227
|
var o = r.getViewOfComponentModel(a);
|
|
214
228
|
if (!o || !o.findHighDownDispatchers) return i;
|
|
215
|
-
for (var
|
|
216
|
-
|
|
229
|
+
for (var s = o.findHighDownDispatchers(n), c, u = 0; u < s.length; u++) if (process.env.NODE_ENV !== "production" && !Q(s[u]) && l("param should be highDownDispatcher"), f(s[u]).focus === "self") {
|
|
230
|
+
c = !0;
|
|
217
231
|
break;
|
|
218
232
|
}
|
|
219
233
|
return {
|
|
220
|
-
focusSelf:
|
|
221
|
-
dispatchers:
|
|
234
|
+
focusSelf: c,
|
|
235
|
+
dispatchers: s
|
|
222
236
|
};
|
|
223
237
|
}
|
|
224
|
-
function
|
|
225
|
-
process.env.NODE_ENV !== "production" && !Q(t) &&
|
|
226
|
-
var i = f(t), a = q(i.componentMainType, i.componentIndex, i.componentHighDownName, r), o = a.dispatchers,
|
|
227
|
-
o ? (
|
|
238
|
+
function le(t, n, r) {
|
|
239
|
+
process.env.NODE_ENV !== "production" && !Q(t) && l("param should be highDownDispatcher");
|
|
240
|
+
var i = f(t), a = q(i.componentMainType, i.componentIndex, i.componentHighDownName, r), o = a.dispatchers, s = a.focusSelf;
|
|
241
|
+
o ? (s && K(i.componentMainType, i.componentIndex, r), e(o, function(e) {
|
|
228
242
|
return F(e, n);
|
|
229
243
|
})) : (G(i.seriesIndex, i.focus, i.blurScope, r), i.focus === "self" && K(i.componentMainType, i.componentIndex, r), F(t, n));
|
|
230
244
|
}
|
|
231
|
-
function
|
|
232
|
-
process.env.NODE_ENV !== "production" && !Q(t) &&
|
|
245
|
+
function ue(t, n, r) {
|
|
246
|
+
process.env.NODE_ENV !== "production" && !Q(t) && l("param should be highDownDispatcher"), W(r);
|
|
233
247
|
var i = f(t), a = q(i.componentMainType, i.componentIndex, i.componentHighDownName, r).dispatchers;
|
|
234
248
|
a ? e(a, function(e) {
|
|
235
249
|
return I(e, n);
|
|
236
250
|
}) : I(t, n);
|
|
237
251
|
}
|
|
238
|
-
function
|
|
252
|
+
function de(e, t, n) {
|
|
239
253
|
if ($(t)) {
|
|
240
|
-
var i = t.dataType, a =
|
|
254
|
+
var i = t.dataType, a = d(e.getData(i), t);
|
|
241
255
|
r(a) || (a = [a]), e[t.type === "toggleSelect" ? "toggleSelect" : t.type === "select" ? "select" : "unselect"](a, i);
|
|
242
256
|
}
|
|
243
257
|
}
|
|
244
|
-
function
|
|
258
|
+
function fe(t) {
|
|
245
259
|
e(t.getAllData(), function(e) {
|
|
246
260
|
var n = e.data, r = e.type;
|
|
247
261
|
n.eachItemGraphicEl(function(e, n) {
|
|
@@ -249,7 +263,7 @@ function de(t) {
|
|
|
249
263
|
});
|
|
250
264
|
});
|
|
251
265
|
}
|
|
252
|
-
function
|
|
266
|
+
function pe(t) {
|
|
253
267
|
var n = [];
|
|
254
268
|
return t.eachSeries(function(t) {
|
|
255
269
|
e(t.getAllData(), function(e) {
|
|
@@ -266,32 +280,32 @@ function fe(t) {
|
|
|
266
280
|
}), n;
|
|
267
281
|
}
|
|
268
282
|
function J(e, t, n) {
|
|
269
|
-
Z(e, !0),
|
|
283
|
+
Z(e, !0), N(e, se), ge(e, t, n);
|
|
270
284
|
}
|
|
271
|
-
function
|
|
285
|
+
function me(e) {
|
|
272
286
|
Z(e, !1);
|
|
273
287
|
}
|
|
274
|
-
function
|
|
275
|
-
r ?
|
|
288
|
+
function he(e, t, n, r) {
|
|
289
|
+
r ? me(e) : J(e, t, n);
|
|
276
290
|
}
|
|
277
|
-
function
|
|
291
|
+
function ge(e, t, n) {
|
|
278
292
|
var r = f(e);
|
|
279
293
|
t == null ? r.focus &&= null : (r.focus = t, r.blurScope = n);
|
|
280
294
|
}
|
|
281
|
-
var
|
|
295
|
+
var Y = [
|
|
282
296
|
"emphasis",
|
|
283
297
|
"blur",
|
|
284
298
|
"select"
|
|
285
|
-
],
|
|
299
|
+
], X = {
|
|
286
300
|
itemStyle: "getItemStyle",
|
|
287
301
|
lineStyle: "getLineStyle",
|
|
288
302
|
areaStyle: "getAreaStyle"
|
|
289
303
|
};
|
|
290
|
-
function
|
|
304
|
+
function _e(e, t, n, r) {
|
|
291
305
|
n ||= "itemStyle";
|
|
292
|
-
for (var i = 0; i <
|
|
293
|
-
var a =
|
|
294
|
-
s.style = r ? r(o) : o[
|
|
306
|
+
for (var i = 0; i < Y.length; i++) {
|
|
307
|
+
var a = Y[i], o = t.getModel([a, n]), s = e.ensureState(a);
|
|
308
|
+
s.style = r ? r(o) : o[X[n]]();
|
|
295
309
|
}
|
|
296
310
|
}
|
|
297
311
|
function Z(e, t) {
|
|
@@ -301,7 +315,7 @@ function Z(e, t) {
|
|
|
301
315
|
function Q(e) {
|
|
302
316
|
return !!(e && e.__highDownDispatcher);
|
|
303
317
|
}
|
|
304
|
-
function
|
|
318
|
+
function ve(e) {
|
|
305
319
|
var t = h[e];
|
|
306
320
|
return t == null && m <= 32 && (t = h[e] = m++), t;
|
|
307
321
|
}
|
|
@@ -309,15 +323,15 @@ function $(e) {
|
|
|
309
323
|
var t = e.type;
|
|
310
324
|
return t === "select" || t === "unselect" || t === "toggleSelect";
|
|
311
325
|
}
|
|
312
|
-
function
|
|
326
|
+
function ye(e) {
|
|
313
327
|
var t = e.type;
|
|
314
328
|
return t === "highlight" || t === "downplay";
|
|
315
329
|
}
|
|
316
|
-
function
|
|
330
|
+
function be(e) {
|
|
317
331
|
var t = g(e);
|
|
318
332
|
t.normalFill = e.style.fill, t.normalStroke = e.style.stroke;
|
|
319
333
|
var n = e.states.select || {};
|
|
320
334
|
t.selectFill = n.style && n.style.fill || null, t.selectStroke = n.style && n.style.stroke || null;
|
|
321
335
|
}
|
|
322
336
|
//#endregion
|
|
323
|
-
export { v as DISPLAY_STATES,
|
|
337
|
+
export { v as DISPLAY_STATES, b as DOWNPLAY_ACTION_TYPE, y as HIGHLIGHT_ACTION_TYPE, x as SELECT_ACTION_TYPE, te as SELECT_CHANGED_EVENT_TYPE, ee as SPECIAL_STATES, C as TOGGLE_SELECT_ACTION_TYPE, S as UNSELECT_ACTION_TYPE, W as allLeaveBlur, K as blurComponent, ce as blurSeriesFromHighlightPayload, J as enableHoverEmphasis, z as enterBlur, L as enterEmphasis, V as enterSelect, q as findComponentHighDownDispatchers, pe as getAllSelectedIndices, ve as getHighlightDigit, ue as handleGlobalMouseOutForHighDown, le as handleGlobalMouseOverForHighDown, Q as isHighDownDispatcher, ye as isHighDownPayload, $ as isSelectChangePayload, B as leaveBlur, R as leaveEmphasis, H as leaveSelect, be as savePathStates, ne as setStatesFlag, _e as setStatesStylesFromModel, he as toggleHoverEmphasis, de as toggleSelectionFromPayload, fe as updateSeriesElementSelection };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region node_modules/echarts/lib/util/styleCompat.js
|
|
2
|
+
var e = {};
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
if (process.env.NODE_ENV !== "production") {
|
|
5
|
+
var r = t + "^_^" + n;
|
|
6
|
+
e[r] || (console.warn("[ECharts] DEPRECATED: \"" + t + "\" has been deprecated. " + n), e[r] = !0);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as warnDeprecated };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { each as e, isArray as t, retrieve2 as n } from "../../../zrender/lib/core/util.js";
|
|
2
|
-
import
|
|
3
|
-
import i from "../../../zrender/lib/
|
|
4
|
-
import
|
|
5
|
-
import o from "../../../zrender/lib/graphic/
|
|
6
|
-
import s from "
|
|
2
|
+
import r from "../../../zrender/lib/core/BoundingRect.js";
|
|
3
|
+
import { calculateTextPosition as i } from "../../../zrender/lib/contain/text.js";
|
|
4
|
+
import a from "../../../zrender/lib/graphic/Path.js";
|
|
5
|
+
import o from "../../../zrender/lib/graphic/shape/Rect.js";
|
|
6
|
+
import { parsePercent as s } from "./number.js";
|
|
7
7
|
import c from "../../../zrender/lib/graphic/shape/Circle.js";
|
|
8
8
|
import l from "../../../zrender/lib/graphic/shape/Line.js";
|
|
9
9
|
import { makeImage as u, makePath as d } from "./graphic.js";
|
|
10
10
|
import f from "../visual/tokens.js";
|
|
11
11
|
//#region node_modules/echarts/lib/util/symbol.js
|
|
12
|
-
var p =
|
|
12
|
+
var p = a.extend({
|
|
13
13
|
type: "triangle",
|
|
14
14
|
shape: {
|
|
15
15
|
cx: 0,
|
|
@@ -23,11 +23,11 @@ var p = o.extend({
|
|
|
23
23
|
}
|
|
24
24
|
}), m = {
|
|
25
25
|
line: l,
|
|
26
|
-
rect:
|
|
27
|
-
roundRect:
|
|
28
|
-
square:
|
|
26
|
+
rect: o,
|
|
27
|
+
roundRect: o,
|
|
28
|
+
square: o,
|
|
29
29
|
circle: c,
|
|
30
|
-
diamond:
|
|
30
|
+
diamond: a.extend({
|
|
31
31
|
type: "diamond",
|
|
32
32
|
shape: {
|
|
33
33
|
cx: 0,
|
|
@@ -40,7 +40,7 @@ var p = o.extend({
|
|
|
40
40
|
e.moveTo(n, r - a), e.lineTo(n + i, r), e.lineTo(n, r + a), e.lineTo(n - i, r), e.closePath();
|
|
41
41
|
}
|
|
42
42
|
}),
|
|
43
|
-
pin:
|
|
43
|
+
pin: a.extend({
|
|
44
44
|
type: "pin",
|
|
45
45
|
shape: {
|
|
46
46
|
x: 0,
|
|
@@ -53,7 +53,7 @@ var p = o.extend({
|
|
|
53
53
|
e.moveTo(n - u, c + s), e.arc(n, c, o, Math.PI - l, Math.PI * 2 + l), e.bezierCurveTo(n + u - d * p, c + s + f * p, n, r - m, n, r), e.bezierCurveTo(n, r - m, n - u + d * p, c + s + f * p, n - u, c + s), e.closePath();
|
|
54
54
|
}
|
|
55
55
|
}),
|
|
56
|
-
arrow:
|
|
56
|
+
arrow: a.extend({
|
|
57
57
|
type: "arrow",
|
|
58
58
|
shape: {
|
|
59
59
|
x: 0,
|
|
@@ -100,7 +100,7 @@ var p = o.extend({
|
|
|
100
100
|
e(m, function(e, t) {
|
|
101
101
|
g[t] = new e();
|
|
102
102
|
});
|
|
103
|
-
var _ =
|
|
103
|
+
var _ = a.extend({
|
|
104
104
|
type: "symbol",
|
|
105
105
|
shape: {
|
|
106
106
|
symbolType: "",
|
|
@@ -110,8 +110,8 @@ var _ = o.extend({
|
|
|
110
110
|
height: 0
|
|
111
111
|
},
|
|
112
112
|
calculateTextPosition: function(e, t, n) {
|
|
113
|
-
var r =
|
|
114
|
-
return
|
|
113
|
+
var r = i(e, t, n), a = this.shape;
|
|
114
|
+
return a && a.symbolType === "pin" && t.position === "inside" && (r.y = n.y + n.height * .4), r;
|
|
115
115
|
},
|
|
116
116
|
buildPath: function(e, t, n) {
|
|
117
117
|
var r = t.symbolType;
|
|
@@ -127,20 +127,23 @@ function v(e, t) {
|
|
|
127
127
|
this.__isEmptyBrush ? (n.stroke = e, n.fill = t || f.color.neutral00, n.lineWidth = 2) : this.shape.symbolType === "line" ? n.stroke = e : n.fill = e, this.markRedraw();
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
function y(e, t, n,
|
|
130
|
+
function y(e, t, n, i, a, o, s) {
|
|
131
131
|
var c = e.indexOf("empty") === 0;
|
|
132
132
|
c && (e = e.substr(5, 1).toLowerCase() + e.substr(6));
|
|
133
|
-
var l = e.indexOf("image://") === 0 ? u(e.slice(8), new
|
|
133
|
+
var l = e.indexOf("image://") === 0 ? u(e.slice(8), new r(t, n, i, a), s ? "center" : "cover") : e.indexOf("path://") === 0 ? d(e.slice(7), {}, new r(t, n, i, a), s ? "center" : "cover") : new _({ shape: {
|
|
134
134
|
symbolType: e,
|
|
135
135
|
x: t,
|
|
136
136
|
y: n,
|
|
137
|
-
width:
|
|
137
|
+
width: i,
|
|
138
138
|
height: a
|
|
139
139
|
} });
|
|
140
140
|
return l.__isEmptyBrush = c, l.setColor = v, o && l.setColor(o), l;
|
|
141
141
|
}
|
|
142
|
-
function b(e
|
|
143
|
-
|
|
142
|
+
function b(e) {
|
|
143
|
+
return t(e) || (e = [+e, +e]), [e[0] || 0, e[1] || 0];
|
|
144
|
+
}
|
|
145
|
+
function x(e, r) {
|
|
146
|
+
if (e != null) return t(e) || (e = [e, e]), [s(e[0], r[0]) || 0, s(n(e[1], e[0]), r[1]) || 0];
|
|
144
147
|
}
|
|
145
148
|
//#endregion
|
|
146
|
-
export { y as createSymbol,
|
|
149
|
+
export { y as createSymbol, x as normalizeSymbolOffset, b as normalizeSymbolSize, g as symbolBuildProxies };
|