@hybridcore/ui 1.6.9 → 1.6.11

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 (51) hide show
  1. package/dist/{AnimatedTheme-BOKdw2Oy.js → AnimatedTheme-D3VZKKNV.js} +6 -6
  2. package/dist/{AxisRenderer-lUbezuh7.js → AxisRenderer-Doyw-FTI.js} +6 -6
  3. package/dist/{AxisRendererY-DbSiyb45.js → AxisRendererY-BylCU67e.js} +3 -3
  4. package/dist/{Bullet-PgoNb3Jv.js → Bullet-C6357hTv.js} +1 -1
  5. package/dist/{Button-XBf4Mwz-.js → Button-DGOT8RcT.js} +3 -3
  6. package/dist/{CategoryAxis-B8KQp1pE.js → CategoryAxis-B5uTZjhL.js} +3 -3
  7. package/dist/{Circle-BWRdiMpG.js → Circle-DhzVdFBd.js} +1 -1
  8. package/dist/{ColorSet-DDmFoKtZ.js → ColorSet-DGLMpbL3.js} +1 -1
  9. package/dist/{ColumnSeries-rgnGm-Bg.js → ColumnSeries-CqJ-563p.js} +28 -28
  10. package/dist/{DataProcessor-CvIe9BVn.js → DataProcessor-WXzhvIg6.js} +1 -1
  11. package/dist/{DateAxis-zNtbSVjW.js → DateAxis-lJZjbAS-.js} +4 -4
  12. package/dist/{Entity-CCUIdRAr.js → Entity-4Lr2piVN.js} +66 -66
  13. package/dist/GaplessDateAxis-DowssQ6y.js +296 -0
  14. package/dist/{Hierarchy-CCvGsF1A.js → Hierarchy-DPEcTr0v.js} +8 -8
  15. package/dist/{Legend-kbCFjJAW.js → Legend-CTb6rZz_.js} +4 -4
  16. package/dist/{LineSeries-BLFvwrLT.js → LineSeries-Dg1aytHA.js} +4 -4
  17. package/dist/{LinearGradient-C7rnipF7.js → LinearGradient-D1hzMjaW.js} +2 -2
  18. package/dist/{PieSeries-3iLRbqFv.js → PieSeries-C9YUWMnA.js} +8 -8
  19. package/dist/{RoundedRectangle-CqMMmPM0.js → RoundedRectangle-B23Oh_r6.js} +2 -2
  20. package/dist/{Scrollbar-BzSBcIUt.js → Scrollbar-CSoXoZSe.js} +4 -4
  21. package/dist/{Slice-CS23iLiS.js → Slice-CIP7Vmzu.js} +11 -11
  22. package/dist/{Tick-BADQ8QeT.js → Tick-CRu6rQQy.js} +2 -2
  23. package/dist/{Tooltip-A_HlttXp.js → Tooltip-RhAldW7s.js} +13 -13
  24. package/dist/{XYCursor-gHAo40xC.js → XYCursor-Z-Ral42q.js} +3 -3
  25. package/dist/{ZoomableContainer-Brs1wHM1.js → ZoomableContainer-D1laxHnA.js} +4 -4
  26. package/dist/components/charts/_common/tooltip.js +2 -2
  27. package/dist/components/charts/_common/utils.js +2 -2
  28. package/dist/components/charts/candlestick/logic.js +176 -173
  29. package/dist/components/charts/chart-wrapper/index.js +36 -34
  30. package/dist/components/charts/column-line-mix/logic.js +72 -65
  31. package/dist/components/charts/donut-chart/logic.js +4 -4
  32. package/dist/components/charts/drill-down-treemap/logic.js +5 -5
  33. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
  34. package/dist/components/charts/forecast-cone/index.js +52 -0
  35. package/dist/components/charts/forecast-cone/logic.js +331 -0
  36. package/dist/components/charts/forecast-cone/styled.js +12 -0
  37. package/dist/components/charts/heatmap/logic.js +9 -9
  38. package/dist/components/charts/highlighting-line-data/logic.js +10 -10
  39. package/dist/components/charts/line/logic.js +96 -82
  40. package/dist/components/charts/logaritmic-scale/logic.js +71 -64
  41. package/dist/components/charts/multiple-value-axes/logic.js +101 -95
  42. package/dist/components/charts/nested-pie/logic.js +3 -3
  43. package/dist/components/charts/packed-circles/logic.js +7 -7
  44. package/dist/components/charts/pie-chart/logic.js +4 -4
  45. package/dist/components/charts/stacked-area-radar/logic.js +9 -9
  46. package/dist/components/charts/stacked-column-chart/logic.js +10 -10
  47. package/dist/components/charts/xy-chart/logic.js +74 -71
  48. package/dist/components/metric-card/MetricChart.js +9 -9
  49. package/dist/main.d.ts +82 -1
  50. package/dist/main.js +167 -165
  51. package/package.json +1 -1
@@ -0,0 +1,296 @@
1
+ import { D as Q } from "./DateAxis-lJZjbAS-.js";
2
+ import { g as V, r as x, c as it, a as S, D as J, b as st, d as at } from "./AnimatedTheme-D3VZKKNV.js";
3
+ import { n as y, o as A, q as nt, e as v, f as U, r as K, u as rt } from "./Entity-4Lr2piVN.js";
4
+ import { f as W } from "./Tooltip-RhAldW7s.js";
5
+ class Z extends Q {
6
+ constructor() {
7
+ super(...arguments), Object.defineProperty(this, "_frequency", {
8
+ enumerable: !0,
9
+ configurable: !0,
10
+ writable: !0,
11
+ value: 1
12
+ }), Object.defineProperty(this, "_m", {
13
+ enumerable: !0,
14
+ configurable: !0,
15
+ writable: !0,
16
+ value: 0
17
+ }), Object.defineProperty(this, "_dates", {
18
+ enumerable: !0,
19
+ configurable: !0,
20
+ writable: !0,
21
+ value: []
22
+ }), Object.defineProperty(this, "_customDates", {
23
+ enumerable: !0,
24
+ configurable: !0,
25
+ writable: !0,
26
+ value: void 0
27
+ });
28
+ }
29
+ _afterNew() {
30
+ this.valueFields.push("date"), this.addTag("gapless"), super._afterNew();
31
+ }
32
+ _getDates() {
33
+ return this._customDates ? this._customDates : this._dates;
34
+ }
35
+ _updateDates(t, a) {
36
+ if (!a.get("ignoreMinMax")) {
37
+ const n = this._getDates(), s = y(n, (r) => A(r, t));
38
+ s.found || nt(n, s.index, t);
39
+ }
40
+ }
41
+ _updateAllDates() {
42
+ if (!this._customDates) {
43
+ const t = this._dates;
44
+ t.length = 0, v(this.series, (h) => {
45
+ let o = "valueX";
46
+ h.get("yAxis") == this && (o = "valueY"), v(h.dataItems, (l) => {
47
+ let d = l.get(o);
48
+ U(d) && l.open && this._updateDates(l.open[o], h);
49
+ });
50
+ });
51
+ const a = this.get("extraMax", 0), n = this.get("extraMin", 0);
52
+ let s = t.length;
53
+ const r = this.getPrivate("baseInterval"), i = r.count, e = r.timeUnit;
54
+ if (a > 0) {
55
+ const h = s * a;
56
+ let o = t[s - 1];
57
+ if (U(o))
58
+ for (let l = s - 1; l < s + h; l++)
59
+ o += V(e, i * this._getM(e)), o = x(o, e, i, this._root), t.push(o);
60
+ }
61
+ if (n > 0) {
62
+ const h = s * n;
63
+ let o = t[0];
64
+ if (U(o))
65
+ for (let l = 0; l < h; l++)
66
+ o -= V(e, i), o = x(o, e, i, this._root), t.unshift(o);
67
+ }
68
+ }
69
+ }
70
+ /**
71
+ * Convers value to a relative position on axis.
72
+ *
73
+ * @param value Value
74
+ * @return Relative position
75
+ */
76
+ valueToPosition(t) {
77
+ const a = this._getDates(), n = this.get("startLocation", 0), s = this.get("endLocation", 1), r = a.length - n - (1 - s), i = y(a, (h) => A(h, t));
78
+ let e = i.index;
79
+ if (i.found)
80
+ return (e - n) / r;
81
+ {
82
+ e > 0 && (e -= 1);
83
+ let h = a[e];
84
+ const o = a[e + 1];
85
+ if (o) {
86
+ let d = o;
87
+ Math.abs(d - t) < Math.abs(h - t) && (h = d, e++);
88
+ }
89
+ let l = t - h;
90
+ return (e - n) / r + l / this.baseDuration() / r;
91
+ }
92
+ }
93
+ /**
94
+ * Converts numeric value from axis scale to index.
95
+ *
96
+ * @param value Value
97
+ * @return Index
98
+ */
99
+ valueToIndex(t) {
100
+ const a = this._getDates(), n = y(a, (r) => A(r, t));
101
+ let s = n.index;
102
+ return n.found || s > 0 && (s -= 1), s;
103
+ }
104
+ /**
105
+ * Converts a relative position to a corresponding numeric value from axis
106
+ * scale.
107
+ *
108
+ * @param position Relative position
109
+ * @return Value
110
+ */
111
+ positionToValue(t) {
112
+ const a = this.get("startLocation", 0), n = this.get("endLocation", 1), s = this._getDates();
113
+ let r = Math.round(s.length - a - (1 - n)), i = t * r, e = Math.floor(i);
114
+ return e < 0 && (e = 0), e > r - 1 && (e = r - 1), s[e] + (i - e + a) * this.baseDuration();
115
+ }
116
+ _fixZoomFactor() {
117
+ this.setPrivateRaw("maxZoomFactor", this._getDates().length - this.get("startLocation", 0) - (1 - this.get("endLocation", 1)));
118
+ }
119
+ /**
120
+ * Zooms the axis to specific `start` and `end` dates.
121
+ *
122
+ * Optional `duration` specifies duration of zoom animation in milliseconds.
123
+ *
124
+ * @param start Start Date
125
+ * @param end End Date
126
+ * @param duration Duration in milliseconds
127
+ */
128
+ zoomToDates(t, a, n) {
129
+ const s = this._getDates(), r = s.length;
130
+ let i = y(s, (o) => A(o, t.getTime())), e = s[Math.min(i.index, r - 1)];
131
+ i = y(s, (o) => A(o, a.getTime()));
132
+ let h = s[i.index];
133
+ i.index >= r && (h = s[r - 1] + this.baseDuration()), this.zoomToValues(e, h, n);
134
+ }
135
+ /**
136
+ * Zooms the axis to specific `start` and `end` values.
137
+ *
138
+ * Optional `duration` specifies duration of zoom animation in milliseconds.
139
+ *
140
+ * @param start Start value
141
+ * @param end End value
142
+ * @param duration Duration in milliseconds
143
+ */
144
+ zoomToValues(t, a, n) {
145
+ const s = this.getPrivate("min", 0), r = this.getPrivate("max", 0);
146
+ t = W(t, s, r), a = W(a, s, r), this.zoom(this.valueToPosition(t), this.valueToPosition(a), n);
147
+ }
148
+ _prepareAxisItems() {
149
+ let t = this.getPrivate("selectionMin", 0), a = this.getPrivate("selectionMax", 0);
150
+ if (U(t) && U(a)) {
151
+ this._seriesValuesDirty && (this._seriesValuesDirty = !1, this._updateAllDates());
152
+ const n = this._root, s = n.utc, r = n.timezone, i = this._getDates(), e = this.get("renderer"), h = i.length, o = this.baseDuration();
153
+ let l = this.valueToIndex(t);
154
+ l > 0 && l--;
155
+ let d = this.valueToIndex(a);
156
+ d < h - 1 && d++;
157
+ let u = e.axisLength() / Math.max(e.get("minGridDistance"), 1 / Number.MAX_SAFE_INTEGER), f = Math.min(h, Math.ceil((d - l) / u));
158
+ f = Math.max(1, f), l = Math.floor(l / f) * f, this._frequency = f, v(this.dataItems, (_) => {
159
+ this._toggleDataItem(_, !1);
160
+ }), v(this.minorDataItems, (_) => {
161
+ this._toggleDataItem(_, !1);
162
+ });
163
+ let w = a - t - ((a - t) / o - (d - l)) * o, m = it(0, w, u, this.get("gridIntervals"));
164
+ const z = this.getPrivate("baseInterval");
165
+ let g = S(m);
166
+ g < o && (m = Object.assign({}, z), g = S(m)), this._intervalDuration = g;
167
+ const b = m.timeUnit, M = this.get("dateFormats");
168
+ let E = Date.now();
169
+ i[0] && (E = i[0]);
170
+ let R = x(this.getPrivate("selectionMin", 0), b, m.count, n, E);
171
+ const $ = e.get("minorLabelsEnabled"), Y = e.get("minorGridEnabled", $);
172
+ let P, F = 0, N;
173
+ Y && (P = this._getMinorInterval(m), F = S(P));
174
+ let L = this._getIndexes(R, this.getPrivate("selectionMax", R) + g, m, this.getPrivate("min", R));
175
+ if (L.length > 0) {
176
+ let _ = 0;
177
+ this._m = 0;
178
+ let C = R - g * 10;
179
+ const B = at(b);
180
+ if (P) {
181
+ let k = i[L[0]];
182
+ this._addMinorGrid(k - g, k, F, P);
183
+ }
184
+ let tt = e.axisLength() / e.gridCount() * 0.5;
185
+ v(L, (k) => {
186
+ var q;
187
+ let c;
188
+ this.dataItems.length < _ + 1 ? (c = new J(this, void 0, {}), this._dataItems.push(c), this.processDataItem(c)) : c = this.dataItems[_];
189
+ let D = i[k], et = new Date(D), j = D;
190
+ _ < L.length - 1 ? j = i[L[_ + 1]] : j += g, c.setRaw("value", D), c.setRaw("endValue", j), c.setRaw("index", _), c.setRaw("labelEndValue", void 0);
191
+ let H = M[b];
192
+ B && this.get("markUnitChange") && U(C) && b != "year" && st(D, C, B, s, r) && (H = this.get("periodChangeDateFormats")[b]), this._createAssets(c, []);
193
+ const T = c.get("label");
194
+ T && T.set("text", n.dateFormatter.format(et, H)), this._toggleDataItem(c, !0);
195
+ let X = m.count;
196
+ if (b == "week" && c.setRaw("labelEndValue", D), Y) {
197
+ let I = m.timeUnit;
198
+ if (I == "week" && (I = "day"), X > 1 || m.timeUnit == "week") {
199
+ let p = x(D, I, 1, n) + V(I, this._getM(I)), O = this.valueToIndex(p);
200
+ if (p = i[O], p == D) {
201
+ let G = i[O + 1];
202
+ G ? p = G : p += F;
203
+ }
204
+ c.setRaw("labelEndValue", p);
205
+ }
206
+ X = 1;
207
+ }
208
+ if (this._prepareDataItem(c, X), T && N && e.getPrivate("letter") == "X") {
209
+ let I = N.get("label");
210
+ if (I) {
211
+ let p = T.x(), O = I.x();
212
+ if (p - O < tt) {
213
+ let G = this._pickWorse(N, c, m);
214
+ G && ((q = G.get("label")) === null || q === void 0 || q.setPrivate("visible", !1));
215
+ }
216
+ }
217
+ }
218
+ P && this._addMinorGrid(D, j, F, P), _++, T && T.getPrivate("visible") && (N = c), C = D;
219
+ });
220
+ }
221
+ v(this.series, (_) => {
222
+ _.inited && _._markDirtyAxes();
223
+ });
224
+ }
225
+ this._updateGhost();
226
+ }
227
+ _pickWorse(t, a, n) {
228
+ const s = n.timeUnit, r = t.get("value", 0), i = a.get("value", 0);
229
+ return s == "hour" && new Date(r).getDate() != new Date(i).getDate() ? t : a;
230
+ }
231
+ _addMinorGrid(t, a, n, s) {
232
+ const r = this.get("minorDateFormats", this.get("dateFormats")), i = s.timeUnit;
233
+ let e = t + V(i, this._getM(i));
234
+ e = x(e, i, 1, this._root);
235
+ let h = a - n * 0.5, o = this._getIndexes(e, h, s, e);
236
+ const l = this._getDates();
237
+ v(o, (d) => {
238
+ let u;
239
+ this.minorDataItems.length < this._m + 1 ? (u = new J(this, void 0, {}), this.minorDataItems.push(u), this.processDataItem(u)) : u = this.minorDataItems[this._m], e = l[d], u.setRaw("value", e), u.setRaw("endValue", e + n), u.setRaw("index", d), this._createAssets(u, ["minor"], !0);
240
+ const f = u.get("label");
241
+ if (f)
242
+ if (this.get("renderer").get("minorLabelsEnabled")) {
243
+ let w = new Date(e), m = r[i];
244
+ f.set("text", this._root.dateFormatter.format(w, m));
245
+ } else
246
+ f.setPrivate("visible", !1);
247
+ this._toggleDataItem(u, !0), this._prepareDataItem(u, 1), this._m++;
248
+ });
249
+ }
250
+ _getIndexes(t, a, n, s) {
251
+ const r = [], i = n.timeUnit, e = n.count, h = this._getM(i), o = this.getPrivate("baseInterval"), l = this._root, d = this._getDates();
252
+ let u = e - 1, f = -1 / 0, w = V(i, h), m = V(i, e * h), z = t;
253
+ for (i == "day" && (t = s); t <= a; ) {
254
+ t = x(t, i, e, l);
255
+ let g = this.valueToIndex(t), b = d[g];
256
+ if (i == "day" && o.timeUnit == "day")
257
+ this._hasDate(t) && u++, u == e && (t >= z - m * 2 && K(r, g), u = 0), t += w, t = x(t, i, 1, l);
258
+ else {
259
+ if (b < t) {
260
+ for (let M = g, E = d.length; M < E; M++)
261
+ if (b = d[M], b >= t) {
262
+ g = M;
263
+ break;
264
+ }
265
+ }
266
+ K(r, g), t += m, t = x(t, i, e, l);
267
+ }
268
+ if (t == f && (t += m + w, t = x(t, i, e, l)), t == f)
269
+ break;
270
+ f = t;
271
+ }
272
+ return r;
273
+ }
274
+ _hasDate(t) {
275
+ return y(this._getDates(), (n) => rt(n, t)).found;
276
+ }
277
+ _nextTime(t, a, n) {
278
+ let s = W(this.valueToIndex(t) + a, 0, this._dates.length - 1);
279
+ return this._dates[s];
280
+ }
281
+ }
282
+ Object.defineProperty(Z, "className", {
283
+ enumerable: !0,
284
+ configurable: !0,
285
+ writable: !0,
286
+ value: "GaplessDateAxis"
287
+ });
288
+ Object.defineProperty(Z, "classNames", {
289
+ enumerable: !0,
290
+ configurable: !0,
291
+ writable: !0,
292
+ value: Q.classNames.concat([Z.className])
293
+ });
294
+ export {
295
+ Z as G
296
+ };
@@ -1,7 +1,7 @@
1
- import { b as x, H as L, a as u, p as v, I as N, m as R, e as p, J as C, f, _ as A } from "./Entity-CCUIdRAr.js";
2
- import { T as S, s as d, S as P, D as B } from "./AnimatedTheme-BOKdw2Oy.js";
3
- import { C as H } from "./ColorSet-DDmFoKtZ.js";
4
- import { C as _, a as T, b as O, L as j } from "./Tooltip-A_HlttXp.js";
1
+ import { b as x, I as L, a as u, p as v, J as N, m as R, e as p, K as C, f, _ as A } from "./Entity-4Lr2piVN.js";
2
+ import { T as S, s as d, S as P, D as B } from "./AnimatedTheme-D3VZKKNV.js";
3
+ import { C as H } from "./ColorSet-DGLMpbL3.js";
4
+ import { C as _, a as T, b as O, L as j } from "./Tooltip-RhAldW7s.js";
5
5
  class I extends S {
6
6
  setupDefaultRules() {
7
7
  super.setupDefaultRules();
@@ -399,13 +399,13 @@ function F(a, e) {
399
399
  a.call(e, i, ++o, this);
400
400
  return this;
401
401
  }
402
- function Y(a, e) {
402
+ function K(a, e) {
403
403
  let i = -1;
404
404
  for (const t of this)
405
405
  if (a.call(e, t, ++i, this))
406
406
  return t;
407
407
  }
408
- function K(a) {
408
+ function Y(a) {
409
409
  return this.eachAfter(function(e) {
410
410
  for (var i = +a(e.data) || 0, t = e.children, s = t && t.length; --s >= 0; ) i += t[s].value;
411
411
  e.value = i;
@@ -494,8 +494,8 @@ m.prototype = w.prototype = {
494
494
  each: V,
495
495
  eachAfter: F,
496
496
  eachBefore: M,
497
- find: Y,
498
- sum: K,
497
+ find: K,
498
+ sum: Y,
499
499
  sort: X,
500
500
  path: E,
501
501
  ancestors: G,
@@ -1,7 +1,7 @@
1
- import { S as C } from "./AnimatedTheme-BOKdw2Oy.js";
2
- import { a as b, b as f, C as _, L as w } from "./Tooltip-A_HlttXp.js";
3
- import { R as T } from "./RoundedRectangle-CqMMmPM0.js";
4
- import { m as i } from "./Entity-CCUIdRAr.js";
1
+ import { S as C } from "./AnimatedTheme-D3VZKKNV.js";
2
+ import { a as b, b as f, C as _, L as w } from "./Tooltip-RhAldW7s.js";
3
+ import { R as T } from "./RoundedRectangle-B23Oh_r6.js";
4
+ import { m as i } from "./Entity-4Lr2piVN.js";
5
5
  class k extends C {
6
6
  constructor() {
7
7
  super(...arguments), Object.defineProperty(this, "itemContainers", {
@@ -1,7 +1,7 @@
1
- import { b as U } from "./AxisRenderer-lUbezuh7.js";
2
- import { a as S, b as D, G as A, R as fe } from "./Tooltip-A_HlttXp.js";
3
- import { m as G, e as j, h as K, c as ce, f as Q } from "./Entity-CCUIdRAr.js";
4
- import { D as he } from "./AnimatedTheme-BOKdw2Oy.js";
1
+ import { b as U } from "./AxisRenderer-Doyw-FTI.js";
2
+ import { a as S, b as D, G as A, R as fe } from "./Tooltip-RhAldW7s.js";
3
+ import { m as G, e as j, v as K, c as ce, f as Q } from "./Entity-4Lr2piVN.js";
4
+ import { D as he } from "./AnimatedTheme-D3VZKKNV.js";
5
5
  import { w as W, c as g } from "./path-CNVruS--.js";
6
6
  function Z(o) {
7
7
  return typeof o == "object" && "length" in o ? o : Array.from(o);
@@ -1,5 +1,5 @@
1
- import { E as M, e as v, f as w, C as G } from "./Entity-CCUIdRAr.js";
2
- import { c as B, s as C } from "./Tooltip-A_HlttXp.js";
1
+ import { E as M, e as v, f as w, C as G } from "./Entity-4Lr2piVN.js";
2
+ import { c as B, s as C } from "./Tooltip-RhAldW7s.js";
3
3
  class c extends M {
4
4
  _afterNew() {
5
5
  super._afterNewApplyThemes();
@@ -1,9 +1,9 @@
1
- import { b as T, p as H, a as f, e as d, _ as k, f as j, P as Y, w as b, m as w } from "./Entity-CCUIdRAr.js";
2
- import { S as B, T as z } from "./Tick-BADQ8QeT.js";
3
- import { T as V, s as X, S as F } from "./AnimatedTheme-BOKdw2Oy.js";
4
- import { C as W } from "./ColorSet-DDmFoKtZ.js";
5
- import { C as A, v as U, g as M, m as K, a as x, b as D, c as P, s as m, n as q } from "./Tooltip-A_HlttXp.js";
6
- import { S as E, R as $ } from "./Slice-CS23iLiS.js";
1
+ import { b as T, p as H, a as f, e as d, _ as k, f as j, P as z, z as b, m as w } from "./Entity-4Lr2piVN.js";
2
+ import { S as B, T as Y } from "./Tick-CRu6rQQy.js";
3
+ import { T as V, s as X, S as F } from "./AnimatedTheme-D3VZKKNV.js";
4
+ import { C as W } from "./ColorSet-DGLMpbL3.js";
5
+ import { C as A, v as U, g as M, m as K, a as x, b as D, c as P, s as m, n as q } from "./Tooltip-RhAldW7s.js";
6
+ import { S as E, R as $ } from "./Slice-CIP7Vmzu.js";
7
7
  class G extends V {
8
8
  setupDefaultRules() {
9
9
  super.setupDefaultRules();
@@ -497,7 +497,7 @@ class R extends y {
497
497
  let r = M(0, 0, s, a, 1);
498
498
  const u = e / (r.right - r.left), h = i / (r.bottom - r.top);
499
499
  let o = { left: 0, right: 0, top: 0, bottom: 0 };
500
- if (l instanceof Y) {
500
+ if (l instanceof z) {
501
501
  let c = l.value, g = Math.min(u, h);
502
502
  c = Math.max(g * c, g - Math.min(i, e)) / g, o = M(0, 0, s, a, c), this.setPrivateRaw("irModifyer", c / l.value);
503
503
  }
@@ -577,7 +577,7 @@ class L extends _ {
577
577
  }, [this.labels.template]));
578
578
  }
579
579
  _makeTicks() {
580
- return new x(D.new({}), () => z._new(this._root, {
580
+ return new x(D.new({}), () => Y._new(this._root, {
581
581
  themeTags: w(this.ticks.template.get("themeTags", []), ["pie", "series"])
582
582
  }, [this.ticks.template]));
583
583
  }
@@ -1,5 +1,5 @@
1
- import { f as y, w as b } from "./Entity-CCUIdRAr.js";
2
- import { R as p, f as m } from "./Tooltip-A_HlttXp.js";
1
+ import { f as y, z as b } from "./Entity-4Lr2piVN.js";
2
+ import { R as p, f as m } from "./Tooltip-RhAldW7s.js";
3
3
  class T extends p {
4
4
  _beforeChanged() {
5
5
  super._beforeChanged(), (this.isDirty("cornerRadiusTL") || this.isDirty("cornerRadiusTR") || this.isDirty("cornerRadiusBR") || this.isDirty("cornerRadiusBL")) && (this._clear = !0);
@@ -1,7 +1,7 @@
1
- import { R as b } from "./RoundedRectangle-CqMMmPM0.js";
2
- import { C as w, G as v } from "./Tooltip-A_HlttXp.js";
3
- import { B as x } from "./Button-XBf4Mwz-.js";
4
- import { m as f, v as D, f as g } from "./Entity-CCUIdRAr.js";
1
+ import { R as b } from "./RoundedRectangle-B23Oh_r6.js";
2
+ import { C as w, G as v } from "./Tooltip-RhAldW7s.js";
3
+ import { B as x } from "./Button-DGOT8RcT.js";
4
+ import { m as f, y as D, f as g } from "./Entity-4Lr2piVN.js";
5
5
  class _ extends w {
6
6
  constructor() {
7
7
  super(...arguments), Object.defineProperty(this, "thumb", {
@@ -1,5 +1,5 @@
1
- import { w as Re, a as he, P as ne, f as ce } from "./Entity-CCUIdRAr.js";
2
- import { e as ye, h as re, L as pe, n as be, c as H, s as J, G as me } from "./Tooltip-A_HlttXp.js";
1
+ import { z as Re, a as he, P as ne, f as ce } from "./Entity-4Lr2piVN.js";
2
+ import { e as ye, h as re, L as pe, n as be, c as H, s as J, G as me } from "./Tooltip-RhAldW7s.js";
3
3
  import { w as xe, c as I } from "./path-CNVruS--.js";
4
4
  class Q extends ye {
5
5
  constructor() {
@@ -114,9 +114,9 @@ Object.defineProperty(ue, "classNames", {
114
114
  writable: !0,
115
115
  value: pe.classNames.concat([ue.className])
116
116
  });
117
- const fe = Math.abs, p = Math.atan2, L = Math.cos, ve = Math.max, ae = Math.min, j = Math.sin, q = Math.sqrt, b = 1e-12, G = Math.PI, U = G / 2, we = 2 * G;
117
+ const fe = Math.abs, p = Math.atan2, L = Math.cos, ve = Math.max, ae = Math.min, j = Math.sin, q = Math.sqrt, b = 1e-12, z = Math.PI, U = z / 2, we = 2 * z;
118
118
  function De(n) {
119
- return n > 1 ? 0 : n < -1 ? G : Math.acos(n);
119
+ return n > 1 ? 0 : n < -1 ? z : Math.acos(n);
120
120
  }
121
121
  function ge(n) {
122
122
  return n >= 1 ? U : n <= -1 ? -U : Math.asin(n);
@@ -162,25 +162,25 @@ function ke() {
162
162
  else {
163
163
  var w = m, x = R, _ = m, P = R, T = C, O = C, M = c.apply(this, arguments) / 2, B = M > b && (h ? +h.apply(this, arguments) : q(u * u + f * f)), N = ae(fe(f - u) / 2, +d.apply(this, arguments)), D = N, A = N, i, o;
164
164
  if (B > b) {
165
- var S = ge(B / u * j(M)), $ = ge(B / f * j(M));
166
- (T -= S * 2) > b ? (S *= g ? 1 : -1, _ += S, P -= S) : (T = 0, _ = P = (m + R) / 2), (O -= $ * 2) > b ? ($ *= g ? 1 : -1, w += $, x -= $) : (O = 0, w = x = (m + R) / 2);
165
+ var S = ge(B / u * j(M)), G = ge(B / f * j(M));
166
+ (T -= S * 2) > b ? (S *= g ? 1 : -1, _ += S, P -= S) : (T = 0, _ = P = (m + R) / 2), (O -= G * 2) > b ? (G *= g ? 1 : -1, w += G, x -= G) : (O = 0, w = x = (m + R) / 2);
167
167
  }
168
- var X = f * L(w), Y = f * j(w), z = u * L(P), E = u * j(P);
168
+ var X = f * L(w), Y = f * j(w), $ = u * L(P), E = u * j(P);
169
169
  if (N > b) {
170
170
  var K = f * L(x), V = f * j(x), W = u * L(_), Z = u * j(_), k;
171
- if (C < G)
172
- if (k = je(X, Y, W, Z, K, V, z, E)) {
171
+ if (C < z)
172
+ if (k = je(X, Y, W, Z, K, V, $, E)) {
173
173
  var ee = X - k[0], te = Y - k[1], ie = K - k[0], se = V - k[1], oe = 1 / j(De((ee * ie + te * se) / (q(ee * ee + te * te) * q(ie * ie + se * se))) / 2), de = q(k[0] * k[0] + k[1] * k[1]);
174
174
  D = ae(N, (u - de) / (oe - 1)), A = ae(N, (f - de) / (oe + 1));
175
175
  } else
176
176
  D = A = 0;
177
177
  }
178
- O > b ? A > b ? (i = F(W, Z, X, Y, f, A, g), o = F(K, V, z, E, f, A, g), t.moveTo(i.cx + i.x01, i.cy + i.y01), A < N ? t.arc(i.cx, i.cy, A, p(i.y01, i.x01), p(o.y01, o.x01), !g) : (t.arc(i.cx, i.cy, A, p(i.y01, i.x01), p(i.y11, i.x11), !g), t.arc(0, 0, f, p(i.cy + i.y11, i.cx + i.x11), p(o.cy + o.y11, o.cx + o.x11), !g), t.arc(o.cx, o.cy, A, p(o.y11, o.x11), p(o.y01, o.x01), !g))) : (t.moveTo(X, Y), t.arc(0, 0, f, w, x, !g)) : t.moveTo(X, Y), !(u > b) || !(T > b) ? t.lineTo(z, E) : D > b ? (i = F(z, E, K, V, u, -D, g), o = F(X, Y, W, Z, u, -D, g), t.lineTo(i.cx + i.x01, i.cy + i.y01), D < N ? t.arc(i.cx, i.cy, D, p(i.y01, i.x01), p(o.y01, o.x01), !g) : (t.arc(i.cx, i.cy, D, p(i.y01, i.x01), p(i.y11, i.x11), !g), t.arc(0, 0, u, p(i.cy + i.y11, i.cx + i.x11), p(o.cy + o.y11, o.cx + o.x11), g), t.arc(o.cx, o.cy, D, p(o.y11, o.x11), p(o.y01, o.x01), !g))) : t.arc(0, 0, u, P, _, g);
178
+ O > b ? A > b ? (i = F(W, Z, X, Y, f, A, g), o = F(K, V, $, E, f, A, g), t.moveTo(i.cx + i.x01, i.cy + i.y01), A < N ? t.arc(i.cx, i.cy, A, p(i.y01, i.x01), p(o.y01, o.x01), !g) : (t.arc(i.cx, i.cy, A, p(i.y01, i.x01), p(i.y11, i.x11), !g), t.arc(0, 0, f, p(i.cy + i.y11, i.cx + i.x11), p(o.cy + o.y11, o.cx + o.x11), !g), t.arc(o.cx, o.cy, A, p(o.y11, o.x11), p(o.y01, o.x01), !g))) : (t.moveTo(X, Y), t.arc(0, 0, f, w, x, !g)) : t.moveTo(X, Y), !(u > b) || !(T > b) ? t.lineTo($, E) : D > b ? (i = F($, E, K, V, u, -D, g), o = F(X, Y, W, Z, u, -D, g), t.lineTo(i.cx + i.x01, i.cy + i.y01), D < N ? t.arc(i.cx, i.cy, D, p(i.y01, i.x01), p(o.y01, o.x01), !g) : (t.arc(i.cx, i.cy, D, p(i.y01, i.x01), p(i.y11, i.x11), !g), t.arc(0, 0, u, p(i.cy + i.y11, i.cx + i.x11), p(o.cy + o.y11, o.cx + o.x11), g), t.arc(o.cx, o.cy, D, p(o.y11, o.x11), p(o.y01, o.x01), !g))) : t.arc(0, 0, u, P, _, g);
179
179
  }
180
180
  if (t.closePath(), e) return t = null, e + "" || null;
181
181
  }
182
182
  return s.centroid = function() {
183
- var e = (+n.apply(this, arguments) + +a.apply(this, arguments)) / 2, v = (+r.apply(this, arguments) + +l.apply(this, arguments)) / 2 - G / 2;
183
+ var e = (+n.apply(this, arguments) + +a.apply(this, arguments)) / 2, v = (+r.apply(this, arguments) + +l.apply(this, arguments)) / 2 - z / 2;
184
184
  return [L(v) * e, j(v) * e];
185
185
  }, s.innerRadius = function(e) {
186
186
  return arguments.length ? (n = typeof e == "function" ? e : I(+e), s) : n;
@@ -1,5 +1,5 @@
1
- import { G as b, C as o, d as w } from "./Tooltip-A_HlttXp.js";
2
- import { b as n, e as v } from "./Entity-CCUIdRAr.js";
1
+ import { G as b, C as o, d as w } from "./Tooltip-RhAldW7s.js";
2
+ import { b as n, e as v } from "./Entity-4Lr2piVN.js";
3
3
  function p(i, t) {
4
4
  for (let e = 0, r = t.length; e < r; e++) {
5
5
  const s = t[e];
@@ -1,4 +1,4 @@
1
- import { e as w, ai as mt, a7 as St, au as rt, av as yt, aw as Ot, f as m, r as H, a6 as Q, D as B, M as C, z as Ct, u as bt, k as lt, E as F, P as D, ac as vt, w as L, d as q, i as Dt, ax as at, _ as nt, ay as Lt, a9 as It, az as wt, Q as xt, C as ht, ad as Mt, t as Pt, aA as Bt, aB as kt, h as Wt, v as Nt, aC as Rt, b as Ft, a as At, m as Gt } from "./Entity-CCUIdRAr.js";
1
+ import { e as w, aj as mt, a8 as St, q as rt, av as yt, aw as Ot, f as m, j as H, a7 as Z, F as B, M as C, D as Ct, l as bt, k as lt, E as F, P as D, ad as vt, z as L, d as q, i as Dt, ax as at, _ as nt, ay as Lt, aa as It, az as wt, R as xt, C as ht, ae as Mt, t as Pt, aA as Bt, aB as kt, v as Wt, y as Nt, aC as Rt, b as Ft, a as At, m as Gt } from "./Entity-4Lr2piVN.js";
2
2
  function z(n, t) {
3
3
  if (!(n >= 0 && n < t))
4
4
  throw new Error("Index out of bounds: " + n);
@@ -433,8 +433,8 @@ class zt extends Ht {
433
433
  }));
434
434
  }
435
435
  }
436
- const jt = Math.PI, Et = jt / 180, Qt = 180 / jt;
437
- function Zt(n, t, e) {
436
+ const jt = Math.PI, Et = jt / 180, Zt = 180 / jt;
437
+ function Qt(n, t, e) {
438
438
  if (!m(t) || t <= 0)
439
439
  return Math.round(n);
440
440
  {
@@ -604,7 +604,7 @@ class Kt {
604
604
  }
605
605
  add(t, e) {
606
606
  let i = this._callbacks[t];
607
- return i === void 0 && (i = this._callbacks[t] = []), i.push(e), new Q(() => {
607
+ return i === void 0 && (i = this._callbacks[t] = []), i.push(e), new Z(() => {
608
608
  B(i, e), i.length === 0 && delete this._callbacks[t];
609
609
  });
610
610
  }
@@ -620,7 +620,7 @@ class Kt {
620
620
  }), new C(e);
621
621
  }
622
622
  }
623
- class Z {
623
+ class Q {
624
624
  constructor(t, e) {
625
625
  if (Object.defineProperty(this, "_disposed", {
626
626
  enumerable: !0,
@@ -686,7 +686,7 @@ class Z {
686
686
  * @return Instantiated object
687
687
  */
688
688
  static new(t) {
689
- return new Z(t, !0);
689
+ return new Q(t, !0);
690
690
  }
691
691
  _dispose() {
692
692
  pt(this._settings), pt(this._privateSettings);
@@ -765,7 +765,7 @@ class Z {
765
765
  on(t, e) {
766
766
  this._checkDisposed();
767
767
  let i = this._settingEvents[t];
768
- return i === void 0 && (i = this._settingEvents[t] = []), i.push(e), new Q(() => {
768
+ return i === void 0 && (i = this._settingEvents[t] = []), i.push(e), new Z(() => {
769
769
  B(i, e), i.length === 0 && delete this._settingEvents[t];
770
770
  });
771
771
  }
@@ -773,7 +773,7 @@ class Z {
773
773
  onPrivate(t, e) {
774
774
  this._checkDisposed();
775
775
  let i = this._privateSettingEvents[t];
776
- return i === void 0 && (i = this._privateSettingEvents[t] = []), i.push(e), new Q(() => {
776
+ return i === void 0 && (i = this._privateSettingEvents[t] = []), i.push(e), new Z(() => {
777
777
  B(i, e), i.length === 0 && delete this._privateSettingEvents[t];
778
778
  });
779
779
  }
@@ -1091,7 +1091,7 @@ class O extends F {
1091
1091
  const i = this.dataItem;
1092
1092
  if (i) {
1093
1093
  const s = i.dataContext;
1094
- s && (t = s[e], !(t instanceof Z) && t && (t = Z.new(t)));
1094
+ s && (t = s[e], !(t instanceof Q) && t && (t = Q.new(t)));
1095
1095
  }
1096
1096
  }
1097
1097
  this._templateField !== t && (this._removeTemplateField(), this._templateField = t, t && t._setObjectTemplate(this), this._applyTemplates());
@@ -3133,7 +3133,7 @@ class et extends O {
3133
3133
  let e = this.get("opacity", 1);
3134
3134
  this._display.alpha = e;
3135
3135
  }
3136
- if ((this.isDirty("text") || this.isDirty("populateText")) && (this._display.text = this._getText(), this.markDirtyBounds(), this.get("role") == "tooltip" && this._root.updateTooltip(this)), this.isPrivateDirty("tooltipElement") && this.getPrivate("tooltipElement") && this._disposers.push(new Q(() => {
3136
+ if ((this.isDirty("text") || this.isDirty("populateText")) && (this._display.text = this._getText(), this.markDirtyBounds(), this.get("role") == "tooltip" && this._root.updateTooltip(this)), this.isPrivateDirty("tooltipElement") && this.getPrivate("tooltipElement") && this._disposers.push(new Z(() => {
3137
3137
  this._root._removeTooltipElement(this);
3138
3138
  })), this.isDirty("width") && (t.wordWrapWidth = this.width(), this.markDirtyBounds()), this.isDirty("oversizedBehavior") && (t.oversizedBehavior = this.get("oversizedBehavior", "none"), this._display.invalidateVisibility(), this.markDirtyBounds()), this.isDirty("breakWords") && (t.breakWords = this.get("breakWords", !1), this.markDirtyBounds()), this.isDirty("ellipsis") && (t.ellipsis = this.get("ellipsis"), this.markDirtyBounds()), this.isDirty("ignoreFormatting") && (t.ignoreFormatting = this.get("ignoreFormatting", !1), this.markDirtyBounds()), this.isDirty("minScale") && (t.minScale = this.get("minScale", 0), this.markDirtyBounds()), this.isDirty("fill") || this.isDirty("fillGradient")) {
3139
3139
  const e = this.get("fill"), i = this.get("fillGradient"), s = this.get("fillOpacity");
@@ -3577,7 +3577,7 @@ Object.defineProperty(_t, "classNames", {
3577
3577
  export {
3578
3578
  ft as B,
3579
3579
  S as C,
3580
- Qt as D,
3580
+ Zt as D,
3581
3581
  W as G,
3582
3582
  K as H,
3583
3583
  it as L,
@@ -3585,7 +3585,7 @@ export {
3585
3585
  _t as T,
3586
3586
  $ as V,
3587
3587
  qt as a,
3588
- Z as b,
3588
+ Q as b,
3589
3589
  dt as c,
3590
3590
  Vt as d,
3591
3591
  et as e,
@@ -3600,7 +3600,7 @@ export {
3600
3600
  Tt as n,
3601
3601
  J as o,
3602
3602
  tt as p,
3603
- Zt as r,
3603
+ Qt as r,
3604
3604
  ut as s,
3605
3605
  re as v
3606
3606
  };
@@ -1,6 +1,6 @@
1
- import { C as m, G as X, r as v } from "./Tooltip-A_HlttXp.js";
2
- import { m as Y, b, s as y, d as T, e as C, i as L, k as w, g as A, f as P } from "./Entity-CCUIdRAr.js";
3
- import { G as x } from "./AxisRenderer-lUbezuh7.js";
1
+ import { C as m, G as X, r as v } from "./Tooltip-RhAldW7s.js";
2
+ import { m as Y, b, s as y, d as T, e as C, i as L, k as w, g as A, f as P } from "./Entity-4Lr2piVN.js";
3
+ import { G as x } from "./AxisRenderer-Doyw-FTI.js";
4
4
  class c extends m {
5
5
  constructor() {
6
6
  super(...arguments), Object.defineProperty(this, "_alwaysShow", {
@@ -1,5 +1,5 @@
1
- import { C as c, R as v, f as x } from "./Tooltip-A_HlttXp.js";
2
- import { b as g, c as D, f, v as O, k as b, r as z } from "./Entity-CCUIdRAr.js";
1
+ import { C as c, R as x, f as v } from "./Tooltip-RhAldW7s.js";
2
+ import { b as g, c as D, f, y as O, k as b, j as z } from "./Entity-4Lr2piVN.js";
3
3
  class d extends c {
4
4
  constructor() {
5
5
  super(...arguments), Object.defineProperty(this, "_za", {
@@ -52,7 +52,7 @@ class d extends c {
52
52
  x: 0,
53
53
  y: 0,
54
54
  draggable: !0,
55
- background: v.new(this._root, {
55
+ background: x.new(this._root, {
56
56
  fill: D(16777215),
57
57
  fillOpacity: 0
58
58
  })
@@ -119,7 +119,7 @@ class d extends c {
119
119
  * @return Zoom Animation object
120
120
  */
121
121
  zoomToPoint(s, i) {
122
- i && (i = x(i, this.get("minZoomLevel", 1), this.get("maxZoomLevel", 32)));
122
+ i && (i = v(i, this.get("minZoomLevel", 1), this.get("maxZoomLevel", 32)));
123
123
  const n = this.contents.get("scale", 1);
124
124
  let e = s.x, t = s.y, o = e, a = t;
125
125
  const h = this.contents;
@@ -1,5 +1,5 @@
1
- import { T as x } from "../../../Tooltip-A_HlttXp.js";
2
- import { c as p, p as v } from "../../../Entity-CCUIdRAr.js";
1
+ import { T as x } from "../../../Tooltip-RhAldW7s.js";
2
+ import { c as p, p as v } from "../../../Entity-4Lr2piVN.js";
3
3
  const F = {
4
4
  millisecond: "d MMM, yyyy HH:mm:ss.SSS",
5
5
  second: "d MMM, yyyy HH:mm:ss",
@@ -1,6 +1,6 @@
1
1
  import { buildAmNumberFormat as e } from "./format.js";
2
- import { C as m } from "../../../ColorSet-DDmFoKtZ.js";
3
- import { c as F } from "../../../Entity-CCUIdRAr.js";
2
+ import { C as m } from "../../../ColorSet-DGLMpbL3.js";
3
+ import { c as F } from "../../../Entity-4Lr2piVN.js";
4
4
  const a = [
5
5
  "#294D94",
6
6
  "#375F97",