reke-ui 0.5.3 → 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.
Files changed (147) hide show
  1. package/custom-elements.json +465 -0
  2. package/dist/components/reke-bar-chart/reke-bar-chart.d.ts +99 -0
  3. package/dist/components/reke-bar-chart/reke-bar-chart.d.ts.map +1 -0
  4. package/dist/components/reke-bar-chart/reke-bar-chart.js +319 -0
  5. package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts +2 -0
  6. package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts.map +1 -0
  7. package/dist/components/reke-bar-chart/reke-bar-chart.styles.js +36 -0
  8. package/dist/index.d.ts +2 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +21 -20
  11. package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +50 -0
  12. package/dist/node_modules/echarts/lib/chart/bar/BarView.js +431 -0
  13. package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +65 -0
  14. package/dist/node_modules/echarts/lib/chart/bar/install.js +22 -0
  15. package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +142 -0
  16. package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +99 -0
  17. package/dist/node_modules/echarts/lib/chart/helper/axisSnippets.js +19 -0
  18. package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +50 -0
  19. package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +55 -0
  20. package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -3
  21. package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +24 -0
  22. package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +60 -0
  23. package/dist/node_modules/echarts/lib/chart/line/LineView.js +471 -0
  24. package/dist/node_modules/echarts/lib/chart/line/helper.js +34 -0
  25. package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
  26. package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +59 -0
  27. package/dist/node_modules/echarts/lib/chart/line/poly.js +135 -0
  28. package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +32 -32
  29. package/dist/node_modules/echarts/lib/chart/pie/PieView.js +69 -69
  30. package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +25 -25
  31. package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +16 -16
  32. package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +153 -153
  33. package/dist/node_modules/echarts/lib/component/axis/AxisView.js +13 -13
  34. package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +106 -0
  35. package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +50 -0
  36. package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +20 -20
  37. package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +30 -30
  38. package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +13 -13
  39. package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +114 -0
  40. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
  41. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +15 -0
  42. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +21 -0
  43. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +67 -0
  44. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +75 -0
  45. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +465 -0
  46. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +17 -0
  47. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +55 -0
  48. package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +88 -0
  49. package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +14 -0
  50. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
  51. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
  52. package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +132 -0
  53. package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
  54. package/dist/node_modules/echarts/lib/component/grid/installSimple.js +32 -0
  55. package/dist/node_modules/echarts/lib/component/helper/RoamController.js +172 -0
  56. package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +17 -0
  57. package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +15 -0
  58. package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
  59. package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +31 -31
  60. package/dist/node_modules/echarts/lib/component/legend/LegendView.js +61 -61
  61. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +29 -29
  62. package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +4 -4
  63. package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +105 -105
  64. package/dist/node_modules/echarts/lib/coord/Axis.js +92 -0
  65. package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
  66. package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +76 -0
  67. package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
  68. package/dist/node_modules/echarts/lib/coord/axisDefault.js +124 -0
  69. package/dist/node_modules/echarts/lib/coord/axisHelper.js +123 -14
  70. package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +9 -0
  71. package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +39 -0
  72. package/dist/node_modules/echarts/lib/coord/axisNiceTicks.js +64 -0
  73. package/dist/node_modules/echarts/lib/coord/axisStatistics.js +101 -22
  74. package/dist/node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js +43 -0
  75. package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +151 -5
  76. package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +24 -0
  77. package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +18 -0
  78. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +23 -0
  79. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +69 -0
  80. package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +314 -0
  81. package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +40 -0
  82. package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +43 -12
  83. package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +175 -0
  84. package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +39 -16
  85. package/dist/node_modules/echarts/lib/core/echarts.js +421 -421
  86. package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +30 -0
  87. package/dist/node_modules/echarts/lib/data/SeriesData.js +18 -18
  88. package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +6 -6
  89. package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +59 -0
  90. package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +13 -13
  91. package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +7 -4
  92. package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +40 -8
  93. package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +3 -3
  94. package/dist/node_modules/echarts/lib/data/helper/transform.js +8 -8
  95. package/dist/node_modules/echarts/lib/extension.js +10 -10
  96. package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +10 -10
  97. package/dist/node_modules/echarts/lib/label/labelStyle.js +34 -25
  98. package/dist/node_modules/echarts/lib/label/sectorLabel.js +83 -0
  99. package/dist/node_modules/echarts/lib/layout/barCommon.js +19 -0
  100. package/dist/node_modules/echarts/lib/layout/barGrid.js +165 -0
  101. package/dist/node_modules/echarts/lib/layout/points.js +37 -0
  102. package/dist/node_modules/echarts/lib/loading/default.js +6 -6
  103. package/dist/node_modules/echarts/lib/model/Component.js +39 -39
  104. package/dist/node_modules/echarts/lib/model/Global.js +122 -122
  105. package/dist/node_modules/echarts/lib/model/Series.js +78 -78
  106. package/dist/node_modules/echarts/lib/model/referHelper.js +58 -0
  107. package/dist/node_modules/echarts/lib/processor/dataSample.js +43 -0
  108. package/dist/node_modules/echarts/lib/scale/Interval.js +68 -0
  109. package/dist/node_modules/echarts/lib/scale/Log.js +100 -0
  110. package/dist/node_modules/echarts/lib/scale/Ordinal.js +92 -0
  111. package/dist/node_modules/echarts/lib/scale/Scale.js +13 -0
  112. package/dist/node_modules/echarts/lib/scale/Time.js +242 -0
  113. package/dist/node_modules/echarts/lib/scale/break.js +10 -2
  114. package/dist/node_modules/echarts/lib/scale/helper.js +61 -3
  115. package/dist/node_modules/echarts/lib/scale/minorTicks.js +22 -0
  116. package/dist/node_modules/echarts/lib/scale/scaleMapper.js +89 -7
  117. package/dist/node_modules/echarts/lib/util/clazz.js +35 -35
  118. package/dist/node_modules/echarts/lib/util/component.js +16 -16
  119. package/dist/node_modules/echarts/lib/util/cycleCache.js +4 -1
  120. package/dist/node_modules/echarts/lib/util/decal.js +11 -11
  121. package/dist/node_modules/echarts/lib/util/format.js +1 -1
  122. package/dist/node_modules/echarts/lib/util/graphic.js +170 -170
  123. package/dist/node_modules/echarts/lib/util/layout.js +23 -23
  124. package/dist/node_modules/echarts/lib/util/model.js +128 -68
  125. package/dist/node_modules/echarts/lib/util/number.js +55 -37
  126. package/dist/node_modules/echarts/lib/util/shape/sausage.js +25 -0
  127. package/dist/node_modules/echarts/lib/util/states.js +96 -82
  128. package/dist/node_modules/echarts/lib/util/styleCompat.js +10 -0
  129. package/dist/node_modules/echarts/lib/util/symbol.js +24 -21
  130. package/dist/node_modules/echarts/lib/util/time.js +154 -18
  131. package/dist/node_modules/echarts/lib/util/vendor.js +26 -0
  132. package/dist/node_modules/echarts/lib/view/Chart.js +19 -19
  133. package/dist/node_modules/echarts/lib/view/Component.js +7 -7
  134. package/dist/node_modules/echarts/lib/visual/style.js +5 -5
  135. package/dist/node_modules/zrender/lib/Element.js +35 -35
  136. package/dist/node_modules/zrender/lib/canvas/graphic.js +36 -36
  137. package/dist/node_modules/zrender/lib/core/PathProxy.js +25 -25
  138. package/dist/node_modules/zrender/lib/core/event.js +4 -1
  139. package/dist/node_modules/zrender/lib/core/util.js +69 -64
  140. package/dist/node_modules/zrender/lib/graphic/TSpan.js +7 -7
  141. package/dist/node_modules/zrender/lib/graphic/Text.js +37 -37
  142. package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +59 -59
  143. package/dist/node_modules/zrender/lib/tool/color.js +60 -41
  144. package/dist/react.d.ts +5 -0
  145. package/dist/react.d.ts.map +1 -1
  146. package/dist/react.js +83 -77
  147. 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 { error as s } from "./log.js";
3
- import { makeInner as c, queryDataIndex as l } from "./model.js";
4
- import { liftColor as u } from "../../../zrender/lib/tool/color.js";
5
- import d from "../../../zrender/lib/graphic/Path.js";
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 = c(), _ = c(), ee = [
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", te = "downplay", b = "select", x = "unselect", S = "toggleSelect", ne = "selectchanged";
19
- function C(e) {
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 w(e, t, n) {
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
- e.hoverState === 2 && w(e, "normal", 0);
26
+ T(e, "emphasis", 2);
30
27
  }
31
28
  function D(e) {
32
- w(e, "blur", 1);
29
+ e.hoverState === 2 && T(e, "normal", 0);
33
30
  }
34
31
  function O(e) {
35
- e.hoverState === 1 && w(e, "normal", 0);
32
+ T(e, "blur", 1);
33
+ }
34
+ function k(e) {
35
+ e.hoverState === 1 && T(e, "normal", 0);
36
36
  }
37
- function re(e) {
37
+ function A(e) {
38
38
  e.selected = !0;
39
39
  }
40
- function k(e) {
40
+ function j(e) {
41
41
  e.selected = !1;
42
42
  }
43
- function A(e, t, n) {
43
+ function M(e, t, n) {
44
44
  t(e, n);
45
45
  }
46
- function j(e, t, n) {
47
- A(e, t, n), e.isGroup && e.traverse(function(e) {
48
- A(e, t, n);
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 M(e, t, n, r) {
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 N(e, r, i, a) {
63
- var o = i && n(i, "select") >= 0, s = !1;
64
- if (e instanceof d) {
65
- var c = g(e), l = o && c.selectFill || c.normalFill, f = o && c.selectStroke || c.normalStroke;
66
- if (C(l) || C(f)) {
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" ? (s = !0, a = t({}, a), p = t({}, p), p.fill = l) : !C(p.fill) && C(l) ? (s = !0, a = t({}, a), p = t({}, p), p.fill = u(l)) : !C(p.stroke) && C(f) && (s || (a = t({}, a), p = t({}, p)), p.stroke = u(f)), a.style = p;
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
- s || (a = t({}, a));
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 ie(e, n, r) {
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 ae(e, r, i) {
88
- var a = n(e.currentStates, r) >= 0, o = e.style.opacity, s = a ? null : M(e, ["opacity"], r, { opacity: 1 });
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 N(this, e, t, n);
97
- if (e === "blur") return ae(this, e, n);
98
- if (e === "select") return ie(this, e, n);
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 oe(e) {
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 && j(e, T);
122
+ !U(e, t) && !e.__highByOuter && N(e, E);
109
123
  }
110
124
  function I(e, t) {
111
- !U(e, t) && !e.__highByOuter && j(e, E);
125
+ !U(e, t) && !e.__highByOuter && N(e, D);
112
126
  }
113
127
  function L(e, t) {
114
- e.__highByOuter |= 1 << (t || 0), j(e, T);
128
+ e.__highByOuter |= 1 << (t || 0), N(e, E);
115
129
  }
116
130
  function R(e, t) {
117
- !(e.__highByOuter &= ~(1 << (t || 0))) && j(e, E);
131
+ !(e.__highByOuter &= ~(1 << (t || 0))) && N(e, D);
118
132
  }
119
133
  function z(e) {
120
- j(e, D);
134
+ N(e, O);
121
135
  }
122
136
  function B(e) {
123
- j(e, O);
137
+ N(e, k);
124
138
  }
125
139
  function V(e) {
126
- j(e, re);
140
+ N(e, A);
127
141
  }
128
142
  function H(e) {
129
- j(e, k);
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
- O(e);
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" || D(e);
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
- D(e);
196
+ O(e);
183
197
  });
184
198
  }
185
199
  }
186
200
  }
187
- function se(e, t, n) {
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" && s("Unknown dataType " + t.dataType);
204
+ process.env.NODE_ENV !== "production" && l("Unknown dataType " + t.dataType);
191
205
  return;
192
206
  }
193
- var o = l(a, t);
207
+ var o = d(a, t);
194
208
  o = (r(o) ? o[0] : o) || 0;
195
- var c = a.getItemGraphicEl(o);
196
- if (!c) for (var u = a.count(), d = 0; !c && d < u;) c = a.getItemGraphicEl(d++);
197
- if (c) {
198
- var p = f(c);
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 c = o.findHighDownDispatchers(n), l, u = 0; u < c.length; u++) if (process.env.NODE_ENV !== "production" && !Q(c[u]) && s("param should be highDownDispatcher"), f(c[u]).focus === "self") {
216
- l = !0;
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: l,
221
- dispatchers: c
234
+ focusSelf: c,
235
+ dispatchers: s
222
236
  };
223
237
  }
224
- function ce(t, n, r) {
225
- process.env.NODE_ENV !== "production" && !Q(t) && s("param should be highDownDispatcher");
226
- var i = f(t), a = q(i.componentMainType, i.componentIndex, i.componentHighDownName, r), o = a.dispatchers, c = a.focusSelf;
227
- o ? (c && K(i.componentMainType, i.componentIndex, r), e(o, function(e) {
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 le(t, n, r) {
232
- process.env.NODE_ENV !== "production" && !Q(t) && s("param should be highDownDispatcher"), W(r);
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 ue(e, t, n) {
252
+ function de(e, t, n) {
239
253
  if ($(t)) {
240
- var i = t.dataType, a = l(e.getData(i), t);
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 de(t) {
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 fe(t) {
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), j(e, oe), me(e, t, n);
283
+ Z(e, !0), N(e, se), ge(e, t, n);
270
284
  }
271
- function Y(e) {
285
+ function me(e) {
272
286
  Z(e, !1);
273
287
  }
274
- function pe(e, t, n, r) {
275
- r ? Y(e) : J(e, t, n);
288
+ function he(e, t, n, r) {
289
+ r ? me(e) : J(e, t, n);
276
290
  }
277
- function me(e, t, n) {
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 X = [
295
+ var Y = [
282
296
  "emphasis",
283
297
  "blur",
284
298
  "select"
285
- ], he = {
299
+ ], X = {
286
300
  itemStyle: "getItemStyle",
287
301
  lineStyle: "getLineStyle",
288
302
  areaStyle: "getAreaStyle"
289
303
  };
290
- function ge(e, t, n, r) {
304
+ function _e(e, t, n, r) {
291
305
  n ||= "itemStyle";
292
- for (var i = 0; i < X.length; i++) {
293
- var a = X[i], o = t.getModel([a, n]), s = e.ensureState(a);
294
- s.style = r ? r(o) : o[he[n]]();
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 _e(e) {
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 ve(e) {
326
+ function ye(e) {
313
327
  var t = e.type;
314
328
  return t === "highlight" || t === "downplay";
315
329
  }
316
- function ye(e) {
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, te as DOWNPLAY_ACTION_TYPE, y as HIGHLIGHT_ACTION_TYPE, b as SELECT_ACTION_TYPE, ne as SELECT_CHANGED_EVENT_TYPE, ee as SPECIAL_STATES, S as TOGGLE_SELECT_ACTION_TYPE, x as UNSELECT_ACTION_TYPE, W as allLeaveBlur, K as blurComponent, se as blurSeriesFromHighlightPayload, J as enableHoverEmphasis, z as enterBlur, L as enterEmphasis, V as enterSelect, q as findComponentHighDownDispatchers, fe as getAllSelectedIndices, _e as getHighlightDigit, le as handleGlobalMouseOutForHighDown, ce as handleGlobalMouseOverForHighDown, Q as isHighDownDispatcher, ve as isHighDownPayload, $ as isSelectChangePayload, B as leaveBlur, R as leaveEmphasis, H as leaveSelect, ye as savePathStates, ge as setStatesStylesFromModel, pe as toggleHoverEmphasis, ue as toggleSelectionFromPayload, de as updateSeriesElementSelection };
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 { parsePercent as r } from "./number.js";
3
- import i from "../../../zrender/lib/core/BoundingRect.js";
4
- import { calculateTextPosition as a } from "../../../zrender/lib/contain/text.js";
5
- import o from "../../../zrender/lib/graphic/Path.js";
6
- import s from "../../../zrender/lib/graphic/shape/Rect.js";
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 = o.extend({
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: s,
27
- roundRect: s,
28
- square: s,
26
+ rect: o,
27
+ roundRect: o,
28
+ square: o,
29
29
  circle: c,
30
- diamond: o.extend({
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: o.extend({
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: o.extend({
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 _ = o.extend({
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 = a(e, t, n), i = this.shape;
114
- return i && i.symbolType === "pin" && t.position === "inside" && (r.y = n.y + n.height * .4), r;
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, r, a, o, s) {
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 i(t, n, r, a), s ? "center" : "cover") : e.indexOf("path://") === 0 ? d(e.slice(7), {}, new i(t, n, r, a), s ? "center" : "cover") : new _({ shape: {
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: r,
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, i) {
143
- if (e != null) return t(e) || (e = [e, e]), [r(e[0], i[0]) || 0, r(n(e[1], e[0]), i[1]) || 0];
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, b as normalizeSymbolOffset };
149
+ export { y as createSymbol, x as normalizeSymbolOffset, b as normalizeSymbolSize, g as symbolBuildProxies };