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
@@ -0,0 +1,242 @@
1
+ import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
2
+ import { each as t, filter as n, indexOf as r, isNumber as i, map as a } from "../../../zrender/lib/core/util.js";
3
+ import { mathMax as o, nice as s, parseDate as c } from "../util/number.js";
4
+ import { warn as l } from "../util/log.js";
5
+ import { removeDuplicates as u, removeDuplicatesGetKeyFromValueProp as d } from "../util/model.js";
6
+ import { getBreaksUnsafe as f, getScaleBreakHelper as p, simplyParseBreakOption as m } from "./break.js";
7
+ import { ONE_DAY as h, ONE_HOUR as g, ONE_MINUTE as _, ONE_SECOND as v, ONE_YEAR as y, dateGetterName as ee, dateSetterName as b, format as x, fullLeveledFormatter as S, fullYearGetterName as C, fullYearSetterName as w, getDefaultFormatPrecisionOfInterval as T, getPrimaryTimeUnit as E, getUnitFromValue as D, hoursGetterName as te, hoursSetterName as O, isPrimaryTimeUnit as k, leveledFormat as A, millisecondsGetterName as j, millisecondsSetterName as M, minutesGetterName as N, minutesSetterName as P, monthGetterName as F, monthSetterName as ne, primaryTimeUnits as I, roundTime as L, secondsGetterName as R, secondsSetterName as z, timeUnits as B } from "../util/time.js";
8
+ import V from "./Scale.js";
9
+ import { getScaleExtentForTickUnsafe as H, getScaleLinearSpanEffective as U, initBreakOrLinearMapper as W } from "./scaleMapper.js";
10
+ import { ensureValidSplitNumber as G } from "./helper.js";
11
+ import { getMinorTicks as K } from "./minorTicks.js";
12
+ //#region node_modules/echarts/lib/scale/Time.js
13
+ var q = function(e, t, n, r) {
14
+ for (; n < r;) {
15
+ var i = n + r >>> 1;
16
+ e[i][1] < t ? n = i + 1 : r = i;
17
+ }
18
+ return n;
19
+ }, J = function(n) {
20
+ e(a, n);
21
+ function a(e) {
22
+ var t = n.call(this) || this;
23
+ return t.type = "time", t.parse = a.parse, t._locale = e.locale, t._useUTC = e.useUTC, t._interval = 0, t.brk = W(t, m(t, e), null).brk, t;
24
+ }
25
+ return a.prototype.getLabel = function(e) {
26
+ return x(e.value, S[T(E(this._minLevelUnit))] || S.second, this._useUTC, this._locale);
27
+ }, a.prototype.getFormattedLabel = function(e, t, n) {
28
+ return A(e, t, n, this._locale, this._useUTC);
29
+ }, a.prototype.getTicks = function(e) {
30
+ e ||= {};
31
+ var n = this._interval, i = H(this), a = p(), o = this.brk, s = a && o, c = [];
32
+ if (!n) return c;
33
+ var l = this._useUTC;
34
+ if (s && e.breakTicks === "only_break") return p().addBreaksToTicks(c, o.breaks, i), c;
35
+ c = $(this._minLevelUnit, this._approxInterval, l, i, U(this), o);
36
+ var u = I.length - 1, d = 0;
37
+ return t(c, function(e) {
38
+ e.time && (u = Math.min(u, r(I, e.time.upperTimeUnit)), d = Math.max(d, e.time.level));
39
+ }), s && p().pruneTicksByBreak(e.pruneByBreak, c, o.breaks, function(e) {
40
+ return e.value;
41
+ }, this._approxInterval, i), s && e.breakTicks !== "none" && p().addBreaksToTicks(c, o.breaks, i, function(e) {
42
+ for (var t = Math.max(r(I, D(e.vmin, l)), r(I, D(e.vmax, l))), n = 0, i = 0; i < I.length; i++) if (!X(I[i], e.vmin, e.vmax, l)) {
43
+ n = i;
44
+ break;
45
+ }
46
+ var a = Math.min(n, u);
47
+ return {
48
+ level: d,
49
+ lowerTimeUnit: I[Math.max(a, t)],
50
+ upperTimeUnit: I[a]
51
+ };
52
+ }), c;
53
+ }, a.prototype.getMinorTicks = function(e) {
54
+ return K(this, e, f(this), this._interval);
55
+ }, a.prototype.setTimeInterval = function(e) {
56
+ this._interval = e.interval, this._approxInterval = e.approxInterval, this._minLevelUnit = e.minLevelUnit;
57
+ }, a.parse = function(e) {
58
+ return i(e) ? Math.round(e) : +c(e);
59
+ }, a.type = "time", a;
60
+ }(V), Y = [
61
+ ["second", v],
62
+ ["minute", _],
63
+ ["hour", g],
64
+ ["quarter-day", g * 6],
65
+ ["half-day", g * 12],
66
+ ["day", h * 1.2],
67
+ ["half-week", h * 3.5],
68
+ ["week", h * 7],
69
+ ["month", h * 31],
70
+ ["quarter", h * 95],
71
+ ["half-year", y / 2],
72
+ ["year", y]
73
+ ];
74
+ function X(e, t, n, r) {
75
+ return L(new Date(t), e, r).getTime() === L(new Date(n), e, r).getTime();
76
+ }
77
+ function Z(e, t) {
78
+ return e /= h, e > 16 ? 16 : e > 7.5 ? 7 : e > 3.5 ? 4 : e > 1.5 ? 2 : 1;
79
+ }
80
+ function re(e) {
81
+ var t = 30 * h;
82
+ return e /= t, e > 6 ? 6 : e > 3 ? 3 : e > 2 ? 2 : 1;
83
+ }
84
+ function ie(e) {
85
+ return e /= g, e > 12 ? 12 : e > 6 ? 6 : e > 3.5 ? 4 : e > 2 ? 2 : 1;
86
+ }
87
+ function Q(e, t) {
88
+ return e /= t ? _ : v, e > 30 ? 30 : e > 20 ? 20 : e > 15 ? 15 : e > 10 ? 10 : e > 5 ? 5 : e > 2 ? 2 : 1;
89
+ }
90
+ function ae(e) {
91
+ return o(s(e, !0), 1);
92
+ }
93
+ function oe(e, t, n) {
94
+ var i = Math.max(0, r(I, t) - 1);
95
+ return L(new Date(e), I[i], n).getTime();
96
+ }
97
+ function se(e, t) {
98
+ var n = /* @__PURE__ */ new Date(0);
99
+ n[e](1);
100
+ var r = n.getTime();
101
+ n[e](1 + t);
102
+ var i = n.getTime() - r;
103
+ return function(e, t) {
104
+ return Math.max(0, Math.round((t - e) / i));
105
+ };
106
+ }
107
+ function $(e, t, r, i, o, s) {
108
+ var c = B, f = 0;
109
+ function p(e, t, n, r, a, o, c) {
110
+ for (var u = se(a, e), d = t, p = new Date(d); d < n && d <= i[1];) {
111
+ if (c.push({ value: d }), f++ > 3e3) {
112
+ process.env.NODE_ENV !== "production" && l("Exceed safe limit in TimeScale[\"getTicks\"].");
113
+ break;
114
+ }
115
+ if (p[a](p[r]() + e), d = p.getTime(), s) {
116
+ var m = s.calcNiceTickMultiple(d, u);
117
+ m > 0 && (p[a](p[r]() + m * e), d = p.getTime());
118
+ }
119
+ }
120
+ c.push({
121
+ value: d,
122
+ notAdd: d > i[1]
123
+ });
124
+ }
125
+ function m(e, n, a) {
126
+ var o = [], s = !n.length;
127
+ if (!X(E(e), i[0], i[1], r)) {
128
+ s && (n = [{ value: oe(i[0], e, r) }, { value: i[1] }]);
129
+ for (var c = 0; c < n.length - 1; c++) {
130
+ var l = n[c].value, u = n[c + 1].value;
131
+ if (l !== u) {
132
+ var d = void 0, f = void 0, m = void 0, g = !1;
133
+ switch (e) {
134
+ case "year":
135
+ d = Math.max(1, Math.round(t / h / 365)), f = C(r), m = w(r);
136
+ break;
137
+ case "half-year":
138
+ case "quarter":
139
+ case "month":
140
+ d = re(t), f = F(r), m = ne(r);
141
+ break;
142
+ case "week":
143
+ case "half-week":
144
+ case "day":
145
+ d = Z(t, 31), f = ee(r), m = b(r), g = !0;
146
+ break;
147
+ case "half-day":
148
+ case "quarter-day":
149
+ case "hour":
150
+ d = ie(t), f = te(r), m = O(r);
151
+ break;
152
+ case "minute":
153
+ d = Q(t, !0), f = N(r), m = P(r);
154
+ break;
155
+ case "second":
156
+ d = Q(t, !1), f = R(r), m = z(r);
157
+ break;
158
+ case "millisecond":
159
+ d = ae(t), f = j(r), m = M(r);
160
+ break;
161
+ }
162
+ u >= i[0] && l <= i[1] && p(d, l, u, f, m, g, o), e === "year" && a.length > 1 && c === 0 && a.unshift({ value: a[0].value - d });
163
+ }
164
+ }
165
+ for (var c = 0; c < o.length; c++) a.push(o[c]);
166
+ }
167
+ }
168
+ for (var g = [], _ = [], v = 0, y = 0, x = 0; x < c.length; ++x) {
169
+ var S = E(c[x]);
170
+ if (k(c[x]) && (m(c[x], g[g.length - 1] || [], _), S !== (c[x + 1] ? E(c[x + 1]) : null))) {
171
+ if (_.length) {
172
+ y = v, _.sort(function(e, t) {
173
+ return e.value - t.value;
174
+ });
175
+ for (var T = [], A = 0; A < _.length; ++A) {
176
+ var I = _[A].value;
177
+ (A === 0 || _[A - 1].value !== I) && (T.push(_[A]), I >= i[0] && I <= i[1] && v++);
178
+ }
179
+ var L = o / t;
180
+ if (v > L * 1.5 && y > L / 1.5 || (g.push(T), v > L || e === c[x])) break;
181
+ }
182
+ _ = [];
183
+ }
184
+ }
185
+ for (var V = n(a(g, function(e) {
186
+ return n(e, function(e) {
187
+ return e.value >= i[0] && e.value <= i[1] && !e.notAdd;
188
+ });
189
+ }), function(e) {
190
+ return e.length > 0;
191
+ }), H = V.length - 1, U = [], x = 0; x < V.length; ++x) for (var W = V[x], G = 0; G < W.length; ++G) {
192
+ var K = D(W[G].value, r);
193
+ U.push({
194
+ value: W[G].value,
195
+ time: {
196
+ level: H - x,
197
+ upperTimeUnit: K,
198
+ lowerTimeUnit: K
199
+ }
200
+ });
201
+ }
202
+ u(U, d, null), U.sort(function(e, t) {
203
+ return e.value - t.value;
204
+ });
205
+ var q = U[0], J = U[U.length - 1], Y = D(i[0], r), $ = D(i[1], r);
206
+ return (!q || q.value > i[0]) && U.unshift({
207
+ value: i[0],
208
+ time: {
209
+ level: 0,
210
+ upperTimeUnit: Y,
211
+ lowerTimeUnit: Y
212
+ },
213
+ notNice: !0
214
+ }), (!J || J.value < i[1]) && U.push({
215
+ value: i[1],
216
+ time: {
217
+ level: 0,
218
+ upperTimeUnit: $,
219
+ lowerTimeUnit: $
220
+ },
221
+ notNice: !0
222
+ }), U;
223
+ }
224
+ var ce = function(e, t) {
225
+ var n = e.getExtent();
226
+ if (n[0] === n[1] && (n[0] -= h, n[1] += h), n[1] === -Infinity && n[0] === Infinity) {
227
+ var r = /* @__PURE__ */ new Date();
228
+ n[1] = +new Date(r.getFullYear(), r.getMonth(), r.getDate()), n[0] = n[1] - h;
229
+ }
230
+ e.setExtent(n[0], n[1]);
231
+ var i = G(t.splitNumber, 10), a = U(e) / i, o = t.minInterval, s = t.maxInterval;
232
+ o != null && a < o && (a = o), s != null && a > s && (a = s);
233
+ var c = Y.length, l = Math.min(q(Y, a, 0, c), c - 1), u = Y[l][1], d = Y[Math.max(l - 1, 0)][0];
234
+ e.setTimeInterval({
235
+ approxInterval: a,
236
+ interval: u,
237
+ minLevelUnit: d
238
+ });
239
+ };
240
+ V.registerClass(J);
241
+ //#endregion
242
+ export { ce as calcNiceForTimeScale, J as default };
@@ -1,9 +1,17 @@
1
1
  function e() {
2
2
  return null;
3
3
  }
4
- function t(e) {
4
+ function t(t, n) {
5
+ var r = e(), i = n.breakOption, a = n.breakParsed;
6
+ return !a && r && (a = r.parseAxisBreakOption(i, t)), a;
7
+ }
8
+ function n(e) {
9
+ var t = e.brk;
10
+ return t ? t.breaks : [];
11
+ }
12
+ function r(e) {
5
13
  var t = e.brk;
6
14
  return t ? t.hasBreaks() : !1;
7
15
  }
8
16
  //#endregion
9
- export { e as getScaleBreakHelper, t as hasBreaks };
17
+ export { n as getBreaksUnsafe, e as getScaleBreakHelper, r as hasBreaks, t as simplyParseBreakOption };
@@ -1,9 +1,67 @@
1
+ import { getPrecision as e, mathAbs as t, mathLog as n, mathMax as r, mathPow as i, mathRound as a, quantityExponent as o, round as s } from "../util/number.js";
2
+ import { isValidNumberForExtent as c } from "../util/model.js";
3
+ import { getScaleExtentForTickUnsafe as l } from "./scaleMapper.js";
1
4
  //#region node_modules/echarts/lib/scale/helper.js
2
- function e(e) {
5
+ function u(e) {
6
+ return d(e) || p(e);
7
+ }
8
+ function d(e) {
9
+ return e.type === "interval";
10
+ }
11
+ function f(e) {
3
12
  return e.type === "time";
4
13
  }
5
- function t(e) {
14
+ function p(e) {
15
+ return e.type === "log";
16
+ }
17
+ function m(e) {
6
18
  return e.type === "ordinal";
7
19
  }
20
+ function h(e) {
21
+ var t = o(e), n = i(10, t), r = a(e / n);
22
+ return r ? r === 2 ? r = 3 : r === 3 ? r = 5 : r *= 2 : r = 1, s(r * n, -t);
23
+ }
24
+ function g(t) {
25
+ return e(t) + 2;
26
+ }
27
+ function _(e, t) {
28
+ return n(e) / n(t);
29
+ }
30
+ function v(e, t, n) {
31
+ var r = n && n.lookup;
32
+ if (r) {
33
+ for (var a = 0; a < r.from.length; a++) if (e === r.from[a]) return r.to[a];
34
+ }
35
+ return i(t, e);
36
+ }
37
+ function y(e, n, r) {
38
+ var i = e.slice();
39
+ if (i[0] === i[1]) {
40
+ var a = r && r.ctnShp;
41
+ if (i[0] !== 0) {
42
+ var o = t(i[0]);
43
+ n[1] || (i[1] += o / 2), i[0] -= o / 2;
44
+ } else a && (i[0] = -1), i[1] = 1;
45
+ }
46
+ return (!c(i[0]) || !c(i[1])) && (i[0] = 0, i[1] = 1), i[1] < i[0] && i.reverse(), i;
47
+ }
48
+ function b(e, t) {
49
+ return [e[0] !== t[0], e[1] !== t[1]];
50
+ }
51
+ function x(e, t) {
52
+ return e ||= t, a(r(e, 1));
53
+ }
54
+ function S(e, t, n) {
55
+ var r = l(e), i = r[0], a = e.count(), o = Math.max((t || 0) + 1, 1);
56
+ i !== 0 && o > 1 && a / o > 2 && (i = Math.round(Math.ceil(i / o) * o)), i !== r[0] && c(r[0], !0, !0);
57
+ for (var s = i; s <= r[1]; s += o) c(s, !1, s === r[0] || s === r[1]);
58
+ s - o !== r[1] && c(r[1], !0, !0);
59
+ function c(e, t, r) {
60
+ n({
61
+ value: e,
62
+ offInterval: t
63
+ }, r);
64
+ }
65
+ }
8
66
  //#endregion
9
- export { t as isOrdinalScale, e as isTimeScale };
67
+ export { x as ensureValidSplitNumber, b as extentDiffers, g as getIntervalPrecision, h as increaseInterval, y as intervalScaleEnsureValidExtent, u as isIntervalOrLogScale, d as isIntervalScale, p as isLogScale, m as isOrdinalScale, f as isTimeScale, _ as logScaleLogTick, v as logScalePowTick, S as ordinalScaleCreateTicks };
@@ -0,0 +1,22 @@
1
+ import { round as e } from "../util/number.js";
2
+ import { getScaleBreakHelper as t } from "./break.js";
3
+ import { getIntervalPrecision as n } from "./helper.js";
4
+ //#region node_modules/echarts/lib/scale/minorTicks.js
5
+ function r(r, i, a, o) {
6
+ for (var s = r.getTicks({ expandToNicedExtent: !0 }), c = [], l = r.getExtent(), u = 1; u < s.length; u++) {
7
+ var d = s[u], f = s[u - 1];
8
+ if (!(f.break || d.break)) {
9
+ for (var p = 0, m = [], h = (d.value - f.value) / i, g = n(h); p < i - 1;) {
10
+ var _ = e(f.value + (p + 1) * h, g);
11
+ _ > l[0] && _ < l[1] && m.push(_), p++;
12
+ }
13
+ var v = t();
14
+ v && v.pruneTicksByBreak("auto", m, a, function(e) {
15
+ return e;
16
+ }, o, l), c.push(m);
17
+ }
18
+ }
19
+ return c;
20
+ }
21
+ //#endregion
22
+ export { r as getMinorTicks };
@@ -1,5 +1,8 @@
1
- import { keys as e } from "../../../zrender/lib/core/util.js";
2
- e({
1
+ import { assert as e, bind as t, each as n, extend as r, keys as i, noop as a } from "../../../zrender/lib/core/util.js";
2
+ import { error as o } from "../util/log.js";
3
+ import { initExtentForUnion as s, isValidBoundsForExtent as c } from "../util/model.js";
4
+ import { getScaleBreakHelper as l } from "./break.js";
5
+ var u = i({
3
6
  needTransform: 1,
4
7
  normalize: 1,
5
8
  scale: 1,
@@ -15,12 +18,91 @@ e({
15
18
  getDefaultStartValue: 1,
16
19
  freeze: 1
17
20
  });
18
- function t(e, t) {
21
+ function d(e, r, i) {
22
+ var a;
23
+ e ||= {};
24
+ var o = l();
25
+ if (o) {
26
+ var s = o.createBreakScaleMapper(r, i);
27
+ s.hasBreaks() && (n(u, function(n) {
28
+ s[n] && (e[n] = t(s[n], s));
29
+ }), a = s);
30
+ }
31
+ return a ?? v(e, i), {
32
+ brk: a,
33
+ mapper: e
34
+ };
35
+ }
36
+ function f(e, t) {
37
+ n(u, function(n) {
38
+ e[n] = t[n];
39
+ });
40
+ }
41
+ function p(e, t) {
42
+ e.freeze = a, process.env.NODE_ENV !== "production" && (e.freeze = function() {
43
+ t.freeze();
44
+ });
45
+ }
46
+ function m(e) {
47
+ return e.getExtentUnsafe(0, 2);
48
+ }
49
+ function h(e, t) {
19
50
  return e.getExtentUnsafe(1, t) || e.getExtentUnsafe(0, t);
20
51
  }
21
- function n(e) {
22
- var n = t(e, 3);
23
- return n[1] - n[0];
52
+ function g(e) {
53
+ var t = h(e, 3);
54
+ return t[1] - t[0];
55
+ }
56
+ function _(e) {
57
+ var t = e.getExtentUnsafe(0, 3);
58
+ return t[1] - t[0];
59
+ }
60
+ function v(e, t) {
61
+ var n = e || {}, i = [];
62
+ return n._extents = i, i[0] = t ? t.slice() : s(), r(n, y), n;
63
+ }
64
+ var y = {
65
+ needTransform: function() {
66
+ return !1;
67
+ },
68
+ normalize: function(e) {
69
+ var t = this._extents[1] || this._extents[0];
70
+ return t[1] === t[0] ? .5 : (e - t[0]) / (t[1] - t[0]);
71
+ },
72
+ scale: function(e) {
73
+ var t = this._extents[1] || this._extents[0];
74
+ return e * (t[1] - t[0]) + t[0];
75
+ },
76
+ transformIn: function(e) {
77
+ return e;
78
+ },
79
+ transformOut: function(e) {
80
+ return e;
81
+ },
82
+ contain: function(e) {
83
+ var t = h(this, null);
84
+ return e >= t[0] && e <= t[1];
85
+ },
86
+ getExtent: function() {
87
+ return this._extents[0].slice();
88
+ },
89
+ getExtentUnsafe: function(e) {
90
+ return this._extents[e];
91
+ },
92
+ setExtent: function(t, n) {
93
+ process.env.NODE_ENV !== "production" && e(!this._frozen), b(this._extents, 0, t, n);
94
+ },
95
+ setExtent2: function(t, n, r) {
96
+ process.env.NODE_ENV !== "production" && e(!this._frozen);
97
+ var i = this._extents;
98
+ i[t] || (i[t] = i[0].slice()), b(i, t, n, r);
99
+ },
100
+ freeze: function() {
101
+ process.env.NODE_ENV !== "production" && (this._frozen = !0);
102
+ }
103
+ };
104
+ function b(e, t, n, r) {
105
+ c(n, r) ? (e[t][0] = n, e[t][1] = r) : process.env.NODE_ENV !== "production" && n != null && r != null && n <= r && o("Invalid setExtent call - start: " + n + ", end: " + r);
24
106
  }
25
107
  //#endregion
26
- export { n as getScaleLinearSpanForMapping };
108
+ export { f as decorateScaleMapper, p as enableScaleMapperFreeze, h as getScaleExtentForMappingUnsafe, m as getScaleExtentForTickUnsafe, _ as getScaleLinearSpanEffective, g as getScaleLinearSpanForMapping, d as initBreakOrLinearMapper };
@@ -1,5 +1,5 @@
1
- import { assert as e, each as t, extend as n, inherits as r, isFunction as i } from "../../../zrender/lib/core/util.js";
2
- import { __extends as a } from "../../node_modules/tslib/tslib.es6.js";
1
+ import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
2
+ import { assert as t, each as n, extend as r, inherits as i, isFunction as a } from "../../../zrender/lib/core/util.js";
3
3
  //#region node_modules/echarts/lib/util/clazz.js
4
4
  var o = ".", s = "___EC__COMPONENT__CONTAINER___", c = "___EC__EXTENDED_CLASS___";
5
5
  function l(e) {
@@ -13,39 +13,39 @@ function l(e) {
13
13
  }
14
14
  return t;
15
15
  }
16
- function u(t) {
17
- e(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t), "componentType \"" + t + "\" illegal");
16
+ function u(e) {
17
+ t(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e), "componentType \"" + e + "\" illegal");
18
18
  }
19
19
  function d(e) {
20
20
  return !!(e && e[c]);
21
21
  }
22
- function f(e, i) {
23
- e.$constructor = e, e.extend = function(e) {
24
- process.env.NODE_ENV !== "production" && t(i, function(t) {
25
- e[t] || console.warn("Method `" + t + "` should be implemented" + (e.type ? " in " + e.type : "") + ".");
22
+ function f(t, a) {
23
+ t.$constructor = t, t.extend = function(t) {
24
+ process.env.NODE_ENV !== "production" && n(a, function(e) {
25
+ t[e] || console.warn("Method `" + e + "` should be implemented" + (t.type ? " in " + t.type : "") + ".");
26
26
  });
27
27
  var o = this, s;
28
- return p(o) ? s = function(e) {
29
- a(t, e);
30
- function t() {
31
- return e.apply(this, arguments) || this;
28
+ return p(o) ? s = function(t) {
29
+ e(n, t);
30
+ function n() {
31
+ return t.apply(this, arguments) || this;
32
32
  }
33
- return t;
33
+ return n;
34
34
  }(o) : (s = function() {
35
- (e.$constructor || o).apply(this, arguments);
36
- }, r(s, this)), n(s.prototype, e), s[c] = !0, s.extend = this.extend, s.superCall = _, s.superApply = v, s.superClass = o, s;
35
+ (t.$constructor || o).apply(this, arguments);
36
+ }, i(s, this)), r(s.prototype, t), s[c] = !0, s.extend = this.extend, s.superCall = _, s.superApply = v, s.superClass = o, s;
37
37
  };
38
38
  }
39
39
  function p(e) {
40
- return i(e) && /^class\s/.test(Function.prototype.toString.call(e));
40
+ return a(e) && /^class\s/.test(Function.prototype.toString.call(e));
41
41
  }
42
42
  function m(e, t) {
43
43
  e.extend = t.extend;
44
44
  }
45
45
  var h = Math.round(Math.random() * 10);
46
- function g(t) {
46
+ function g(e) {
47
47
  var n = ["__\0is_clz", h++].join("_");
48
- t.prototype[n] = !0, process.env.NODE_ENV !== "production" && e(!t.isInstance, "The method \"is\" can not be defined."), t.isInstance = function(e) {
48
+ e.prototype[n] = !0, process.env.NODE_ENV !== "production" && t(!e.isInstance, "The method \"is\" can not be defined."), e.isInstance = function(e) {
49
49
  return !!(e && e[n]);
50
50
  };
51
51
  }
@@ -57,42 +57,42 @@ function v(e, t, n) {
57
57
  return this.superClass.prototype[t].apply(e, n);
58
58
  }
59
59
  function y(e) {
60
- var n = {};
60
+ var t = {};
61
61
  e.registerClass = function(e) {
62
- var t = e.type || e.prototype.type;
63
- if (t) {
64
- u(t), e.prototype.type = t;
65
- var i = l(t);
66
- if (!i.sub) process.env.NODE_ENV !== "production" && n[i.main] && console.warn(i.main + " exists."), n[i.main] = e;
62
+ var n = e.type || e.prototype.type;
63
+ if (n) {
64
+ u(n), e.prototype.type = n;
65
+ var i = l(n);
66
+ if (!i.sub) process.env.NODE_ENV !== "production" && t[i.main] && console.warn(i.main + " exists."), t[i.main] = e;
67
67
  else if (i.sub !== s) {
68
68
  var a = r(i);
69
69
  a[i.sub] = e;
70
70
  }
71
71
  }
72
72
  return e;
73
- }, e.getClass = function(e, t, r) {
74
- var i = n[e];
75
- if (i && i[s] && (i = t ? i[t] : null), r && !i) throw Error(t ? "Component " + e + "." + (t || "") + " is used but not imported." : e + ".type should be specified.");
73
+ }, e.getClass = function(e, n, r) {
74
+ var i = t[e];
75
+ if (i && i[s] && (i = n ? i[n] : null), r && !i) throw Error(n ? "Component " + e + "." + (n || "") + " is used but not imported." : e + ".type should be specified.");
76
76
  return i;
77
77
  }, e.getClassesByMainType = function(e) {
78
- var r = l(e), i = [], a = n[r.main];
79
- return a && a[s] ? t(a, function(e, t) {
78
+ var r = l(e), i = [], a = t[r.main];
79
+ return a && a[s] ? n(a, function(e, t) {
80
80
  t !== s && i.push(e);
81
81
  }) : i.push(a), i;
82
82
  }, e.hasClass = function(e) {
83
- return !!n[l(e).main];
83
+ return !!t[l(e).main];
84
84
  }, e.getAllClassMainTypes = function() {
85
85
  var e = [];
86
- return t(n, function(t, n) {
86
+ return n(t, function(t, n) {
87
87
  e.push(n);
88
88
  }), e;
89
89
  }, e.hasSubTypes = function(e) {
90
- var t = n[l(e).main];
91
- return t && t[s];
90
+ var n = t[l(e).main];
91
+ return n && n[s];
92
92
  };
93
93
  function r(e) {
94
- var t = n[e.main];
95
- return (!t || !t[s]) && (t = n[e.main] = {}, t[s] = !0), t;
94
+ var n = t[e.main];
95
+ return (!n || !n[s]) && (n = t[e.main] = {}, n[s] = !0), n;
96
96
  }
97
97
  }
98
98
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { each as e, indexOf as t, merge as n } from "../../../zrender/lib/core/util.js";
2
- import { makePrintable as r } from "./log.js";
3
- import { parseClassType as i } from "./clazz.js";
2
+ import { parseClassType as r } from "./clazz.js";
3
+ import { makePrintable as i } from "./log.js";
4
4
  //#region node_modules/echarts/lib/util/component.js
5
5
  var a = Math.round(Math.random() * 10);
6
6
  function o(e) {
@@ -9,30 +9,30 @@ function o(e) {
9
9
  function s(e) {
10
10
  var t = {};
11
11
  e.registerSubTypeDefaulter = function(e, n) {
12
- var r = i(e);
13
- t[r.main] = n;
14
- }, e.determineSubType = function(n, r) {
15
- var a = r.type;
12
+ var i = r(e);
13
+ t[i.main] = n;
14
+ }, e.determineSubType = function(n, i) {
15
+ var a = i.type;
16
16
  if (!a) {
17
- var o = i(n).main;
18
- e.hasSubTypes(n) && t[o] && (a = t[o](r));
17
+ var o = r(n).main;
18
+ e.hasSubTypes(n) && t[o] && (a = t[o](i));
19
19
  }
20
20
  return a;
21
21
  };
22
22
  }
23
- function c(n, i) {
24
- n.topologicalTravel = function(t, n, i, o) {
23
+ function c(n, r) {
24
+ n.topologicalTravel = function(t, n, r, o) {
25
25
  if (!t.length) return;
26
26
  var s = a(n), c = s.graph, l = s.noEntryList, u = {};
27
27
  for (e(t, function(e) {
28
28
  u[e] = !0;
29
29
  }); l.length;) {
30
30
  var d = l.pop(), f = c[d], p = !!u[d];
31
- p && (i.call(o, d, f.originalDeps.slice()), delete u[d]), e(f.successor, p ? h : m);
31
+ p && (r.call(o, d, f.originalDeps.slice()), delete u[d]), e(f.successor, p ? h : m);
32
32
  }
33
33
  e(u, function() {
34
34
  var e = "";
35
- throw process.env.NODE_ENV !== "production" && (e = r("Circular dependency may exists: ", u, t, n)), Error(e);
35
+ throw process.env.NODE_ENV !== "production" && (e = i("Circular dependency may exists: ", u, t, n)), Error(e);
36
36
  });
37
37
  function m(e) {
38
38
  c[e].entryCount--, c[e].entryCount === 0 && l.push(e);
@@ -42,16 +42,16 @@ function c(n, i) {
42
42
  }
43
43
  };
44
44
  function a(n) {
45
- var r = {}, a = [];
45
+ var i = {}, a = [];
46
46
  return e(n, function(c) {
47
- var l = o(r, c), u = s(l.originalDeps = i(c), n);
47
+ var l = o(i, c), u = s(l.originalDeps = r(c), n);
48
48
  l.entryCount = u.length, l.entryCount === 0 && a.push(c), e(u, function(e) {
49
49
  t(l.predecessor, e) < 0 && l.predecessor.push(e);
50
- var n = o(r, e);
50
+ var n = o(i, e);
51
51
  t(n.successor, e) < 0 && n.successor.push(c);
52
52
  });
53
53
  }), {
54
- graph: r,
54
+ graph: i,
55
55
  noEntryList: a
56
56
  };
57
57
  }
@@ -8,7 +8,10 @@ function r(e) {
8
8
  t(e).fullUpdate = {};
9
9
  }
10
10
  function i(e) {
11
+ return t(e).prepare;
12
+ }
13
+ function a(e) {
11
14
  return t(e).fullUpdate;
12
15
  }
13
16
  //#endregion
14
- export { i as getCachePerECFullUpdate, r as resetCachePerECFullUpdate, n as resetCachePerECPrepare };
17
+ export { a as getCachePerECFullUpdate, i as getCachePerECPrepare, r as resetCachePerECFullUpdate, n as resetCachePerECPrepare };