@milaboratories/miplots4 1.0.132 → 1.0.134

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 (61) hide show
  1. package/dist/AbstractChart.d.ts +2 -0
  2. package/dist/AbstractChart.d.ts.map +1 -1
  3. package/dist/AbstractChart.js +5 -4
  4. package/dist/AbstractChart.js.map +1 -1
  5. package/dist/MiPlots.d.ts +1 -0
  6. package/dist/MiPlots.d.ts.map +1 -1
  7. package/dist/MiPlots.js +3 -0
  8. package/dist/MiPlots.js.map +1 -1
  9. package/dist/bubble/index.d.ts.map +1 -1
  10. package/dist/bubble/index.js +22 -22
  11. package/dist/bubble/index.js.map +1 -1
  12. package/dist/common/Error.d.ts +1 -1
  13. package/dist/common/Error.d.ts.map +1 -1
  14. package/dist/common/Error.js +4 -22
  15. package/dist/common/Error.js.map +1 -1
  16. package/dist/dendro/index.d.ts.map +1 -1
  17. package/dist/dendro/index.js +25 -25
  18. package/dist/dendro/index.js.map +1 -1
  19. package/dist/discrete/DiscreteSettingsImpl.d.ts +17 -2
  20. package/dist/discrete/DiscreteSettingsImpl.d.ts.map +1 -1
  21. package/dist/discrete/DiscreteSettingsImpl.js +93 -67
  22. package/dist/discrete/DiscreteSettingsImpl.js.map +1 -1
  23. package/dist/discrete/components/Chart.d.ts.map +1 -1
  24. package/dist/discrete/components/Chart.js +152 -135
  25. package/dist/discrete/components/Chart.js.map +1 -1
  26. package/dist/discrete/components/layers/StackedAreaElement.d.ts +24 -0
  27. package/dist/discrete/components/layers/StackedAreaElement.d.ts.map +1 -0
  28. package/dist/discrete/components/layers/StackedAreaElement.js +105 -0
  29. package/dist/discrete/components/layers/StackedAreaElement.js.map +1 -0
  30. package/dist/discrete/components/layers/StackedBarElement.d.ts +3 -1
  31. package/dist/discrete/components/layers/StackedBarElement.d.ts.map +1 -1
  32. package/dist/discrete/components/layers/StackedBarElement.js +67 -60
  33. package/dist/discrete/components/layers/StackedBarElement.js.map +1 -1
  34. package/dist/discrete/index.d.ts.map +1 -1
  35. package/dist/discrete/index.js +87 -84
  36. package/dist/discrete/index.js.map +1 -1
  37. package/dist/discrete/layers/index.d.ts +1 -0
  38. package/dist/discrete/layers/index.d.ts.map +1 -1
  39. package/dist/discrete/layers/stackedArea.d.ts +10 -0
  40. package/dist/discrete/layers/stackedArea.d.ts.map +1 -0
  41. package/dist/discrete/layers/stackedArea.js +17 -0
  42. package/dist/discrete/layers/stackedArea.js.map +1 -0
  43. package/dist/discrete/layers/types.d.ts +12 -1
  44. package/dist/discrete/layers/types.d.ts.map +1 -1
  45. package/dist/heatmap/index.d.ts.map +1 -1
  46. package/dist/heatmap/index.js +18 -18
  47. package/dist/heatmap/index.js.map +1 -1
  48. package/dist/histogram/index.d.ts.map +1 -1
  49. package/dist/histogram/index.js +22 -22
  50. package/dist/histogram/index.js.map +1 -1
  51. package/dist/scatterplot/index.d.ts.map +1 -1
  52. package/dist/scatterplot/index.js +33 -33
  53. package/dist/scatterplot/index.js.map +1 -1
  54. package/dist/scatterplot-umap/index.d.ts.map +1 -1
  55. package/dist/scatterplot-umap/index.js +16 -16
  56. package/dist/scatterplot-umap/index.js.map +1 -1
  57. package/dist/types/discrete.d.ts +268 -0
  58. package/dist/types/discrete.d.ts.map +1 -1
  59. package/dist/types/discrete.js +24 -9
  60. package/dist/types/discrete.js.map +1 -1
  61. package/package.json +1 -1
@@ -1,88 +1,89 @@
1
1
  import { j as e } from "../../node_modules/react/jsx-runtime.js";
2
- import { BLACK as F } from "../../constants.js";
2
+ import { BLACK as z } from "../../constants.js";
3
3
  import { BandAxis as S } from "./BandAxis.js";
4
4
  import { BarElement as a } from "./layers/BarElement.js";
5
5
  import { BinnedDotsElement as mm } from "./layers/BinnedDotsElement.js";
6
6
  import { BoxElement as om } from "./layers/BoxElement.js";
7
7
  import { DotsGroupElement as em } from "./layers/DotsGroupElement.js";
8
8
  import { ErrorBarElement as sm } from "./layers/ErrorBarElement.js";
9
- import { LineElement as nm } from "./layers/LineElement.js";
10
- import { LogoElement as hm } from "./layers/LogoElement.js";
9
+ import { LineElement as hm } from "./layers/LineElement.js";
10
+ import { LogoElement as nm } from "./layers/LogoElement.js";
11
11
  import { PairedPointsElement as im } from "./layers/PairedPointsElement.js";
12
12
  import { SinaElement as rm } from "./layers/SinaElement.js";
13
- import { StackedBarElement as dm } from "./layers/StackedBarElement.js";
14
- import { StatsPValue as lm } from "./layers/StatsPValue.js";
13
+ import { StackedAreaElement as dm } from "./layers/StackedAreaElement.js";
14
+ import { StackedBarElement as pm } from "./layers/StackedBarElement.js";
15
+ import { StatsPValue as xm } from "./layers/StatsPValue.js";
15
16
  import { NumberAxis as U } from "./NumberAxis.js";
16
- import { getPairwiseStatLevelsCount as pm } from "../utils/statsPValue.js";
17
+ import { getPairwiseStatLevelsCount as lm } from "../utils/statsPValue.js";
17
18
  import { ViolinElement as tm } from "./layers/ViolinElement.js";
18
- import { DEFAULT_TICKS_SIZE as G, FACET_TITLE_LINE as z, TITLE_LINE as _, P_VALUE_LINE_HEIGHT as O } from "../constants.js";
19
- import { Grid as xm } from "./Grid.js";
20
- import { r as um } from "../../_virtual/index.js";
21
- function jm(h, E, u) {
22
- if (!h.length)
19
+ import { DEFAULT_TICKS_SIZE as O, FACET_TITLE_LINE as _, TITLE_LINE as I, P_VALUE_LINE_HEIGHT as R } from "../constants.js";
20
+ import { Grid as um } from "./Grid.js";
21
+ import { r as jm } from "../../_virtual/index.js";
22
+ function gm(n, E, u) {
23
+ if (!n.length)
23
24
  return [];
24
25
  const s = [0];
25
- for (let i = 0; i < h.length - 1; i++) {
26
- const g = h[i];
26
+ for (let i = 0; i < n.length - 1; i++) {
27
+ const g = n[i];
27
28
  if (g.meta.statType === "pairwise") {
28
- const b = pm(
29
+ const k = lm(
29
30
  g.values[u],
30
31
  E,
31
32
  g.meta.significanceLevels,
32
33
  g.meta.ns
33
34
  );
34
- s.push(s[s.length - 1] + O * b);
35
+ s.push(s[s.length - 1] + R * k);
35
36
  } else
36
- s.push(s[s.length - 1] + O);
37
+ s.push(s[s.length - 1] + R);
37
38
  }
38
39
  return s;
39
40
  }
40
- function R(h) {
41
- return typeof h == "string" ? h : h.value;
41
+ function Z(n) {
42
+ return typeof n == "string" ? n : n.value;
42
43
  }
43
- function Vm({
44
- facetSettings: h,
44
+ function Hm({
45
+ facetSettings: n,
45
46
  facetTitle: E,
46
47
  dimensions: u,
47
48
  scales: s,
48
49
  orientation: i,
49
50
  layersData: g,
50
- statsData: b,
51
- facetKey: n,
51
+ statsData: k,
52
+ facetKey: h,
52
53
  xAxis: T,
53
- yAxis: f,
54
- frameType: I,
55
- tooltips: x,
54
+ yAxis: w,
55
+ frameType: Y,
56
+ tooltips: t,
56
57
  tooltipsContainer: d,
57
- keyColumn: P,
58
- chartSizes: k,
58
+ keyColumn: A,
59
+ chartSizes: b,
59
60
  margins: c,
60
- xLabels: Y,
61
- onlyPositive: $,
62
- secondaryGrouping: C,
63
- tooltipsData: l
61
+ xLabels: $,
62
+ onlyPositive: V,
63
+ secondaryGrouping: P,
64
+ tooltipsData: p
64
65
  }) {
65
- const [p, Z] = um.useState(), j = i === "vertical", q = jm(b, s.xPrimary.domain(), n), V = T.showTicks ? G : 0, X = f.showTicks ? G : 0, H = R(T.title), N = R(f.title), J = u.chartEdgeSides.includes("left") || j && !(h != null && h.sharedY) || !j && !(h != null && h.sharedX), Q = u.chartEdgeSides.includes("bottom") || j && !(h != null && h.sharedX) || !j && !(h != null && h.sharedY), W = u.chartEdgeSides.includes("left"), M = u.chartEdgeSides.includes("bottom"), { width: B, height: w } = u.inner, { left: L, top: v, padding: r } = u, t = {
66
+ const [x, q] = jm.useState(), j = i === "vertical", G = gm(k, s.xPrimary.domain(), h), X = T.showTicks ? O : 0, C = w.showTicks ? O : 0, H = Z(T.title), N = Z(w.title), J = u.chartEdgeSides.includes("left") || j && !(n != null && n.sharedY) || !j && !(n != null && n.sharedX), Q = u.chartEdgeSides.includes("bottom") || j && !(n != null && n.sharedX) || !j && !(n != null && n.sharedY), W = u.chartEdgeSides.includes("left"), M = u.chartEdgeSides.includes("bottom"), { width: B, height: f } = u.inner, { left: L, top: v, padding: r } = u, l = {
66
67
  left: c.left + L + r.left,
67
- right: k.totalWidth - (c.left + L + r.left),
68
+ right: b.totalWidth - (c.left + L + r.left),
68
69
  top: c.top + v + r.top,
69
- bottom: k.totalHeight - (c.top + v + r.top)
70
- }, K = `translate(${L + r.left},${v + r.top})`, A = !1;
70
+ bottom: b.totalHeight - (c.top + v + r.top)
71
+ }, K = `translate(${L + r.left},${v + r.top})`, F = !1;
71
72
  return /* @__PURE__ */ e.jsxs("g", { transform: K, children: [
72
- A,
73
+ F,
73
74
  E.length && /* @__PURE__ */ e.jsxs("g", { children: [
74
- I === "full" && /* @__PURE__ */ e.jsx("rect", { x: "0", y: -r.top, height: r.top, width: B, fill: "#F7F8FA", stroke: F }),
75
+ Y === "full" && /* @__PURE__ */ e.jsx("rect", { x: "0", y: -r.top, height: r.top, width: B, fill: "#F7F8FA", stroke: z }),
75
76
  E.map((m, o) => {
76
- const y = E.length, D = (r.top - z * y) / 2;
77
+ const y = E.length, D = (r.top - _ * y) / 2;
77
78
  return /* @__PURE__ */ e.jsx(
78
79
  "text",
79
80
  {
80
81
  fontSize: "14px",
81
82
  fontWeight: "500",
82
- fill: F,
83
+ fill: z,
83
84
  x: B / 2,
84
- dy: D + z / 2 - r.top,
85
- y: o * z,
85
+ dy: D + _ / 2 - r.top,
86
+ y: o * _,
86
87
  textAnchor: "middle",
87
88
  dominantBaseline: "central",
88
89
  children: m
@@ -91,142 +92,142 @@ function Vm({
91
92
  );
92
93
  })
93
94
  ] }),
94
- /* @__PURE__ */ e.jsxs("g", { dominantBaseline: "central", textAnchor: "middle", fontWeight: "500", fontSize: "14px", fill: F, children: [
95
- M && /* @__PURE__ */ e.jsx("text", { x: B / 2, y: w + r.bottom - _ / 2, children: j ? H : N }),
96
- M && A,
95
+ /* @__PURE__ */ e.jsxs("g", { dominantBaseline: "central", textAnchor: "middle", fontWeight: "500", fontSize: "14px", fill: z, children: [
96
+ M && /* @__PURE__ */ e.jsx("text", { x: B / 2, y: f + r.bottom - I / 2, children: j ? H : N }),
97
+ M && F,
97
98
  W && /* @__PURE__ */ e.jsx(
98
99
  "text",
99
100
  {
100
- x: -r.left + _ / 2,
101
- y: w / 2,
102
- transform: `rotate(-90,${-r.left + _ / 2},${w / 2})`,
101
+ x: -r.left + I / 2,
102
+ y: f / 2,
103
+ transform: `rotate(-90,${-r.left + I / 2},${f / 2})`,
103
104
  children: j ? N : H
104
105
  }
105
106
  ),
106
- W && A
107
+ W && F
107
108
  ] }),
108
109
  /* @__PURE__ */ e.jsx(
109
- xm,
110
+ um,
110
111
  {
111
112
  orientation: i,
112
113
  width: B,
113
- height: w,
114
+ height: f,
114
115
  scaleX: s.xPrimary,
115
116
  scaleY: s.y,
116
117
  axisX: T,
117
- axisY: f,
118
- frameType: I
118
+ axisY: w,
119
+ frameType: Y
119
120
  }
120
121
  ),
121
- Q && /* @__PURE__ */ e.jsx("g", { transform: `translate(0,${w})`, children: j ? /* @__PURE__ */ e.jsx(
122
+ Q && /* @__PURE__ */ e.jsx("g", { transform: `translate(0,${f})`, children: j ? /* @__PURE__ */ e.jsx(
122
123
  S,
123
124
  {
124
125
  scale: s.xPrimary,
125
126
  orient: "bottom",
126
127
  labelsPosition: T.labelsPosition,
127
- tickSize: V,
128
- labels: Y
128
+ tickSize: X,
129
+ labels: $
129
130
  }
130
- ) : /* @__PURE__ */ e.jsx(U, { scale: s.y, onlyPositive: $, orient: "bottom", tickSize: X, hiddenLabels: f.hiddenLabels }) }),
131
- J && /* @__PURE__ */ e.jsx("g", { children: j ? /* @__PURE__ */ e.jsx(U, { scale: s.y, onlyPositive: $, orient: "left", tickSize: X, hiddenLabels: f.hiddenLabels }) : /* @__PURE__ */ e.jsx(
131
+ ) : /* @__PURE__ */ e.jsx(U, { scale: s.y, onlyPositive: V, orient: "bottom", tickSize: C, hiddenLabels: w.hiddenLabels }) }),
132
+ J && /* @__PURE__ */ e.jsx("g", { children: j ? /* @__PURE__ */ e.jsx(U, { scale: s.y, onlyPositive: V, orient: "left", tickSize: C, hiddenLabels: w.hiddenLabels }) : /* @__PURE__ */ e.jsx(
132
133
  S,
133
134
  {
134
135
  scale: s.xPrimary,
135
136
  orient: "left",
136
137
  labelsPosition: T.labelsPosition,
137
- tickSize: V,
138
- labels: Y
138
+ tickSize: X,
139
+ labels: $
139
140
  }
140
141
  ) }),
141
142
  /* @__PURE__ */ e.jsxs("g", { children: [
142
143
  g.map((m) => /* @__PURE__ */ e.jsxs("g", { children: [
143
- m.type === "box" && m.geoms[n].map((o) => /* @__PURE__ */ e.jsx(
144
+ m.type === "box" && m.geoms[h].map((o) => /* @__PURE__ */ e.jsx(
144
145
  om,
145
146
  {
146
- facetKey: n,
147
+ facetKey: h,
147
148
  box: o,
148
- elementsAmount: m.geoms[n].length,
149
+ elementsAmount: m.geoms[h].length,
149
150
  scales: s,
150
151
  orientation: i,
151
152
  aes: m.aes,
152
- hasKeyFromColumn: P !== null,
153
- sideDistances: t,
154
- showTooltips: x.box.show,
155
- tooltipsData: l,
156
- activeElementContainer: p,
153
+ hasKeyFromColumn: A !== null,
154
+ sideDistances: l,
155
+ showTooltips: t.box.show,
156
+ tooltipsData: p,
157
+ activeElementContainer: x,
157
158
  tooltipsContainer: d
158
159
  },
159
160
  o.key
160
161
  )),
161
- m.type === "violin" && m.geoms[n].map((o) => /* @__PURE__ */ e.jsx(
162
+ m.type === "violin" && m.geoms[h].map((o) => /* @__PURE__ */ e.jsx(
162
163
  tm,
163
164
  {
164
- facetKey: n,
165
+ facetKey: h,
165
166
  violin: o,
166
- elementsAmount: m.geoms[n].length,
167
+ elementsAmount: m.geoms[h].length,
167
168
  scales: s,
168
169
  orientation: i,
169
170
  maxViolinDensity: m.meta.maxDensity,
170
171
  aes: m.aes,
171
- sideDistances: t,
172
- showTooltips: x.violin.show,
173
- tooltipsData: l,
174
- activeElementContainer: p,
172
+ sideDistances: l,
173
+ showTooltips: t.violin.show,
174
+ tooltipsData: p,
175
+ activeElementContainer: x,
175
176
  tooltipsContainer: d
176
177
  },
177
178
  o.key
178
179
  )),
179
- m.type === "dot" && m.geoms[n].map((o) => /* @__PURE__ */ e.jsx(
180
+ m.type === "dot" && m.geoms[h].map((o) => /* @__PURE__ */ e.jsx(
180
181
  em,
181
182
  {
182
- facetKey: n,
183
+ facetKey: h,
183
184
  geom: o,
184
185
  scales: s,
185
186
  orientation: i,
186
187
  aes: m.aes,
187
- hasKeyFromColumn: P !== null,
188
- sideDistances: t,
189
- showTooltips: x.dot.show,
190
- tooltipsData: l,
191
- activeElementContainer: p,
188
+ hasKeyFromColumn: A !== null,
189
+ sideDistances: l,
190
+ showTooltips: t.dot.show,
191
+ tooltipsData: p,
192
+ activeElementContainer: x,
192
193
  tooltipsContainer: d
193
194
  },
194
195
  o.key
195
196
  )),
196
- m.type === "line" && m.geoms[n].map((o) => /* @__PURE__ */ e.jsx(
197
- nm,
197
+ m.type === "line" && m.geoms[h].map((o) => /* @__PURE__ */ e.jsx(
198
+ hm,
198
199
  {
199
- facetKey: n,
200
+ facetKey: h,
200
201
  line: o,
201
202
  scales: s,
202
203
  orientation: i,
203
- sideDistances: t,
204
+ sideDistances: l,
204
205
  aes: m.aes,
205
- showTooltips: x.line.show,
206
- secondaryGrouping: C,
207
- tooltipsData: l,
208
- activeElementContainer: p,
206
+ showTooltips: t.line.show,
207
+ secondaryGrouping: P,
208
+ tooltipsData: p,
209
+ activeElementContainer: x,
209
210
  tooltipsContainer: d
210
211
  },
211
212
  o.key
212
213
  )),
213
- m.type === "errorbar" && m.geoms[n].map((o) => /* @__PURE__ */ e.jsx(
214
+ m.type === "errorbar" && m.geoms[h].map((o) => /* @__PURE__ */ e.jsx(
214
215
  sm,
215
216
  {
216
- facetKey: n,
217
+ facetKey: h,
217
218
  errorBar: o,
218
219
  scales: s,
219
220
  orientation: i,
220
221
  aes: m.aes,
221
- sideDistances: t,
222
- showTooltips: x.errorBar.show,
223
- tooltipsData: l,
224
- activeElementContainer: p,
222
+ sideDistances: l,
223
+ showTooltips: t.errorBar.show,
224
+ tooltipsData: p,
225
+ activeElementContainer: x,
225
226
  tooltipsContainer: d
226
227
  },
227
228
  o.key
228
229
  )),
229
- m.type === "bar" && m.geoms[n].map((o) => /* @__PURE__ */ e.jsx(
230
+ m.type === "bar" && m.geoms[h].map((o) => /* @__PURE__ */ e.jsx(
230
231
  a,
231
232
  {
232
233
  bar: o,
@@ -236,29 +237,45 @@ function Vm({
236
237
  },
237
238
  o.key
238
239
  )),
239
- m.type === "stackedBar" && m.geoms[n].map((o) => /* @__PURE__ */ e.jsx(
240
- dm,
240
+ m.type === "stackedBar" && m.geoms[h].map((o) => /* @__PURE__ */ e.jsx(
241
+ pm,
241
242
  {
242
- facetKey: n,
243
+ facetKey: h,
243
244
  geom: o,
244
- elementsAmount: m.geoms[n].length,
245
+ elementsAmount: m.geoms[h].length,
245
246
  scales: s,
246
247
  orientation: i,
247
248
  aes: m.aes,
248
249
  normalize: m.meta.normalize,
249
- sideDistances: t,
250
- showTooltips: x.stackedBar.show,
251
- secondaryGrouping: C,
252
- tooltipsData: l,
253
- activeElementContainer: p,
250
+ sideDistances: l,
251
+ showTooltips: t.stackedBar.show,
252
+ secondaryGrouping: P,
253
+ tooltipsData: p,
254
+ activeElementContainer: x,
254
255
  tooltipsContainer: d
255
256
  },
256
257
  o.key
257
258
  )),
258
- m.type === "binnedDots" && m.geoms[n].map((o) => /* @__PURE__ */ e.jsx(
259
+ m.type === "stackedArea" && /* @__PURE__ */ e.jsx(
260
+ dm,
261
+ {
262
+ facetKey: h,
263
+ layerData: m,
264
+ scales: s,
265
+ orientation: i,
266
+ sideDistances: l,
267
+ showTooltips: t.stackedBar.show,
268
+ secondaryGrouping: P,
269
+ tooltipsData: p,
270
+ activeElementContainer: x,
271
+ tooltipsContainer: d
272
+ },
273
+ "stackedArea"
274
+ ),
275
+ m.type === "binnedDots" && m.geoms[h].map((o) => /* @__PURE__ */ e.jsx(
259
276
  mm,
260
277
  {
261
- facetKey: n,
278
+ facetKey: h,
262
279
  geom: o,
263
280
  scales: s,
264
281
  orientation: i,
@@ -267,71 +284,71 @@ function Vm({
267
284
  min: m.meta.minY,
268
285
  max: m.meta.maxY,
269
286
  hasKeyFromColumn: m.meta.hasKeyFromColumn,
270
- sideDistances: t,
271
- showTooltips: x.stackedBar.show,
272
- tooltipsData: l,
273
- activeElementContainer: p,
287
+ sideDistances: l,
288
+ showTooltips: t.stackedBar.show,
289
+ tooltipsData: p,
290
+ activeElementContainer: x,
274
291
  tooltipsContainer: d
275
292
  },
276
293
  o.key
277
294
  )),
278
- m.type === "pairedPoints" && m.geoms[n].map((o) => /* @__PURE__ */ e.jsx(
295
+ m.type === "pairedPoints" && m.geoms[h].map((o) => /* @__PURE__ */ e.jsx(
279
296
  im,
280
297
  {
281
- facetKey: n,
298
+ facetKey: h,
282
299
  geom: o,
283
300
  scales: s,
284
301
  orientation: i,
285
- sideDistances: t,
302
+ sideDistances: l,
286
303
  aes: m.aes,
287
- showTooltips: x.pairedPoints.show,
288
- tooltipsData: l,
289
- activeElementContainer: p,
304
+ showTooltips: t.pairedPoints.show,
305
+ tooltipsData: p,
306
+ activeElementContainer: x,
290
307
  tooltipsContainer: d
291
308
  },
292
309
  o.id
293
310
  )),
294
- m.type === "sina" && m.geoms[n].map((o) => /* @__PURE__ */ e.jsx(
311
+ m.type === "sina" && m.geoms[h].map((o) => /* @__PURE__ */ e.jsx(
295
312
  rm,
296
313
  {
297
314
  geom: o,
298
315
  scales: s,
299
316
  orientation: i,
300
- sideDistances: t,
317
+ sideDistances: l,
301
318
  aes: m.aes,
302
- hasKeyFromColumn: P !== null,
319
+ hasKeyFromColumn: A !== null,
303
320
  showTooltips: !1,
304
321
  tooltipsContainer: d
305
322
  },
306
323
  o.key
307
324
  )),
308
- m.type === "logo" && m.geoms[n].map((o) => /* @__PURE__ */ e.jsx(
309
- hm,
325
+ m.type === "logo" && m.geoms[h].map((o) => /* @__PURE__ */ e.jsx(
326
+ nm,
310
327
  {
311
- facetKey: n,
328
+ facetKey: h,
312
329
  geom: o,
313
- elementsAmount: m.geoms[n].length,
330
+ elementsAmount: m.geoms[h].length,
314
331
  scales: s,
315
332
  orientation: i,
316
333
  aes: m.aes,
317
334
  normalize: m.meta.normalize,
318
- sideDistances: t,
319
- showTooltips: x.logo.show,
320
- tooltipsData: l,
321
- activeElementContainer: p,
335
+ sideDistances: l,
336
+ showTooltips: t.logo.show,
337
+ tooltipsData: p,
338
+ activeElementContainer: x,
322
339
  tooltipsContainer: d
323
340
  },
324
341
  o.key
325
342
  ))
326
343
  ] }, m.type)),
327
- b.map((m, o) => /* @__PURE__ */ e.jsx(
328
- lm,
344
+ k.map((m, o) => /* @__PURE__ */ e.jsx(
345
+ xm,
329
346
  {
330
- yShift: q[o],
347
+ yShift: G[o],
331
348
  scales: s,
332
349
  orientation: i,
333
350
  statType: m.meta.statType,
334
- values: m.values[n],
351
+ values: m.values[h],
335
352
  testMethod: m.meta.testMethod,
336
353
  format: m.meta.format,
337
354
  ns: m.meta.ns,
@@ -341,12 +358,12 @@ function Vm({
341
358
  ))
342
359
  ] }),
343
360
  /* @__PURE__ */ e.jsxs("g", { children: [
344
- l.fixed && /* @__PURE__ */ e.jsx("rect", { width: k.chartWidth, height: k.chartHeight, fill: "rgba(255, 255, 255, 0.8)" }),
361
+ p.fixed && /* @__PURE__ */ e.jsx("rect", { width: b.chartWidth, height: b.chartHeight, fill: "rgba(255, 255, 255, 0.8)" }),
345
362
  /* @__PURE__ */ e.jsx(
346
363
  "g",
347
364
  {
348
365
  ref: (m) => {
349
- m && !p && Z(m);
366
+ m && !x && q(m);
350
367
  }
351
368
  }
352
369
  )
@@ -354,6 +371,6 @@ function Vm({
354
371
  ] });
355
372
  }
356
373
  export {
357
- Vm as Chart
374
+ Hm as Chart
358
375
  };
359
376
  //# sourceMappingURL=Chart.js.map