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,7 +1,7 @@
1
1
  import { extend as e, isFunction as t, isNumber as n, keys as r, normalizeCssArray as i, retrieve2 as a, retrieve3 as o, trim as s } from "../../../zrender/lib/core/util.js";
2
- import { deprecateReplaceLog as c } from "../util/log.js";
3
- import { makeInner as l } from "../util/model.js";
4
- import u from "../../../zrender/lib/graphic/Text.js";
2
+ import c from "../../../zrender/lib/graphic/Text.js";
3
+ import { deprecateReplaceLog as l } from "../util/log.js";
4
+ import { makeInner as u } from "../util/model.js";
5
5
  import { DISPLAY_STATES as d, SPECIAL_STATES as f } from "../util/states.js";
6
6
  //#region node_modules/echarts/lib/label/labelStyle.js
7
7
  var p = {};
@@ -24,33 +24,33 @@ function h(e, n, r) {
24
24
  }
25
25
  function g(e, t, n, r) {
26
26
  n ||= p;
27
- for (var i = e instanceof u, o = !1, s = 0; s < d.length; s++) {
28
- var c = t[d[s]];
29
- if (c && c.getShallow("show")) {
27
+ for (var i = e instanceof c, o = !1, s = 0; s < d.length; s++) {
28
+ var l = t[d[s]];
29
+ if (l && l.getShallow("show")) {
30
30
  o = !0;
31
31
  break;
32
32
  }
33
33
  }
34
- var l = i ? e : e.getTextContent();
34
+ var u = i ? e : e.getTextContent();
35
35
  if (o) {
36
- i || (l || (l = new u(), e.setTextContent(l)), e.stateProxy && (l.stateProxy = e.stateProxy));
36
+ i || (u || (u = new c(), e.setTextContent(u)), e.stateProxy && (u.stateProxy = e.stateProxy));
37
37
  var g = h(n, t), _ = t.normal, b = !!_.getShallow("show"), x = v(_, r && r.normal, n, !1, !i);
38
38
  x.text = g.normal, i || e.setTextConfig(y(_, n, !1));
39
39
  for (var s = 0; s < f.length; s++) {
40
- var S = f[s], c = t[S];
41
- if (c) {
42
- var C = l.ensureState(S), w = !!a(c.getShallow("show"), b);
43
- if (w !== b && (C.ignore = !w), C.style = v(c, r && r[S], n, !0, !i), C.style.text = g[S], !i) {
40
+ var S = f[s], l = t[S];
41
+ if (l) {
42
+ var C = u.ensureState(S), w = !!a(l.getShallow("show"), b);
43
+ if (w !== b && (C.ignore = !w), C.style = v(l, r && r[S], n, !0, !i), C.style.text = g[S], !i) {
44
44
  var T = e.ensureState(S);
45
- T.textConfig = y(c, n, !0);
45
+ T.textConfig = y(l, n, !0);
46
46
  }
47
47
  }
48
48
  }
49
- l.silent = !!_.getShallow("silent"), l.style.x != null && (x.x = l.style.x), l.style.y != null && (x.y = l.style.y), l.ignore = !b, l.useStyle(x), l.dirty(), n.enableTextSetter && (D(l).setLabelText = function(e) {
49
+ u.silent = !!_.getShallow("silent"), u.style.x != null && (x.x = u.style.x), u.style.y != null && (x.y = u.style.y), u.ignore = !b, u.useStyle(x), u.dirty(), n.enableTextSetter && (D(u).setLabelText = function(e) {
50
50
  var r = h(n, t, e);
51
- m(l, r);
51
+ m(u, r);
52
52
  });
53
- } else l && (l.ignore = !0);
53
+ } else u && (u.ignore = !0);
54
54
  e.dirty();
55
55
  }
56
56
  function _(e, t) {
@@ -92,10 +92,10 @@ function b(e, t, r, o, s) {
92
92
  b,
93
93
  b,
94
94
  b
95
- ], y.__marginType = O.minMargin;
95
+ ], y.__marginType = k.minMargin;
96
96
  else {
97
97
  var S = t.get("textMargin");
98
- S != null && (y.margin = i(S), y.__marginType = O.textMargin);
98
+ S != null && (y.margin = i(S), y.__marginType = k.textMargin);
99
99
  }
100
100
  T(e, t, l, null, null, r, o, s, !0, !1);
101
101
  }
@@ -142,16 +142,16 @@ var S = [
142
142
  "shadowOffsetX",
143
143
  "shadowOffsetY"
144
144
  ];
145
- function T(e, t, n, r, i, s, l, u, d, f) {
146
- n = !l && n || p;
145
+ function T(e, t, n, r, i, s, c, u, d, f) {
146
+ n = !c && n || p;
147
147
  var m = s && s.inheritColor, h = t.getShallow("color"), g = t.getShallow("textBorderColor"), _ = a(t.getShallow("opacity"), n.opacity);
148
- (h === "inherit" || h === "auto") && (process.env.NODE_ENV !== "production" && h === "auto" && c("color: 'auto'", "color: 'inherit'"), h = m || null), (g === "inherit" || g === "auto") && (process.env.NODE_ENV !== "production" && g === "auto" && c("color: 'auto'", "color: 'inherit'"), g = m || null), u || (h ||= n.color, g ||= n.textBorderColor), h != null && (e.fill = h), g != null && (e.stroke = g);
148
+ (h === "inherit" || h === "auto") && (process.env.NODE_ENV !== "production" && h === "auto" && l("color: 'auto'", "color: 'inherit'"), h = m || null), (g === "inherit" || g === "auto") && (process.env.NODE_ENV !== "production" && g === "auto" && l("color: 'auto'", "color: 'inherit'"), g = m || null), u || (h ||= n.color, g ||= n.textBorderColor), h != null && (e.fill = h), g != null && (e.stroke = g);
149
149
  var v = a(t.getShallow("textBorderWidth"), n.textBorderWidth);
150
150
  v != null && (e.lineWidth = v);
151
151
  var y = a(t.getShallow("textBorderType"), n.textBorderType);
152
152
  y != null && (e.lineDash = y);
153
153
  var b = a(t.getShallow("textBorderDashOffset"), n.textBorderDashOffset);
154
- b != null && (e.lineDashOffset = b), !l && _ == null && !f && (_ = s && s.defaultOpacity), _ != null && (e.opacity = _), !l && !u && e.fill == null && s.inheritColor && (e.fill = s.inheritColor);
154
+ b != null && (e.lineDashOffset = b), !c && _ == null && !f && (_ = s && s.defaultOpacity), _ != null && (e.opacity = _), !c && !u && e.fill == null && s.inheritColor && (e.fill = s.inheritColor);
155
155
  for (var x = 0; x < S.length; x++) {
156
156
  var T = S[x], E = i !== !1 && r ? o(t.getShallow(T), r.getShallow(T), n[T]) : a(t.getShallow(T), n[T]);
157
157
  E != null && (e[T] = E);
@@ -170,7 +170,7 @@ function T(e, t, n, r, i, s, l, u, d, f) {
170
170
  E != null && (e[T] = E);
171
171
  }
172
172
  var O = t.getShallow("borderType");
173
- O != null && (e.borderDash = O), (e.backgroundColor === "auto" || e.backgroundColor === "inherit") && m && (process.env.NODE_ENV !== "production" && e.backgroundColor === "auto" && c("backgroundColor: 'auto'", "backgroundColor: 'inherit'"), e.backgroundColor = m), (e.borderColor === "auto" || e.borderColor === "inherit") && m && (process.env.NODE_ENV !== "production" && e.borderColor === "auto" && c("borderColor: 'auto'", "borderColor: 'inherit'"), e.borderColor = m);
173
+ O != null && (e.borderDash = O), (e.backgroundColor === "auto" || e.backgroundColor === "inherit") && m && (process.env.NODE_ENV !== "production" && e.backgroundColor === "auto" && l("backgroundColor: 'auto'", "backgroundColor: 'inherit'"), e.backgroundColor = m), (e.borderColor === "auto" || e.borderColor === "inherit") && m && (process.env.NODE_ENV !== "production" && e.borderColor === "auto" && l("borderColor: 'auto'", "borderColor: 'inherit'"), e.borderColor = m);
174
174
  }
175
175
  }
176
176
  function E(e, t) {
@@ -182,9 +182,18 @@ function E(e, t) {
182
182
  e.fontFamily || n && n.getShallow("fontFamily") || "sans-serif"
183
183
  ].join(" "));
184
184
  }
185
- var D = l(), O = {
185
+ var D = u();
186
+ function O(e, t, n, r) {
187
+ if (e) {
188
+ var i = D(e);
189
+ i.prevValue = i.value, i.value = n;
190
+ var a = t.normal;
191
+ i.valueAnimation = a.get("valueAnimation"), i.valueAnimation && (i.precision = a.get("precision"), i.defaultInterpolatedText = r, i.statesModels = t);
192
+ }
193
+ }
194
+ var k = {
186
195
  minMargin: 1,
187
196
  textMargin: 2
188
197
  };
189
198
  //#endregion
190
- export { O as LabelMarginType, v as createTextStyle, E as getFont, _ as getLabelStatesModels, g as setLabelStyle };
199
+ export { k as LabelMarginType, v as createTextStyle, E as getFont, _ as getLabelStatesModels, D as labelInner, g as setLabelStyle, O as setLabelValueAnimation };
@@ -0,0 +1,83 @@
1
+ import { isArray as e, isNumber as t } from "../../../zrender/lib/core/util.js";
2
+ import { calculateTextPosition as n } from "../../../zrender/lib/contain/text.js";
3
+ //#region node_modules/echarts/lib/label/sectorLabel.js
4
+ function r(e, t) {
5
+ t ||= {};
6
+ var r = t.isRoundCap;
7
+ return function(t, i, s) {
8
+ var c = i.position;
9
+ if (!c || c instanceof Array) return n(t, i, s);
10
+ var l = e(c), u = i.distance == null ? 5 : i.distance, d = this.shape, f = d.cx, p = d.cy, m = d.r, h = d.r0, g = (m + h) / 2, _ = d.startAngle, v = d.endAngle, y = (_ + v) / 2, b = r ? Math.abs(m - h) / 2 : 0, x = Math.cos, S = Math.sin, C = f + m * x(_), w = p + m * S(_), T = "left", E = "top";
11
+ switch (l) {
12
+ case "startArc":
13
+ C = f + (h - u) * x(y), w = p + (h - u) * S(y), T = "center", E = "top";
14
+ break;
15
+ case "insideStartArc":
16
+ C = f + (h + u) * x(y), w = p + (h + u) * S(y), T = "center", E = "bottom";
17
+ break;
18
+ case "startAngle":
19
+ C = f + g * x(_) + a(_, u + b, !1), w = p + g * S(_) + o(_, u + b, !1), T = "right", E = "middle";
20
+ break;
21
+ case "insideStartAngle":
22
+ C = f + g * x(_) + a(_, -u + b, !1), w = p + g * S(_) + o(_, -u + b, !1), T = "left", E = "middle";
23
+ break;
24
+ case "middle":
25
+ C = f + g * x(y), w = p + g * S(y), T = "center", E = "middle";
26
+ break;
27
+ case "endArc":
28
+ C = f + (m + u) * x(y), w = p + (m + u) * S(y), T = "center", E = "bottom";
29
+ break;
30
+ case "insideEndArc":
31
+ C = f + (m - u) * x(y), w = p + (m - u) * S(y), T = "center", E = "top";
32
+ break;
33
+ case "endAngle":
34
+ C = f + g * x(v) + a(v, u + b, !0), w = p + g * S(v) + o(v, u + b, !0), T = "left", E = "middle";
35
+ break;
36
+ case "insideEndAngle":
37
+ C = f + g * x(v) + a(v, -u + b, !0), w = p + g * S(v) + o(v, -u + b, !0), T = "right", E = "middle";
38
+ break;
39
+ default: return n(t, i, s);
40
+ }
41
+ return t ||= {}, t.x = C, t.y = w, t.align = T, t.verticalAlign = E, t;
42
+ };
43
+ }
44
+ function i(n, r, i, a) {
45
+ if (t(a)) {
46
+ n.setTextConfig({ rotation: a });
47
+ return;
48
+ } else if (e(r)) {
49
+ n.setTextConfig({ rotation: 0 });
50
+ return;
51
+ }
52
+ var o = n.shape, s = o.clockwise ? o.startAngle : o.endAngle, c = o.clockwise ? o.endAngle : o.startAngle, l = (s + c) / 2, u, d = i(r);
53
+ switch (d) {
54
+ case "startArc":
55
+ case "insideStartArc":
56
+ case "middle":
57
+ case "insideEndArc":
58
+ case "endArc":
59
+ u = l;
60
+ break;
61
+ case "startAngle":
62
+ case "insideStartAngle":
63
+ u = s;
64
+ break;
65
+ case "endAngle":
66
+ case "insideEndAngle":
67
+ u = c;
68
+ break;
69
+ default:
70
+ n.setTextConfig({ rotation: 0 });
71
+ return;
72
+ }
73
+ var f = Math.PI * 1.5 - u;
74
+ d === "middle" && f > Math.PI / 2 && f < Math.PI * 1.5 && (f -= Math.PI), n.setTextConfig({ rotation: f });
75
+ }
76
+ function a(e, t, n) {
77
+ return t * Math.sin(e) * (n ? -1 : 1);
78
+ }
79
+ function o(e, t, n) {
80
+ return t * Math.cos(e) * (n ? 1 : -1);
81
+ }
82
+ //#endregion
83
+ export { r as createSectorCalculateTextPosition, i as setSectorTextRotation };
@@ -0,0 +1,19 @@
1
+ import { assert as e } from "../../../zrender/lib/core/util.js";
2
+ import { isNullableNumberFinite as t } from "../util/number.js";
3
+ import { requireAxisStatistics as n } from "../coord/axisStatistics.js";
4
+ import { createMetricsNonOrdinalLinearPositiveMinGap as r } from "../chart/helper/axisSnippets.js";
5
+ //#region node_modules/echarts/lib/layout/barCommon.js
6
+ function i(e, t, i, a) {
7
+ n(e, {
8
+ key: t,
9
+ seriesType: i,
10
+ coordSysType: a,
11
+ getMetrics: r
12
+ });
13
+ }
14
+ function a(n) {
15
+ var r = n.scale.rawExtentInfo.makeRenderInfo().startValue;
16
+ return process.env.NODE_ENV !== "production" && e(t(r)), r;
17
+ }
18
+ //#endregion
19
+ export { a as getStartValue, i as requireAxisStatisticsForBaseBar };
@@ -0,0 +1,165 @@
1
+ import { assert as e, each as t, hasOwn as n } from "../../../zrender/lib/core/util.js";
2
+ import { mathAbs as r, mathMax as i, mathMin as a, parsePercent as o } from "../util/number.js";
3
+ import { makeCallOnlyOnce as s } from "../util/model.js";
4
+ import { isDimensionStacked as c } from "../data/helper/dataStackHelper.js";
5
+ import { createFloat32Array as l } from "../util/vendor.js";
6
+ import u from "../chart/helper/createRenderPlanner.js";
7
+ import { eachAxisOnKey as d, eachSeriesOnAxisOnKey as f } from "../coord/axisStatistics.js";
8
+ import { calcBandWidth as p } from "../coord/axisBand.js";
9
+ import m from "../coord/cartesian/Axis2D.js";
10
+ import { isCartesian2DInjectedAsDataCoordSys as h } from "../coord/cartesian/cartesianAxisHelper.js";
11
+ import { registerAxisContainShapeHandler as g } from "../coord/scaleRawExtentInfo.js";
12
+ import { createBandWidthBasedAxisContainShapeHandler as _, makeAxisStatKey2 as v } from "../chart/helper/axisSnippets.js";
13
+ import { getStartValue as y, requireAxisStatisticsForBaseBar as b } from "./barCommon.js";
14
+ import { COORD_SYS_TYPE_CARTESIAN_2D as x } from "../coord/cartesian/GridModel.js";
15
+ //#region node_modules/echarts/lib/layout/barGrid.js
16
+ var S = s(), C = "__ec_stack_";
17
+ function w(e) {
18
+ return e.get("stack") || C + e.seriesIndex;
19
+ }
20
+ function T(e, t) {
21
+ var n = E(e, t);
22
+ return n.columnMap = D(n), n;
23
+ }
24
+ function E(e, t) {
25
+ var n = v(t, x), r = [], i = p(e, {
26
+ fromStat: { key: n },
27
+ min: 1
28
+ });
29
+ return f(e, n, function(e) {
30
+ r.push({
31
+ barWidth: o(e.get("barWidth"), i.w),
32
+ barMaxWidth: o(e.get("barMaxWidth"), i.w),
33
+ barMinWidth: o(e.get("barMinWidth") || (A(e) ? .5 : 1), i.w),
34
+ barGap: e.get("barGap"),
35
+ barCategoryGap: e.get("barCategoryGap"),
36
+ defaultBarGap: e.get("defaultBarGap"),
37
+ stackId: w(e)
38
+ });
39
+ }), {
40
+ bandWidthResult: i,
41
+ seriesInfo: r
42
+ };
43
+ }
44
+ function D(e) {
45
+ var r = e.bandWidthResult.w, s = r, c = 0, l, u, d = [], f = {};
46
+ t(e.seriesInfo, function(e, t) {
47
+ t || (u = e.defaultBarGap || 0);
48
+ var r = e.stackId;
49
+ n(f, r) || c++;
50
+ var i = f[r];
51
+ i || (i = f[r] = {
52
+ width: 0,
53
+ maxWidth: 0
54
+ }, d.push(r));
55
+ var o = e.barWidth;
56
+ o && !i.width && (i.width = o, o = a(s, o), s -= o);
57
+ var p = e.barMaxWidth;
58
+ p && (i.maxWidth = p);
59
+ var m = e.barMinWidth;
60
+ m && (i.minWidth = m);
61
+ var h = e.barGap;
62
+ h != null && (u = h);
63
+ var g = e.barCategoryGap;
64
+ g != null && (l = g);
65
+ }), l ??= i(35 - d.length * 4, 15) + "%";
66
+ var p = o(l, r), m = o(u, 1), h = (s - p) / (c + (c - 1) * m);
67
+ h = i(h, 0), t(d, function(e) {
68
+ var t = f[e], n = t.maxWidth, r = t.minWidth;
69
+ if (t.width) {
70
+ var o = t.width;
71
+ n && (o = a(o, n)), r && (o = i(o, r)), t.width = o, s -= o + m * o, c--;
72
+ } else {
73
+ var o = h;
74
+ n && n < o && (o = a(n, s)), r && r > o && (o = r), o !== h && (t.width = o, s -= o + m * o, c--);
75
+ }
76
+ }), h = (s - p) / (c + (c - 1) * m), h = i(h, 0);
77
+ var g = 0, _;
78
+ t(d, function(e) {
79
+ var t = f[e];
80
+ t.width ||= h, _ = t, g += t.width * (1 + m);
81
+ }), _ && (g -= _.width * m);
82
+ var v = {}, y = -g / 2;
83
+ return t(d, function(e) {
84
+ var t = f[e];
85
+ v[e] = v[e] || {
86
+ bandWidth: r,
87
+ offset: y,
88
+ width: t.width
89
+ }, y += t.width * (1 + m);
90
+ }), v;
91
+ }
92
+ function O(t) {
93
+ return {
94
+ seriesType: t,
95
+ overallReset: function(n) {
96
+ var r = v(t, x);
97
+ d(n, r, function(n) {
98
+ process.env.NODE_ENV !== "production" && e(n instanceof m);
99
+ var i = T(n, t);
100
+ f(n, r, function(e) {
101
+ var t = i.columnMap[w(e)];
102
+ e.getData().setLayout({
103
+ bandWidth: t.bandWidth,
104
+ offset: t.offset,
105
+ size: t.width
106
+ });
107
+ });
108
+ });
109
+ }
110
+ };
111
+ }
112
+ function k(e) {
113
+ return {
114
+ seriesType: e,
115
+ plan: u(),
116
+ reset: function(e) {
117
+ if (h(e)) {
118
+ var t = e.getData(), n = e.coordinateSystem, i = n.getBaseAxis(), a = n.getOtherAxis(i), o = t.getDimensionIndex(t.mapDimension(a.dim)), s = t.getDimensionIndex(t.mapDimension(i.dim)), u = e.get("showBackground", !0), d = t.mapDimension(a.dim), f = t.getCalculationInfo("stackResultDimension"), p = c(t, d) && !!t.getCalculationInfo("stackedOnSeries"), m = a.isHorizontal(), g = a.toGlobalCoord(a.dataToCoord(y(a))), _ = A(e), v = e.get("barMinHeight") || 0, b = f && t.getDimensionIndex(f), x = t.getLayout("size"), S = t.getLayout("offset");
119
+ return { progress: function(e, t) {
120
+ for (var i = e.count, a = _ && l(i * 3), c = _ && u && l(i * 3), d = _ && l(i), f = n.master.getRect(), h = m ? f.width : f.height, y, C = t.getStore(), w = 0; (y = e.next()) != null;) {
121
+ var T = C.get(p ? b : o, y), E = C.get(s, y), D = g, O = void 0;
122
+ p && (O = +T - C.get(o, y));
123
+ var k = void 0, A = void 0, j = void 0, M = void 0;
124
+ if (m) {
125
+ var N = n.dataToPoint([T, E]);
126
+ p && (D = n.dataToPoint([O, E])[0]), k = D, A = N[1] + S, j = N[0] - D, M = x, r(j) < v && (j = (j < 0 ? -1 : 1) * v);
127
+ } else {
128
+ var N = n.dataToPoint([E, T]);
129
+ p && (D = n.dataToPoint([E, O])[1]), k = N[0] + S, A = D, j = x, M = N[1] - D, r(M) < v && (M = (M <= 0 ? -1 : 1) * v);
130
+ }
131
+ _ ? (a[w] = k, a[w + 1] = A, a[w + 2] = m ? j : M, c && (c[w] = m ? f.x : k, c[w + 1] = m ? A : f.y, c[w + 2] = h), d[y] = y) : t.setItemLayout(y, {
132
+ x: k,
133
+ y: A,
134
+ width: j,
135
+ height: M
136
+ }), w += 3;
137
+ }
138
+ _ && t.setLayout({
139
+ largePoints: a,
140
+ largeDataIndices: d,
141
+ largeBackgroundPoints: c,
142
+ valueAxisHorizontal: m
143
+ });
144
+ } };
145
+ }
146
+ }
147
+ };
148
+ }
149
+ function A(e) {
150
+ return e.pipelineContext && e.pipelineContext.large;
151
+ }
152
+ function j(e) {
153
+ return _(v(e, x));
154
+ }
155
+ function M(e) {
156
+ S(e, function() {
157
+ function t(t) {
158
+ var n = v(t, x);
159
+ b(e, n, t, x), g(n, j(t));
160
+ }
161
+ t("bar"), t("pictorialBar");
162
+ });
163
+ }
164
+ //#endregion
165
+ export { O as createCrossSeriesLayoutHandler, k as createProgressiveLayout, M as registerBarGridAxisHandlers };
@@ -0,0 +1,37 @@
1
+ import { map as e } from "../../../zrender/lib/core/util.js";
2
+ import { isDimensionStacked as t } from "../data/helper/dataStackHelper.js";
3
+ import { createFloat32Array as n } from "../util/vendor.js";
4
+ import r from "../chart/helper/createRenderPlanner.js";
5
+ //#region node_modules/echarts/lib/layout/points.js
6
+ function i(i, a) {
7
+ return {
8
+ seriesType: i,
9
+ plan: r(),
10
+ reset: function(r) {
11
+ var i = r.getData(), o = r.coordinateSystem, s = r.pipelineContext, c = a || s.large;
12
+ if (o) {
13
+ var l = e(o.dimensions, function(e) {
14
+ return i.mapDimension(e);
15
+ }).slice(0, 2), u = l.length, d = i.getCalculationInfo("stackResultDimension");
16
+ t(i, l[0]) && (l[0] = d), t(i, l[1]) && (l[1] = d);
17
+ var f = i.getStore(), p = i.getDimensionIndex(l[0]), m = i.getDimensionIndex(l[1]);
18
+ return u && { progress: function(e, t) {
19
+ for (var r = e.end - e.start, i = c && n(r * u), a = [], s = [], l = e.start, d = 0; l < e.end; l++) {
20
+ var h = void 0;
21
+ if (u === 1) {
22
+ var g = f.get(p, l);
23
+ h = o.dataToPoint(g, null, s);
24
+ } else a[0] = f.get(p, l), a[1] = f.get(m, l), h = o.dataToPoint(a, null, s);
25
+ c ? (i[d++] = h[0], i[d++] = h[1]) : t.setItemLayout(l, h.slice());
26
+ }
27
+ c && (t.setLayout("points", i), t.setLayout("pointsRange", {
28
+ start: e.start,
29
+ end: e.end
30
+ }));
31
+ } };
32
+ }
33
+ }
34
+ };
35
+ }
36
+ //#endregion
37
+ export { i as default };
@@ -1,7 +1,7 @@
1
1
  import { defaults as e } from "../../../zrender/lib/core/util.js";
2
- import t from "../../../zrender/lib/graphic/Group.js";
3
- import n from "../../../zrender/lib/graphic/shape/Rect.js";
4
- import r from "../../../zrender/lib/graphic/Text.js";
2
+ import t from "../../../zrender/lib/graphic/shape/Rect.js";
3
+ import n from "../../../zrender/lib/graphic/Text.js";
4
+ import r from "../../../zrender/lib/graphic/Group.js";
5
5
  import i from "../../../zrender/lib/graphic/shape/Arc.js";
6
6
  import a from "../visual/tokens.js";
7
7
  //#region node_modules/echarts/lib/loading/default.js
@@ -21,13 +21,13 @@ function s(s, c) {
21
21
  lineWidth: 5,
22
22
  zlevel: 0
23
23
  });
24
- var l = new t(), u = new n({
24
+ var l = new r(), u = new t({
25
25
  style: { fill: c.maskColor },
26
26
  zlevel: c.zlevel,
27
27
  z: 1e4
28
28
  });
29
29
  l.add(u);
30
- var d = new r({
30
+ var d = new n({
31
31
  style: {
32
32
  text: c.text,
33
33
  fill: c.textColor,
@@ -38,7 +38,7 @@ function s(s, c) {
38
38
  },
39
39
  zlevel: c.zlevel,
40
40
  z: 10001
41
- }), f = new n({
41
+ }), f = new t({
42
42
  style: { fill: "none" },
43
43
  textContent: d,
44
44
  textConfig: {
@@ -1,64 +1,64 @@
1
- import { each as e, indexOf as t, map as n, merge as r } from "../../../zrender/lib/core/util.js";
2
- import { makeInner as i, queryReferringComponents as a } from "../util/model.js";
3
- import { __extends as o } from "../../node_modules/tslib/tslib.es6.js";
4
- import { enableClassManagement as s, isExtendedClass as c, mountExtend as l, parseClassType as u } from "../util/clazz.js";
5
- import { enableSubTypeDefaulter as d, enableTopologicalTravel as f, getUID as p } from "../util/component.js";
6
- import m from "./Model.js";
1
+ import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
2
+ import { each as t, indexOf as n, map as r, merge as i } from "../../../zrender/lib/core/util.js";
3
+ import { enableClassManagement as a, isExtendedClass as o, mountExtend as s, parseClassType as c } from "../util/clazz.js";
4
+ import { makeInner as l, queryReferringComponents as u } from "../util/model.js";
5
+ import d from "./Model.js";
6
+ import { enableSubTypeDefaulter as f, enableTopologicalTravel as p, getUID as m } from "../util/component.js";
7
7
  import { fetchLayoutMode as h, getBoxLayoutParams as g, getLayoutParams as _, mergeLayoutParam as v } from "../util/layout.js";
8
8
  //#region node_modules/echarts/lib/model/Component.js
9
- var y = i(), b = function(e) {
10
- o(t, e);
11
- function t(t, n, r) {
12
- var i = e.call(this, t, n, r) || this;
13
- return i.uid = p("ec_cpt_model"), i;
9
+ var y = l(), b = function(t) {
10
+ e(n, t);
11
+ function n(e, n, r) {
12
+ var i = t.call(this, e, n, r) || this;
13
+ return i.uid = m("ec_cpt_model"), i;
14
14
  }
15
- return t.prototype.init = function(e, t, n) {
15
+ return n.prototype.init = function(e, t, n) {
16
16
  this.mergeDefaultAndTheme(e, n);
17
- }, t.prototype.mergeDefaultAndTheme = function(e, t) {
18
- var n = h(this), i = n ? _(e) : {};
19
- r(e, t.getTheme().get(this.mainType)), r(e, this.getDefaultOption()), n && v(e, i, n);
20
- }, t.prototype.mergeOption = function(e, t) {
21
- r(this.option, e, !0);
17
+ }, n.prototype.mergeDefaultAndTheme = function(e, t) {
18
+ var n = h(this), r = n ? _(e) : {};
19
+ i(e, t.getTheme().get(this.mainType)), i(e, this.getDefaultOption()), n && v(e, r, n);
20
+ }, n.prototype.mergeOption = function(e, t) {
21
+ i(this.option, e, !0);
22
22
  var n = h(this);
23
23
  n && v(this.option, e, n);
24
- }, t.prototype.optionUpdated = function(e, t) {}, t.prototype.getDefaultOption = function() {
24
+ }, n.prototype.optionUpdated = function(e, t) {}, n.prototype.getDefaultOption = function() {
25
25
  var e = this.constructor;
26
- if (!c(e)) return e.defaultOption;
26
+ if (!o(e)) return e.defaultOption;
27
27
  var t = y(this);
28
28
  if (!t.defaultOption) {
29
- for (var n = [], i = e; i;) {
30
- var a = i.prototype.defaultOption;
31
- a && n.push(a), i = i.superClass;
29
+ for (var n = [], r = e; r;) {
30
+ var a = r.prototype.defaultOption;
31
+ a && n.push(a), r = r.superClass;
32
32
  }
33
- for (var o = {}, s = n.length - 1; s >= 0; s--) o = r(o, n[s], !0);
34
- t.defaultOption = o;
33
+ for (var s = {}, c = n.length - 1; c >= 0; c--) s = i(s, n[c], !0);
34
+ t.defaultOption = s;
35
35
  }
36
36
  return t.defaultOption;
37
- }, t.prototype.getReferringComponents = function(e, t) {
37
+ }, n.prototype.getReferringComponents = function(e, t) {
38
38
  var n = e + "Index", r = e + "Id";
39
- return a(this.ecModel, e, {
39
+ return u(this.ecModel, e, {
40
40
  index: this.get(n, !0),
41
41
  id: this.get(r, !0)
42
42
  }, t);
43
- }, t.prototype.getBoxLayoutParams = function() {
43
+ }, n.prototype.getBoxLayoutParams = function() {
44
44
  return g(this, !1);
45
- }, t.prototype.getZLevelKey = function() {
45
+ }, n.prototype.getZLevelKey = function() {
46
46
  return "";
47
- }, t.prototype.setZLevel = function(e) {
47
+ }, n.prototype.setZLevel = function(e) {
48
48
  this.option.zlevel = e;
49
- }, t.protoInitialize = function() {
50
- var e = t.prototype;
49
+ }, n.protoInitialize = function() {
50
+ var e = n.prototype;
51
51
  e.type = "component", e.id = "", e.name = "", e.mainType = "", e.subType = "", e.componentIndex = 0;
52
- }(), t;
53
- }(m);
54
- l(b, m), s(b), d(b), f(b, x);
55
- function x(r) {
52
+ }(), n;
53
+ }(d);
54
+ s(b, d), a(b), f(b), p(b, x);
55
+ function x(e) {
56
56
  var i = [];
57
- return e(b.getClassesByMainType(r), function(e) {
57
+ return t(b.getClassesByMainType(e), function(e) {
58
58
  i = i.concat(e.dependencies || e.prototype.dependencies || []);
59
- }), i = n(i, function(e) {
60
- return u(e).main;
61
- }), r !== "dataset" && t(i, "dataset") <= 0 && i.unshift("dataset"), i;
59
+ }), i = r(i, function(e) {
60
+ return c(e).main;
61
+ }), e !== "dataset" && n(i, "dataset") <= 0 && i.unshift("dataset"), i;
62
62
  }
63
63
  //#endregion
64
64
  export { b as default };