@astrato-io/visualizations 0.10.0 → 0.10.1

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 (114) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +3 -3
  3. package/VISUALIZATION_DEFINITIONS.md +65 -12
  4. package/chunks/{Button-CCF851ea.js → Button-Dn3rJrYf.js} +2 -2
  5. package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-BFeu06Yb.js} +4 -4
  6. package/chunks/{FieldTypeIcon-D_MzsdfY.js → FieldTypeIcon-DrMoGpHJ.js} +2 -2
  7. package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-ClO6GUjN.js} +2 -2
  8. package/chunks/{MenuOption-CQpT79AP.js → MenuOption-Czc34u4q.js} +7 -7
  9. package/chunks/{Title-C-p4ZarD.js → Title-BgYnaVTR.js} +3 -3
  10. package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-BMu9uRax.js} +8 -8
  11. package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-CVir0wkl.js} +3 -3
  12. package/chunks/{bar-layout-DStC-GNV.js → bar-layout-C_UgRlVl.js} +2 -2
  13. package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-DYuFdi9J.js} +8 -8
  14. package/chunks/{builder-CScg1TOS.js → builder-C-TKA-My.js} +11 -11
  15. package/chunks/{coloring-9jU3s_-p.js → coloring-BtnPiQ_o.js} +16 -16
  16. package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter--zrZxRV9.js} +1 -1
  17. package/chunks/defaults-Dtk7fg3C.js +3 -0
  18. package/chunks/{definitions-C4grxhye.js → definitions-CT304NDn.js} +77 -51
  19. package/chunks/{escobar-CjirINHP.js → escobar-CvEV2ES1.js} +6126 -6059
  20. package/chunks/{extend-preset-D-l9u_we.js → extend-preset-D9-JP92b.js} +396 -396
  21. package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CXeZznks.js} +7 -7
  22. package/chunks/{filtering-C1zakrrX.js → filtering-8_bFv-jb.js} +84 -84
  23. package/chunks/{handlers-ZviIUC-j.js → handlers-C6CZ0XJA.js} +5620 -5608
  24. package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-BXiJ1SZS.js} +2 -2
  25. package/chunks/{isEqual-Ch9OEye3.js → isEqual-D8Ay63xR.js} +1 -1
  26. package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-Bu8gGZu5.js} +1 -1
  27. package/chunks/{line.compiler-De5fiKuR.js → line.compiler-DmHpmQCC.js} +4 -4
  28. package/chunks/{logger-CKRjhSHQ.js → logger-DdZpR7xZ.js} +65 -65
  29. package/chunks/{map.compiler-CKzorLgK.js → map.compiler-Q_Y1Pvat.js} +12 -14
  30. package/chunks/{metadata-Bb9pTXrq.js → metadata-BQm_TXI1.js} +1 -1
  31. package/chunks/{number.compiler-CaTmJkmi.js → number.compiler-DQdg6zTy.js} +4 -4
  32. package/chunks/{operations-DZoY50VX.js → operations-DKQWuLL7.js} +9469 -9451
  33. package/chunks/{range-D1BTmFMp.js → range-BdhzvYQ_.js} +2 -2
  34. package/chunks/{react-dom-Dgv2azN2.js → react-dom-BGP4tbXV.js} +1 -1
  35. package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-BZpyDnJy.js} +1 -1
  36. package/chunks/{requirements-NHNrR8Ie.js → requirements-e8Fe96ag.js} +29 -29
  37. package/chunks/{shared-UitWpq1J.js → shared-C_2F90xq.js} +478 -472
  38. package/chunks/{standalone-wgFAVnnm.js → standalone-4MsKiqs0.js} +130 -130
  39. package/chunks/standalone-B794g9pE.js +1012 -0
  40. package/chunks/{standalone-BBu90BhK.js → standalone-B8ZSqauS.js} +59 -59
  41. package/chunks/standalone-BA2YXyJS.js +422 -0
  42. package/chunks/{standalone-DtBk_iUz.js → standalone-BDrXVxlP.js} +4 -4
  43. package/chunks/{standalone-U0WJwFlG.js → standalone-BE_ONgiG.js} +64 -64
  44. package/chunks/{standalone-BOzHA_d4.js → standalone-BTY3w_JA.js} +24 -24
  45. package/chunks/{standalone-BEekPuA12.js → standalone-BgumbdaJ2.js} +101 -101
  46. package/chunks/{standalone-Bnnr87pc.js → standalone-BkbiH-o8.js} +174 -174
  47. package/chunks/{standalone-xGV0dqPV.js → standalone-Blh4qejk.js} +197 -197
  48. package/chunks/{standalone-DxBAyqAu.js → standalone-CXY4FpF7.js} +278 -277
  49. package/chunks/{standalone-CVknVdUC.js → standalone-CY_kjarf.js} +18 -18
  50. package/chunks/{standalone-BapqaniK.js → standalone-CaTxAydz.js} +54 -54
  51. package/chunks/{standalone-CRdDZYeM.js → standalone-Cc98Pdr6.js} +829 -829
  52. package/chunks/standalone-Cl0TSfqC.js +396 -0
  53. package/chunks/{standalone-B0U6c3su.js → standalone-CsoMmE9T.js} +80 -80
  54. package/chunks/standalone-DH0xTEes.js +2 -0
  55. package/chunks/{standalone-ByKKqT5L.js → standalone-DHRalbVO.js} +268 -268
  56. package/chunks/{standalone-CbPk8bKn.js → standalone-DNh9NcMa.js} +109 -109
  57. package/chunks/standalone-DcnHjNnC.js +2 -0
  58. package/chunks/{standalone-Ck63MZzj.js → standalone-DflyWtuR.js} +107 -107
  59. package/chunks/standalone-DrHdGkY7.js +762 -0
  60. package/chunks/standalone-c_rROMtx.js +287 -0
  61. package/chunks/{standalone-DibjA73M.js → standalone-drcFLeN6.js} +2 -2
  62. package/chunks/{standalone-swGs70tD.js → standalone-wOWRCpdn.js} +26 -26
  63. package/chunks/{standalone-DCFY1MAV.js → standalone-z0o52o5t.js} +4191 -4191
  64. package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-COaHE9VD.js} +18 -18
  65. package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-CdnCWzhd.js} +1 -1
  66. package/chunks/{utils-3Igg6xmO.js → utils-DganVptf.js} +491 -483
  67. package/chunks/{view-DdMLZySj.js → view-Bzlros43.js} +158 -158
  68. package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-D7i6oh1Z.js} +23 -12
  69. package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-CiIhFEa5.js} +2497 -2497
  70. package/definitions.js +2 -2
  71. package/docs/operations/astrato-app-filter-bar.md +1 -1
  72. package/docs/operations/bar.md +1 -1
  73. package/docs/operations/combo.md +1 -1
  74. package/docs/operations/date-picker.md +1 -1
  75. package/docs/operations/distribution-gauge.md +1 -1
  76. package/docs/operations/dot.md +1 -1
  77. package/docs/operations/filter.md +1 -1
  78. package/docs/operations/gauge.md +1 -1
  79. package/docs/operations/heatMap.md +1 -1
  80. package/docs/operations/histogram.md +1 -1
  81. package/docs/operations/iframe.md +1 -1
  82. package/docs/operations/image.md +1 -1
  83. package/docs/operations/index.md +2 -2
  84. package/docs/operations/line.md +19 -1
  85. package/docs/operations/number.md +1 -1
  86. package/docs/operations/pie.md +1 -1
  87. package/docs/operations/radar.md +1 -1
  88. package/docs/operations/sankey.md +1 -1
  89. package/docs/operations/scatter.md +1 -1
  90. package/docs/operations/shape.md +1 -1
  91. package/docs/operations/simpleTextObject.md +1 -1
  92. package/docs/operations/slider.md +1 -1
  93. package/docs/operations/table.md +1 -1
  94. package/docs/operations/tree.md +1 -1
  95. package/docs/operations/treemap.md +1 -1
  96. package/docs/operations/waterfall.md +1 -1
  97. package/docs/operations/word-cloud.md +1 -1
  98. package/getters.js +2 -2
  99. package/index.js +54 -54
  100. package/metadata.js +2 -2
  101. package/operations.js +5 -5
  102. package/package.json +67 -67
  103. package/src/definitions/index.d.ts +7 -1
  104. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +31 -5
  105. package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
  106. package/src/types.d.ts +28 -28
  107. package/chunks/defaults-cyNhn37t.js +0 -3
  108. package/chunks/standalone-BR2JuRIC.js +0 -422
  109. package/chunks/standalone-BwJqDj2Z.js +0 -396
  110. package/chunks/standalone-CRfDOO1x.js +0 -287
  111. package/chunks/standalone-DZDGX3aa.js +0 -518
  112. package/chunks/standalone-DhfgeJIk.js +0 -1012
  113. package/chunks/standalone-KMQPsNsq.js +0 -2
  114. package/chunks/standalone-MBLSvsrY.js +0 -2
@@ -1,66 +1,66 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Da as t, Fo as n, Io as r, Ir as i, No as a, Pc as o, Pi as s, Qr as c, Ra as l, Ut as u, Xa as d, aa as f, hc as p, kc as m, ko as h, n as g, oa as _, oc as v, rr as y, so as b, vc as x } from "./visualization-filters-CzvFHE6M.js";
3
- import { F as S, N as C, Ut as w, ci as T, f as E, jt as D, s as O, zr as k } from "./utils-3Igg6xmO.js";
4
- import "./logger-CKRjhSHQ.js";
5
- import { At as A, Dt as ee, Ft as j, Gt as M, Ht as N, I as P, It as F, J as I, Kt as L, L as te, Lt as ne, Mt as re, Nt as ie, Ot as ae, Q as oe, Rt as se, St as ce, U as le, Vt as R, W as ue, Xt as z, Y as B, _n as de, an as fe, bt as V, cn as H, dn as U, dt as pe, en as me, fn as W, i as he, in as ge, it as _e, mn as ve, n as ye, nt as be, on as xe, pn as Se, q as Ce, sn as we, st as Te, tt as Ee, un as De, vn as G, wt as Oe } from "./escobar-CjirINHP.js";
6
- import { t as ke } from "./coloring-9jU3s_-p.js";
2
+ import { Ac as t, Ao as n, Fc as r, Fi as i, Io as a, Ir as o, Lo as s, Oa as c, Po as l, Qr as u, Ut as d, Za as f, co as p, gc as m, n as h, oa as g, rr as _, sa as v, sc as y, yc as b, za as x } from "./visualization-filters-D7i6oh1Z.js";
3
+ import { F as S, N as C, Ut as w, ci as T, f as E, jt as D, s as O, zr as k } from "./utils-DganVptf.js";
4
+ import "./logger-DdZpR7xZ.js";
5
+ import { A, At as j, B as ee, Bt as M, E as N, Et as P, Ft as F, Jt as I, L as te, Lt as ne, Mt as re, P as ie, Pt as ae, Qt as oe, R as se, Rt as ce, St as L, T as le, Ut as R, Wt as ue, _ as de, bn as z, cn as fe, fn as pe, gn as B, hn as me, i as he, j as V, k as H, kt as ge, ln as _e, lt as ve, mn as U, n as ye, nn as be, on as xe, pn as W, pt as Se, qt as Ce, sn as we, un as G, v as Te, wt as Ee, yn as De, zt as Oe } from "./escobar-CvEV2ES1.js";
6
+ import { t as ke } from "./coloring-BtnPiQ_o.js";
7
7
  import { t as Ae } from "./set-coloring-datafield-B3uIS1Pe.js";
8
- var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
9
- let d = [], f = [], p = e.measures.filter((e) => c(e)), m = {
8
+ var je = /* @__PURE__ */ e(T()), Me = (e, t, n, r, i, o, s, c) => {
9
+ let l = [], d = [], f = e.measures.filter((e) => u(e)), p = {
10
10
  ...t.axis.measure,
11
11
  ...t.fonts
12
- }, h = [];
13
- if (u) {
14
- let e = N(G.Text, u);
15
- h.push(e);
12
+ }, m = [];
13
+ if (c) {
14
+ let e = ue(z.Text, c);
15
+ m.push(e);
16
16
  }
17
- let g = p.filter((e) => e.role === l.SCATTER_HORIZONTAL), _ = p.filter((e) => e.role === l.SCATTER_VERTICAL), v = e.measures.filter((e) => e.role === l.SCATTER_HORIZONTAL), b = e.measures.filter((e) => e.role === l.SCATTER_VERTICAL), x = g[0], S = _[0], C = {};
18
- if (x) {
19
- let t = n.Bottom, r = e.axes?.primaryMeasure || C;
20
- if (d.push(M(H.XAxisScale, r, m, t, x.formatter)), e.axes?.primaryMeasure?.showAxisName) {
21
- let n = y(v, e.enableAlternate, o?.isPrintMode);
22
- f.push(L(g, n, t, m, r.colors?.title, r.axisTitle, r.titleFontSize));
17
+ let h = f.filter((e) => e.role === x.SCATTER_HORIZONTAL), g = f.filter((e) => e.role === x.SCATTER_VERTICAL), v = e.measures.filter((e) => e.role === x.SCATTER_HORIZONTAL), y = e.measures.filter((e) => e.role === x.SCATTER_VERTICAL), b = h[0], S = g[0], C = {};
18
+ if (b) {
19
+ let t = a.Bottom, n = e.axes?.primaryMeasure || C;
20
+ if (l.push(Ce(G.XAxisScale, n, p, t, b.formatter)), e.axes?.primaryMeasure?.showAxisName) {
21
+ let r = _(v, e.enableAlternate, o?.isPrintMode);
22
+ d.push(I(h, r, t, p, n.colors?.title, n.axisTitle, n.titleFontSize));
23
23
  }
24
24
  }
25
25
  if (S) {
26
- let t = n.Left, r = e.axes?.secondaryMeasure || C;
27
- if (d.push(M(H.YAxisScale, r, m, t, S.formatter)), e.axes?.secondaryMeasure?.showAxisName) {
28
- let n = y(b, e.enableAlternate, o?.isPrintMode);
29
- f.push(L(_, n, t, m, r.colors?.title, r.axisTitle, r.titleFontSize));
26
+ let t = a.Left, n = e.axes?.secondaryMeasure || C;
27
+ if (l.push(Ce(G.YAxisScale, n, p, t, S.formatter)), e.axes?.secondaryMeasure?.showAxisName) {
28
+ let r = _(y, e.enableAlternate, o?.isPrintMode);
29
+ d.push(I(g, r, t, p, n.colors?.title, n.axisTitle, n.titleFontSize));
30
30
  }
31
31
  }
32
32
  return {
33
- ...r,
33
+ ...n,
34
34
  components: [
35
- ...r.components,
36
- ...d,
37
- ...f
35
+ ...n.components,
36
+ ...l,
37
+ ...d
38
38
  ],
39
- interactions: [...r.interactions ?? [], ...h]
39
+ interactions: [...n.interactions ?? [], ...m]
40
40
  };
41
41
  }, Ne = (e, t) => {
42
- let n = e.dimensions.filter((e) => c(e)), r = e.measures.filter((e) => c(e)), i = n.filter((e) => e.role === d.SCATTER_DIMENSION), a = r.filter((e) => e.role === l.SCATTER_SIZE), s = i[0], u = a[0], { coloring: f } = e || {};
43
- switch (f?.type) {
44
- case x.Categorical: return ae(e, t);
45
- case x.Gradient: return A(e, u);
46
- case x.Single: return o(s.dataItem);
42
+ let n = e.dimensions.filter((e) => u(e)), i = e.measures.filter((e) => u(e)), a = n.filter((e) => e.role === f.SCATTER_DIMENSION), o = i.filter((e) => e.role === x.SCATTER_SIZE), s = a[0], c = o[0], { coloring: l } = e || {};
43
+ switch (l?.type) {
44
+ case b.Categorical: return j(e, t);
45
+ case b.Gradient: return re(e, c);
46
+ case b.Single: return r(s.dataItem);
47
47
  default: return null;
48
48
  }
49
- }, Pe = (e, t, n, r, i, a, p) => {
50
- let m = e.dimensions.filter((e) => c(e)), h = e.measures.filter((e) => c(e)), _ = m.filter((e) => e.role === d.SCATTER_DIMENSION), v = h.filter((e) => e.role === l.SCATTER_HORIZONTAL), y = h.filter((e) => e.role === l.SCATTER_VERTICAL), b = h.filter((e) => e.role === l.SCATTER_SIZE), S = _[0], C = v[0], T = y[0], E = b[0], D = {}, { coloring: O } = e || {}, k = m.length < 2 && e.scatterSettings?.spatialHeatmap?.show, A = k && !O?.fieldId ? null : Ne(e, p);
49
+ }, Pe = (e, t, n, a, o, s, c) => {
50
+ let l = e.dimensions.filter((e) => u(e)), p = e.measures.filter((e) => u(e)), m = l.filter((e) => e.role === f.SCATTER_DIMENSION), _ = p.filter((e) => e.role === x.SCATTER_HORIZONTAL), v = p.filter((e) => e.role === x.SCATTER_VERTICAL), y = p.filter((e) => e.role === x.SCATTER_SIZE), S = m[0], C = _[0], T = v[0], E = y[0], D = {}, { coloring: O } = e || {}, k = l.length < 2 && e.scatterSettings?.spatialHeatmap?.show, j = k && !O?.fieldId ? null : Ne(e, c);
51
51
  switch (O?.type) {
52
- case x.Categorical:
53
- D = ee(Ae(e, A), t, D, void 0, p);
52
+ case b.Categorical:
53
+ D = ge(Ae(e, j), t, D, void 0, c);
54
54
  break;
55
- case x.Gradient:
56
- D = ee(Ae(e, A), t, D, void 0, p);
55
+ case b.Gradient:
56
+ D = ge(Ae(e, j), t, D, void 0, c);
57
57
  break;
58
- case x.Single: {
59
- let n = o(S.dataItem);
60
- D[x.Single] = {
58
+ case b.Single: {
59
+ let n = r(S.dataItem);
60
+ D[b.Single] = {
61
61
  data: { extract: { field: n } },
62
62
  range: [e?.coloring?.color ?? t.colors.brandColors[0]],
63
- type: W.CategoricalColor,
63
+ type: U.CategoricalColor,
64
64
  label: (e) => S?.formatter?.format ? w(S.formatter, e.datum.value) : e.datum.label
65
65
  };
66
66
  break;
@@ -68,160 +68,160 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
68
68
  default: break;
69
69
  }
70
70
  if (k) {
71
- D[H.Density] = {
72
- data: A ? { field: A } : void 0,
71
+ D[G.Density] = {
72
+ data: j ? { field: j } : void 0,
73
73
  min: 0,
74
- max: (t) => (t.data?.fields?.[0] ? t.data.fields[0].max() : 1) * (u(e.scatterSettings?.spatialHeatmap?.maxDensity ?? s.heatmapMaxDensity) ?? 0),
74
+ max: (t) => (t.data?.fields?.[0] ? t.data.fields[0].max() : 1) * (d(e.scatterSettings?.spatialHeatmap?.maxDensity ?? i.heatmapMaxDensity) ?? 0),
75
75
  nice: !0
76
- }, D[H.DensityInverted] = {
77
- ...D[H.Density],
76
+ }, D[G.DensityInverted] = {
77
+ ...D[G.Density],
78
78
  invert: !0
79
79
  };
80
- let r = [...g(O?.type ?? x.Gradient, t), ...O?.customGradient ? [O.customGradient] : []].find((e) => e.id === (O?.palette ?? t.colors.defaultGradient ?? f.id))?.colors;
81
- D[H.DensityGradient] = {
82
- ...D[H.Density],
83
- range: r ?? f.colors,
84
- type: W.SequentialColor
85
- }, A && V(n, 0, { density: { field: A } });
86
- } else A && V(n, 0, { color: { field: A } });
87
- let j = o(C?.dataItem), M = o(T?.dataItem), N = o(E?.dataItem), P = Ce(e?.axes?.primaryMeasure?.axisRange, !0), F = B(P);
88
- D[H.XAxisScale] = {
89
- type: W.Linear,
90
- data: { field: j },
91
- invert: I(!1, e?.axes?.primaryMeasure),
92
- nice: !F && ve.scale.nice,
80
+ let r = [...h(O?.type ?? b.Gradient, t), ...O?.customGradient ? [O.customGradient] : []].find((e) => e.id === (O?.palette ?? t.colors.defaultGradient ?? g.id))?.colors;
81
+ D[G.DensityGradient] = {
82
+ ...D[G.Density],
83
+ range: r ?? g.colors,
84
+ type: U.SequentialColor
85
+ }, j && L(n, 0, { density: { field: j } });
86
+ } else j && L(n, 0, { color: { field: j } });
87
+ let ee = r(C?.dataItem), M = r(T?.dataItem), N = r(E?.dataItem), P = H(e?.axes?.primaryMeasure?.axisRange, !0), F = V(P);
88
+ D[G.XAxisScale] = {
89
+ type: U.Linear,
90
+ data: { field: ee },
91
+ invert: A(!1, e?.axes?.primaryMeasure),
92
+ nice: !F && B.scale.nice,
93
93
  expandMax: .06,
94
94
  ...P
95
95
  };
96
- let L = Ce(e?.axes?.secondaryMeasure?.axisRange, !0), te = B(L);
97
- return D[H.YAxisScale] = {
98
- type: W.Linear,
96
+ let I = H(e?.axes?.secondaryMeasure?.axisRange, !0), te = V(I);
97
+ return D[G.YAxisScale] = {
98
+ type: U.Linear,
99
99
  data: { fields: [M] },
100
- invert: I(!0, e?.axes?.secondaryMeasure),
101
- nice: !te && ve.scale.nice,
100
+ invert: A(!0, e?.axes?.secondaryMeasure),
101
+ nice: !te && B.scale.nice,
102
102
  expandMax: .06,
103
- ...L
103
+ ...I
104
104
  }, E && (D[N] = {
105
- type: W.Linear,
105
+ type: U.Linear,
106
106
  data: { field: N }
107
107
  }), {
108
108
  ...n,
109
109
  scales: D
110
110
  };
111
111
  }, K = "spatial-heatmap", Fe = "shape", q = (e) => {
112
- let t = e.scatterSettings?.shape ?? h.Circle;
113
- return `${G.Point}-${t}`;
114
- }, Ie = (e, t, n, r, i, a) => {
115
- let s = e.dimensions.filter((e) => c(e)), u = e.measures.filter((e) => c(e)), f = te((e.supportingMeasures ?? []).filter((e) => c(e))), p = s.filter((e) => e.role === d.SCATTER_IMAGE), m = u.filter((e) => e.role === l.SCATTER_HORIZONTAL), h = u.filter((e) => e.role === l.SCATTER_VERTICAL), g = u.filter((e) => e.role === l.SCATTER_SIZE), _ = p[0], v = m[0], y = h[0], b = g[0], x = o(v?.dataItem), S = o(y?.dataItem);
116
- V(n, 0, {
117
- x: { field: x },
112
+ let t = e.scatterSettings?.shape ?? n.Circle;
113
+ return `${z.Point}-${t}`;
114
+ }, Ie = (e, t, n, i, a, o) => {
115
+ let s = e.dimensions.filter((e) => u(e)), c = e.measures.filter((e) => u(e)), l = Te((e.supportingMeasures ?? []).filter((e) => u(e))), d = s.filter((e) => e.role === f.SCATTER_IMAGE), p = c.filter((e) => e.role === x.SCATTER_HORIZONTAL), m = c.filter((e) => e.role === x.SCATTER_VERTICAL), h = c.filter((e) => e.role === x.SCATTER_SIZE), g = d[0], _ = p[0], v = m[0], y = h[0], b = r(_?.dataItem), S = r(v?.dataItem);
116
+ L(n, 0, {
117
+ x: { field: b },
118
118
  y: { field: S },
119
- [x]: { field: x },
119
+ [b]: { field: b },
120
120
  [S]: { field: S },
121
- ...f
121
+ ...l
122
122
  });
123
123
  let C = e.scatterSettings?.pointSize ?? .1, w = {};
124
- if (b) {
125
- let t = o(b.dataItem);
124
+ if (y) {
125
+ let t = r(y.dataItem);
126
126
  w = { field: t }, C = (t) => {
127
- let n = e.scatterSettings?.pointSize ?? 0, r = e.scatterSettings?.maxPointSize ?? Math.max(n, 1);
128
- return t.resources.scale(o(b.dataItem))(t.datum.size.value) * (r - n) + n;
129
- }, V(n, 0, {
127
+ let n = e.scatterSettings?.pointSize ?? 0, i = e.scatterSettings?.maxPointSize ?? Math.max(n, 1);
128
+ return t.resources.scale(r(y.dataItem))(t.datum.size.value) * (i - n) + n;
129
+ }, L(n, 0, {
130
130
  size: w,
131
131
  [t]: { field: t }
132
132
  });
133
133
  }
134
134
  let T;
135
- return _ ? (V(n, 0, { imageUrl: { field: o(_.dataItem) } }), T = [Le(e, t, C, a, !0, i), ze(e, C, a)]) : T = e.scatterSettings?.spatialHeatmap?.show ? [Re(e, t, n, C, a, i)] : [Le(e, t, C, a, !1, i)], {
135
+ return g ? (L(n, 0, { imageUrl: { field: r(g.dataItem) } }), T = [Le(e, t, C, o, !0, a), ze(e, C, o)]) : T = e.scatterSettings?.spatialHeatmap?.show ? [Re(e, t, n, C, o, a)] : [Le(e, t, C, o, !1, a)], {
136
136
  ...n,
137
137
  components: [...n.components, ...T]
138
138
  };
139
- }, Le = (e, t, n, r, i, a) => {
140
- let o = new ke(e, t, a?.[0]?.itemsNotAffectedByFiltering), s = e.scatterSettings?.shape ?? h.Circle, c = e.scatterSettings?.stroke;
139
+ }, Le = (e, t, r, i, a, o) => {
140
+ let s = new ke(e, t, o?.[0]?.itemsNotAffectedByFiltering), c = e.scatterSettings?.shape ?? n.Circle, l = e.scatterSettings?.stroke;
141
141
  return {
142
- type: G.Point,
142
+ type: z.Point,
143
143
  layout: { displayOrder: R.VisualizationElement },
144
144
  key: q(e),
145
- data: { collection: H.Collection },
145
+ data: { collection: G.Collection },
146
146
  animations: {
147
- enabled: !i,
147
+ enabled: !a,
148
148
  presetId: "scatter-chart"
149
149
  },
150
150
  settings: {
151
151
  x: {
152
- scale: H.XAxisScale,
152
+ scale: G.XAxisScale,
153
153
  ref: "x"
154
154
  },
155
155
  y: {
156
- scale: H.YAxisScale,
156
+ scale: G.YAxisScale,
157
157
  ref: "y"
158
158
  },
159
- opacity: i ? 0 : .8,
160
- stroke: c?.color ?? void 0,
161
- strokeWidth: c?.enabled ? c.width : 0,
162
- shape: s,
163
- size: n,
164
- fill: i ? "transparent" : o.getColorDefinition({
165
- overwriteSources: [o.MAIN_FIELD, "color"],
159
+ opacity: a ? 0 : .8,
160
+ stroke: l?.color ?? void 0,
161
+ strokeWidth: l?.enabled ? l.width : 0,
162
+ shape: c,
163
+ size: r,
164
+ fill: a ? "transparent" : s.getColorDefinition({
165
+ overwriteSources: [s.MAIN_FIELD, "color"],
166
166
  ref: "color"
167
167
  }),
168
168
  tag: Fe
169
169
  },
170
- brush: i ? null : z([""], r, { valuePickerMode: r?.valuePickerMode })
170
+ brush: a ? null : oe([""], i, { valuePickerMode: i?.valuePickerMode })
171
171
  };
172
172
  }, Re = (e, t, n, r, i, a) => {
173
- let o = n.scales[H.Density]?.data, s = a?.[0]?.items?.length, c = n.collections?.[0]?.data?.extract?.[0]?.props?.density?.field && o?.field ? {
174
- scale: H.Density,
173
+ let o = n.scales[G.Density]?.data, s = a?.[0]?.items?.length, c = n.collections?.[0]?.data?.extract?.[0]?.props?.density?.field && o?.field ? {
174
+ scale: G.Density,
175
175
  ref: "density"
176
176
  } : {
177
- scale: H.Density,
177
+ scale: G.Density,
178
178
  fn: ({ scale: e }) => {
179
179
  let t = e?.(1);
180
180
  return typeof t == "number" ? t : 1;
181
181
  }
182
182
  };
183
183
  return {
184
- type: G.Heatmap,
184
+ type: z.Heatmap,
185
185
  layout: { displayOrder: R.VisualizationElement },
186
186
  key: "spatial-heatmap",
187
187
  animations: s !== void 0 && s < 1e3 ? { enabled: !0 } : void 0,
188
- data: { collection: H.Collection },
188
+ data: { collection: G.Collection },
189
189
  settings: {
190
190
  point: {
191
191
  x: {
192
- scale: H.XAxisScale,
192
+ scale: G.XAxisScale,
193
193
  ref: "x"
194
194
  },
195
195
  y: {
196
- scale: H.YAxisScale,
196
+ scale: G.YAxisScale,
197
197
  ref: "y"
198
198
  },
199
199
  size: r,
200
200
  density: c
201
201
  },
202
- gradient: H.DensityGradient,
202
+ gradient: G.DensityGradient,
203
203
  blur: e.scatterSettings?.spatialHeatmap?.blur,
204
204
  minOpacity: 1e-4
205
205
  },
206
206
  brush: i?.disable?.brushing ? void 0 : { consume: [{
207
- context: U.Selection,
207
+ context: W.Selection,
208
208
  data: [""],
209
- mode: de.And,
209
+ mode: De.And,
210
210
  style: { inactive: { opacity: .1 } }
211
211
  }] }
212
212
  };
213
213
  }, ze = (e, t, n) => ({
214
- type: G.DomPoint,
214
+ type: z.DomPoint,
215
215
  layout: { displayOrder: R.VisualizationElement },
216
- key: G.DomPoint,
217
- data: { collection: H.Collection },
216
+ key: z.DomPoint,
217
+ data: { collection: G.Collection },
218
218
  settings: {
219
219
  x: {
220
- scale: H.XAxisScale,
220
+ scale: G.XAxisScale,
221
221
  ref: "x"
222
222
  },
223
223
  y: {
224
- scale: H.YAxisScale,
224
+ scale: G.YAxisScale,
225
225
  ref: "y"
226
226
  },
227
227
  opacity: .8,
@@ -233,29 +233,29 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
233
233
  borderWidth: e.scatterSettings?.borderWidth,
234
234
  borderColor: e.scatterSettings?.borderColor ?? void 0
235
235
  },
236
- brush: z([""], n, { valuePickerMode: n?.valuePickerMode })
237
- }), Be = (e, t, n) => {
238
- let { measures: r, grid: i = [] } = e, a = i.filter((e) => e.enabled).map((e) => {
239
- let n = m(r[0].dataItem, e.dataItem);
240
- return Oe(e, n ? "x" : "y", n ? H.XAxisScale : H.YAxisScale, t);
236
+ brush: oe([""], n, { valuePickerMode: n?.valuePickerMode })
237
+ }), Be = (e, n, r) => {
238
+ let { measures: i, grid: a = [] } = e, o = a.filter((e) => e.enabled).map((e) => {
239
+ let r = t(i[0].dataItem, e.dataItem);
240
+ return P(e, r ? "x" : "y", r ? G.XAxisScale : G.YAxisScale, n);
241
241
  }).filter((e) => !!e);
242
242
  return {
243
- ...n,
244
- components: [...n.components, ...a]
243
+ ...r,
244
+ components: [...r.components, ...o]
245
245
  };
246
246
  }, Ve = (e, t, n) => {
247
247
  let r = [], i = [];
248
248
  if (!e.refLines?.x && !e.refLines?.y) return n;
249
249
  if (e.refLines.x) {
250
- let n = e.refLines.x.map((e) => pe(e, H.XAxisScale, t));
250
+ let n = e.refLines.x.map((e) => Se(e, G.XAxisScale, t));
251
251
  r.push(...n);
252
252
  }
253
253
  if (e.refLines.y) {
254
- let n = e.refLines.y.map((e) => pe(e, H.YAxisScale, t));
254
+ let n = e.refLines.y.map((e) => Se(e, G.YAxisScale, t));
255
255
  i.push(...n);
256
256
  }
257
257
  let a = {
258
- type: G.RefLine,
258
+ type: z.RefLine,
259
259
  layout: { displayOrder: R.RefLine },
260
260
  lines: {
261
261
  x: r,
@@ -266,32 +266,32 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
266
266
  ...n,
267
267
  components: [...n.components, a]
268
268
  };
269
- }, He = "scatter-reference-areas", J = "scatter-reference-area", Ue = i("scatter-reference-areas-stage", "#6B7280"), Y = (e) => {
269
+ }, He = "scatter-reference-areas", J = "scatter-reference-area", Ue = o("scatter-reference-areas-stage", "#6B7280"), Y = (e) => {
270
270
  if (e == null) return null;
271
- let t = u(e);
271
+ let t = d(e);
272
272
  if (t === null) return null;
273
273
  let n = typeof t == "number" ? t : Number(t);
274
274
  return Number.isNaN(n) ? null : n;
275
275
  }, We = (e) => {
276
276
  if (e == null) return;
277
- let t = u(e);
277
+ let t = d(e);
278
278
  if (t === null || typeof t != "string") return;
279
279
  let n = t.trim();
280
280
  return n.length > 0 ? n : void 0;
281
281
  }, Ge = (e, t) => {
282
282
  if (e.enabled === !1) return;
283
- let n = Y(e.xMin), r = Y(e.xMax), i = Y(e.yMin), a = Y(e.yMax);
284
- if (n === null || r === null || i === null || a === null) {
283
+ let n = Y(e.xMin), r = Y(e.xMax), a = Y(e.yMin), o = Y(e.yMax);
284
+ if (n === null || r === null || a === null || o === null) {
285
285
  Ue.warn("Skipping reference area due to incomplete bounds", {
286
286
  id: e.id,
287
287
  index: t
288
288
  });
289
289
  return;
290
290
  }
291
- let o = We(e.label), c = e.fillColor ?? s.referenceArea.fillColor, l = e.border?.enabled ?? s.referenceArea.border?.enabled ?? !1, u = l ? e.border?.color ?? s.referenceArea.border?.color ?? void 0 : void 0, d = l ? e.border?.width ?? s.referenceArea.border?.width ?? 1 : void 0, [f, p] = n <= r ? [n, r] : [r, n], [m, h] = i <= a ? [i, a] : [a, i], g = e.labelMode ?? s.referenceArea.labelMode, _ = e.labelPlacement ?? s.referenceArea.labelPlacement, v = e.labelColor ?? s.referenceArea.labelColor, y = e.labelFontSize ?? s.referenceArea.labelFontSize;
291
+ let s = We(e.label), c = e.fillColor ?? i.referenceArea.fillColor, l = e.border?.enabled ?? i.referenceArea.border?.enabled ?? !1, u = l ? e.border?.color ?? i.referenceArea.border?.color ?? void 0 : void 0, d = l ? e.border?.width ?? i.referenceArea.border?.width ?? 1 : void 0, [f, p] = n <= r ? [n, r] : [r, n], [m, h] = a <= o ? [a, o] : [o, a], g = e.labelMode ?? i.referenceArea.labelMode, _ = e.labelPlacement ?? i.referenceArea.labelPlacement, v = e.labelColor ?? i.referenceArea.labelColor, y = e.labelFontSize ?? i.referenceArea.labelFontSize;
292
292
  return {
293
293
  id: e.id,
294
- label: o,
294
+ label: s,
295
295
  labelMode: g,
296
296
  labelPlacement: _,
297
297
  labelColor: v,
@@ -324,59 +324,59 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
324
324
  return e.label && (t.label = { value: e.label }), e.borderColor && (t.borderColor = { value: e.borderColor }), typeof e.borderWidth == "number" && (t.borderWidth = { value: e.borderWidth }), t;
325
325
  }, qe = (e) => {
326
326
  switch (e) {
327
- case a.TopLeft: return {
327
+ case l.TopLeft: return {
328
328
  align: 0,
329
329
  justify: 0
330
330
  };
331
- case a.Top: return {
331
+ case l.Top: return {
332
332
  align: .5,
333
333
  justify: 0
334
334
  };
335
- case a.TopRight: return {
335
+ case l.TopRight: return {
336
336
  align: 1,
337
337
  justify: 0
338
338
  };
339
- case a.Left: return {
339
+ case l.Left: return {
340
340
  align: 0,
341
341
  justify: .5
342
342
  };
343
- case a.Right: return {
343
+ case l.Right: return {
344
344
  align: 1,
345
345
  justify: .5
346
346
  };
347
- case a.BottomLeft: return {
347
+ case l.BottomLeft: return {
348
348
  align: 0,
349
349
  justify: 1
350
350
  };
351
- case a.Bottom: return {
351
+ case l.Bottom: return {
352
352
  align: .5,
353
353
  justify: 1
354
354
  };
355
- case a.BottomRight: return {
355
+ case l.BottomRight: return {
356
356
  align: 1,
357
357
  justify: 1
358
358
  };
359
- case a.Center:
359
+ case l.Center:
360
360
  default: return {
361
361
  align: .5,
362
362
  justify: .5
363
363
  };
364
364
  }
365
365
  }, Je = (e, t, n) => {
366
- if (e.labelMode !== b.Fixed || !e.label) return null;
367
- let { align: r, justify: i } = qe(e.labelPlacement), a = s.referenceArea.labelColor, o = s.referenceArea.labelFontSize, c = e.labelColor ?? a, l = e.labelFontSize ?? o;
366
+ if (e.labelMode !== p.Fixed || !e.label) return null;
367
+ let { align: r, justify: a } = qe(e.labelPlacement), o = i.referenceArea.labelColor, s = i.referenceArea.labelFontSize, c = e.labelColor ?? o, l = e.labelFontSize ?? s;
368
368
  return {
369
- type: G.Labels,
369
+ type: z.Labels,
370
370
  key: `${J}-${e.id}-label`,
371
371
  layout: { displayOrder: t },
372
372
  settings: { sources: [{
373
373
  component: `${J}-${e.id}`,
374
- selector: De.Rect,
374
+ selector: pe.Rect,
375
375
  strategy: {
376
376
  type: "rows",
377
377
  settings: {
378
378
  align: r,
379
- justify: i,
379
+ justify: a,
380
380
  fontSize: l,
381
381
  fontFamily: n.fonts?.general?.fontFamily,
382
382
  padding: 2,
@@ -391,24 +391,24 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
391
391
  brush: null
392
392
  };
393
393
  }, Ye = (e, t, n) => {
394
- let i = {
395
- orientation: r.Vertical,
394
+ let r = {
395
+ orientation: s.Vertical,
396
396
  major: {
397
- scale: H.XAxisScale,
397
+ scale: G.XAxisScale,
398
398
  ref: "binEnd",
399
399
  binStart: { ref: "binStart" },
400
400
  binEnd: { ref: "binEnd" }
401
401
  },
402
402
  minor: {
403
- scale: H.YAxisScale,
403
+ scale: G.YAxisScale,
404
404
  ref: "end"
405
405
  },
406
406
  minor0: {
407
- scale: H.YAxisScale,
407
+ scale: G.YAxisScale,
408
408
  ref: "start"
409
409
  },
410
410
  box: {
411
- fill: e.fillColor ?? s.referenceArea.fillColor,
411
+ fill: e.fillColor ?? i.referenceArea.fillColor,
412
412
  opacity: 1,
413
413
  stroke: e.borderColor ?? "transparent",
414
414
  strokeWidth: e.borderWidth ?? 0,
@@ -416,14 +416,14 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
416
416
  }
417
417
  };
418
418
  return {
419
- type: G.Box,
419
+ type: z.Box,
420
420
  key: `${J}-${e.id}`,
421
421
  layout: { displayOrder: t },
422
422
  data: {
423
423
  collection: He,
424
424
  filter: (e, t) => t === n
425
425
  },
426
- settings: i,
426
+ settings: r,
427
427
  animations: { enabled: !1 },
428
428
  brush: null
429
429
  };
@@ -453,7 +453,7 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
453
453
  components: s
454
454
  };
455
455
  }, Ze = (e, t, n) => {
456
- let r = t.data.value, i = e.filter((e) => c(e)).filter((e) => e.role === d.SCATTER_DIMENSION)[0];
456
+ let r = t.data.value, i = e.filter((e) => u(e)).filter((e) => e.role === f.SCATTER_DIMENSION)[0];
457
457
  return i?.formatter && (r = n.formatter(i.formatter)(r)), `${r}`;
458
458
  }, X = (e) => typeof e == "string" && e.startsWith("scatter-reference-area") && !e.endsWith("-label"), Z = (e) => {
459
459
  let t = e.data?.labelMode;
@@ -483,7 +483,7 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
483
483
  le,
484
484
  K
485
485
  ];
486
- return t.filter((e) => e.key ? X(e.key) ? Z(e) !== b.Fixed && !!Q(e) : n.includes(e.key) : !1);
486
+ return t.filter((e) => e.key ? X(e.key) ? Z(e) !== p.Fixed && !!Q(e) : n.includes(e.key) : !1);
487
487
  },
488
488
  placement: {
489
489
  type: "pointer",
@@ -509,11 +509,11 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
509
509
  r.extract = (t) => {
510
510
  if (X(t.node.key)) {
511
511
  let e = Q(t.node), n = Z(t.node);
512
- if (e && n !== b.Fixed) return $(e);
512
+ if (e && n !== p.Fixed) return $(e);
513
513
  }
514
514
  return e(t);
515
515
  };
516
- let t = _e();
516
+ let t = ee();
517
517
  r.content = ({ h: e, data: n }) => {
518
518
  if (n.length > 8) {
519
519
  let e = n.length;
@@ -528,16 +528,16 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
528
528
  });
529
529
  };
530
530
  } else {
531
- let n = be(e, t, Te, Ze);
531
+ let n = se(e, t, ve, Ze);
532
532
  r.extract = (e) => {
533
533
  if (X(e.node.key)) {
534
534
  let t = Q(e.node), n = Z(e.node);
535
- if (t && n !== b.Fixed) return $(t);
535
+ if (t && n !== p.Fixed) return $(t);
536
536
  }
537
537
  return n(e);
538
538
  };
539
539
  }
540
- return Ee(e, t, n, r, "tooltip", void 0, {
540
+ return te(e, t, n, r, "tooltip", void 0, {
541
541
  componentKeys: [q(e)],
542
542
  yieldToComponentKeys: [le, K]
543
543
  });
@@ -545,17 +545,17 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
545
545
  let r = e?.measures[0], i = {
546
546
  showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
547
547
  formatter: r?.formatter,
548
- scale: fe(e),
549
- key: ie.Measure,
550
- settings: { direction: j(e) }
551
- }, a = e?.measures[1], [o, s] = se([i, {
548
+ scale: we(e),
549
+ key: F.Measure,
550
+ settings: { direction: ne(e) }
551
+ }, a = e?.measures[1], [o, s] = M([i, {
552
552
  showAxisTooltip: e?.axes?.secondaryMeasure?.showAxisTooltip,
553
553
  formatter: a?.formatter,
554
- scale: xe(e, a),
555
- key: ie.MeasureSec,
554
+ scale: fe(e, a),
555
+ key: F.MeasureSec,
556
556
  settings: {
557
- direction: ne(e),
558
- labelDock: F(we(e), a?.secondaryAxis)
557
+ direction: Oe(e),
558
+ labelDock: ce(_e(e), a?.secondaryAxis)
559
559
  }
560
560
  }]);
561
561
  return {
@@ -563,26 +563,26 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
563
563
  components: [...n.components ?? [], ...o],
564
564
  interactions: [...n.interactions ?? [], ...s]
565
565
  };
566
- }, et = (e, t, n) => oe(e, t, n), tt = (e) => {
566
+ }, et = (e, t, n) => ie(e, t, n), tt = (e) => {
567
567
  try {
568
- return !!e && me(e);
568
+ return !!e && be(e);
569
569
  } catch {
570
570
  return !1;
571
571
  }
572
- }, nt = (e, n, r, i, a, o) => {
573
- if (o?.disable?.brushing || o?.disable?.brushingLasso) return r;
574
- let s = tt(n?.colors?.sheetBackgroundColor) ? t.white : t.mainDarkNavy, c = e.scatterSettings?.lasso, l = c?.strokeColor ?? s, u = {
575
- type: G.Lasso,
576
- key: G.Lasso,
572
+ }, nt = (e, t, n, r, i, a) => {
573
+ if (a?.disable?.brushing || a?.disable?.brushingLasso) return n;
574
+ let o = tt(t?.colors?.sheetBackgroundColor) ? c.white : c.mainDarkNavy, s = e.scatterSettings?.lasso, l = s?.strokeColor ?? o, u = {
575
+ type: z.Lasso,
576
+ key: z.Lasso,
577
577
  layout: { displayOrder: R.VisualizationElement + 1 },
578
578
  settings: {
579
579
  brush: { components: [{
580
580
  key: q(e),
581
- contexts: [U.Selection],
581
+ contexts: [W.Selection],
582
582
  action: "toggle"
583
583
  }, {
584
584
  key: K,
585
- contexts: [U.Selection],
585
+ contexts: [W.Selection],
586
586
  action: "toggle"
587
587
  }] },
588
588
  lasso: {
@@ -593,28 +593,28 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
593
593
  snapIndicator: { stroke: l },
594
594
  startPoint: {
595
595
  r: 3,
596
- fill: c?.startPointColor ?? t.secondaryPurple,
596
+ fill: s?.startPointColor ?? c.secondaryPurple,
597
597
  stroke: l
598
598
  }
599
599
  }
600
600
  }, d = {
601
601
  type: "native",
602
- key: `${G.Lasso}-interaction`,
602
+ key: `${z.Lasso}-interaction`,
603
603
  events: {
604
604
  mousedown(e) {
605
- this.chart.component(G.Lasso).emit("lassoStart", { center: {
605
+ this.chart.component(z.Lasso).emit("lassoStart", { center: {
606
606
  x: e.clientX,
607
607
  y: e.clientY
608
608
  } });
609
609
  },
610
610
  mousemove(e) {
611
- this.chart.component(G.Lasso).emit("lassoMove", { center: {
611
+ this.chart.component(z.Lasso).emit("lassoMove", { center: {
612
612
  x: e.clientX,
613
613
  y: e.clientY
614
614
  } });
615
615
  },
616
616
  mouseup(e) {
617
- this.chart.component(G.Lasso).emit("lassoEnd", { center: {
617
+ this.chart.component(z.Lasso).emit("lassoEnd", { center: {
618
618
  x: e.clientX,
619
619
  y: e.clientY
620
620
  } });
@@ -622,35 +622,35 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
622
622
  }
623
623
  };
624
624
  return {
625
- ...r,
626
- components: [...r.components, u],
627
- interactions: [...r.interactions ?? [], d]
625
+ ...n,
626
+ components: [...n.components, u],
627
+ interactions: [...n.interactions ?? [], d]
628
628
  };
629
629
  }, rt = (e, t, n, r, i, a) => {
630
630
  let o = e.scatterSettings?.spatialHeatmap?.show && e.dimensions.length < 2;
631
631
  if (!e.pointLabeling?.enabled || o) return n;
632
- let s = e.pointLabeling, c = 4 + (e.scatterSettings?.stroke?.enabled ? e.scatterSettings.stroke.width / 2 : 0), l = ue({
632
+ let s = e.pointLabeling, c = 4 + (e.scatterSettings?.stroke?.enabled ? e.scatterSettings.stroke.width / 2 : 0), l = N({
633
633
  targetComponentKeys: [q(e)],
634
634
  targetSelector: `.${Fe}`,
635
635
  offset: c,
636
- fontSize: ge(e.pointLabeling?.fontSize)
636
+ fontSize: xe(e.pointLabeling?.fontSize)
637
637
  }, s, a, t);
638
638
  return l ? {
639
639
  ...n,
640
640
  components: [...n.components, l]
641
641
  } : n;
642
642
  }, it = (...e) => {
643
- let t = ce(...e), r = t.components.find((e) => e.type === Se.SequentialLegend), i = t.scales[H.Density];
644
- if (r && i) {
645
- r.settings.fill = H.DensityGradient;
646
- let e = r.layout?.dock;
647
- r.settings.major = e === n.Left || e === n.Right ? H.DensityInverted : H.Density;
643
+ let t = Ee(...e), n = t.components.find((e) => e.type === me.SequentialLegend), r = t.scales[G.Density];
644
+ if (n && r) {
645
+ n.settings.fill = G.DensityGradient;
646
+ let e = n.layout?.dock;
647
+ n.settings.major = e === a.Left || e === a.Right ? G.DensityInverted : G.Density;
648
648
  }
649
649
  return t;
650
- }, at = class extends P {
650
+ }, at = class extends de {
651
651
  constructor() {
652
652
  super([
653
- re,
653
+ ae,
654
654
  Pe,
655
655
  Be,
656
656
  Xe,
@@ -666,22 +666,22 @@ var je = /* @__PURE__ */ e(T()), Me = (e, t, r, i, a, o, s, u) => {
666
666
  ]);
667
667
  }
668
668
  preCompile(e) {
669
- let t = e.dimensions.filter((e) => c(e)), n = e.measures.filter((e) => c(e)), r = t.filter((e) => e.role === d.SCATTER_DIMENSION), i = n.filter((e) => e.role === l.SCATTER_HORIZONTAL), a = n.filter((e) => e.role === l.SCATTER_VERTICAL), o = r[0], s = i[0], u = a[0];
670
- if (!o || !s || !u) throw Error("Scatter chart requires at least 1 scatter dimension, 1 horizontal measure, and 1 vertical measure.");
669
+ let t = e.dimensions.filter((e) => u(e)), n = e.measures.filter((e) => u(e)), r = t.filter((e) => e.role === f.SCATTER_DIMENSION), i = n.filter((e) => e.role === x.SCATTER_HORIZONTAL), a = n.filter((e) => e.role === x.SCATTER_VERTICAL), o = r[0], s = i[0], c = a[0];
670
+ if (!o || !s || !c) throw Error("Scatter chart requires at least 1 scatter dimension, 1 horizontal measure, and 1 vertical measure.");
671
671
  }
672
672
  }, ot = k(), st = D(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
673
673
  let a = C(), [o] = (0, je.useState)(() => new at()), s = E(), { activeKey: c } = O(), l = S(), u = ye();
674
- if (!e || !n || !r || !v(e)) return null;
674
+ if (!e || !n || !r || !y(e)) return null;
675
675
  let d = {
676
676
  ...i,
677
677
  valuePickerMode: !!c
678
- }, f = t || _, m = o.compile(e, f, n, r, {
678
+ }, f = t || v, p = o.compile(e, f, n, r, {
679
679
  ...d,
680
680
  onRenderDone: s
681
- }, p.Scatter, a, l, u);
682
- return m ? /* @__PURE__ */ (0, ot.jsx)(he, {
681
+ }, m.Scatter, a, l, u);
682
+ return p ? /* @__PURE__ */ (0, ot.jsx)(he, {
683
683
  config: d,
684
- definition: m,
684
+ definition: p,
685
685
  size: r,
686
686
  vSpec: e
687
687
  }) : null;