@hybridcore/ui 1.6.30 → 1.6.32

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.
@@ -3,39 +3,35 @@ import { useThemeProps as P, useTheme as W } from "@mui/material";
3
3
  import z from "lodash";
4
4
  import { useId as Z, useRef as $, useEffect as j } from "react";
5
5
  import { humanizeLabel as q } from "../_common/format.js";
6
- import { colorSetFromPalette as J, applyValueFormat as K } from "../_common/utils.js";
7
- import { c as i, a as F, p as Q } from "../../../Entity-BJCuhdq_.js";
8
- import { X as U, V as Y } from "../../../AxisRenderer-BCQoUJw6.js";
6
+ import { applyInterfaceColors as J, colorSetFromPalette as K, applyValueFormat as Q } from "../_common/utils.js";
7
+ import { X as U, V as F } from "../../../AxisRenderer-BCQoUJw6.js";
9
8
  import { L as ee } from "../../../Legend-CFvQiIfn.js";
10
- import { A as te, a as re } from "../../../AxisRendererY-AXWvGU6r.js";
11
- import { C as oe } from "../../../ColumnSeries-CtRTsn-E.js";
12
- import { T as se } from "../../../Tooltip-vyZRZWih.js";
13
- import { X as ne } from "../../../XYCursor-CVUSpqb9.js";
14
- const R = "__hcBinStart", _ = "__hcBinEnd", Ne = (C) => {
15
- const x = P({ props: C, name: "HCHistogram" }), {
16
- dimensions: p,
17
- values: u,
9
+ import { a as Y, c as g, p as te } from "../../../Entity-BJCuhdq_.js";
10
+ import { A as re, a as oe } from "../../../AxisRendererY-AXWvGU6r.js";
11
+ import { C as se } from "../../../ColumnSeries-CtRTsn-E.js";
12
+ import { T as ne } from "../../../Tooltip-vyZRZWih.js";
13
+ import { X as ae } from "../../../XYCursor-CVUSpqb9.js";
14
+ const R = "__hcBinStart", _ = "__hcBinEnd", Xe = (C) => {
15
+ const b = P({ props: C, name: "HCHistogram" }), {
16
+ dimensions: c,
17
+ values: p,
18
18
  data: A,
19
- initDelay: B = 0,
20
- colors: b,
19
+ initDelay: I = 0,
20
+ colors: x,
21
21
  binWidth: v,
22
22
  barGap: y = 0,
23
- logarithmic: d = !1,
24
- sx: D,
25
- ...I
26
- } = x, r = W(), N = `hc-histogram-${Z().replace(/:/g, "")}`, h = $(null), X = p.length < 1 ? "Missing dimensions config!" : u.length < 1 ? "Missing values config!" : null;
23
+ logarithmic: u = !1,
24
+ sx: B,
25
+ ...D
26
+ } = b, n = W(), N = `hc-histogram-${Z().replace(/:/g, "")}`, d = $(null), X = c.length < 1 ? "Missing dimensions config!" : p.length < 1 ? "Missing values config!" : null;
27
27
  j(() => {
28
28
  if (X) return;
29
- let f;
30
- return f = setTimeout(() => {
31
- var k, w;
29
+ let h;
30
+ return h = setTimeout(() => {
31
+ var w, k;
32
32
  const e = O.new(N);
33
- h.current = e, e.setThemes([H.new(e)]), e.interfaceColors.setAll({
34
- text: i(r.palette.text.primary),
35
- grid: i(r.palette.divider),
36
- stroke: i(r.palette.divider)
37
- });
38
- const o = e.container.children.push(
33
+ d.current = e, e.setThemes([H.new(e)]), J(e, n);
34
+ const r = e.container.children.push(
39
35
  U.new(e, {
40
36
  panX: !1,
41
37
  panY: !1,
@@ -44,55 +40,55 @@ const R = "__hcBinStart", _ = "__hcBinEnd", Ne = (C) => {
44
40
  layout: e.verticalLayout
45
41
  })
46
42
  );
47
- o.set("colors", J(e, b));
48
- const S = o.children.push(
43
+ r.set("colors", K(e, x));
44
+ const S = r.children.push(
49
45
  ee.new(e, {
50
- centerX: F,
51
- x: F
46
+ centerX: Y,
47
+ x: Y
52
48
  })
53
- ), s = p[0].value, l = u[0], V = l.dataFieldName, m = z.orderBy(
49
+ ), o = c[0].value, i = p[0], V = i.dataFieldName, l = z.orderBy(
54
50
  A.filter(
55
- (t) => (t == null ? void 0 : t[s]) != null && !Number.isNaN(Number(t[s]))
51
+ (t) => (t == null ? void 0 : t[o]) != null && !Number.isNaN(Number(t[o]))
56
52
  ),
57
- [(t) => Number(t[s])]
53
+ [(t) => Number(t[o])]
58
54
  );
59
- let c = 1 / 0;
60
- for (let t = 1; t < m.length; t++) {
61
- const n = Number(m[t][s]) - Number(m[t - 1][s]);
62
- n > 0 && n < c && (c = n);
55
+ let m = 1 / 0;
56
+ for (let t = 1; t < l.length; t++) {
57
+ const s = Number(l[t][o]) - Number(l[t - 1][o]);
58
+ s > 0 && s < m && (m = s);
63
59
  }
64
- const E = v ?? (Number.isFinite(c) ? c : 1), G = m.map((t) => {
65
- const n = Number(t[s]);
66
- return { ...t, [R]: n, [_]: n + E };
67
- }), g = o.xAxes.push(
68
- Y.new(e, {
60
+ const E = v ?? (Number.isFinite(m) ? m : 1), G = l.map((t) => {
61
+ const s = Number(t[o]);
62
+ return { ...t, [R]: s, [_]: s + E };
63
+ }), f = r.xAxes.push(
64
+ F.new(e, {
69
65
  maxDeviation: 0,
70
- renderer: te.new(e, { minGridDistance: 40 })
66
+ renderer: re.new(e, { minGridDistance: 40 })
71
67
  })
72
- ), T = o.yAxes.push(
73
- Y.new(e, {
68
+ ), T = r.yAxes.push(
69
+ F.new(e, {
74
70
  // Linear: frequency bars must grow from a zero baseline, else the auto
75
71
  // min crops the axis and distorts relative bar heights. Log: `min: 0`
76
72
  // is invalid (log 0 is undefined), so drop it and map zero-count bins
77
73
  // to `1` (the axis floor) — those bins then render as no bar.
78
- ...d ? { logarithmic: !0, treatZeroAs: 1 } : { min: 0 },
79
- renderer: re.new(e, {
74
+ ...u ? { logarithmic: !0, treatZeroAs: 1 } : { min: 0 },
75
+ renderer: oe.new(e, {
80
76
  strokeOpacity: 0.1,
81
- ...d ? { minorGridEnabled: !0 } : {}
77
+ ...u ? { minorGridEnabled: !0 } : {}
82
78
  })
83
79
  })
84
80
  );
85
- (k = g.get("renderer")) == null || k.grid.template.setAll({
86
- stroke: i(r.palette.divider),
81
+ (w = f.get("renderer")) == null || w.grid.template.setAll({
82
+ stroke: g(n.palette.divider),
87
83
  strokeOpacity: 1
88
- }), (w = T.get("renderer")) == null || w.grid.template.setAll({
89
- stroke: i(r.palette.divider),
84
+ }), (k = T.get("renderer")) == null || k.grid.template.setAll({
85
+ stroke: g(n.palette.divider),
90
86
  strokeOpacity: 1
91
87
  });
92
- const a = o.series.push(
93
- oe.new(e, {
94
- name: l.label ?? q(l.name),
95
- xAxis: g,
88
+ const a = r.series.push(
89
+ se.new(e, {
90
+ name: i.label ?? q(i.name),
91
+ xAxis: f,
96
92
  yAxis: T,
97
93
  valueYField: V,
98
94
  // Explicit [open, value] edges give each bar its exact bin span, so
@@ -102,32 +98,32 @@ const R = "__hcBinStart", _ = "__hcBinEnd", Ne = (C) => {
102
98
  })
103
99
  ), M = Math.min(Math.max(y, 0), 1);
104
100
  a.columns.template.setAll({
105
- width: Q((1 - M) * 100),
101
+ width: te((1 - M) * 100),
106
102
  strokeOpacity: 1,
107
103
  strokeWidth: 1,
108
- stroke: i(r.palette.background.paper),
104
+ stroke: g(n.palette.background.paper),
109
105
  tooltipText: "{openValueX} – {valueX}: {valueY}"
110
- }), a.set("tooltip", se.new(e, {})), a.data.setAll(G), a.appear(), S.data.push(a), o.set(
106
+ }), a.set("tooltip", ne.new(e, {})), a.data.setAll(G), a.appear(), S.data.push(a), r.set(
111
107
  "cursor",
112
- ne.new(e, { xAxis: g, behavior: "none" })
113
- ).lineY.set("visible", !1), K(e, l.format), o.appear(1e3, 100);
114
- }, B), () => {
108
+ ae.new(e, { xAxis: f, behavior: "none" })
109
+ ).lineY.set("visible", !1), Q(e, i.format), r.appear(1e3, 100);
110
+ }, I), () => {
115
111
  var e;
116
- f && clearTimeout(f), (e = h.current) == null || e.dispose(), h.current = null;
112
+ h && clearTimeout(h), (e = d.current) == null || e.dispose(), d.current = null;
117
113
  };
118
114
  }, [
119
115
  A,
116
+ c,
120
117
  p,
121
- u,
122
- r.palette.mode,
123
- b,
118
+ n.palette.mode,
119
+ x,
124
120
  v,
125
121
  y,
126
- d
122
+ u
127
123
  ]);
128
- const L = { ...x };
129
- return { chartId: N, ownerState: L, sx: D, error: X, other: I };
124
+ const L = { ...b };
125
+ return { chartId: N, ownerState: L, sx: B, error: X, other: D };
130
126
  };
131
127
  export {
132
- Ne as useHistogramLogic
128
+ Xe as useHistogramLogic
133
129
  };
@@ -1,23 +1,23 @@
1
1
  import { R as q, T as J, A as K } from "../../../AnimatedTheme-ktdO3Bel.js";
2
2
  import { useThemeProps as Q, useTheme as ee } from "@mui/material";
3
3
  import te from "lodash";
4
- import { useId as re, useRef as se, useEffect as oe } from "react";
4
+ import { useId as se, useRef as re, useEffect as oe } from "react";
5
5
  import { humanizeLabel as ae } from "../_common/format.js";
6
6
  import { attachCombinedAxisTooltip as ie } from "../_common/tooltip.js";
7
- import { colorSetFromPalette as ne, applyDateAxisLabelFormat as le, applyValueFormat as me } from "../_common/utils.js";
8
- import { c, p as b, b as P } from "../../../Entity-BJCuhdq_.js";
9
- import { X as pe, V as ce } from "../../../AxisRenderer-BCQoUJw6.js";
10
- import { A as R, a as de } from "../../../AxisRendererY-AXWvGU6r.js";
11
- import { C as ue } from "../../../CategoryAxis-B6NqW8qd.js";
12
- import { L as fe } from "../../../LineSeries-D_IL2qGF.js";
13
- import { D as he, G as ge } from "../../../GaplessDateAxis-B2g2jgSG.js";
14
- import { B as Ae } from "../../../Bullet-Djj7Vs9T.js";
15
- import { C as ye } from "../../../Circle-BnfBNKBD.js";
16
- import { L as xe } from "../../../LinearGradient-CxQyCSEB.js";
17
- import { X as we } from "../../../XYCursor-CVUSpqb9.js";
18
- import { L as ke } from "../../../Legend-CFvQiIfn.js";
19
- import { D as Ce } from "../../../DateAxis-DEXKps1S.js";
20
- const S = 1.1, ve = {
7
+ import { applyInterfaceColors as ne, colorSetFromPalette as le, applyDateAxisLabelFormat as me, applyValueFormat as pe } from "../_common/utils.js";
8
+ import { X as ce, V as de } from "../../../AxisRenderer-BCQoUJw6.js";
9
+ import { A as P, a as ue } from "../../../AxisRendererY-AXWvGU6r.js";
10
+ import { C as fe } from "../../../CategoryAxis-B6NqW8qd.js";
11
+ import { c as L, p as b, b as R } from "../../../Entity-BJCuhdq_.js";
12
+ import { L as he } from "../../../LineSeries-D_IL2qGF.js";
13
+ import { D as ge, G as Ae } from "../../../GaplessDateAxis-B2g2jgSG.js";
14
+ import { B as ye } from "../../../Bullet-Djj7Vs9T.js";
15
+ import { C as xe } from "../../../Circle-BnfBNKBD.js";
16
+ import { L as we } from "../../../LinearGradient-CxQyCSEB.js";
17
+ import { X as ke } from "../../../XYCursor-CVUSpqb9.js";
18
+ import { L as Ce } from "../../../Legend-CFvQiIfn.js";
19
+ import { D as ve } from "../../../DateAxis-DEXKps1S.js";
20
+ const S = 1.1, De = {
21
21
  millisecond: 1,
22
22
  second: 1e3,
23
23
  minute: 6e4,
@@ -26,37 +26,33 @@ const S = 1.1, ve = {
26
26
  week: 6048e5,
27
27
  month: 2592e6,
28
28
  year: 31536e6
29
- }, ze = (W) => {
29
+ }, He = (W) => {
30
30
  const X = Q({ props: W, name: "HCLineChart" }), {
31
31
  dimensions: t,
32
32
  values: m,
33
- data: w,
33
+ data: x,
34
34
  initDelay: B = 0,
35
35
  baseInterval: l,
36
36
  colors: G,
37
- connectMissingData: k = !0,
38
- skipEmptyDates: C = !1,
37
+ connectMissingData: w = !0,
38
+ skipEmptyDates: k = !1,
39
39
  areaFill: N = !1,
40
- strokeDasharray: v,
40
+ strokeDasharray: C,
41
41
  sx: z,
42
42
  ...H
43
- } = X, p = ee(), O = `hc-line-chart-${re().replace(/:/g, "")}`, D = se(null);
44
- let g = null;
45
- t.length < 1 ? g = "Missing dimensions config!" : m.length < 1 && (g = "Missing values config!"), oe(() => {
46
- if (g) return;
47
- let F;
48
- return F = setTimeout(() => {
43
+ } = X, p = ee(), I = `hc-line-chart-${se().replace(/:/g, "")}`, v = re(null);
44
+ let h = null;
45
+ t.length < 1 ? h = "Missing dimensions config!" : m.length < 1 && (h = "Missing values config!"), oe(() => {
46
+ if (h) return;
47
+ let D;
48
+ return D = setTimeout(() => {
49
49
  var M, U, V, _;
50
- const e = q.new(O);
51
- D.current = e;
50
+ const e = q.new(I);
51
+ v.current = e;
52
52
  const $ = J.new(e);
53
- e.setThemes([K.new(e), $]), e.interfaceColors.setAll({
54
- text: c(p.palette.text.primary),
55
- grid: c(p.palette.divider),
56
- stroke: c(p.palette.divider)
57
- });
58
- const s = e.container.children.push(
59
- pe.new(e, {
53
+ e.setThemes([K.new(e), $]), ne(e, p);
54
+ const r = e.container.children.push(
55
+ ce.new(e, {
60
56
  panX: !0,
61
57
  panY: !0,
62
58
  wheelX: "none",
@@ -66,92 +62,92 @@ const S = 1.1, ve = {
66
62
  maxTooltipDistance: -1,
67
63
  pinchZoomX: !0
68
64
  })
69
- ), Y = ne(e, G);
70
- s.set("colors", Y);
71
- let i, A = w;
65
+ ), O = le(e, G);
66
+ r.set("colors", O);
67
+ let i, g = x;
72
68
  if (t[0].type === "date") {
73
- const o = C ? ge : Ce;
74
- i = s.xAxes.push(
69
+ const o = k ? Ae : ve;
70
+ i = r.xAxes.push(
75
71
  o.new(e, {
76
72
  maxDeviation: 0.1,
77
73
  groupData: !1,
78
74
  baseInterval: l || { timeUnit: "day", count: 1 },
79
- renderer: R.new(e, {})
75
+ renderer: P.new(e, {})
80
76
  })
81
- ), le(i, t[0]), A = te.orderBy(w, [t[0].value]);
77
+ ), me(i, t[0]), g = te.orderBy(x, [t[0].value]);
82
78
  } else
83
- i = s.xAxes.push(
84
- ue.new(e, {
79
+ i = r.xAxes.push(
80
+ fe.new(e, {
85
81
  categoryField: t[0].value,
86
- renderer: R.new(e, {})
82
+ renderer: P.new(e, {})
87
83
  })
88
84
  ), e.numberFormatter.setAll({
89
85
  numberFormat: "#",
90
86
  numericFields: ["valueX"]
91
- }), i.data.setAll(A);
92
- const I = s.yAxes.push(
93
- ce.new(e, {
94
- renderer: de.new(e, {})
87
+ }), i.data.setAll(g);
88
+ const Y = r.yAxes.push(
89
+ de.new(e, {
90
+ renderer: ue.new(e, {})
95
91
  })
96
92
  );
97
93
  (M = i.get("renderer")) == null || M.grid.template.setAll({
98
- stroke: c(p.palette.divider),
94
+ stroke: L(p.palette.divider),
99
95
  strokeOpacity: 1
100
- }), (U = i.get("renderer")) == null || U.labels.template.setAll({ paddingTop: 12 }), (V = I.get("renderer")) == null || V.grid.template.setAll({
101
- stroke: c(p.palette.divider),
96
+ }), (U = i.get("renderer")) == null || U.labels.template.setAll({ paddingTop: 12 }), (V = Y.get("renderer")) == null || V.grid.template.setAll({
97
+ stroke: L(p.palette.divider),
102
98
  strokeOpacity: 1
103
- }), m.forEach((o, u) => {
104
- const a = s.series.push(
105
- fe.new(e, {
99
+ }), m.forEach((o, d) => {
100
+ const a = r.series.push(
101
+ he.new(e, {
106
102
  // Legend/tooltip label: explicit override, else humanize the raw
107
103
  // backend field (snake_case / lowercase → Title Case).
108
104
  name: o.label ?? ae(o.name),
109
105
  xAxis: i,
110
- yAxis: I,
106
+ yAxis: Y,
111
107
  valueYField: o.dataFieldName,
112
108
  // When false, the line breaks at missing points. On a date axis the
113
109
  // break is auto-detected when adjacent points are spaced more than
114
110
  // `autoGapCount` (default 1.1) base intervals apart, so absent dates
115
111
  // surface as gaps instead of being bridged by a straight segment.
116
- connect: k,
112
+ connect: w,
117
113
  autoGapCount: S,
118
114
  ...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
119
115
  })
120
116
  );
121
- if (t[0].type === "date" && (a.data.processor = he.new(e, {
117
+ if (t[0].type === "date" && (a.data.processor = ge.new(e, {
122
118
  dateFormat: "i",
123
119
  dateFields: [t[0].value]
124
- })), t[0].type === "date" && !C) {
125
- const n = t[0].value, j = ve[(l == null ? void 0 : l.timeUnit) ?? "day"] * ((l == null ? void 0 : l.count) ?? 1), E = k ? 1 / 0 : j * S, x = A.map((r) => ({
126
- t: new Date(r[n]).getTime(),
127
- hasValue: r[o.dataFieldName] !== null && r[o.dataFieldName] !== void 0
128
- })).filter((r) => r.hasValue && !Number.isNaN(r.t)), T = /* @__PURE__ */ new Set();
129
- x.forEach((r, f) => {
130
- const L = f > 0 ? r.t - x[f - 1].t : 1 / 0, h = f < x.length - 1 ? x[f + 1].t - r.t : 1 / 0;
131
- L > E && h > E && T.add(r.t);
132
- }), T.size > 0 && a.bullets.push((r, f, L) => {
133
- const h = L.dataContext;
134
- if (T.has(new Date(h == null ? void 0 : h[n]).getTime()))
135
- return Ae.new(r, {
136
- sprite: ye.new(r, {
120
+ })), t[0].type === "date" && !k) {
121
+ const n = t[0].value, j = De[(l == null ? void 0 : l.timeUnit) ?? "day"] * ((l == null ? void 0 : l.count) ?? 1), E = w ? 1 / 0 : j * S, y = g.map((s) => ({
122
+ t: new Date(s[n]).getTime(),
123
+ hasValue: s[o.dataFieldName] !== null && s[o.dataFieldName] !== void 0
124
+ })).filter((s) => s.hasValue && !Number.isNaN(s.t)), F = /* @__PURE__ */ new Set();
125
+ y.forEach((s, u) => {
126
+ const T = u > 0 ? s.t - y[u - 1].t : 1 / 0, f = u < y.length - 1 ? y[u + 1].t - s.t : 1 / 0;
127
+ T > E && f > E && F.add(s.t);
128
+ }), F.size > 0 && a.bullets.push((s, u, T) => {
129
+ const f = T.dataContext;
130
+ if (F.has(new Date(f == null ? void 0 : f[n]).getTime()))
131
+ return ye.new(s, {
132
+ sprite: xe.new(s, {
137
133
  radius: 3,
138
134
  fill: a.get("fill"),
139
- stroke: r.interfaceColors.get("background"),
135
+ stroke: s.interfaceColors.get("background"),
140
136
  strokeWidth: 1
141
137
  })
142
138
  });
143
139
  });
144
140
  }
145
- const y = N && m.length === 1;
146
- if (a.data.setAll(A), a.strokes.template.setAll({
141
+ const A = N && m.length === 1;
142
+ if (a.data.setAll(g), a.strokes.template.setAll({
147
143
  strokeWidth: 2,
148
- ...v && { strokeDasharray: v }
149
- }), y) {
150
- const n = a.get("fill") ?? Y.getIndex(u);
144
+ ...C && { strokeDasharray: C }
145
+ }), A) {
146
+ const n = a.get("fill") ?? O.getIndex(d);
151
147
  a.fills.template.setAll({
152
148
  visible: !0,
153
149
  fillOpacity: 1,
154
- fillGradient: xe.new(e, {
150
+ fillGradient: we.new(e, {
155
151
  rotation: 90,
156
152
  stops: [
157
153
  { color: n, opacity: 0.6 },
@@ -161,20 +157,20 @@ const S = 1.1, ve = {
161
157
  });
162
158
  }
163
159
  a.appear();
164
- }), s.set(
160
+ }), r.set(
165
161
  "cursor",
166
- we.new(e, { xAxis: i, behavior: "none" })
162
+ ke.new(e, { xAxis: i, behavior: "none" })
167
163
  ).lineY.set("visible", !1), ie({
168
164
  root: e,
169
- chart: s,
165
+ chart: r,
170
166
  xAxis: i,
171
167
  theme: p,
172
168
  isDateAxis: t[0].type === "date",
173
169
  baseInterval: l,
174
170
  follow: !0
175
171
  });
176
- const d = s.bottomAxesContainer.children.push(
177
- ke.new(e, {
172
+ const c = r.bottomAxesContainer.children.push(
173
+ Ce.new(e, {
178
174
  width: b(100),
179
175
  paddingTop: 10,
180
176
  centerX: b(50),
@@ -182,45 +178,45 @@ const S = 1.1, ve = {
182
178
  layout: e.gridLayout
183
179
  })
184
180
  );
185
- d.itemContainers.template.events.on("pointerover", function(o) {
186
- var y;
187
- const u = o.target, a = (y = u == null ? void 0 : u.dataItem) == null ? void 0 : y.dataContext;
188
- s.series.each(function(n) {
181
+ c.itemContainers.template.events.on("pointerover", function(o) {
182
+ var A;
183
+ const d = o.target, a = (A = d == null ? void 0 : d.dataItem) == null ? void 0 : A.dataContext;
184
+ r.series.each(function(n) {
189
185
  n !== a ? n.strokes.template.setAll({
190
186
  strokeOpacity: 0.15,
191
- stroke: c(0)
187
+ stroke: L(0)
192
188
  }) : n.strokes.template.setAll({ strokeWidth: 3 });
193
189
  });
194
- }), d.itemContainers.template.events.on("pointerout", function() {
195
- s.series.each(function(o) {
190
+ }), c.itemContainers.template.events.on("pointerout", function() {
191
+ r.series.each(function(o) {
196
192
  o.strokes.template.setAll({
197
193
  strokeOpacity: 1,
198
194
  strokeWidth: 2,
199
195
  stroke: o.get("fill")
200
196
  });
201
197
  });
202
- }), d.itemContainers.template.set("width", P), d.valueLabels.template.setAll({
203
- width: P,
198
+ }), c.itemContainers.template.set("width", R), c.valueLabels.template.setAll({
199
+ width: R,
204
200
  textAlign: "right"
205
- }), d.data.setAll(s.series.values), me(e, (_ = m == null ? void 0 : m[0]) == null ? void 0 : _.format), s.appear(1e3, 100);
201
+ }), c.data.setAll(r.series.values), pe(e, (_ = m == null ? void 0 : m[0]) == null ? void 0 : _.format), r.appear(1e3, 100);
206
202
  }, B), () => {
207
203
  var e;
208
- F && clearTimeout(F), (e = D.current) == null || e.dispose(), D.current = null;
204
+ D && clearTimeout(D), (e = v.current) == null || e.dispose(), v.current = null;
209
205
  };
210
206
  }, [
211
- w,
207
+ x,
212
208
  t,
213
209
  m,
214
210
  p.palette.mode,
215
211
  G,
212
+ w,
216
213
  k,
217
- C,
218
214
  N,
219
- v
215
+ C
220
216
  ]);
221
217
  const Z = { ...X };
222
- return { chartId: O, ownerState: Z, sx: z, error: g, other: H };
218
+ return { chartId: I, ownerState: Z, sx: z, error: h, other: H };
223
219
  };
224
220
  export {
225
- ze as useLineChartLogic
221
+ He as useLineChartLogic
226
222
  };