@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,22 +1,22 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Da as n, Fo as r, N as i, Oi as a, Pc as o, Qo as s, Qr as c, hc as l, ic as u, in as d, is as f, oa as p, vc as m } from "./visualization-filters-CzvFHE6M.js";
3
- import { F as h, N as g, jt as _, s as ee, zr as te } from "./utils-3Igg6xmO.js";
4
- import { h_ as v } from "./handlers-ZviIUC-j.js";
5
- import "./logger-CKRjhSHQ.js";
6
- import { Et as y, I as ne, St as re, Vt as b, Xt as x, bt as S, ct as C, fn as w, i as T, ln as ie, nt as E, tt as D, un as O, vn as k } from "./escobar-CjirINHP.js";
7
- import { t as ae } from "./coloring-9jU3s_-p.js";
2
+ import { $o as n, Fc as r, Io as i, N as a, Oa as o, Qr as s, ac as c, as as l, gc as u, in as d, ki as f, sa as p, yc as m } from "./visualization-filters-D7i6oh1Z.js";
3
+ import { F as h, N as g, jt as _, s as v, zr as ee } from "./utils-DganVptf.js";
4
+ import { g_ as te } from "./handlers-C6CZ0XJA.js";
5
+ import "./logger-DdZpR7xZ.js";
6
+ import { L as y, Ot as b, Qt as x, R as S, St as ne, Ut as C, _ as w, bn as T, dn as E, fn as D, i as re, mn as O, ut as k, wt as ie } from "./escobar-CvEV2ES1.js";
7
+ import { t as ae } from "./coloring-BtnPiQ_o.js";
8
8
  import { t as oe } from "./set-coloring-datafield-B3uIS1Pe.js";
9
- import { t as se } from "./_createAggregator-BF4qG9XK.js";
10
- import { t as A } from "./range-D1BTmFMp.js";
9
+ import { t as se } from "./_createAggregator-BMu9uRax.js";
10
+ import { t as A } from "./range-BdhzvYQ_.js";
11
11
  var j = (e, t, n) => {
12
- let r = e.dimensions.filter((e) => c(e)), i = e.measures.filter((e) => c(e)), a = o(r[0]?.dataItem), s = o(r[1]?.dataItem), l = {
12
+ let i = e.dimensions.filter((e) => s(e)), a = e.measures.filter((e) => s(e)), o = r(i[0]?.dataItem), c = r(i[1]?.dataItem), l = {
13
13
  key: "defaultCollection",
14
14
  data: { extract: [{
15
- field: a,
15
+ field: o,
16
16
  props: {
17
- score: { field: o(i[0]?.dataItem) },
18
- attribute: { field: s || a },
19
- ...s ? { stackedDimension: { field: a } } : {}
17
+ score: { field: r(a[0]?.dataItem) },
18
+ attribute: { field: c || o },
19
+ ...c ? { stackedDimension: { field: o } } : {}
20
20
  }
21
21
  }] }
22
22
  };
@@ -25,10 +25,10 @@ var j = (e, t, n) => {
25
25
  collections: [l]
26
26
  };
27
27
  }, M = (e, t, n) => {
28
- let r = {
28
+ let i = {
29
29
  key: "defaultCollection",
30
- data: { extract: e.measures.filter((e) => c(e)).map((e) => {
31
- let t = o(e.dataItem);
30
+ data: { extract: e.measures.filter((e) => s(e)).map((e) => {
31
+ let t = r(e.dataItem);
32
32
  return {
33
33
  field: t,
34
34
  props: {
@@ -43,42 +43,42 @@ var j = (e, t, n) => {
43
43
  };
44
44
  return {
45
45
  ...n,
46
- collections: [r]
46
+ collections: [i]
47
47
  };
48
- }, N = (e, ...t) => e.dimensions.filter((e) => c(e)).length ? j(e, ...t) : M(e, ...t), P = (e, t, n, r, i, s) => {
49
- let l = o(e.dimensions.filter((e) => c(e))[1]?.dataItem), u = new ae(e, t, i?.[0]?.itemsNotAffectedByFiltering), d = e.coloring?.color == null && e.coloring?.type === m.Single, f = {
50
- type: k.Radar,
51
- key: `${k.Radar}`,
52
- layout: { displayOrder: b.VisualizationElement },
48
+ }, N = (e, ...t) => e.dimensions.filter((e) => s(e)).length ? j(e, ...t) : M(e, ...t), P = (e, t, n, i, a, o) => {
49
+ let c = r(e.dimensions.filter((e) => s(e))[1]?.dataItem), l = new ae(e, t, a?.[0]?.itemsNotAffectedByFiltering), u = e.coloring?.color == null && e.coloring?.type === m.Single, d = {
50
+ type: T.Radar,
51
+ key: `${T.Radar}`,
52
+ layout: { displayOrder: C.VisualizationElement },
53
53
  data: { collection: "defaultCollection" },
54
54
  settings: {
55
55
  dimensionAxis: e.dimensionAxis,
56
56
  measureAxis: e.measureAxis,
57
57
  gridType: e.gridType,
58
58
  lineType: e.lineType,
59
- isDefaultColor: d,
60
- isSingleDimension: !l,
59
+ isDefaultColor: u,
60
+ isSingleDimension: !c,
61
61
  scale: "attributes",
62
- categoricalOpacity: e.coloring?.categoricalColorTransparency ?? a.categoricalColorTransparency,
62
+ categoricalOpacity: e.coloring?.categoricalColorTransparency ?? f.categoricalColorTransparency,
63
63
  pointStyles: e.pointStyles,
64
- fill: u.getColorDefinition({
65
- overwriteSources: [u.MAIN_FIELD],
64
+ fill: l.getColorDefinition({
65
+ overwriteSources: [l.MAIN_FIELD],
66
66
  ref: "color"
67
67
  })
68
68
  },
69
- brush: x(F(e), s, { valuePickerMode: s?.valuePickerMode })
69
+ brush: x(F(e), o, { valuePickerMode: o?.valuePickerMode })
70
70
  };
71
71
  return {
72
72
  ...n,
73
- components: [...n.components, f]
73
+ components: [...n.components, d]
74
74
  };
75
75
  };
76
76
  function F(e) {
77
- let t = [], n = e.dimensions.filter((e) => c(e));
77
+ let t = [], n = e.dimensions.filter((e) => s(e));
78
78
  return n[0] && t.push(""), n[1] && t.push("attribute"), t;
79
79
  }
80
80
  var I = (e, t, n) => {
81
- let r = e.dimensions.filter((e) => c(e)), i = e.measures.filter((e) => c(e)), a = o(r[0]?.dataItem), s = o(r[1]?.dataItem), l = o(i[0]?.dataItem);
81
+ let i = e.dimensions.filter((e) => s(e)), a = e.measures.filter((e) => s(e)), o = r(i[0]?.dataItem), c = r(i[1]?.dataItem), l = r(a[0]?.dataItem);
82
82
  return {
83
83
  ...n,
84
84
  scales: {
@@ -89,38 +89,38 @@ var I = (e, t, n) => {
89
89
  include: [0],
90
90
  nice: !0
91
91
  },
92
- attributes: { data: { extract: { field: s || a } } }
92
+ attributes: { data: { extract: { field: c || o } } }
93
93
  }
94
94
  };
95
95
  }, L = (e, t, n) => {
96
- let r = e.measures.filter((e) => c(e));
96
+ let i = e.measures.filter((e) => s(e));
97
97
  return {
98
98
  ...n,
99
99
  scales: {
100
100
  ...n.scales,
101
101
  ...B(e, t),
102
102
  values: {
103
- data: { fields: r.map((e) => o(e.dataItem)) },
103
+ data: { fields: i.map((e) => r(e.dataItem)) },
104
104
  include: [0],
105
105
  nice: !0
106
106
  },
107
107
  attributes: {
108
- type: w.Band,
109
- data: r.map((e) => d(e) || e.label || e.dataItem.name)
108
+ type: O.Band,
109
+ data: i.map((e) => d(e) || e.label || e.dataItem.name)
110
110
  }
111
111
  }
112
112
  };
113
- }, R = (e, ...t) => e.dimensions.filter((e) => c(e)).length ? I(e, ...t) : L(e, ...t);
113
+ }, R = (e, ...t) => e.dimensions.filter((e) => s(e)).length ? I(e, ...t) : L(e, ...t);
114
114
  function z(e, t, n) {
115
- let r = o(e.dimensions.filter((e) => c(e))[0]?.dataItem);
116
- switch (S(n, 0, { color: { field: r } }), e.coloring?.type) {
115
+ let i = r(e.dimensions.filter((e) => s(e))[0]?.dataItem);
116
+ switch (ne(n, 0, { color: { field: i } }), e.coloring?.type) {
117
117
  case m.Single: return { [m.Single]: {
118
- data: { extract: { field: r } },
119
- type: w.CategoricalColor,
118
+ data: { extract: { field: i } },
119
+ type: O.CategoricalColor,
120
120
  range: [e?.coloring?.color ?? t.colors.brandColors[0]]
121
121
  } };
122
- case m.Categorical: return { [m.Categorical]: y(oe(e, r), t, r, {
123
- customPalette: e.coloring.customPalette ?? a.customPalette,
122
+ case m.Categorical: return { [m.Categorical]: b(oe(e, i), t, i, {
123
+ customPalette: e.coloring.customPalette ?? f.customPalette,
124
124
  palette: e.coloring.palette,
125
125
  sortOrder: e.coloring.sortOrder
126
126
  }, n.collections) };
@@ -128,16 +128,16 @@ function z(e, t, n) {
128
128
  return {};
129
129
  }
130
130
  function B(e, t) {
131
- let n = e.measures.filter((e) => c(e));
131
+ let n = e.measures.filter((e) => s(e));
132
132
  return { [m.Single]: {
133
133
  data: { items: n.map((e) => {
134
134
  let t = d(e) || e.label || e.dataItem.name;
135
135
  return {
136
- value: o(e.dataItem),
136
+ value: r(e.dataItem),
137
137
  label: t
138
138
  };
139
139
  }) },
140
- type: w.CategoricalColor,
140
+ type: O.CategoricalColor,
141
141
  range: Array(n.length).fill(e?.coloring?.color ?? t.colors.brandColors[0]),
142
142
  value: (e) => `${e.datum.value.value}`,
143
143
  label: (e) => `${e.datum.value.label}`
@@ -167,8 +167,8 @@ var V = .9, H = "attributesLines", U = "dataPoint", W = "white", G = "rgba(128,
167
167
  evenCustomBackgroundColor: null,
168
168
  oddCustomBackgroundColor: null
169
169
  },
170
- gridType: f.Circles,
171
- lineType: s.Straight,
170
+ gridType: l.Circles,
171
+ lineType: n.Straight,
172
172
  isSingleDimension: !1,
173
173
  scale: "attributes",
174
174
  pointStyles: {
@@ -180,23 +180,23 @@ var V = .9, H = "attributesLines", U = "dataPoint", W = "white", G = "rgba(128,
180
180
  } }, ce = (e, t, n, r, i, a) => {
181
181
  if (!e.dimensionAxis.showLabel) return n;
182
182
  let o = {
183
- type: k.Labels,
183
+ type: T.Labels,
184
184
  key: "radar-labels",
185
185
  animations: { enabled: !1 },
186
- layout: { displayOrder: b.Labels },
186
+ layout: { displayOrder: C.Labels },
187
187
  settings: { sources: [{
188
- component: `${k.Radar}`,
188
+ component: `${T.Radar}`,
189
189
  selector: `.${H}`,
190
190
  strategy: {
191
191
  type: "slice",
192
192
  settings: {
193
- fontSize: ie.dataPoint.valueFontSize,
193
+ fontSize: E.dataPoint.valueFontSize,
194
194
  fontFamily: t.fonts.general.fontFamily,
195
195
  labels: [{
196
196
  linkData: ({ data: e }) => e,
197
197
  label: ({ data: e }) => e.label,
198
198
  placements: [{
199
- position: v.Outside,
199
+ position: te.Outside,
200
200
  fill: e.dimensionAxis.labelColor ?? void 0
201
201
  }]
202
202
  }]
@@ -210,9 +210,9 @@ var V = .9, H = "attributesLines", U = "dataPoint", W = "white", G = "rgba(128,
210
210
  components: [...n.components, o]
211
211
  };
212
212
  }, le = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
213
- var n = i(), r = se(), a = Object.prototype.hasOwnProperty;
213
+ var n = a(), r = se(), i = Object.prototype.hasOwnProperty;
214
214
  t.exports = r(function(e, t, r) {
215
- a.call(e, r) ? e[r].push(t) : n(e, r, [t]);
215
+ i.call(e, r) ? e[r].push(t) : n(e, r, [t]);
216
216
  });
217
217
  })))());
218
218
  function q(e) {
@@ -247,33 +247,33 @@ function fe(e) {
247
247
  }), t;
248
248
  }
249
249
  function J(e, t) {
250
- let n = [], { cp1: r, cp2: i } = pe(e), a = "M ";
251
- e.forEach(({ x: o, y: c, ...l }, u) => {
252
- if (a += `${o} ${c} `, t.lineType === s.Curve) {
250
+ let r = [], { cp1: i, cp2: a } = pe(e), o = "M ";
251
+ e.forEach(({ x: s, y: c, ...l }, u) => {
252
+ if (o += `${s} ${c} `, t.lineType === n.Curve) {
253
253
  let t = (u + 1) % e.length;
254
- a += `C ${i[u].x} ${i[u].y}, ${r[t].x} ${r[t].y}, `;
254
+ o += `C ${a[u].x} ${a[u].y}, ${i[t].x} ${i[t].y}, `;
255
255
  }
256
256
  if (!t.isGrid && "tooltip" in l) {
257
- let { fill: e, pointStyles: r } = t;
258
- n.push({
259
- type: O.Circle,
257
+ let { fill: e, pointStyles: n } = t;
258
+ r.push({
259
+ type: D.Circle,
260
260
  tag: U,
261
- cx: o,
261
+ cx: s,
262
262
  cy: c,
263
- r: r.size / 2,
264
- stroke: r.color ?? e,
263
+ r: n.size / 2,
264
+ stroke: n.color ?? e,
265
265
  strokeWidth: 1,
266
- fill: r.color ?? e,
266
+ fill: n.color ?? e,
267
267
  desc: { tooltip: l.tooltip },
268
268
  data: l?.data
269
269
  });
270
270
  }
271
- }), t.lineType === s.Curve && (a += `${e[0].x} ${e[0].y}`);
272
- let o, c;
273
- t.isGrid ? (o = t.lineStroke, c = t.lineStrokeWidth) : (o = me(t.fill), c = 1), n.push({
274
- type: O.Path,
275
- d: `${a}Z`,
276
- stroke: o,
271
+ }), t.lineType === n.Curve && (o += `${e[0].x} ${e[0].y}`);
272
+ let s, c;
273
+ t.isGrid ? (s = t.lineStroke, c = t.lineStrokeWidth) : (s = me(t.fill), c = 1), r.push({
274
+ type: D.Path,
275
+ d: `${o}Z`,
276
+ stroke: s,
277
277
  strokeWidth: c,
278
278
  fill: "none",
279
279
  tag: t.isGrid ? "gridline" : "dataline"
@@ -285,13 +285,13 @@ function J(e, t) {
285
285
  let { isDefaultColor: e, opacity: n } = t;
286
286
  u = e ? .4 : n ?? 1;
287
287
  }
288
- return n.push({
289
- type: O.Path,
290
- d: `${a}Z`,
288
+ return r.push({
289
+ type: D.Path,
290
+ d: `${o}Z`,
291
291
  fill: l,
292
292
  opacity: u,
293
293
  tag: t.isGrid ? "gridarea" : "dataarea"
294
- }), n;
294
+ }), r;
295
295
  }
296
296
  function pe(e) {
297
297
  let t = e.length, n = [], r = [];
@@ -316,7 +316,7 @@ function me(e) {
316
316
  var Y = /* @__PURE__ */ e(A());
317
317
  function he(e, t, n) {
318
318
  let r = [];
319
- return t.gridType === f.Lines ? r.push(..._e(e, t.measureAxis)) : r.push(...ge({
319
+ return t.gridType === l.Lines ? r.push(..._e(e, t.measureAxis)) : r.push(...ge({
320
320
  center: e.center,
321
321
  radius: e.radius,
322
322
  domain: e.domain
@@ -325,7 +325,7 @@ function he(e, t, n) {
325
325
  function ge({ center: e, radius: t, domain: n }, r) {
326
326
  let i = Z(r);
327
327
  return X(r.rangeLayers, n).reverse().filter((e) => e > 0).map((a, o) => ({
328
- type: O.Circle,
328
+ type: D.Circle,
329
329
  cx: e.x,
330
330
  cy: e.y,
331
331
  r: t * a / n,
@@ -360,7 +360,7 @@ function ve(e, t, n) {
360
360
  return c.forEach(({ x: e, y: r }, s) => {
361
361
  let c = n[o[s]].source;
362
362
  l.push({
363
- type: O.Line,
363
+ type: D.Line,
364
364
  x1: i.x,
365
365
  y1: i.y,
366
366
  x2: e,
@@ -368,7 +368,7 @@ function ve(e, t, n) {
368
368
  stroke: t.lineColor ?? "black",
369
369
  strokeWidth: +!!t.showLine
370
370
  }), l.push({
371
- type: O.Rect,
371
+ type: D.Rect,
372
372
  tag: H,
373
373
  data: {
374
374
  label: o[s],
@@ -462,22 +462,22 @@ var ye = {
462
462
  }
463
463
  };
464
464
  function be(e) {
465
- e.component(k.Radar, ye);
465
+ e.component(T.Radar, ye);
466
466
  }
467
- var xe = (e, t, n) => D(e, t, D(e, t, n, {
467
+ var xe = (e, t, n) => y(e, t, y(e, t, n, {
468
468
  filter: Se,
469
469
  placement: {
470
470
  type: "bounds",
471
471
  area: "target"
472
472
  },
473
- extract: E(e, t, we, $)
473
+ extract: S(e, t, we, $)
474
474
  }, "points-tooltip"), {
475
475
  filter: Ce,
476
476
  placement: {
477
477
  type: "slice",
478
478
  area: "target"
479
479
  },
480
- extract: E(e, t, Q, $)
480
+ extract: S(e, t, Q, $)
481
481
  }, "attributes-lines-tooltip");
482
482
  function Se(e) {
483
483
  let t = e.find((e) => e.tag === U);
@@ -490,19 +490,19 @@ function Ce(e) {
490
490
  }
491
491
  var we = (e, t, { formatter: n }, r, i, a, o) => {
492
492
  if (t.tag === "dataPoint" && t.desc?.tooltip) {
493
- let r = e.filter((e) => c(e)), { label: i, value: a } = t.desc.tooltip, s = a;
494
- return !o && r[0]?.formatter ? s = n(r[0].formatter)(s) : o && (s = n(C(r[0]?.formatter))(s)), [{
495
- value: s,
493
+ let r = e.filter((e) => s(e)), { label: i, value: a } = t.desc.tooltip, c = a;
494
+ return !o && r[0]?.formatter ? c = n(r[0].formatter)(c) : o && (c = n(k(r[0]?.formatter))(c)), [{
495
+ value: c,
496
496
  label: i
497
497
  }];
498
498
  }
499
499
  return [];
500
500
  }, Q = (e, t, { formatter: n }, r, i, a, o) => {
501
501
  if (t.tag === "attributesLines" && t.desc?.tooltip) {
502
- let r = e.filter((e) => c(e));
502
+ let r = e.filter((e) => s(e));
503
503
  return t.desc.tooltip.values.map(({ label: e, value: t }) => {
504
504
  let i = t;
505
- return !o && r[0]?.formatter ? i = n(r[0].formatter)(i) : o && (i = n(C(r[0]?.formatter))(i)), {
505
+ return !o && r[0]?.formatter ? i = n(r[0].formatter)(i) : o && (i = n(k(r[0]?.formatter))(i)), {
506
506
  value: i,
507
507
  label: e
508
508
  };
@@ -511,15 +511,15 @@ var we = (e, t, { formatter: n }, r, i, a, o) => {
511
511
  return [];
512
512
  };
513
513
  function $(e, t) {
514
- let n = e.filter((e) => c(e));
514
+ let n = e.filter((e) => s(e));
515
515
  if (!n.length) return "";
516
516
  if (n.length === 1) return n[0].label ?? "";
517
517
  let r = t.desc?.tooltip;
518
518
  return typeof r != "object" || !r || !("title" in r) ? "" : typeof r.title == "string" ? r.title : "";
519
519
  }
520
- var Te = (e, t, i) => {
521
- let a = {
522
- type: k.Axis,
520
+ var Te = (e, t, n) => {
521
+ let r = {
522
+ type: T.Axis,
523
523
  key: "radar-axis",
524
524
  scale: "values",
525
525
  settings: {
@@ -529,28 +529,28 @@ var Te = (e, t, i) => {
529
529
  },
530
530
  line: {
531
531
  show: e.measureAxis.showAxis,
532
- stroke: e.measureAxis.axisColor ?? n.mainDarkNavy,
532
+ stroke: e.measureAxis.axisColor ?? o.mainDarkNavy,
533
533
  strokeDasharray: "none"
534
534
  },
535
535
  labels: {
536
536
  show: e.measureAxis.showAxisLabels,
537
- fill: e.measureAxis.axisLabelsColor ?? n.mainDarkNavy
537
+ fill: e.measureAxis.axisLabelsColor ?? o.mainDarkNavy
538
538
  },
539
539
  ticks: {
540
540
  show: e.measureAxis.showAxisTicks,
541
- stroke: e.measureAxis.axisTicksColor ?? n.mainDarkNavy
541
+ stroke: e.measureAxis.axisTicksColor ?? o.mainDarkNavy
542
542
  }
543
543
  },
544
544
  layout: {
545
- dock: r.Center,
546
- displayOrder: b.CustomComponent
545
+ dock: i.Center,
546
+ displayOrder: C.CustomComponent
547
547
  }
548
548
  };
549
549
  return {
550
- ...i,
551
- components: [...i.components, a]
550
+ ...n,
551
+ components: [...n.components, r]
552
552
  };
553
- }, Ee = class extends ne {
553
+ }, Ee = class extends w {
554
554
  constructor() {
555
555
  super([
556
556
  N,
@@ -559,18 +559,18 @@ var Te = (e, t, i) => {
559
559
  ce,
560
560
  Te,
561
561
  xe,
562
- re
562
+ ie
563
563
  ]);
564
564
  }
565
- }, De = te(), Oe = new Ee(), ke = [be], Ae = _(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
566
- let a = g(), { activeKey: o } = ee(), s = h();
567
- if (!e || !n || !r || !u(e)) return null;
568
- let c = {
565
+ }, De = ee(), Oe = new Ee(), ke = [be], Ae = _(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
566
+ let a = g(), { activeKey: o } = v(), s = h();
567
+ if (!e || !n || !r || !c(e)) return null;
568
+ let l = {
569
569
  ...i,
570
570
  valuePickerMode: !!o
571
- }, d = t || p, f = Oe.compile(e, d, n, r, c, l.Radar, a, s);
572
- return f ? /* @__PURE__ */ (0, De.jsx)(T, {
573
- config: c,
571
+ }, d = t || p, f = Oe.compile(e, d, n, r, l, u.Radar, a, s);
572
+ return f ? /* @__PURE__ */ (0, De.jsx)(re, {
573
+ config: l,
574
574
  definition: f,
575
575
  size: r,
576
576
  vSpec: e,
@@ -0,0 +1,2 @@
1
+ import { n as e } from "./standalone-4MsKiqs0.js";
2
+ export { e as DistributionGaugeChart };