@hybridcore/ui 1.6.8 → 1.6.10

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 (47) hide show
  1. package/dist/AnimatedTheme-ktdO3Bel.js +7708 -0
  2. package/dist/{AxisRenderer-DTyLLA6c.js → AxisRenderer-BCQoUJw6.js} +51 -49
  3. package/dist/{AxisRendererY-C_ItLPNV.js → AxisRendererY-AXWvGU6r.js} +3 -3
  4. package/dist/{Bullet-DVczI2TD.js → Bullet-Djj7Vs9T.js} +1 -1
  5. package/dist/{Button-CcsPEIDh.js → Button-BLY4PVJC.js} +3 -3
  6. package/dist/{CategoryAxis-CwnfaGc8.js → CategoryAxis-B6NqW8qd.js} +3 -3
  7. package/dist/{Circle-Cy5s-pVc.js → Circle-BnfBNKBD.js} +1 -1
  8. package/dist/ColorSet-cyPmWGwh.js +77 -0
  9. package/dist/{ColumnSeries-CjgdJ2QL.js → ColumnSeries-CtRTsn-E.js} +4 -4
  10. package/dist/{DateAxis-YX3QNIB-.js → DateAxis-DEXKps1S.js} +8 -7
  11. package/dist/{ColorSet-C7vpNXhM.js → Entity-BJCuhdq_.js} +638 -712
  12. package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
  13. package/dist/{Hierarchy-Bihj0S61.js → Hierarchy-CEOK8Gzh.js} +21 -19
  14. package/dist/{Legend-Dp_MKfS4.js → Legend-CFvQiIfn.js} +11 -10
  15. package/dist/{LineSeries-Uiv5o56b.js → LineSeries-D_IL2qGF.js} +13 -12
  16. package/dist/{LinearGradient-DiRq5YcI.js → LinearGradient-CxQyCSEB.js} +11 -11
  17. package/dist/{PieSeries-B2fW3z0s.js → PieSeries-CMH0Z7pz.js} +34 -32
  18. package/dist/{RoundedRectangle-CWLi2PXn.js → RoundedRectangle-BKLX1LKM.js} +4 -4
  19. package/dist/{Scrollbar-D86MJyr2.js → Scrollbar-CTI7_8Qw.js} +4 -4
  20. package/dist/{Slice-B19rbYDZ.js → Slice-BUncQh1B.js} +2 -2
  21. package/dist/{Tick-2bcLyHpF.js → Tick--VhF0xlz.js} +15 -15
  22. package/dist/Tooltip-vyZRZWih.js +3606 -0
  23. package/dist/{XYCursor-C8WktvKM.js → XYCursor-CVUSpqb9.js} +3 -3
  24. package/dist/{ZoomableContainer-DYyqwaMb.js → ZoomableContainer-Ca_pDVYQ.js} +7 -7
  25. package/dist/components/charts/_common/tooltip.js +73 -0
  26. package/dist/components/charts/_common/utils.js +10 -9
  27. package/dist/components/charts/candlestick/logic.js +191 -164
  28. package/dist/components/charts/column-line-mix/logic.js +116 -107
  29. package/dist/components/charts/donut-chart/logic.js +36 -34
  30. package/dist/components/charts/drill-down-treemap/logic.js +49 -48
  31. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +102 -101
  32. package/dist/components/charts/heatmap/logic.js +33 -32
  33. package/dist/components/charts/highlighting-line-data/logic.js +26 -24
  34. package/dist/components/charts/line/logic.js +147 -185
  35. package/dist/components/charts/logaritmic-scale/logic.js +99 -84
  36. package/dist/components/charts/multiple-value-axes/logic.js +117 -107
  37. package/dist/components/charts/nested-pie/logic.js +3 -3
  38. package/dist/components/charts/packed-circles/logic.js +28 -27
  39. package/dist/components/charts/pie-chart/logic.js +43 -41
  40. package/dist/components/charts/stacked-area-radar/logic.js +124 -121
  41. package/dist/components/charts/stacked-column-chart/logic.js +107 -95
  42. package/dist/components/charts/xy-chart/logic.js +112 -98
  43. package/dist/components/metric-card/MetricChart.js +29 -28
  44. package/dist/main.d.ts +13 -0
  45. package/package.json +1 -1
  46. package/dist/AnimatedTheme-jnasw6rT.js +0 -11305
  47. package/dist/DataProcessor-CHDO51q4.js +0 -83
@@ -0,0 +1,376 @@
1
+ import { E as se, e as D, v as ae, r as re, w as ne, C as oe, x as le, j as T, o as E, y as he, f as M, z as B, A as ce } from "./Entity-BJCuhdq_.js";
2
+ import { D as J } from "./DateAxis-DEXKps1S.js";
3
+ import { b as k, r as x, c as ue, g as S, D as H, d as me, a as de } from "./AnimatedTheme-ktdO3Bel.js";
4
+ import { f as W } from "./Tooltip-vyZRZWih.js";
5
+ class De extends se {
6
+ constructor() {
7
+ super(...arguments), Object.defineProperty(this, "_checkDates", {
8
+ enumerable: !0,
9
+ configurable: !0,
10
+ writable: !0,
11
+ value: !1
12
+ }), Object.defineProperty(this, "_checkNumbers", {
13
+ enumerable: !0,
14
+ configurable: !0,
15
+ writable: !0,
16
+ value: !1
17
+ }), Object.defineProperty(this, "_checkColors", {
18
+ enumerable: !0,
19
+ configurable: !0,
20
+ writable: !0,
21
+ value: !1
22
+ }), Object.defineProperty(this, "_checkEmpty", {
23
+ enumerable: !0,
24
+ configurable: !0,
25
+ writable: !0,
26
+ value: !1
27
+ }), Object.defineProperty(this, "_checkDeep", {
28
+ enumerable: !0,
29
+ configurable: !0,
30
+ writable: !0,
31
+ value: !1
32
+ });
33
+ }
34
+ _afterNew() {
35
+ super._afterNew(), this._checkFeatures(), this.on("dateFields", () => this._checkFeatures()), this.on("dateFormat", () => this._checkFeatures()), this.on("numericFields", () => this._checkFeatures()), this.on("colorFields", () => this._checkFeatures()), this.on("emptyAs", () => this._checkFeatures());
36
+ }
37
+ _checkFeatures() {
38
+ (this.isDirty("dateFields") || this.isDirty("dateFormat")) && (this._checkDates = this.get("dateFields") && this.get("dateFields").length > 0), this.isDirty("numericFields") && (this._checkNumbers = this.get("numericFields") && this.get("numericFields").length > 0), this.isDirty("colorFields") && (this._checkColors = this.get("colorFields") && this.get("colorFields").length > 0), this.isDirty("emptyAs") && (this._checkEmpty = this.get("emptyAs") != null), this._checkDeepFeatures();
39
+ }
40
+ _checkDeepFeatures() {
41
+ const e = [];
42
+ D(["dateFields", "numericFields", "colorFields"], (t) => {
43
+ D(this.get(t, []), (i) => {
44
+ const a = i.split(".");
45
+ for (a.pop(); a.length > 0; )
46
+ e.push(a.join(".")), a.pop();
47
+ });
48
+ }), this._checkDeep = e.length > 0, this.setPrivate("deepFields", e);
49
+ }
50
+ /**
51
+ * Processess entire array of data.
52
+ *
53
+ * NOTE: calling this will modify original array!
54
+ */
55
+ processMany(e) {
56
+ ae(e) && (this._checkDates || this._checkNumbers || this._checkColors || this._checkEmpty) && D(e, (t) => {
57
+ this.processRow(t);
58
+ });
59
+ }
60
+ /**
61
+ * Processes a row (object) of data.
62
+ *
63
+ * NOTE: calling this will modify values of the original object!
64
+ */
65
+ processRow(e, t = "") {
66
+ re(e, (i, a) => {
67
+ const n = t + i;
68
+ this._checkEmpty && (e[i] = this._maybeToEmpty(e[i])), this._checkNumbers && (e[i] = this._maybeToNumber(n, e[i])), this._checkDates && (e[i] = this._maybeToDate(n, e[i])), this._checkColors && (e[i] = this._maybeToColor(n, e[i])), this._checkDeep && this.getPrivate("deepFields", []).indexOf(n) !== -1 && le(e[i]) && this.processRow(e[i], n + ".");
69
+ });
70
+ }
71
+ _maybeToNumber(e, t) {
72
+ return this.get("numericFields").indexOf(e) !== -1 ? ne(t) : t;
73
+ }
74
+ _maybeToDate(e, t) {
75
+ return this.get("dateFields").indexOf(e) !== -1 ? this._root.dateFormatter.parse(t, this.get("dateFormat", "")).getTime() : t;
76
+ }
77
+ _maybeToEmpty(e) {
78
+ return (e == null || e == "") && this.get("emptyAs") != null ? this.get("emptyAs") : e;
79
+ }
80
+ _maybeToColor(e, t) {
81
+ return this.get("colorFields").indexOf(e) !== -1 ? oe.fromAny(t) : t;
82
+ }
83
+ }
84
+ class Z extends J {
85
+ constructor() {
86
+ super(...arguments), Object.defineProperty(this, "_frequency", {
87
+ enumerable: !0,
88
+ configurable: !0,
89
+ writable: !0,
90
+ value: 1
91
+ }), Object.defineProperty(this, "_m", {
92
+ enumerable: !0,
93
+ configurable: !0,
94
+ writable: !0,
95
+ value: 0
96
+ }), Object.defineProperty(this, "_dates", {
97
+ enumerable: !0,
98
+ configurable: !0,
99
+ writable: !0,
100
+ value: []
101
+ }), Object.defineProperty(this, "_customDates", {
102
+ enumerable: !0,
103
+ configurable: !0,
104
+ writable: !0,
105
+ value: void 0
106
+ });
107
+ }
108
+ _afterNew() {
109
+ this.valueFields.push("date"), this.addTag("gapless"), super._afterNew();
110
+ }
111
+ _getDates() {
112
+ return this._customDates ? this._customDates : this._dates;
113
+ }
114
+ _updateDates(e, t) {
115
+ if (!t.get("ignoreMinMax")) {
116
+ const i = this._getDates(), a = T(i, (n) => E(n, e));
117
+ a.found || he(i, a.index, e);
118
+ }
119
+ }
120
+ _updateAllDates() {
121
+ if (!this._customDates) {
122
+ const e = this._dates;
123
+ e.length = 0, D(this.series, (h) => {
124
+ let o = "valueX";
125
+ h.get("yAxis") == this && (o = "valueY"), D(h.dataItems, (l) => {
126
+ let m = l.get(o);
127
+ M(m) && l.open && this._updateDates(l.open[o], h);
128
+ });
129
+ });
130
+ const t = this.get("extraMax", 0), i = this.get("extraMin", 0);
131
+ let a = e.length;
132
+ const n = this.getPrivate("baseInterval"), r = n.count, s = n.timeUnit;
133
+ if (t > 0) {
134
+ const h = a * t;
135
+ let o = e[a - 1];
136
+ if (M(o))
137
+ for (let l = a - 1; l < a + h; l++)
138
+ o += k(s, r * this._getM(s)), o = x(o, s, r, this._root), e.push(o);
139
+ }
140
+ if (i > 0) {
141
+ const h = a * i;
142
+ let o = e[0];
143
+ if (M(o))
144
+ for (let l = 0; l < h; l++)
145
+ o -= k(s, r), o = x(o, s, r, this._root), e.unshift(o);
146
+ }
147
+ }
148
+ }
149
+ /**
150
+ * Convers value to a relative position on axis.
151
+ *
152
+ * @param value Value
153
+ * @return Relative position
154
+ */
155
+ valueToPosition(e) {
156
+ const t = this._getDates(), i = this.get("startLocation", 0), a = this.get("endLocation", 1), n = t.length - i - (1 - a), r = T(t, (h) => E(h, e));
157
+ let s = r.index;
158
+ if (r.found)
159
+ return (s - i) / n;
160
+ {
161
+ s > 0 && (s -= 1);
162
+ let h = t[s];
163
+ const o = t[s + 1];
164
+ if (o) {
165
+ let m = o;
166
+ Math.abs(m - e) < Math.abs(h - e) && (h = m, s++);
167
+ }
168
+ let l = e - h;
169
+ return (s - i) / n + l / this.baseDuration() / n;
170
+ }
171
+ }
172
+ /**
173
+ * Converts numeric value from axis scale to index.
174
+ *
175
+ * @param value Value
176
+ * @return Index
177
+ */
178
+ valueToIndex(e) {
179
+ const t = this._getDates(), i = T(t, (n) => E(n, e));
180
+ let a = i.index;
181
+ return i.found || a > 0 && (a -= 1), a;
182
+ }
183
+ /**
184
+ * Converts a relative position to a corresponding numeric value from axis
185
+ * scale.
186
+ *
187
+ * @param position Relative position
188
+ * @return Value
189
+ */
190
+ positionToValue(e) {
191
+ const t = this.get("startLocation", 0), i = this.get("endLocation", 1), a = this._getDates();
192
+ let n = Math.round(a.length - t - (1 - i)), r = e * n, s = Math.floor(r);
193
+ return s < 0 && (s = 0), s > n - 1 && (s = n - 1), a[s] + (r - s + t) * this.baseDuration();
194
+ }
195
+ _fixZoomFactor() {
196
+ this.setPrivateRaw("maxZoomFactor", this._getDates().length - this.get("startLocation", 0) - (1 - this.get("endLocation", 1)));
197
+ }
198
+ /**
199
+ * Zooms the axis to specific `start` and `end` dates.
200
+ *
201
+ * Optional `duration` specifies duration of zoom animation in milliseconds.
202
+ *
203
+ * @param start Start Date
204
+ * @param end End Date
205
+ * @param duration Duration in milliseconds
206
+ */
207
+ zoomToDates(e, t, i) {
208
+ const a = this._getDates(), n = a.length;
209
+ let r = T(a, (o) => E(o, e.getTime())), s = a[Math.min(r.index, n - 1)];
210
+ r = T(a, (o) => E(o, t.getTime()));
211
+ let h = a[r.index];
212
+ r.index >= n && (h = a[n - 1] + this.baseDuration()), this.zoomToValues(s, h, i);
213
+ }
214
+ /**
215
+ * Zooms the axis to specific `start` and `end` values.
216
+ *
217
+ * Optional `duration` specifies duration of zoom animation in milliseconds.
218
+ *
219
+ * @param start Start value
220
+ * @param end End value
221
+ * @param duration Duration in milliseconds
222
+ */
223
+ zoomToValues(e, t, i) {
224
+ const a = this.getPrivate("min", 0), n = this.getPrivate("max", 0);
225
+ e = W(e, a, n), t = W(t, a, n), this.zoom(this.valueToPosition(e), this.valueToPosition(t), i);
226
+ }
227
+ _prepareAxisItems() {
228
+ let e = this.getPrivate("selectionMin", 0), t = this.getPrivate("selectionMax", 0);
229
+ if (M(e) && M(t)) {
230
+ this._seriesValuesDirty && (this._seriesValuesDirty = !1, this._updateAllDates());
231
+ const i = this._root, a = i.utc, n = i.timezone, r = this._getDates(), s = this.get("renderer"), h = r.length, o = this.baseDuration();
232
+ let l = this.valueToIndex(e);
233
+ l > 0 && l--;
234
+ let m = this.valueToIndex(t);
235
+ m < h - 1 && m++;
236
+ let c = s.axisLength() / Math.max(s.get("minGridDistance"), 1 / Number.MAX_SAFE_INTEGER), f = Math.min(h, Math.ceil((m - l) / c));
237
+ f = Math.max(1, f), l = Math.floor(l / f) * f, this._frequency = f, D(this.dataItems, (_) => {
238
+ this._toggleDataItem(_, !1);
239
+ }), D(this.minorDataItems, (_) => {
240
+ this._toggleDataItem(_, !1);
241
+ });
242
+ let F = t - e - ((t - e) / o - (m - l)) * o, u = ue(0, F, c, this.get("gridIntervals"));
243
+ const G = this.getPrivate("baseInterval");
244
+ let g = S(u);
245
+ g < o && (u = Object.assign({}, G), g = S(u)), this._intervalDuration = g;
246
+ const b = u.timeUnit, y = this.get("dateFormats");
247
+ let N = Date.now();
248
+ r[0] && (N = r[0]);
249
+ let O = x(this.getPrivate("selectionMin", 0), b, u.count, i, N);
250
+ const ee = s.get("minorLabelsEnabled"), K = s.get("minorGridEnabled", ee);
251
+ let w, U = 0, L;
252
+ K && (w = this._getMinorInterval(u), U = S(w));
253
+ let V = this._getIndexes(O, this.getPrivate("selectionMax", O) + g, u, this.getPrivate("min", O));
254
+ if (V.length > 0) {
255
+ let _ = 0;
256
+ this._m = 0;
257
+ let z = O - g * 10;
258
+ const Y = de(b);
259
+ if (w) {
260
+ let j = r[V[0]];
261
+ this._addMinorGrid(j - g, j, U, w);
262
+ }
263
+ let te = s.axisLength() / s.gridCount() * 0.5;
264
+ D(V, (j) => {
265
+ var X;
266
+ let d;
267
+ this.dataItems.length < _ + 1 ? (d = new H(this, void 0, {}), this._dataItems.push(d), this.processDataItem(d)) : d = this.dataItems[_];
268
+ let p = r[j], ie = new Date(p), R = p;
269
+ _ < V.length - 1 ? R = r[V[_ + 1]] : R += g, d.setRaw("value", p), d.setRaw("endValue", R), d.setRaw("index", _), d.setRaw("labelEndValue", void 0);
270
+ let $ = y[b];
271
+ Y && this.get("markUnitChange") && M(z) && b != "year" && me(p, z, Y, a, n) && ($ = this.get("periodChangeDateFormats")[b]), this._createAssets(d, []);
272
+ const P = d.get("label");
273
+ P && P.set("text", i.dateFormatter.format(ie, $)), this._toggleDataItem(d, !0);
274
+ let q = u.count;
275
+ if (b == "week" && d.setRaw("labelEndValue", p), K) {
276
+ let v = u.timeUnit;
277
+ if (v == "week" && (v = "day"), q > 1 || u.timeUnit == "week") {
278
+ let I = x(p, v, 1, i) + k(v, this._getM(v)), C = this.valueToIndex(I);
279
+ if (I = r[C], I == p) {
280
+ let A = r[C + 1];
281
+ A ? I = A : I += U;
282
+ }
283
+ d.setRaw("labelEndValue", I);
284
+ }
285
+ q = 1;
286
+ }
287
+ if (this._prepareDataItem(d, q), P && L && s.getPrivate("letter") == "X") {
288
+ let v = L.get("label");
289
+ if (v) {
290
+ let I = P.x(), C = v.x();
291
+ if (I - C < te) {
292
+ let A = this._pickWorse(L, d, u);
293
+ A && ((X = A.get("label")) === null || X === void 0 || X.setPrivate("visible", !1));
294
+ }
295
+ }
296
+ }
297
+ w && this._addMinorGrid(p, R, U, w), _++, P && P.getPrivate("visible") && (L = d), z = p;
298
+ });
299
+ }
300
+ D(this.series, (_) => {
301
+ _.inited && _._markDirtyAxes();
302
+ });
303
+ }
304
+ this._updateGhost();
305
+ }
306
+ _pickWorse(e, t, i) {
307
+ const a = i.timeUnit, n = e.get("value", 0), r = t.get("value", 0);
308
+ return a == "hour" && new Date(n).getDate() != new Date(r).getDate() ? e : t;
309
+ }
310
+ _addMinorGrid(e, t, i, a) {
311
+ const n = this.get("minorDateFormats", this.get("dateFormats")), r = a.timeUnit;
312
+ let s = e + k(r, this._getM(r));
313
+ s = x(s, r, 1, this._root);
314
+ let h = t - i * 0.5, o = this._getIndexes(s, h, a, s);
315
+ const l = this._getDates();
316
+ D(o, (m) => {
317
+ let c;
318
+ this.minorDataItems.length < this._m + 1 ? (c = new H(this, void 0, {}), this.minorDataItems.push(c), this.processDataItem(c)) : c = this.minorDataItems[this._m], s = l[m], c.setRaw("value", s), c.setRaw("endValue", s + i), c.setRaw("index", m), this._createAssets(c, ["minor"], !0);
319
+ const f = c.get("label");
320
+ if (f)
321
+ if (this.get("renderer").get("minorLabelsEnabled")) {
322
+ let F = new Date(s), u = n[r];
323
+ f.set("text", this._root.dateFormatter.format(F, u));
324
+ } else
325
+ f.setPrivate("visible", !1);
326
+ this._toggleDataItem(c, !0), this._prepareDataItem(c, 1), this._m++;
327
+ });
328
+ }
329
+ _getIndexes(e, t, i, a) {
330
+ const n = [], r = i.timeUnit, s = i.count, h = this._getM(r), o = this.getPrivate("baseInterval"), l = this._root, m = this._getDates();
331
+ let c = s - 1, f = -1 / 0, F = k(r, h), u = k(r, s * h), G = e;
332
+ for (r == "day" && (e = a); e <= t; ) {
333
+ e = x(e, r, s, l);
334
+ let g = this.valueToIndex(e), b = m[g];
335
+ if (r == "day" && o.timeUnit == "day")
336
+ this._hasDate(e) && c++, c == s && (e >= G - u * 2 && B(n, g), c = 0), e += F, e = x(e, r, 1, l);
337
+ else {
338
+ if (b < e) {
339
+ for (let y = g, N = m.length; y < N; y++)
340
+ if (b = m[y], b >= e) {
341
+ g = y;
342
+ break;
343
+ }
344
+ }
345
+ B(n, g), e += u, e = x(e, r, s, l);
346
+ }
347
+ if (e == f && (e += u + F, e = x(e, r, s, l)), e == f)
348
+ break;
349
+ f = e;
350
+ }
351
+ return n;
352
+ }
353
+ _hasDate(e) {
354
+ return T(this._getDates(), (i) => ce(i, e)).found;
355
+ }
356
+ _nextTime(e, t, i) {
357
+ let a = W(this.valueToIndex(e) + t, 0, this._dates.length - 1);
358
+ return this._dates[a];
359
+ }
360
+ }
361
+ Object.defineProperty(Z, "className", {
362
+ enumerable: !0,
363
+ configurable: !0,
364
+ writable: !0,
365
+ value: "GaplessDateAxis"
366
+ });
367
+ Object.defineProperty(Z, "classNames", {
368
+ enumerable: !0,
369
+ configurable: !0,
370
+ writable: !0,
371
+ value: J.classNames.concat([Z.className])
372
+ });
373
+ export {
374
+ De as D,
375
+ Z as G
376
+ };
@@ -1,6 +1,8 @@
1
- import { b as x, C as L, I as N, a as u, p as v, J as C, m as R, e as p, K as S, f, _ as A } from "./ColorSet-C7vpNXhM.js";
2
- import { a as H, n as d, C as _, S as P, k as B, l as O, L as j, D as T } from "./AnimatedTheme-jnasw6rT.js";
3
- class I extends H {
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-BJCuhdq_.js";
2
+ import { T as S, s as d, S as P, D as B } from "./AnimatedTheme-ktdO3Bel.js";
3
+ import { C as H } from "./ColorSet-cyPmWGwh.js";
4
+ import { C as _, a as T, b as O, L as j } from "./Tooltip-vyZRZWih.js";
5
+ class I extends S {
4
6
  setupDefaultRules() {
5
7
  super.setupDefaultRules();
6
8
  const e = this._root.interfaceColors, i = this._root.gridLayout, t = this.rule.bind(this);
@@ -9,12 +11,12 @@ class I extends H {
9
11
  legendValueText: "{sum.formatNumber('#.#')}",
10
12
  width: x,
11
13
  height: x,
12
- colors: L.new(this._root, { step: 2 }),
14
+ colors: H.new(this._root, { step: 2 }),
13
15
  downDepth: 1,
14
16
  initialDepth: 5,
15
17
  singleBranchOnly: !0,
16
18
  maskContent: !0,
17
- animationEasing: N(C)
19
+ animationEasing: L(N)
18
20
  }), t("HierarchyNode").setAll({
19
21
  toggleKey: "disabled",
20
22
  setStateOnChildren: !0,
@@ -459,10 +461,10 @@ function* Z() {
459
461
  }
460
462
  function w(a, e) {
461
463
  a instanceof Map ? (a = [void 0, a], e === void 0 && (e = te)) : e === void 0 && (e = ee);
462
- for (var i = new y(a), t, s = [i], r, n, l, o; t = s.pop(); )
464
+ for (var i = new m(a), t, s = [i], r, n, l, o; t = s.pop(); )
463
465
  if ((n = e(t.data)) && (o = (n = Array.from(n)).length))
464
466
  for (t.children = n, l = o - 1; l >= 0; --l)
465
- s.push(r = n[l] = new y(n[l])), r.parent = t, r.depth = t.depth + 1;
467
+ s.push(r = n[l] = new m(n[l])), r.parent = t, r.depth = t.depth + 1;
466
468
  return i.eachBefore(se);
467
469
  }
468
470
  function $() {
@@ -483,11 +485,11 @@ function se(a) {
483
485
  a.height = e;
484
486
  while ((a = a.parent) && a.height < ++e);
485
487
  }
486
- function y(a) {
488
+ function m(a) {
487
489
  this.data = a, this.depth = this.height = 0, this.parent = null;
488
490
  }
489
- y.prototype = w.prototype = {
490
- constructor: y,
491
+ m.prototype = w.prototype = {
492
+ constructor: m,
491
493
  count: z,
492
494
  each: V,
493
495
  eachAfter: F,
@@ -534,14 +536,14 @@ class D extends P {
534
536
  enumerable: !0,
535
537
  configurable: !0,
536
538
  writable: !0,
537
- value: this.addDisposer(new B(O.new({}), () => b.new(this._root, {
539
+ value: this.addDisposer(new T(O.new({}), () => b.new(this._root, {
538
540
  themeTags: R(this.nodes.template.get("themeTags", []), [this._tag, "hierarchy", "node"])
539
541
  }, this.nodes.template)))
540
542
  }), Object.defineProperty(this, "labels", {
541
543
  enumerable: !0,
542
544
  configurable: !0,
543
545
  writable: !0,
544
- value: this.addDisposer(new B(O.new({}), () => j.new(this._root, {
546
+ value: this.addDisposer(new T(O.new({}), () => j.new(this._root, {
545
547
  themeTags: R(this.labels.template.get("themeTags", []), [this._tag])
546
548
  }, this.labels.template)))
547
549
  }), Object.defineProperty(this, "_currentDownDepth", {
@@ -644,7 +646,7 @@ class D extends P {
644
646
  if (this.makeNode(e), this._processDataItem(e), i) {
645
647
  const h = [];
646
648
  e.setRaw("children", h), p(i, (g) => {
647
- const c = new T(this, g, this._makeDataItem(g));
649
+ const c = new B(this, g, this._makeDataItem(g));
648
650
  h.push(c), c.setRaw("parent", e), c.setRaw("depth", n + 1), this.dataItems.length == 1 && n == 0 ? (t && c.get("fill") == null && c.setRaw("fill", t.next()), s && c.get("fillPattern") == null && c.setRaw("fillPattern", s.next())) : (c.get("fill") == null && c.setRaw("fill", e.get("fill")), c.get("fillPattern") == null && c.setRaw("fillPattern", e.get("fillPattern"))), this.processDataItem(c);
649
651
  });
650
652
  }
@@ -668,15 +670,15 @@ class D extends P {
668
670
  let o = e.get("depth");
669
671
  p(r, (h) => {
670
672
  let g = !1;
671
- if (S(n, (c) => c.dataContext == h ? (g = !0, !1) : !0), !g) {
672
- const c = new T(this, h, this._makeDataItem(h));
673
+ if (C(n, (c) => c.dataContext == h ? (g = !0, !1) : !0), !g) {
674
+ const c = new B(this, h, this._makeDataItem(h));
673
675
  if (n.push(c), c.setRaw("parent", e), c.setRaw("depth", o + 1), c.get("fill") == null) {
674
- let m = e.get("fill");
675
- if (m == null) {
676
+ let y = e.get("fill");
677
+ if (y == null) {
676
678
  const k = this.get("colors");
677
- k && (m = k.next());
679
+ k && (y = k.next());
678
680
  }
679
- c.setRaw("fill", m);
681
+ c.setRaw("fill", y);
680
682
  }
681
683
  this.processDataItem(c);
682
684
  }
@@ -1,7 +1,8 @@
1
- import { S as C, k as b, l as f, C as _, L as w } from "./AnimatedTheme-jnasw6rT.js";
2
- import { R as T } from "./RoundedRectangle-CWLi2PXn.js";
3
- import { m as i } from "./ColorSet-C7vpNXhM.js";
4
- class p extends C {
1
+ import { S as C } from "./AnimatedTheme-ktdO3Bel.js";
2
+ import { a as b, b as f, C as _, L as w } from "./Tooltip-vyZRZWih.js";
3
+ import { R as T } from "./RoundedRectangle-BKLX1LKM.js";
4
+ import { m as i } from "./Entity-BJCuhdq_.js";
5
+ class k extends C {
5
6
  constructor() {
6
7
  super(...arguments), Object.defineProperty(this, "itemContainers", {
7
8
  enumerable: !0,
@@ -110,8 +111,8 @@ class p extends C {
110
111
  let r = e.get("name");
111
112
  r && h.set("text", r);
112
113
  }
113
- const k = this.makeValueLabel();
114
- if (k && (t.children.push(k), k._setDataItem(e), e.set("valueLabel", k)), s && s.show && (s.on("visible", (r) => {
114
+ const p = this.makeValueLabel();
115
+ if (p && (t.children.push(p), p._setDataItem(e), e.set("valueLabel", p)), s && s.show && (s.on("visible", (r) => {
115
116
  t.set("disabled", !r);
116
117
  }), s.get("visible") || t.set("disabled", !0), u != "none")) {
117
118
  let r = t;
@@ -161,18 +162,18 @@ class p extends C {
161
162
  s && (this.valueLabels.removeValue(s), s.dispose());
162
163
  }
163
164
  }
164
- Object.defineProperty(p, "className", {
165
+ Object.defineProperty(k, "className", {
165
166
  enumerable: !0,
166
167
  configurable: !0,
167
168
  writable: !0,
168
169
  value: "Legend"
169
170
  });
170
- Object.defineProperty(p, "classNames", {
171
+ Object.defineProperty(k, "classNames", {
171
172
  enumerable: !0,
172
173
  configurable: !0,
173
174
  writable: !0,
174
- value: C.classNames.concat([p.className])
175
+ value: C.classNames.concat([k.className])
175
176
  });
176
177
  export {
177
- p as L
178
+ k as L
178
179
  };
@@ -1,6 +1,7 @@
1
- import { b as U } from "./AxisRenderer-DTyLLA6c.js";
2
- import { k as S, l as D, G as A, b as fe, D as ce } from "./AnimatedTheme-jnasw6rT.js";
3
- import { m as G, e as j, h as K, c as he, f as Q } from "./ColorSet-C7vpNXhM.js";
1
+ import { b as U } from "./AxisRenderer-BCQoUJw6.js";
2
+ import { a as S, b as D, G as A, R as fe } from "./Tooltip-vyZRZWih.js";
3
+ import { m as G, e as j, h as K, c as ce, f as Q } from "./Entity-BJCuhdq_.js";
4
+ import { D as he } from "./AnimatedTheme-ktdO3Bel.js";
4
5
  import { w as W, c as g } from "./path-CNVruS--.js";
5
6
  function Z(o) {
6
7
  return typeof o == "object" && "length" in o ? o : Array.from(o);
@@ -299,8 +300,8 @@ class V extends U {
299
300
  const w = [];
300
301
  let T = [];
301
302
  w.push(T);
302
- const z = this.strokes.template.get("templateField"), H = this.fills.template.get("templateField");
303
- let R = this.get("locationX", 0.5), q = this.get("locationY", 0.5), re = this.get("openLocationX", R), oe = this.get("openLocationY", q);
303
+ const R = this.strokes.template.get("templateField"), z = this.fills.template.get("templateField");
304
+ let H = this.get("locationX", 0.5), q = this.get("locationY", 0.5), re = this.get("openLocationX", H), oe = this.get("openLocationY", q);
304
305
  const ae = this.get("minDistance", 0);
305
306
  let k, B = this.fills.template.get("visible");
306
307
  this.axisRanges.length > 0 && (B = !0);
@@ -323,7 +324,7 @@ class V extends U {
323
324
  baseAxis: c,
324
325
  xAxis: i,
325
326
  yAxis: r,
326
- locationX: R,
327
+ locationX: H,
327
328
  locationY: q,
328
329
  openLocationX: re,
329
330
  openLocationY: oe,
@@ -334,8 +335,8 @@ class V extends U {
334
335
  this._dindex = k;
335
336
  const F = this._dataItems[k];
336
337
  let O = F.get(b), N = F.get(_);
337
- if (O == null || N == null ? h || (T = [], w.push(T), I.points = T) : this._getPoints(F, I), z) {
338
- let d = F.dataContext[z];
338
+ if (O == null || N == null ? h || (T = [], w.push(T), I.points = T) : this._getPoints(F, I), R) {
339
+ let d = F.dataContext[R];
339
340
  if (d)
340
341
  if (d instanceof D || (d = D.new(d)), this._strokeTemplate = d, k > e) {
341
342
  s = k;
@@ -343,8 +344,8 @@ class V extends U {
343
344
  } else
344
345
  Y = d, n.template = d;
345
346
  }
346
- if (H) {
347
- let d = F.dataContext[H];
347
+ if (z) {
348
+ let d = F.dataContext[z];
348
349
  if (d)
349
350
  if (d instanceof D || (d = D.new(d)), this._fillTemplate = d, k > e) {
350
351
  s = k;
@@ -423,7 +424,7 @@ class V extends U {
423
424
  const t = this.get("legendDataItem");
424
425
  if (t) {
425
426
  const s = t.get("marker"), f = t.get("markerRectangle");
426
- f && f.setPrivate("visible", !1), s.set("background", fe.new(s._root, { fillOpacity: 0, fill: he(0) }));
427
+ f && f.setPrivate("visible", !1), s.set("background", fe.new(s._root, { fillOpacity: 0, fill: ce(0) }));
427
428
  const h = s.children.push(A._new(s._root, {
428
429
  themeTags: ["line", "series", "legend", "marker", "stroke"],
429
430
  interactive: !1
@@ -437,7 +438,7 @@ class V extends U {
437
438
  if (h.states.create("disabled", { fill: l, stroke: l }), p.states.create("disabled", { fill: l, stroke: l }), this.bullets.length > 0) {
438
439
  const u = this.bullets.getIndex(0);
439
440
  if (u) {
440
- const n = u(s._root, this, new ce(this, { legend: !0 }, {}));
441
+ const n = u(s._root, this, new he(this, { legend: !0 }, {}));
441
442
  if (n) {
442
443
  const a = n.get("sprite");
443
444
  a instanceof A && a.states.create("disabled", { fill: l, stroke: l }), a && (a.setAll({
@@ -1,5 +1,5 @@
1
- import { E as M, e as v, f as w, u as G } from "./ColorSet-C7vpNXhM.js";
2
- import { m as B, s as O } from "./AnimatedTheme-jnasw6rT.js";
1
+ import { E as M, e as v, f as w, C as G } from "./Entity-BJCuhdq_.js";
2
+ import { c as B, s as C } from "./Tooltip-vyZRZWih.js";
3
3
  class c extends M {
4
4
  _afterNew() {
5
5
  super._afterNewApplyThemes();
@@ -46,13 +46,13 @@ Object.defineProperty(c, "classNames", {
46
46
  writable: !0,
47
47
  value: M.classNames.concat([c.className])
48
48
  });
49
- class d extends c {
49
+ class m extends c {
50
50
  /**
51
51
  * @ignore
52
52
  */
53
53
  getFill(t) {
54
54
  const l = this.get("rotation", 0);
55
- let e = this.getBounds(t), r = e.left || 0, s = e.right || 0, a = e.top || 0, n = e.bottom || 0, h = B(l), p = O(l), u = h * (s - r), f = p * (n - a);
55
+ let e = this.getBounds(t), r = e.left || 0, s = e.right || 0, a = e.top || 0, n = e.bottom || 0, h = B(l), p = C(l), u = h * (s - r), f = p * (n - a);
56
56
  u == 0 && (u = 1), f == 0 && (f = 1);
57
57
  let y = Math.max(u, f);
58
58
  const x = this._root._renderer.createLinearGradient(r, a, r + y * h, a + y * p), b = this.get("stops");
@@ -61,14 +61,14 @@ class d extends c {
61
61
  v(b, (i) => {
62
62
  let g = i.offset;
63
63
  w(g) || (g = N / (b.length - 1));
64
- let m = i.opacity;
65
- w(m) || (m = 1);
64
+ let d = i.opacity;
65
+ w(d) || (d = 1);
66
66
  let o = i.color;
67
67
  if (o) {
68
68
  const _ = i.lighten;
69
69
  _ && (o = G.lighten(o, _));
70
70
  const L = i.brighten;
71
- L && (o = G.brighten(o, L)), x.addColorStop(g, "rgba(" + o.r + "," + o.g + "," + o.b + "," + m + ")");
71
+ L && (o = G.brighten(o, L)), x.addColorStop(g, "rgba(" + o.r + "," + o.g + "," + o.b + "," + d + ")");
72
72
  }
73
73
  N++;
74
74
  });
@@ -76,18 +76,18 @@ class d extends c {
76
76
  return x;
77
77
  }
78
78
  }
79
- Object.defineProperty(d, "className", {
79
+ Object.defineProperty(m, "className", {
80
80
  enumerable: !0,
81
81
  configurable: !0,
82
82
  writable: !0,
83
83
  value: "LinearGradient"
84
84
  });
85
- Object.defineProperty(d, "classNames", {
85
+ Object.defineProperty(m, "classNames", {
86
86
  enumerable: !0,
87
87
  configurable: !0,
88
88
  writable: !0,
89
- value: c.classNames.concat([d.className])
89
+ value: c.classNames.concat([m.className])
90
90
  });
91
91
  export {
92
- d as L
92
+ m as L
93
93
  };