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.
Files changed (159) hide show
  1. package/custom-elements.json +764 -3
  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/components/reke-dialog/reke-dialog.d.ts +19 -0
  9. package/dist/components/reke-dialog/reke-dialog.d.ts.map +1 -1
  10. package/dist/components/reke-dialog/reke-dialog.js +40 -15
  11. package/dist/components/reke-dialog/reke-dialog.styles.d.ts.map +1 -1
  12. package/dist/components/reke-dialog/reke-dialog.styles.js +110 -0
  13. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +52 -1
  14. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -1
  15. package/dist/components/reke-pie-chart/reke-pie-chart.js +181 -42
  16. package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -1
  17. package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +47 -0
  18. package/dist/index.d.ts +2 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +21 -20
  21. package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +50 -0
  22. package/dist/node_modules/echarts/lib/chart/bar/BarView.js +431 -0
  23. package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +65 -0
  24. package/dist/node_modules/echarts/lib/chart/bar/install.js +22 -0
  25. package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +142 -0
  26. package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +99 -0
  27. package/dist/node_modules/echarts/lib/chart/helper/axisSnippets.js +19 -0
  28. package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +50 -0
  29. package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +55 -0
  30. package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -3
  31. package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +24 -0
  32. package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +60 -0
  33. package/dist/node_modules/echarts/lib/chart/line/LineView.js +471 -0
  34. package/dist/node_modules/echarts/lib/chart/line/helper.js +34 -0
  35. package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
  36. package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +59 -0
  37. package/dist/node_modules/echarts/lib/chart/line/poly.js +135 -0
  38. package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +32 -32
  39. package/dist/node_modules/echarts/lib/chart/pie/PieView.js +69 -69
  40. package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +25 -25
  41. package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +16 -16
  42. package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +153 -153
  43. package/dist/node_modules/echarts/lib/component/axis/AxisView.js +13 -13
  44. package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +106 -0
  45. package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +50 -0
  46. package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +20 -20
  47. package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +30 -30
  48. package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +13 -13
  49. package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +114 -0
  50. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
  51. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +15 -0
  52. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +21 -0
  53. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +67 -0
  54. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +75 -0
  55. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +465 -0
  56. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +17 -0
  57. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +55 -0
  58. package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +88 -0
  59. package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +14 -0
  60. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
  61. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
  62. package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +132 -0
  63. package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
  64. package/dist/node_modules/echarts/lib/component/grid/installSimple.js +32 -0
  65. package/dist/node_modules/echarts/lib/component/helper/RoamController.js +172 -0
  66. package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +17 -0
  67. package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +15 -0
  68. package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
  69. package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +31 -31
  70. package/dist/node_modules/echarts/lib/component/legend/LegendView.js +61 -61
  71. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +29 -29
  72. package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +4 -4
  73. package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +105 -105
  74. package/dist/node_modules/echarts/lib/coord/Axis.js +92 -0
  75. package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
  76. package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +76 -0
  77. package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
  78. package/dist/node_modules/echarts/lib/coord/axisDefault.js +124 -0
  79. package/dist/node_modules/echarts/lib/coord/axisHelper.js +123 -14
  80. package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +9 -0
  81. package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +39 -0
  82. package/dist/node_modules/echarts/lib/coord/axisNiceTicks.js +64 -0
  83. package/dist/node_modules/echarts/lib/coord/axisStatistics.js +101 -22
  84. package/dist/node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js +43 -0
  85. package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +151 -5
  86. package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +24 -0
  87. package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +18 -0
  88. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +23 -0
  89. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +69 -0
  90. package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +314 -0
  91. package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +40 -0
  92. package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +43 -12
  93. package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +175 -0
  94. package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +39 -16
  95. package/dist/node_modules/echarts/lib/core/echarts.js +421 -421
  96. package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +30 -0
  97. package/dist/node_modules/echarts/lib/data/SeriesData.js +18 -18
  98. package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +6 -6
  99. package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +59 -0
  100. package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +13 -13
  101. package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +7 -4
  102. package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +40 -8
  103. package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +3 -3
  104. package/dist/node_modules/echarts/lib/data/helper/transform.js +8 -8
  105. package/dist/node_modules/echarts/lib/extension.js +10 -10
  106. package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +10 -10
  107. package/dist/node_modules/echarts/lib/label/labelStyle.js +34 -25
  108. package/dist/node_modules/echarts/lib/label/sectorLabel.js +83 -0
  109. package/dist/node_modules/echarts/lib/layout/barCommon.js +19 -0
  110. package/dist/node_modules/echarts/lib/layout/barGrid.js +165 -0
  111. package/dist/node_modules/echarts/lib/layout/points.js +37 -0
  112. package/dist/node_modules/echarts/lib/loading/default.js +6 -6
  113. package/dist/node_modules/echarts/lib/model/Component.js +39 -39
  114. package/dist/node_modules/echarts/lib/model/Global.js +122 -122
  115. package/dist/node_modules/echarts/lib/model/Series.js +78 -78
  116. package/dist/node_modules/echarts/lib/model/referHelper.js +58 -0
  117. package/dist/node_modules/echarts/lib/processor/dataSample.js +43 -0
  118. package/dist/node_modules/echarts/lib/scale/Interval.js +68 -0
  119. package/dist/node_modules/echarts/lib/scale/Log.js +100 -0
  120. package/dist/node_modules/echarts/lib/scale/Ordinal.js +92 -0
  121. package/dist/node_modules/echarts/lib/scale/Scale.js +13 -0
  122. package/dist/node_modules/echarts/lib/scale/Time.js +242 -0
  123. package/dist/node_modules/echarts/lib/scale/break.js +10 -2
  124. package/dist/node_modules/echarts/lib/scale/helper.js +61 -3
  125. package/dist/node_modules/echarts/lib/scale/minorTicks.js +22 -0
  126. package/dist/node_modules/echarts/lib/scale/scaleMapper.js +89 -7
  127. package/dist/node_modules/echarts/lib/util/clazz.js +35 -35
  128. package/dist/node_modules/echarts/lib/util/component.js +16 -16
  129. package/dist/node_modules/echarts/lib/util/cycleCache.js +4 -1
  130. package/dist/node_modules/echarts/lib/util/decal.js +11 -11
  131. package/dist/node_modules/echarts/lib/util/format.js +1 -1
  132. package/dist/node_modules/echarts/lib/util/graphic.js +170 -170
  133. package/dist/node_modules/echarts/lib/util/layout.js +23 -23
  134. package/dist/node_modules/echarts/lib/util/model.js +128 -68
  135. package/dist/node_modules/echarts/lib/util/number.js +55 -37
  136. package/dist/node_modules/echarts/lib/util/shape/sausage.js +25 -0
  137. package/dist/node_modules/echarts/lib/util/states.js +96 -82
  138. package/dist/node_modules/echarts/lib/util/styleCompat.js +10 -0
  139. package/dist/node_modules/echarts/lib/util/symbol.js +24 -21
  140. package/dist/node_modules/echarts/lib/util/time.js +154 -18
  141. package/dist/node_modules/echarts/lib/util/vendor.js +26 -0
  142. package/dist/node_modules/echarts/lib/view/Chart.js +19 -19
  143. package/dist/node_modules/echarts/lib/view/Component.js +7 -7
  144. package/dist/node_modules/echarts/lib/visual/style.js +5 -5
  145. package/dist/node_modules/zrender/lib/Element.js +35 -35
  146. package/dist/node_modules/zrender/lib/canvas/graphic.js +36 -36
  147. package/dist/node_modules/zrender/lib/core/PathProxy.js +25 -25
  148. package/dist/node_modules/zrender/lib/core/event.js +4 -1
  149. package/dist/node_modules/zrender/lib/core/util.js +69 -64
  150. package/dist/node_modules/zrender/lib/graphic/TSpan.js +7 -7
  151. package/dist/node_modules/zrender/lib/graphic/Text.js +37 -37
  152. package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +59 -59
  153. package/dist/node_modules/zrender/lib/tool/color.js +60 -41
  154. package/dist/react.d.ts +10 -0
  155. package/dist/react.d.ts.map +1 -1
  156. package/dist/react.js +85 -73
  157. package/dist/shared/tailwind.js +1 -1
  158. package/dist/tokens/reke-tokens.css +1 -0
  159. package/package.json +5 -1
@@ -0,0 +1,142 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import { extend as t, retrieve2 as n } from "../../../../zrender/lib/core/util.js";
3
+ import r from "../../../../zrender/lib/graphic/Image.js";
4
+ import { getECData as i } from "../../util/innerStore.js";
5
+ import { enterEmphasis as a, leaveEmphasis as o, toggleHoverEmphasis as s } from "../../util/states.js";
6
+ import c from "../../../../zrender/lib/graphic/Group.js";
7
+ import { initProps as l, removeElement as u, saveOldStyle as d, updateProps as f } from "../../animation/basicTransition.js";
8
+ import { getLabelStatesModels as p, setLabelStyle as m } from "../../label/labelStyle.js";
9
+ import { createSymbol as h, normalizeSymbolOffset as g, normalizeSymbolSize as _ } from "../../util/symbol.js";
10
+ import { getDefaultLabel as v } from "./labelHelper.js";
11
+ //#region node_modules/echarts/lib/chart/helper/Symbol.js
12
+ var y = function(c) {
13
+ e(y, c);
14
+ function y(e, t, n, r) {
15
+ var i = c.call(this) || this;
16
+ return i.updateData(e, t, n, r), i;
17
+ }
18
+ return y.prototype._createSymbol = function(e, t, r, i, a, o) {
19
+ this.removeAll();
20
+ var s = h(e, -1, -1, 2, 2, null, o);
21
+ s.attr({
22
+ z2: n(a, 100),
23
+ culling: !0,
24
+ scaleX: i[0] / 2,
25
+ scaleY: i[1] / 2
26
+ }), s.drift = b, this._symbolType = e, this.add(s);
27
+ }, y.prototype.stopSymbolAnimation = function(e) {
28
+ this.childAt(0).stopAnimation(null, e);
29
+ }, y.prototype.getSymbolType = function() {
30
+ return this._symbolType;
31
+ }, y.prototype.getSymbolPath = function() {
32
+ return this.childAt(0);
33
+ }, y.prototype.highlight = function() {
34
+ a(this.childAt(0));
35
+ }, y.prototype.downplay = function() {
36
+ o(this.childAt(0));
37
+ }, y.prototype.setZ = function(e, t) {
38
+ var n = this.childAt(0);
39
+ n.zlevel = e, n.z = t;
40
+ }, y.prototype.setDraggable = function(e, t) {
41
+ var n = this.childAt(0);
42
+ n.draggable = e, n.cursor = !t && e ? "move" : n.cursor;
43
+ }, y.prototype.updateData = function(e, t, n, r) {
44
+ this.silent = !1;
45
+ var i = e.getItemVisual(t, "symbol") || "circle", a = e.hostModel, o = y.getSymbolSize(e, t), s = y.getSymbolZ2(e, t), c = i !== this._symbolType, u = r && r.disableAnimation;
46
+ if (c) {
47
+ var p = e.getItemVisual(t, "symbolKeepAspect");
48
+ this._createSymbol(i, e, t, o, s, p);
49
+ } else {
50
+ var m = this.childAt(0);
51
+ m.silent = !1;
52
+ var h = {
53
+ scaleX: o[0] / 2,
54
+ scaleY: o[1] / 2
55
+ };
56
+ u ? m.attr(h) : f(m, h, a, t), d(m);
57
+ }
58
+ if (this._updateCommon(e, t, o, n, r), c) {
59
+ var m = this.childAt(0);
60
+ if (!u) {
61
+ var h = {
62
+ scaleX: this._sizeX,
63
+ scaleY: this._sizeY,
64
+ style: { opacity: m.style.opacity }
65
+ };
66
+ m.scaleX = m.scaleY = 0, m.style.opacity = 0, l(m, h, a, t);
67
+ }
68
+ }
69
+ u && this.childAt(0).stopAnimation("leave");
70
+ }, y.prototype._updateCommon = function(e, n, i, a, o) {
71
+ var c = this.childAt(0), l = e.hostModel, u, d, f, h, _, y, b, x, S;
72
+ if (a && (u = a.emphasisItemStyle, d = a.blurItemStyle, f = a.selectItemStyle, h = a.focus, _ = a.blurScope, b = a.labelStatesModels, x = a.hoverScale, S = a.cursorStyle, y = a.emphasisDisabled), !a || e.hasItemOption) {
73
+ var C = a && a.itemModel ? a.itemModel : e.getItemModel(n), w = C.getModel("emphasis");
74
+ u = w.getModel("itemStyle").getItemStyle(), f = C.getModel(["select", "itemStyle"]).getItemStyle(), d = C.getModel(["blur", "itemStyle"]).getItemStyle(), h = w.get("focus"), _ = w.get("blurScope"), y = w.get("disabled"), b = p(C), x = w.getShallow("scale"), S = C.getShallow("cursor");
75
+ }
76
+ var T = e.getItemVisual(n, "symbolRotate");
77
+ c.attr("rotation", (T || 0) * Math.PI / 180 || 0);
78
+ var E = g(e.getItemVisual(n, "symbolOffset"), i);
79
+ E && (c.x = E[0], c.y = E[1]), S && c.attr("cursor", S);
80
+ var D = e.getItemVisual(n, "style"), O = D.fill;
81
+ if (c instanceof r) {
82
+ var k = c.style;
83
+ c.useStyle(t({
84
+ image: k.image,
85
+ x: k.x,
86
+ y: k.y,
87
+ width: k.width,
88
+ height: k.height
89
+ }, D));
90
+ } else c.__isEmptyBrush ? c.useStyle(t({}, D)) : c.useStyle(D), c.style.decal = null, c.setColor(O, o && o.symbolInnerColor), c.style.strokeNoScale = !0;
91
+ var A = e.getItemVisual(n, "liftZ"), j = this._z2;
92
+ A == null ? j != null && (c.z2 = j, this._z2 = null) : j ?? (this._z2 = c.z2, c.z2 += A);
93
+ var M = o && o.useNameLabel;
94
+ m(c, b, {
95
+ labelFetcher: l,
96
+ labelDataIndex: n,
97
+ defaultText: N,
98
+ inheritColor: O,
99
+ defaultOpacity: D.opacity
100
+ });
101
+ function N(t) {
102
+ return M ? e.getName(t) : v(e, t);
103
+ }
104
+ this._sizeX = i[0] / 2, this._sizeY = i[1] / 2;
105
+ var P = c.ensureState("emphasis");
106
+ P.style = u, c.ensureState("select").style = f, c.ensureState("blur").style = d;
107
+ var F = x == null || x === !0 ? Math.max(1.1, 3 / this._sizeY) : isFinite(x) && x > 0 ? +x : 1;
108
+ P.scaleX = this._sizeX * F, P.scaleY = this._sizeY * F, this.setSymbolScale(1), s(this, h, _, y);
109
+ }, y.prototype.setSymbolScale = function(e) {
110
+ this.scaleX = this.scaleY = e;
111
+ }, y.prototype.fadeOut = function(e, t, n) {
112
+ var r = this.childAt(0), a = i(this).dataIndex, o = n && n.animation;
113
+ if (this.silent = r.silent = !0, n && n.fadeLabel) {
114
+ var s = r.getTextContent();
115
+ s && u(s, { style: { opacity: 0 } }, t, {
116
+ dataIndex: a,
117
+ removeOpt: o,
118
+ cb: function() {
119
+ r.removeTextContent();
120
+ }
121
+ });
122
+ } else r.removeTextContent();
123
+ u(r, {
124
+ style: { opacity: 0 },
125
+ scaleX: 0,
126
+ scaleY: 0
127
+ }, t, {
128
+ dataIndex: a,
129
+ cb: e,
130
+ removeOpt: o
131
+ });
132
+ }, y.getSymbolSize = function(e, t) {
133
+ return _(e.getItemVisual(t, "symbolSize"));
134
+ }, y.getSymbolZ2 = function(e, t) {
135
+ return e.getItemVisual(t, "z2");
136
+ }, y;
137
+ }(c);
138
+ function b(e, t) {
139
+ this.parent.drift(e, t);
140
+ }
141
+ //#endregion
142
+ export { y as default };
@@ -0,0 +1,99 @@
1
+ import { isObject as e } from "../../../../zrender/lib/core/util.js";
2
+ import t from "../../../../zrender/lib/graphic/Group.js";
3
+ import { updateProps as n } from "../../animation/basicTransition.js";
4
+ import { traverseElements as r } from "../../util/graphic.js";
5
+ import { getLabelStatesModels as i } from "../../label/labelStyle.js";
6
+ import a from "./Symbol.js";
7
+ //#region node_modules/echarts/lib/chart/helper/SymbolDraw.js
8
+ function o(e, t, n, r) {
9
+ return t && !isNaN(t[0]) && !isNaN(t[1]) && !(r && r.isIgnore && r.isIgnore(n)) && !(r && r.clipShape && !r.clipShape.contain(t[0], t[1])) && e.getItemVisual(n, "symbol") !== "none";
10
+ }
11
+ function s(t) {
12
+ return t != null && !e(t) && (t = { isIgnore: t }), t || {};
13
+ }
14
+ function c(e) {
15
+ var t = e.hostModel, n = t.getModel("emphasis");
16
+ return {
17
+ emphasisItemStyle: n.getModel("itemStyle").getItemStyle(),
18
+ blurItemStyle: t.getModel(["blur", "itemStyle"]).getItemStyle(),
19
+ selectItemStyle: t.getModel(["select", "itemStyle"]).getItemStyle(),
20
+ focus: n.get("focus"),
21
+ blurScope: n.get("blurScope"),
22
+ emphasisDisabled: n.get("disabled"),
23
+ hoverScale: n.get("scale"),
24
+ labelStatesModels: i(t),
25
+ cursorStyle: t.get("cursor")
26
+ };
27
+ }
28
+ function l(e, t, n, r, i, a, o) {
29
+ var s = new e(t, n, r, i);
30
+ return s.setPosition(a), t.setItemGraphicEl(n, s), o.add(s), s;
31
+ }
32
+ var u = function() {
33
+ function e(e) {
34
+ this.group = new t(), this._SymbolCtor = e || a;
35
+ }
36
+ return e.prototype.updateData = function(e, t) {
37
+ this._progressiveEls = null, t = s(t);
38
+ var r = this.group, i = e.hostModel, a = this._data, u = this._SymbolCtor, d = t.disableAnimation, f = this._seriesScope = c(e), p = { disableAnimation: d }, m = t.getSymbolPoint || function(t) {
39
+ return e.getItemLayout(t);
40
+ };
41
+ a || r.removeAll(), e.diff(a).add(function(n) {
42
+ var i = m(n);
43
+ o(e, i, n, t) && l(u, e, n, f, p, i, r);
44
+ }).update(function(s, c) {
45
+ var l = a.getItemGraphicEl(c), h = m(s);
46
+ if (!o(e, h, s, t)) {
47
+ r.remove(l);
48
+ return;
49
+ }
50
+ var g = e.getItemVisual(s, "symbol") || "circle", _ = l && l.getSymbolType && l.getSymbolType();
51
+ if (!l || _ && _ !== g) r.remove(l), l = new u(e, s, f, p), l.setPosition(h);
52
+ else {
53
+ l.updateData(e, s, f, p);
54
+ var v = {
55
+ x: h[0],
56
+ y: h[1]
57
+ };
58
+ d ? l.attr(v) : n(l, v, i);
59
+ }
60
+ r.add(l), e.setItemGraphicEl(s, l);
61
+ }).remove(function(e) {
62
+ var t = a.getItemGraphicEl(e);
63
+ t && t.fadeOut(function() {
64
+ r.remove(t);
65
+ }, i);
66
+ }).execute(), this._getSymbolPoint = m, this._data = e;
67
+ }, e.prototype.updateLayout = function(e) {
68
+ var t = this._data;
69
+ if (t) for (var n = this, r = t.getStore(), i = 0, a = r.count(); i < a; i++) {
70
+ var s = t.getItemGraphicEl(i), c = n._getSymbolPoint(i);
71
+ o(t, c, i, e) ? (s ||= l(n._SymbolCtor, t, i, n._seriesScope, { disableAnimation: !0 }, c, n.group), s.stopAnimation(), s.setPosition(c), s.markRedraw()) : s && (n.group.remove(s), t.setItemGraphicEl(i, null));
72
+ }
73
+ }, e.prototype.incrementalPrepareUpdate = function(e) {
74
+ this._seriesScope = c(e), this._data = null, this.group.removeAll();
75
+ }, e.prototype.incrementalUpdate = function(e, t, n, r) {
76
+ this._progressiveEls = [], r = s(r);
77
+ function i(e) {
78
+ e.isGroup || (e.incremental = n, e.ensureState("emphasis").hoverLayer = 2);
79
+ }
80
+ for (var a = e.start; a < e.end; a++) {
81
+ var c = t.getItemLayout(a);
82
+ if (o(t, c, a, r)) {
83
+ var l = new this._SymbolCtor(t, a, this._seriesScope);
84
+ l.traverse(i), l.setPosition(c), this.group.add(l), t.setItemGraphicEl(a, l), this._progressiveEls.push(l);
85
+ }
86
+ }
87
+ }, e.prototype.eachRendered = function(e) {
88
+ r(this._progressiveEls || this.group, e);
89
+ }, e.prototype.remove = function(e) {
90
+ var t = this.group, n = this._data;
91
+ n && e ? n.eachItemGraphicEl(function(e) {
92
+ e.fadeOut(function() {
93
+ t.remove(e);
94
+ }, n.hostModel);
95
+ }) : t.removeAll();
96
+ }, e;
97
+ }();
98
+ //#endregion
99
+ export { u as default };
@@ -0,0 +1,19 @@
1
+ import { isNullableNumberFinite as e } from "../../util/number.js";
2
+ import { isOrdinalScale as t } from "../../scale/helper.js";
3
+ import { calcBandWidth as n } from "../../coord/axisBand.js";
4
+ import { registerMetricImplLiPosMinGap as r } from "../../coord/axisStatisticsMetricsImpl.js";
5
+ //#region node_modules/echarts/lib/chart/helper/axisSnippets.js
6
+ function i(t) {
7
+ return function(r, i) {
8
+ var a = n(r, { fromStat: { key: t } });
9
+ if (e(a.w2)) return [-a.w2 / 2, a.w2 / 2];
10
+ };
11
+ }
12
+ function a(e, t) {
13
+ return e + "|&" + t;
14
+ }
15
+ function o(e) {
16
+ return r(), { liPosMinGap: !t(e.scale) };
17
+ }
18
+ //#endregion
19
+ export { i as createBandWidthBasedAxisContainShapeHandler, o as createMetricsNonOrdinalLinearPositiveMinGap, a as makeAxisStatKey2 };
@@ -0,0 +1,50 @@
1
+ import { isFunction as e } from "../../../../zrender/lib/core/util.js";
2
+ import t from "../../../../zrender/lib/graphic/shape/Rect.js";
3
+ import { round as n } from "../../util/number.js";
4
+ import r from "../../../../zrender/lib/graphic/shape/Sector.js";
5
+ import { initProps as i } from "../../animation/basicTransition.js";
6
+ //#region node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js
7
+ function a(n, r, a, o, s) {
8
+ var c = n.getArea(), l = c.x, u = c.y, d = c.width, f = c.height, p = a.get(["lineStyle", "width"]) || 0;
9
+ l -= p / 2, u -= p / 2, d += p, f += p, d = Math.ceil(d), l !== Math.floor(l) && (l = Math.floor(l), d++);
10
+ var m = new t({ shape: {
11
+ x: l,
12
+ y: u,
13
+ width: d,
14
+ height: f
15
+ } });
16
+ if (r) {
17
+ var h = n.getBaseAxis(), g = h.isHorizontal(), _ = h.inverse;
18
+ g ? (_ && (m.shape.x += d), m.shape.width = 0) : (_ || (m.shape.y += f), m.shape.height = 0);
19
+ var v = e(s) ? function(e) {
20
+ s(e, m);
21
+ } : null;
22
+ i(m, { shape: {
23
+ width: d,
24
+ height: f,
25
+ x: l,
26
+ y: u
27
+ } }, a, null, o, v);
28
+ }
29
+ return m;
30
+ }
31
+ function o(e, t, a) {
32
+ var o = e.getArea(), s = n(o.r0, 1), c = n(o.r, 1), l = new r({ shape: {
33
+ cx: n(e.cx, 1),
34
+ cy: n(e.cy, 1),
35
+ r0: s,
36
+ r: c,
37
+ startAngle: o.startAngle,
38
+ endAngle: o.endAngle,
39
+ clockwise: o.clockwise
40
+ } });
41
+ return t && (e.getBaseAxis().dim === "angle" ? l.shape.endAngle = o.startAngle : l.shape.r = s, i(l, { shape: {
42
+ endAngle: o.endAngle,
43
+ r: c
44
+ } }, a)), l;
45
+ }
46
+ function s(e, t, n, r, i) {
47
+ return e ? e.type === "polar" ? o(e, t, n) : e.type === "cartesian2d" ? a(e, t, n, r, i) : null : null;
48
+ }
49
+ //#endregion
50
+ export { s as createClipPath, a as createGridClipPath, o as createPolarClipPath };
@@ -0,0 +1,55 @@
1
+ import { curry as e, each as t, isArray as n, isFunction as r, map as i } from "../../../../zrender/lib/core/util.js";
2
+ import { getDataItemValue as a } from "../../util/model.js";
3
+ import { SOURCE_FORMAT_ORIGINAL as o } from "../../util/types.js";
4
+ import { makeSeriesEncodeForAxisCoordSys as s } from "../../data/helper/sourceHelper.js";
5
+ import { createSourceFromSeriesDataOption as c } from "../../data/Source.js";
6
+ import { getDimensionTypeByAxis as l } from "../../data/helper/dimensionHelper.js";
7
+ import u from "../../data/SeriesData.js";
8
+ import d from "../../data/helper/createDimensions.js";
9
+ import f from "../../core/CoordinateSystem.js";
10
+ import { getCoordSysInfoBySeries as p } from "../../model/referHelper.js";
11
+ import { enableDataStack as m } from "../../data/helper/dataStackHelper.js";
12
+ //#region node_modules/echarts/lib/chart/helper/createSeriesData.js
13
+ function h(e, t) {
14
+ var n = e.get("coordinateSystem"), r = f.get(n), a;
15
+ return t && t.coordSysDims && (a = i(t.coordSysDims, function(e) {
16
+ var n = { name: e }, r = t.axisMap.get(e);
17
+ return r && (n.type = l(r.get("type"))), n;
18
+ })), a ||= r && (r.getDimensionsInfo ? r.getDimensionsInfo() : r.dimensions.slice()) || ["x", "y"], a;
19
+ }
20
+ function g(e, n, r) {
21
+ var i, a;
22
+ return r && t(e, function(e, t) {
23
+ var o = e.coordDim, s = r.categoryAxisMap.get(o);
24
+ s && (i ??= t, e.ordinalMeta = s.getOrdinalMeta(), n && (e.createInvertedIndices = !0)), e.otherDims.itemName != null && (a = !0);
25
+ }), !a && i != null && (e[i].otherDims.itemName = 0), i;
26
+ }
27
+ function _(t, n, i) {
28
+ i ||= {};
29
+ var a = n.getSourceManager(), l, f = !1;
30
+ t ? (f = !0, l = c(t)) : (l = a.getSource(), f = l.sourceFormat === o);
31
+ var _ = p(n), y = h(n, _), b = i.useEncodeDefaulter, x = r(b) ? b : b ? e(s, y, n) : null, S = {
32
+ coordDimensions: y,
33
+ generateCoord: i.generateCoord,
34
+ encodeDefine: n.getEncode(),
35
+ encodeDefaulter: x,
36
+ canOmitUnusedDimensions: !f
37
+ }, C = d(l, S), w = g(C.dimensions, i.createInvertedIndices, _), T = f ? null : a.getSharedDataStore(C), E = m(n, {
38
+ schema: C,
39
+ store: T
40
+ }), D = new u(C, n);
41
+ D.setCalculationInfo(E);
42
+ var O = w != null && v(l) ? function(e, t, n, r) {
43
+ return r === w ? n : this.defaultDimValueGetter(e, t, n, r);
44
+ } : null;
45
+ return D.hasItemOption = !1, D.initData(f ? l : T, null, O), D;
46
+ }
47
+ function v(e) {
48
+ if (e.sourceFormat === "original") return !n(a(y(e.data || [])));
49
+ }
50
+ function y(e) {
51
+ for (var t = 0; t < e.length && e[t] == null;) t++;
52
+ return e[t];
53
+ }
54
+ //#endregion
55
+ export { _ as default };
@@ -1,10 +1,10 @@
1
1
  import { extend as e, isArray as t } from "../../../../zrender/lib/core/util.js";
2
- import n from "../../data/helper/createDimensions.js";
3
- import r from "../../data/SeriesData.js";
2
+ import n from "../../data/SeriesData.js";
3
+ import r from "../../data/helper/createDimensions.js";
4
4
  //#region node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js
5
5
  function i(i, a, o) {
6
6
  a = t(a) && { coordDimensions: a } || e({ encodeDefine: i.getEncode() }, a);
7
- var s = i.getSource(), c = n(s, a).dimensions, l = new r(c, i);
7
+ var s = i.getSource(), c = r(s, a).dimensions, l = new n(c, i);
8
8
  return l.initData(s, o), l;
9
9
  }
10
10
  //#endregion
@@ -0,0 +1,24 @@
1
+ import { isArray as e } from "../../../../zrender/lib/core/util.js";
2
+ import { retrieveRawValue as t } from "../../data/helper/dataProvider.js";
3
+ //#region node_modules/echarts/lib/chart/helper/labelHelper.js
4
+ function n(e, n) {
5
+ var r = e.mapDimensionsAll("defaultedLabel"), i = r.length;
6
+ if (i === 1) {
7
+ var a = t(e, n, r[0]);
8
+ return a == null ? null : a + "";
9
+ } else if (i) {
10
+ for (var o = [], s = 0; s < r.length; s++) o.push(t(e, n, r[s]));
11
+ return o.join(" ");
12
+ }
13
+ }
14
+ function r(t, n) {
15
+ var r = t.mapDimensionsAll("defaultedLabel");
16
+ if (!e(n)) return n + "";
17
+ for (var i = [], a = 0; a < r.length; a++) {
18
+ var o = t.getDimensionIndex(r[a]);
19
+ o >= 0 && i.push(n[o]);
20
+ }
21
+ return i.join(" ");
22
+ }
23
+ //#endregion
24
+ export { r as getDefaultInterpolatedLabel, n as getDefaultLabel };
@@ -0,0 +1,60 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import t from "../../../../zrender/lib/graphic/Group.js";
3
+ import n from "../helper/createSeriesData.js";
4
+ import r from "../../visual/tokens.js";
5
+ import i from "../../model/Series.js";
6
+ import { createSymbol as a } from "../../util/symbol.js";
7
+ //#region node_modules/echarts/lib/chart/line/LineSeries.js
8
+ var o = function(i) {
9
+ e(o, i);
10
+ function o() {
11
+ var e = i !== null && i.apply(this, arguments) || this;
12
+ return e.type = o.type, e.hasSymbolVisual = !0, e;
13
+ }
14
+ return o.prototype.getInitialData = function(e) {
15
+ if (process.env.NODE_ENV !== "production") {
16
+ var t = e.coordinateSystem;
17
+ if (t !== "polar" && t !== "cartesian2d") throw Error("Line not support coordinateSystem besides cartesian and polar");
18
+ }
19
+ return n(null, this, { useEncodeDefaulter: !0 });
20
+ }, o.prototype.getLegendIcon = function(e) {
21
+ var n = new t(), i = a("line", 0, e.itemHeight / 2, e.itemWidth, 0, e.lineStyle.stroke, !1);
22
+ n.add(i), i.setStyle(e.lineStyle);
23
+ var o = this.getData().getVisual("symbol"), s = this.getData().getVisual("symbolRotate"), c = o === "none" ? "circle" : o, l = e.itemHeight * .8, u = a(c, (e.itemWidth - l) / 2, (e.itemHeight - l) / 2, l, l, e.itemStyle.fill);
24
+ return n.add(u), u.setStyle(e.itemStyle), u.rotation = (e.iconRotate === "inherit" ? s : e.iconRotate || 0) * Math.PI / 180, u.setOrigin([e.itemWidth / 2, e.itemHeight / 2]), c.indexOf("empty") > -1 && (u.style.stroke = u.style.fill, u.style.fill = r.color.neutral00, u.style.lineWidth = 2), n;
25
+ }, o.type = "series.line", o.dependencies = ["grid", "polar"], o.defaultOption = {
26
+ z: 3,
27
+ coordinateSystem: "cartesian2d",
28
+ legendHoverLink: !0,
29
+ clip: !0,
30
+ label: { position: "top" },
31
+ endLabel: {
32
+ show: !1,
33
+ valueAnimation: !0,
34
+ distance: 8
35
+ },
36
+ lineStyle: {
37
+ width: 2,
38
+ type: "solid"
39
+ },
40
+ emphasis: { scale: !0 },
41
+ step: !1,
42
+ smooth: !1,
43
+ smoothMonotone: null,
44
+ symbol: "emptyCircle",
45
+ symbolSize: 6,
46
+ symbolRotate: null,
47
+ showSymbol: !0,
48
+ showAllSymbol: "auto",
49
+ connectNulls: !1,
50
+ sampling: "none",
51
+ animationEasing: "linear",
52
+ progressive: 0,
53
+ hoverLayerThreshold: Infinity,
54
+ universalTransition: { divideShape: "clone" },
55
+ triggerLineEvent: !1,
56
+ triggerEvent: !1
57
+ }, o;
58
+ }(i);
59
+ //#endregion
60
+ export { o as default };