@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
@@ -1,15 +1,17 @@
1
- import { R as I, A as W, T as z } from "../../../AnimatedTheme-jnasw6rT.js";
2
- import { useThemeProps as S } from "@mui/material";
3
- import { useRef as d, useLayoutEffect as F } from "react";
4
- import { X as V, V as G } from "../../../AxisRenderer-DTyLLA6c.js";
5
- import { X as M } from "../../../XYCursor-C8WktvKM.js";
6
- import { D as N } from "../../../DateAxis-YX3QNIB-.js";
7
- import { A as P, a as U } from "../../../AxisRendererY-C_ItLPNV.js";
8
- import { C as Z, c as j, p as w } from "../../../ColorSet-C7vpNXhM.js";
9
- import { L as q } from "../../../LineSeries-Uiv5o56b.js";
10
- import { L as B } from "../../../Legend-Dp_MKfS4.js";
11
- const ae = (v) => {
12
- const u = S({
1
+ import { R as I, A as W } from "../../../AnimatedTheme-ktdO3Bel.js";
2
+ import { useThemeProps as z } from "@mui/material";
3
+ import { useRef as d, useLayoutEffect as S } from "react";
4
+ import { X as F, V } from "../../../AxisRenderer-BCQoUJw6.js";
5
+ import { X as G } from "../../../XYCursor-CVUSpqb9.js";
6
+ import { D as M } from "../../../DateAxis-DEXKps1S.js";
7
+ import { A as N, a as P } from "../../../AxisRendererY-AXWvGU6r.js";
8
+ import { C as U } from "../../../ColorSet-cyPmWGwh.js";
9
+ import { c as Z, p as w } from "../../../Entity-BJCuhdq_.js";
10
+ import { L as j } from "../../../LineSeries-D_IL2qGF.js";
11
+ import { T as q } from "../../../Tooltip-vyZRZWih.js";
12
+ import { L as B } from "../../../Legend-CFvQiIfn.js";
13
+ const ie = (v) => {
14
+ const u = z({
13
15
  props: v,
14
16
  name: "HCHighlightLineChart"
15
17
  }), {
@@ -31,12 +33,12 @@ const ae = (v) => {
31
33
  loading: g,
32
34
  emptyMessage: x
33
35
  }, y = d(null), C = d(null), h = d(null);
34
- return F(() => {
36
+ return S(() => {
35
37
  if (!h.current) return;
36
38
  const e = I.new(h.current);
37
39
  C.current = e, e.setThemes([W.new(e)]);
38
40
  const o = e.container.children.push(
39
- V.new(e, {
41
+ F.new(e, {
40
42
  panX: !0,
41
43
  panY: !0,
42
44
  wheelX: "panX",
@@ -46,26 +48,26 @@ const ae = (v) => {
46
48
  );
47
49
  y.current = o, o.set(
48
50
  "cursor",
49
- M.new(e, {
51
+ G.new(e, {
50
52
  behavior: "zoomX"
51
53
  })
52
54
  ).lineY.set("visible", !1);
53
55
  const R = o.xAxes.push(
54
- N.new(e, {
56
+ M.new(e, {
55
57
  maxDeviation: 0.3,
56
58
  baseInterval: { timeUnit: "day", count: 1 },
57
- renderer: P.new(e, {
59
+ renderer: N.new(e, {
58
60
  minorGridEnabled: !0
59
61
  })
60
62
  })
61
63
  ), Y = o.yAxes.push(
62
- G.new(e, {
63
- renderer: U.new(e, {})
64
+ V.new(e, {
65
+ renderer: P.new(e, {})
64
66
  })
65
- ), c = [], b = Z.new(e, {});
67
+ ), c = [], b = U.new(e, {});
66
68
  m.forEach((t, i) => {
67
- const s = t.color ? j(t.color) : b.getIndex(i), r = o.series.push(
68
- q.new(e, {
69
+ const s = t.color ? Z(t.color) : b.getIndex(i), r = o.series.push(
70
+ j.new(e, {
69
71
  name: t.name,
70
72
  xAxis: R,
71
73
  yAxis: Y,
@@ -73,7 +75,7 @@ const ae = (v) => {
73
75
  valueXField: "date",
74
76
  stroke: s,
75
77
  fill: s,
76
- tooltip: z.new(e, {
78
+ tooltip: q.new(e, {
77
79
  labelText: "{name}: {valueY}"
78
80
  })
79
81
  })
@@ -122,5 +124,5 @@ const ae = (v) => {
122
124
  };
123
125
  };
124
126
  export {
125
- ae as useHighlightLineChartLogic
127
+ ie as useHighlightLineChartLogic
126
128
  };
@@ -1,21 +1,22 @@
1
- import { R as Z, a as q, A as J, T as K } from "../../../AnimatedTheme-jnasw6rT.js";
2
- import { useThemeProps as Q, useTheme as ee } from "@mui/material";
3
- import _ from "lodash";
4
- import { useId as te, useRef as oe, useEffect as re } from "react";
5
- import { humanizeLabel as ae } from "../_common/format.js";
6
- import { colorSetFromPalette as se, applyValueFormat as ne } from "../_common/utils.js";
7
- import { c, p as k, b as U } from "../../../ColorSet-C7vpNXhM.js";
8
- import { X as ie, V as le } from "../../../AxisRenderer-DTyLLA6c.js";
9
- import { D as me } from "../../../DateAxis-YX3QNIB-.js";
10
- import { A as V, a as de } from "../../../AxisRendererY-C_ItLPNV.js";
11
- import { C as pe } from "../../../CategoryAxis-CwnfaGc8.js";
12
- import { L as ce } from "../../../LineSeries-Uiv5o56b.js";
13
- import { D as ue } from "../../../DataProcessor-CHDO51q4.js";
14
- import { B as ye } from "../../../Bullet-DVczI2TD.js";
15
- import { C as fe } from "../../../Circle-Cy5s-pVc.js";
16
- import { X as he } from "../../../XYCursor-C8WktvKM.js";
17
- import { L as ge } from "../../../Legend-Dp_MKfS4.js";
18
- const R = 1.1, Ae = {
1
+ import { R as H, T as Z, A as $ } from "../../../AnimatedTheme-ktdO3Bel.js";
2
+ import { useThemeProps as j, useTheme as q } from "@mui/material";
3
+ import U from "lodash";
4
+ import { useId as J, useRef as K, useEffect as Q } from "react";
5
+ import { humanizeLabel as ee } from "../_common/format.js";
6
+ import { attachCombinedAxisTooltip as te } from "../_common/tooltip.js";
7
+ import { colorSetFromPalette as re, applyValueFormat as se } from "../_common/utils.js";
8
+ import { c as p, p as X, b as V } from "../../../Entity-BJCuhdq_.js";
9
+ import { X as oe, V as ae } from "../../../AxisRenderer-BCQoUJw6.js";
10
+ import { A as _, a as ie } from "../../../AxisRendererY-AXWvGU6r.js";
11
+ import { C as ne } from "../../../CategoryAxis-B6NqW8qd.js";
12
+ import { L as le } from "../../../LineSeries-D_IL2qGF.js";
13
+ import { D as me, G as de } from "../../../GaplessDateAxis-B2g2jgSG.js";
14
+ import { B as pe } from "../../../Bullet-Djj7Vs9T.js";
15
+ import { C as ce } from "../../../Circle-BnfBNKBD.js";
16
+ import { X as ue } from "../../../XYCursor-CVUSpqb9.js";
17
+ import { L as fe } from "../../../Legend-CFvQiIfn.js";
18
+ import { D as he } from "../../../DateAxis-DEXKps1S.js";
19
+ const B = 1.1, ge = {
19
20
  millisecond: 1,
20
21
  second: 1e3,
21
22
  minute: 6e4,
@@ -24,43 +25,35 @@ const R = 1.1, Ae = {
24
25
  week: 6048e5,
25
26
  month: 2592e6,
26
27
  year: 31536e6
27
- }, xe = {
28
- millisecond: "d MMM, yyyy HH:mm:ss.SSS",
29
- second: "d MMM, yyyy HH:mm:ss",
30
- minute: "d MMM, yyyy HH:mm",
31
- hour: "d MMM, yyyy HH:mm",
32
- day: "d MMM, yyyy",
33
- week: "d MMM, yyyy",
34
- month: "MMM yyyy",
35
- year: "yyyy"
36
- }, Ue = (B) => {
37
- const b = Q({ props: B, name: "HCLineChart" }), {
38
- dimensions: r,
39
- values: y,
40
- data: w,
41
- initDelay: E = 0,
42
- baseInterval: l,
43
- colors: X,
44
- connectMissingData: T = !0,
45
- sx: G,
46
- ...I
47
- } = b, m = ee(), H = `hc-line-chart-${te().replace(/:/g, "")}`, F = oe(null);
48
- let v = null;
49
- r.length < 1 ? v = "Missing dimensions config!" : y.length < 1 && (v = "Missing values config!"), re(() => {
50
- if (v) return;
51
- let C;
52
- return C = setTimeout(() => {
53
- var $, O, S, Y, P;
54
- const e = Z.new(H);
55
- F.current = e;
56
- const j = q.new(e);
57
- e.setThemes([J.new(e), j]), e.interfaceColors.setAll({
58
- text: c(m.palette.text.primary),
59
- grid: c(m.palette.divider),
60
- stroke: c(m.palette.divider)
28
+ }, Ve = (E) => {
29
+ const b = j({ props: E, name: "HCLineChart" }), {
30
+ dimensions: t,
31
+ values: m,
32
+ data: g,
33
+ initDelay: P = 0,
34
+ baseInterval: i,
35
+ colors: L,
36
+ connectMissingData: k = !0,
37
+ skipEmptyDates: v = !1,
38
+ sx: R,
39
+ ...W
40
+ } = b, l = q(), N = `hc-line-chart-${J().replace(/:/g, "")}`, C = K(null);
41
+ let A = null;
42
+ t.length < 1 ? A = "Missing dimensions config!" : m.length < 1 && (A = "Missing values config!"), Q(() => {
43
+ if (A) return;
44
+ let T;
45
+ return T = setTimeout(() => {
46
+ var G, O, I, M;
47
+ const e = H.new(N);
48
+ C.current = e;
49
+ const z = Z.new(e);
50
+ e.setThemes([$.new(e), z]), e.interfaceColors.setAll({
51
+ text: p(l.palette.text.primary),
52
+ grid: p(l.palette.divider),
53
+ stroke: p(l.palette.divider)
61
54
  });
62
- const n = e.container.children.push(
63
- ie.new(e, {
55
+ const s = e.container.children.push(
56
+ oe.new(e, {
64
57
  panX: !0,
65
58
  panY: !0,
66
59
  wheelX: "none",
@@ -71,171 +64,140 @@ const R = 1.1, Ae = {
71
64
  pinchZoomX: !0
72
65
  })
73
66
  );
74
- n.set("colors", se(e, X));
75
- let d, f = w;
76
- r[0].type === "date" ? (d = n.xAxes.push(
77
- me.new(e, {
78
- maxDeviation: 0.1,
79
- groupData: !1,
80
- baseInterval: l || { timeUnit: "day", count: 1 },
81
- renderer: V.new(e, {})
82
- })
83
- ), f = _.orderBy(w, [r[0].value])) : (d = n.xAxes.push(
84
- pe.new(e, {
85
- categoryField: r[0].value,
86
- renderer: V.new(e, {})
87
- })
88
- ), e.numberFormatter.setAll({
89
- numberFormat: "#",
90
- numericFields: ["valueX"]
91
- }), f = _.orderBy(w, [r[0].value]), d.data.setAll(f));
92
- const N = n.yAxes.push(
93
- le.new(e, {
94
- renderer: de.new(e, {})
67
+ s.set("colors", re(e, L));
68
+ let n, c = g;
69
+ if (t[0].type === "date") {
70
+ const o = v ? de : he;
71
+ n = s.xAxes.push(
72
+ o.new(e, {
73
+ maxDeviation: 0.1,
74
+ groupData: !1,
75
+ baseInterval: i || { timeUnit: "day", count: 1 },
76
+ renderer: _.new(e, {})
77
+ })
78
+ ), c = U.orderBy(g, [t[0].value]);
79
+ } else
80
+ n = s.xAxes.push(
81
+ ne.new(e, {
82
+ categoryField: t[0].value,
83
+ renderer: _.new(e, {})
84
+ })
85
+ ), e.numberFormatter.setAll({
86
+ numberFormat: "#",
87
+ numericFields: ["valueX"]
88
+ }), c = U.orderBy(g, [t[0].value]), n.data.setAll(c);
89
+ const Y = s.yAxes.push(
90
+ ae.new(e, {
91
+ renderer: ie.new(e, {})
95
92
  })
96
93
  );
97
- ($ = d.get("renderer")) == null || $.grid.template.setAll({
98
- stroke: c(m.palette.divider),
94
+ (G = n.get("renderer")) == null || G.grid.template.setAll({
95
+ stroke: p(l.palette.divider),
99
96
  strokeOpacity: 1
100
- }), (O = d.get("renderer")) == null || O.labels.template.setAll({ paddingTop: 12 }), (S = N.get("renderer")) == null || S.grid.template.setAll({
101
- stroke: c(m.palette.divider),
97
+ }), (O = n.get("renderer")) == null || O.labels.template.setAll({ paddingTop: 12 }), (I = Y.get("renderer")) == null || I.grid.template.setAll({
98
+ stroke: p(l.palette.divider),
102
99
  strokeOpacity: 1
103
- });
104
- const M = K.new(e, {
105
- getFillFromSprite: !1
106
- });
107
- (Y = M.get("background")) == null || Y.setAll({
108
- fill: c(m.palette.background.paper),
109
- stroke: c(m.palette.divider),
110
- fillOpacity: 1
111
- }), M.label.setAll({
112
- fill: c(m.palette.text.primary),
113
- textAlign: "left",
114
- lineHeight: k(160)
115
- });
116
- const L = xe[(l == null ? void 0 : l.timeUnit) ?? "day"], z = c(m.palette.text.secondary).toCSSHex();
117
- M.label.adapters.add("text", () => {
118
- let t = "";
119
- const a = [];
120
- if (n.series.each((i) => {
121
- const s = i.get("tooltipDataItem"), p = s == null ? void 0 : s.get("valueY");
122
- if (s === void 0 || p === void 0 || p === null)
123
- return;
124
- if (!t)
125
- if (r[0].type === "date") {
126
- const o = s.get("valueX");
127
- typeof o == "number" && (t = e.dateFormatter.format(
128
- new Date(o),
129
- L
130
- ));
131
- } else
132
- t = `${s.get("categoryX") ?? ""}`;
133
- const u = i.get("stroke"), g = u ? `[${u.toCSSHex()}]●[/] ` : "";
134
- a.push(
135
- `${g}${i.get("name")}: ${e.numberFormatter.format(
136
- p
137
- )}`
138
- );
139
- }), a.length === 0) {
140
- if (r[0].type === "date") {
141
- const s = d.positionToValue(
142
- d.getPrivate("tooltipPosition", 0)
143
- );
144
- typeof s == "number" && !Number.isNaN(s) && (t = e.dateFormatter.format(new Date(s), L));
145
- }
146
- const i = `[${z}]No data[/]`;
147
- return t ? `[bold]${t}[/]
148
- ${i}` : i;
149
- }
150
- return t ? `[bold]${t}[/]
151
- ${a.join(`
152
- `)}` : a.join(`
153
- `);
154
- }), d.set("tooltip", M), y.forEach((t) => {
155
- const a = n.series.push(
156
- ce.new(e, {
100
+ }), m.forEach((o) => {
101
+ const a = s.series.push(
102
+ le.new(e, {
157
103
  // Legend/tooltip label: explicit override, else humanize the raw
158
104
  // backend field (snake_case / lowercase → Title Case).
159
- name: t.label ?? ae(t.name),
160
- xAxis: d,
161
- yAxis: N,
162
- valueYField: t.dataFieldName,
105
+ name: o.label ?? ee(o.name),
106
+ xAxis: n,
107
+ yAxis: Y,
108
+ valueYField: o.dataFieldName,
163
109
  // When false, the line breaks at missing points. On a date axis the
164
110
  // break is auto-detected when adjacent points are spaced more than
165
111
  // `autoGapCount` (default 1.1) base intervals apart, so absent dates
166
112
  // surface as gaps instead of being bridged by a straight segment.
167
- connect: T,
168
- autoGapCount: R,
169
- ...r[0].type === "date" ? { valueXField: r[0].value } : { categoryXField: r[0].value }
113
+ connect: k,
114
+ autoGapCount: B,
115
+ ...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
170
116
  })
171
117
  );
172
- if (r[0].type === "date" && (a.data.processor = ue.new(e, {
118
+ if (t[0].type === "date" && (a.data.processor = me.new(e, {
173
119
  dateFormat: "i",
174
- dateFields: [r[0].value]
175
- })), r[0].type === "date") {
176
- const i = r[0].value, s = Ae[(l == null ? void 0 : l.timeUnit) ?? "day"] * ((l == null ? void 0 : l.count) ?? 1), p = T ? 1 / 0 : s * R, u = f.map((o) => ({
177
- t: new Date(o[i]).getTime(),
178
- hasValue: o[t.dataFieldName] !== null && o[t.dataFieldName] !== void 0
179
- })).filter((o) => o.hasValue && !Number.isNaN(o.t)), g = /* @__PURE__ */ new Set();
180
- u.forEach((o, A) => {
181
- const D = A > 0 ? o.t - u[A - 1].t : 1 / 0, x = A < u.length - 1 ? u[A + 1].t - o.t : 1 / 0;
182
- D > p && x > p && g.add(o.t);
183
- }), g.size > 0 && a.bullets.push((o, A, D) => {
184
- const x = D.dataContext;
185
- if (g.has(new Date(x == null ? void 0 : x[i]).getTime()))
186
- return ye.new(o, {
187
- sprite: fe.new(o, {
120
+ dateFields: [t[0].value]
121
+ })), t[0].type === "date" && !v) {
122
+ const y = t[0].value, x = ge[(i == null ? void 0 : i.timeUnit) ?? "day"] * ((i == null ? void 0 : i.count) ?? 1), d = k ? 1 / 0 : x * B, w = c.map((r) => ({
123
+ t: new Date(r[y]).getTime(),
124
+ hasValue: r[o.dataFieldName] !== null && r[o.dataFieldName] !== void 0
125
+ })).filter((r) => r.hasValue && !Number.isNaN(r.t)), D = /* @__PURE__ */ new Set();
126
+ w.forEach((r, f) => {
127
+ const F = f > 0 ? r.t - w[f - 1].t : 1 / 0, h = f < w.length - 1 ? w[f + 1].t - r.t : 1 / 0;
128
+ F > d && h > d && D.add(r.t);
129
+ }), D.size > 0 && a.bullets.push((r, f, F) => {
130
+ const h = F.dataContext;
131
+ if (D.has(new Date(h == null ? void 0 : h[y]).getTime()))
132
+ return pe.new(r, {
133
+ sprite: ce.new(r, {
188
134
  radius: 3,
189
135
  fill: a.get("fill"),
190
- stroke: o.interfaceColors.get("background"),
136
+ stroke: r.interfaceColors.get("background"),
191
137
  strokeWidth: 1
192
138
  })
193
139
  });
194
140
  });
195
141
  }
196
- a.data.setAll(f), a.strokes.template.setAll({ strokeWidth: 2 }), a.appear();
197
- }), n.set(
142
+ a.data.setAll(c), a.strokes.template.setAll({ strokeWidth: 2 }), a.appear();
143
+ }), s.set(
198
144
  "cursor",
199
- he.new(e, { xAxis: d, behavior: "none" })
200
- ).lineY.set("visible", !1);
201
- const h = n.bottomAxesContainer.children.push(
202
- ge.new(e, {
203
- width: k(100),
145
+ ue.new(e, { xAxis: n, behavior: "none" })
146
+ ).lineY.set("visible", !1), te({
147
+ root: e,
148
+ chart: s,
149
+ xAxis: n,
150
+ theme: l,
151
+ isDateAxis: t[0].type === "date",
152
+ baseInterval: i,
153
+ follow: !0
154
+ });
155
+ const u = s.bottomAxesContainer.children.push(
156
+ fe.new(e, {
157
+ width: X(100),
204
158
  paddingTop: 10,
205
- centerX: k(50),
206
- x: k(50),
159
+ centerX: X(50),
160
+ x: X(50),
207
161
  layout: e.gridLayout
208
162
  })
209
163
  );
210
- h.itemContainers.template.events.on("pointerover", function(t) {
211
- var s;
212
- const a = t.target, i = (s = a == null ? void 0 : a.dataItem) == null ? void 0 : s.dataContext;
213
- n.series.each(function(p) {
214
- p !== i ? p.strokes.template.setAll({
164
+ u.itemContainers.template.events.on("pointerover", function(o) {
165
+ var x;
166
+ const a = o.target, y = (x = a == null ? void 0 : a.dataItem) == null ? void 0 : x.dataContext;
167
+ s.series.each(function(d) {
168
+ d !== y ? d.strokes.template.setAll({
215
169
  strokeOpacity: 0.15,
216
- stroke: c(0)
217
- }) : p.strokes.template.setAll({ strokeWidth: 3 });
170
+ stroke: p(0)
171
+ }) : d.strokes.template.setAll({ strokeWidth: 3 });
218
172
  });
219
- }), h.itemContainers.template.events.on("pointerout", function() {
220
- n.series.each(function(t) {
221
- t.strokes.template.setAll({
173
+ }), u.itemContainers.template.events.on("pointerout", function() {
174
+ s.series.each(function(o) {
175
+ o.strokes.template.setAll({
222
176
  strokeOpacity: 1,
223
177
  strokeWidth: 2,
224
- stroke: t.get("fill")
178
+ stroke: o.get("fill")
225
179
  });
226
180
  });
227
- }), h.itemContainers.template.set("width", U), h.valueLabels.template.setAll({
228
- width: U,
181
+ }), u.itemContainers.template.set("width", V), u.valueLabels.template.setAll({
182
+ width: V,
229
183
  textAlign: "right"
230
- }), h.data.setAll(n.series.values), ne(e, (P = y == null ? void 0 : y[0]) == null ? void 0 : P.format), n.appear(1e3, 100);
231
- }, E), () => {
184
+ }), u.data.setAll(s.series.values), se(e, (M = m == null ? void 0 : m[0]) == null ? void 0 : M.format), s.appear(1e3, 100);
185
+ }, P), () => {
232
186
  var e;
233
- C && clearTimeout(C), (e = F.current) == null || e.dispose(), F.current = null;
187
+ T && clearTimeout(T), (e = C.current) == null || e.dispose(), C.current = null;
234
188
  };
235
- }, [w, r, y, m.palette.mode, X, T]);
236
- const W = { ...b };
237
- return { chartId: H, ownerState: W, sx: G, error: v, other: I };
189
+ }, [
190
+ g,
191
+ t,
192
+ m,
193
+ l.palette.mode,
194
+ L,
195
+ k,
196
+ v
197
+ ]);
198
+ const S = { ...b };
199
+ return { chartId: N, ownerState: S, sx: R, error: A, other: W };
238
200
  };
239
201
  export {
240
- Ue as useLineChartLogic
202
+ Ve as useLineChartLogic
241
203
  };