vue-data-ui 2.17.0 → 2.17.2

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 (93) hide show
  1. package/README.md +2 -1
  2. package/dist/{Arrow-BAEkZGzL.js → Arrow-Dr2lyXds.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
  4. package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-C2f-EcZc.js} +1 -1
  5. package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-D-JmDe31.js} +2 -2
  6. package/dist/{DataTable-D0VYDhfx.js → DataTable-6BxhjBzt.js} +2 -2
  7. package/dist/{Legend-Bxlv67uY.js → Legend-1R-B-7st.js} +11 -11
  8. package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
  9. package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-CIX1W_aa.js} +1 -1
  10. package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-CqJ4wudB.js} +3 -3
  11. package/dist/{Shape-DtFT5EJa.js → Shape-DJKQgAbU.js} +1 -1
  12. package/dist/{Slicer-CL6-MRI6.js → Slicer-Dju6LE-h.js} +2 -2
  13. package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-D2mROH3o.js} +1 -1
  14. package/dist/{Title-B-2bV0SW.js → Title-BQb7X_OR.js} +1 -1
  15. package/dist/{Tooltip-CoQnTnr-.js → Tooltip-BTnTpPdO.js} +1 -1
  16. package/dist/{UserOptions-Dd34lEKb.js → UserOptions-lneAyZKu.js} +2 -2
  17. package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-C-9BWdwN.js} +1 -1
  18. package/dist/{img-Y_hYz-ZC.js → img-D0DpKcFX.js} +1 -1
  19. package/dist/{index-pPGk-uhD.js → index-JzUbx__y.js} +22 -8
  20. package/dist/{pdf-yfk3d1is.js → pdf-BgVDfZPT.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +65 -160
  23. package/dist/types/vue-data-ui.d.ts +65 -160
  24. package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-D_jd2dz9.js} +1 -1
  25. package/dist/{usePrinter-DDHcrl0A.js → usePrinter-CsyliflB.js} +2 -2
  26. package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-BMv8hEcb.js} +99 -97
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-CrdssfKx.js} +41 -34
  29. package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-ZYFAAcwc.js} +134 -127
  31. package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
  32. package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-DYzLfkYB.js} +90 -83
  33. package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-Cdu2ozig.js} +101 -94
  34. package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CCMAbLrw.js} +270 -263
  36. package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-B8Sl_FwD.js} +60 -53
  37. package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-BX6_ToJl.js} +121 -114
  38. package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
  39. package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
  40. package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
  41. package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
  42. package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-dax3dN9r.js} +215 -211
  43. package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-C7ZNBVSy.js} +117 -110
  44. package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-BeLwkeHo.js} +105 -98
  45. package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BywaRLZR.js} +138 -131
  46. package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-DYavEd4o.js} +150 -146
  47. package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-DwQRlRWp.js} +125 -118
  48. package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-CjRczit6.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-cRy0tcES.js} +155 -148
  50. package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-D8aTdU23.js} +141 -134
  51. package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
  53. package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-4MeyWn0c.js} +141 -134
  54. package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-DJmgRVT2.js} +126 -119
  55. package/dist/vue-ui-nested-donuts-CgaPLxV2.js +1177 -0
  56. package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-swDxtTT3.js} +88 -81
  57. package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +123 -116
  58. package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-CLf81ioF.js} +151 -144
  59. package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-smKrpIwq.js} +39 -32
  60. package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-D8CIvG2q.js} +58 -51
  61. package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-YZivkWBI.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-DsEYbNs_.js} +127 -120
  63. package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-Do6C5lMY.js} +98 -91
  64. package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-CMryJR1g.js} +208 -204
  65. package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-BtLKWQbX.js} +172 -165
  66. package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
  67. package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
  74. package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-Bk3Bbzjk.js} +61 -54
  75. package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-BNMDY4GI.js} +116 -109
  76. package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-JG0B8HuS.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-DkldIXw7.js} +88 -81
  80. package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-FPtGzTGi.js} +127 -120
  82. package/dist/vue-ui-treemap-BA5wC5Bs.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-DUJWYMRn.js} +233 -226
  84. package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-BIngg99N.js} +183 -179
  85. package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-l5U2UH9c.js} +121 -114
  86. package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-CTKuxhFY.js} +152 -145
  87. package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-Dx5O9Is5.js} +77 -70
  88. package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-JjA1CMAo.js} +229 -222
  89. package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-CH82b2Lp.js} +154 -147
  90. package/package.json +1 -1
  91. package/dist/vue-ui-donut-CKa7nFjt.js +0 -1324
  92. package/dist/vue-ui-nested-donuts-D0RgFifU.js +0 -1163
  93. package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
@@ -1,14 +1,14 @@
1
- import { useCssVars as _t, defineAsyncComponent as Y, ref as h, shallowRef as He, computed as C, watch as St, onMounted as Qe, onBeforeUnmount as Ze, createElementBlock as i, openBlock as n, unref as d, normalizeStyle as E, normalizeClass as F, createBlock as G, createCommentVNode as v, renderSlot as $, createElementVNode as B, createSlots as Je, withCtx as _, normalizeProps as re, guardReactiveProps as ue, withModifiers as Ke, createVNode as he, Fragment as z, renderList as W, mergeProps as Tt, toDisplayString as D, createTextVNode as Ot, nextTick as Bt } from "vue";
2
- import { u as Lt, c as fe, t as Nt, p as ie, a as Et, o as Ft, e as et, g as zt, b as Rt, d as Xt, X as jt, F as Dt, f as ge, q as Ut, r as Vt, i as Yt } from "./index-pPGk-uhD.js";
1
+ import { useCssVars as _t, defineAsyncComponent as Y, ref as h, shallowRef as He, computed as C, watch as St, onMounted as Qe, onBeforeUnmount as Ze, createElementBlock as i, openBlock as n, unref as d, normalizeStyle as F, normalizeClass as z, createBlock as G, createCommentVNode as v, renderSlot as $, createElementVNode as B, createSlots as Je, withCtx as _, normalizeProps as re, guardReactiveProps as ue, withModifiers as Ke, createVNode as he, Fragment as R, renderList as W, mergeProps as Tt, toDisplayString as D, createTextVNode as Ot, nextTick as Bt } from "vue";
2
+ import { u as Lt, c as fe, t as Nt, p as ie, a as Et, o as Ft, e as et, g as zt, b as Rt, d as Xt, X as jt, F as Dt, f as ge, q as Ut, r as Vt, i as Yt } from "./index-JzUbx__y.js";
3
3
  import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
4
- import { u as tt } from "./useNestedProp-DjACxgdZ.js";
4
+ import { u as tt } from "./useNestedProp-D_jd2dz9.js";
5
5
  import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
6
- import { u as qt } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as qt } from "./usePrinter-CsyliflB.js";
7
7
  import { t as Ht, u as Qt } from "./useResponsive-DfdjqQps.js";
8
- import Zt from "./Legend-Bxlv67uY.js";
9
- import Jt from "./Title-B-2bV0SW.js";
10
- import { _ as Kt } from "./Shape-DtFT5EJa.js";
11
- import ea from "./img-Y_hYz-ZC.js";
8
+ import Zt from "./Legend-1R-B-7st.js";
9
+ import Jt from "./Title-BQb7X_OR.js";
10
+ import { _ as Kt } from "./Shape-DJKQgAbU.js";
11
+ import ea from "./img-D0DpKcFX.js";
12
12
  import { _ as ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  const aa = ["id"], oa = ["xmlns", "viewBox"], la = ["width", "height"], sa = { key: 1 }, na = ["id", "d"], ra = { key: 2 }, ua = ["transform"], ia = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ca = ["d", "fill", "stroke", "stroke-width"], da = ["d", "fill"], va = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ha = ["d", "fill", "stroke", "stroke-width"], fa = ["d", "fill", "stroke", "stroke-width"], ga = ["d", "fill", "stroke", "stroke-width"], pa = { key: 0 }, ba = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ma = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ya = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ka = ["transform", "fill", "text-anchor", "font-size", "font-weight"], $a = { key: 1 }, wa = ["font-size", "font-weight", "fill"], Ca = ["href"], Ma = ["transform", "text-anchor", "font-size", "font-weight", "fill"], xa = {
14
14
  key: 5,
@@ -36,9 +36,9 @@ const aa = ["id"], oa = ["xmlns", "viewBox"], la = ["width", "height"], sa = { k
36
36
  emits: ["selectLegend", "selectGroup", "selectRibbon"],
37
37
  setup(at, { expose: ot, emit: lt }) {
38
38
  _t((t) => ({
39
- 76214312: t.slicerColor
39
+ "14a1e96b": t.slicerColor
40
40
  }));
41
- const st = Y(() => import("./vue-ui-accordion-CVnA550V.js")), nt = Y(() => import("./BaseIcon-naqtCxVi.js")), rt = Y(() => import("./DataTable-D0VYDhfx.js")), ut = Y(() => import("./PackageVersion-5TR4ocqp.js")), it = Y(() => import("./PenAndPaper-D6AqipIO.js")), ct = Y(() => import("./vue-ui-skeleton-DJPjyNYn.js")), dt = Y(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_chord: vt } = Lt(), g = at, te = lt, L = h(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), S = h(fe()), w = h(null), m = h(null), p = h(null), pe = h(0), R = h(null), be = h(null), me = h(null), ye = h(null), ke = h(null), $e = h(0), we = h(0), Ce = h(0), q = h(!1), X = He(null), H = He(null), a = C({
41
+ const st = Y(() => import("./vue-ui-accordion-CcTUbiHq.js")), nt = Y(() => import("./BaseIcon-C2f-EcZc.js")), rt = Y(() => import("./DataTable-6BxhjBzt.js")), ut = Y(() => import("./PackageVersion-CIX1W_aa.js")), it = Y(() => import("./PenAndPaper-CqJ4wudB.js")), ct = Y(() => import("./vue-ui-skeleton-B4KQLEQy.js")), dt = Y(() => import("./UserOptions-lneAyZKu.js")), { vue_ui_chord: vt } = Lt(), g = at, te = lt, L = h(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), S = h(fe()), w = h(null), m = h(null), p = h(null), pe = h(0), N = h(null), be = h(null), me = h(null), ye = h(null), ke = h(null), $e = h(0), we = h(0), Ce = h(0), q = h(!1), X = He(null), H = He(null), a = C({
42
42
  get: () => Se(),
43
43
  set: (t) => t
44
44
  }), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: xe } = Gt({ config: a.value }), { svgRef: Q } = Wt({ config: a.value.style.chart.title }), { isPrinting: Ie, isImaging: Ae, generatePdf: Pe, generateImage: _e } = qt({
@@ -80,15 +80,15 @@ const aa = ["id"], oa = ["xmlns", "viewBox"], la = ["width", "height"], sa = { k
80
80
  }), L.value && Oe(), a.value.responsive) {
81
81
  const t = Ht(() => {
82
82
  const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } = Qt({
83
- chart: R.value,
83
+ chart: N.value,
84
84
  title: a.value.style.chart.title.text ? be.value : null,
85
85
  legend: a.value.style.chart.legend.show ? me.value : null,
86
86
  source: ye.value,
87
87
  noTitle: ke.value
88
88
  }), f = s + r + u + l;
89
- o < e ? R.value.style.width = "100%" : (R.value.style.height = "100%", Q.value.style.height = `calc(100% - ${f}px)`);
89
+ o < e ? N.value.style.width = "100%" : (N.value.style.height = "100%", Q.value.style.height = `calc(100% - ${f}px)`);
90
90
  }, 100);
91
- X.value && (H.value && X.value.unobserve(H.value), X.value.disconnect()), X.value = new ResizeObserver(t), H.value = R.value.parentNode, X.value.observe(H.value), t();
91
+ X.value && (H.value && X.value.unobserve(H.value), X.value.disconnect()), X.value = new ResizeObserver(t), H.value = N.value.parentNode, X.value.observe(H.value), t();
92
92
  }
93
93
  Be.value = setTimeout(() => {
94
94
  q.value = !0;
@@ -173,14 +173,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
173
173
  }), P = ee;
174
174
  }
175
175
  }
176
- const N = [];
176
+ const E = [];
177
177
  for (const c of A) {
178
178
  const k = A.find(
179
179
  (P) => P.index === c.subIndex && P.subIndex === c.index
180
180
  );
181
- N.push({ source: c, target: k, id: fe() });
181
+ E.push({ source: c, target: k, id: fe() });
182
182
  }
183
- return { groups: f, chords: N };
183
+ return { groups: f, chords: E };
184
184
  }
185
185
  const M = C(() => {
186
186
  const t = pt(y.value.matrix, gt.value);
@@ -252,8 +252,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
252
252
  for (; e && l++ < 10; ) {
253
253
  e = !1;
254
254
  for (let f = 1; f < t.length; f += 1) {
255
- const I = t[f - 1], A = t[f], N = I.theta + I.w + o;
256
- A.theta < N && (A.theta = N, e = !0);
255
+ const I = t[f - 1], A = t[f], E = I.theta + I.w + o;
256
+ A.theta < E && (A.theta = E, e = !0);
257
257
  }
258
258
  const u = t[0], s = t[t.length - 1], r = s.theta + s.w + o - 2 * Math.PI;
259
259
  u.theta < r && (u.theta = r, e = !0);
@@ -261,12 +261,12 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
261
261
  return t;
262
262
  });
263
263
  function Le(t, o, e, l) {
264
- const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, f = Math.sin(u) * e, I = Math.cos(s) * e, A = Math.sin(s) * e, N = Math.cos(s) * l, c = Math.sin(s) * l, k = Math.cos(u) * l, P = Math.sin(u) * l, O = o - t > Math.PI ? 1 : 0;
265
- return `M${r},${f} A${e},${e} 0 ${O} 1 ${I},${A} L${N},${c} A${l},${l} 0 ${O} 0 ${k},${P} Z`;
264
+ const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, f = Math.sin(u) * e, I = Math.cos(s) * e, A = Math.sin(s) * e, E = Math.cos(s) * l, c = Math.sin(s) * l, k = Math.cos(u) * l, P = Math.sin(u) * l, O = o - t > Math.PI ? 1 : 0;
265
+ return `M${r},${f} A${e},${e} 0 ${O} 1 ${I},${A} L${E},${c} A${l},${l} 0 ${O} 0 ${k},${P} Z`;
266
266
  }
267
267
  function ae(t, o) {
268
- const e = b.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, r = o.endAngle - Math.PI / 2, f = Math.cos(l) * e, I = Math.sin(l) * e, A = Math.cos(u) * e, N = Math.sin(u) * e, c = Math.cos(s) * e, k = Math.sin(s) * e, P = Math.cos(r) * e, O = Math.sin(r) * e, j = t.endAngle - t.startAngle > Math.PI ? 1 : 0, V = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
269
- return `M${f},${I}A${e},${e} 0 ${j} 1 ${A},${N}Q0,0 ${c},${k}A${e},${e} 0 ${V} 1 ${P},${O}Q0,0 ${f},${I}Z`;
268
+ const e = b.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, r = o.endAngle - Math.PI / 2, f = Math.cos(l) * e, I = Math.sin(l) * e, A = Math.cos(u) * e, E = Math.sin(u) * e, c = Math.cos(s) * e, k = Math.sin(s) * e, P = Math.cos(r) * e, O = Math.sin(r) * e, j = t.endAngle - t.startAngle > Math.PI ? 1 : 0, V = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
269
+ return `M${f},${I}A${e},${e} 0 ${j} 1 ${A},${E}Q0,0 ${c},${k}A${e},${e} 0 ${V} 1 ${P},${O}Q0,0 ${f},${I}Z`;
270
270
  }
271
271
  const Ne = C(() => x.value * Math.PI / 180);
272
272
  function yt(t) {
@@ -425,9 +425,16 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
425
425
  });
426
426
  }
427
427
  async function Pt({ scale: t = 2 } = {}) {
428
- if (!R.value) return;
429
- const { imageUri: o, base64: e } = await ea({ domElement: R.value, base64: !0, img: !0, scale: t });
430
- return { imageUri: o, base64: e };
428
+ if (!N.value) return;
429
+ const { width: o, height: e } = N.value.getBoundingClientRect(), l = o / e, { imageUri: u, base64: s } = await ea({ domElement: N.value, base64: !0, img: !0, scale: t });
430
+ return {
431
+ imageUri: u,
432
+ base64: s,
433
+ title: a.value.style.chart.title.text,
434
+ width: o,
435
+ height: e,
436
+ aspectRatio: l
437
+ };
431
438
  }
432
439
  return ot({
433
440
  getData: It,
@@ -440,13 +447,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
440
447
  toggleFullscreen: je
441
448
  }), (t, o) => (n(), i("div", {
442
449
  ref_key: "chordChart",
443
- ref: R,
444
- class: F({
450
+ ref: N,
451
+ class: z({
445
452
  "vue-ui-chord": !0,
446
453
  "vue-data-ui-wrapper-fullscreen": de.value,
447
454
  "vue-data-ui-responsive": a.value.responsive
448
455
  }),
449
- style: E(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
456
+ style: F(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
450
457
  id: `chord_${S.value}`,
451
458
  onMouseenter: o[4] || (o[4] = () => d(Me)(!0)),
452
459
  onMouseleave: o[5] || (o[5] = () => d(Me)(!1))
@@ -503,7 +510,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
503
510
  hasLabel: !1,
504
511
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
505
512
  isFullscreen: de.value,
506
- chartElement: R.value,
513
+ chartElement: N.value,
507
514
  position: a.value.userOptions.position,
508
515
  titles: { ...a.value.userOptions.buttonTitles },
509
516
  hasAnnotator: a.value.userOptions.buttons.annotator,
@@ -516,7 +523,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
516
523
  onGenerateImage: d(_e),
517
524
  onToggleTable: Ve,
518
525
  onToggleAnnotator: ve,
519
- style: E({
526
+ style: F({
520
527
  visibility: d(xe) ? d(ce) ? "visible" : "hidden" : "visible"
521
528
  })
522
529
  }, Je({ _: 2 }, [
@@ -580,7 +587,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
580
587
  style: {
581
588
  overflow: "visible"
582
589
  },
583
- class: F({ "vue-ui-chord-rotating": J.value, "vue-ui-chord-idle": !J.value }),
590
+ class: z({ "vue-ui-chord-rotating": J.value, "vue-ui-chord-idle": !J.value }),
584
591
  onMousedown: Ke(Re, ["prevent"]),
585
592
  onTouchstart: Ke(Re, ["prevent"])
586
593
  }, [
@@ -598,7 +605,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
598
605
  $(t.$slots, "chart-background", {}, void 0, !0)
599
606
  ], 8, la)) : v("", !0),
600
607
  a.value.style.chart.arcs.labels.curved ? (n(), i("defs", sa, [
601
- (n(!0), i(z, null, W(M.value.groups, (e, l) => (n(), i("path", {
608
+ (n(!0), i(R, null, W(M.value.groups, (e, l) => (n(), i("path", {
602
609
  key: `labelPath-${l}`,
603
610
  id: `labelPath-${l}_${S.value}`,
604
611
  d: Ct(
@@ -610,16 +617,16 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
610
617
  }, null, 8, na))), 128))
611
618
  ])) : v("", !0),
612
619
  t.$slots.pattern ? (n(), i("g", ra, [
613
- (n(!0), i(z, null, W(M.value.groups, (e, l) => (n(), i("defs", null, [
620
+ (n(!0), i(R, null, W(M.value.groups, (e, l) => (n(), i("defs", null, [
614
621
  $(t.$slots, "pattern", Tt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${S.value}_${l}` }), void 0, !0)
615
622
  ]))), 256))
616
623
  ])) : v("", !0),
617
624
  B("g", {
618
625
  transform: `translate(${T.value.width / 2}, ${T.value.height / 2}) rotate(${x.value})`
619
626
  }, [
620
- (n(!0), i(z, null, W(M.value.groups, (e, l) => (n(), i("g", null, [
627
+ (n(!0), i(R, null, W(M.value.groups, (e, l) => (n(), i("g", null, [
621
628
  (n(), i("path", {
622
- class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
629
+ class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
623
630
  key: `arc-${l}`,
624
631
  d: Le(
625
632
  e.startAngle,
@@ -632,7 +639,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
632
639
  "stroke-width": a.value.style.chart.arcs.strokeWidth,
633
640
  "stroke-linecap": "round",
634
641
  "stroke-linejoin": "round",
635
- style: E({
642
+ style: F({
636
643
  opacity: Ue(e)
637
644
  }),
638
645
  onMouseenter: () => Mt(e),
@@ -640,7 +647,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
640
647
  onClick: (u) => te("selectGroup", e)
641
648
  }, null, 46, ia)),
642
649
  t.$slots.pattern ? (n(), i("path", {
643
- class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
650
+ class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
644
651
  key: `arc-${l}`,
645
652
  d: Le(
646
653
  e.startAngle,
@@ -653,33 +660,33 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
653
660
  "stroke-width": a.value.style.chart.arcs.strokeWidth,
654
661
  "stroke-linecap": "round",
655
662
  "stroke-linejoin": "round",
656
- style: E({
663
+ style: F({
657
664
  opacity: Ue(e),
658
665
  pointerEvents: "none"
659
666
  })
660
667
  }, null, 14, ca)) : v("", !0)
661
668
  ]))), 256)),
662
669
  B("g", null, [
663
- (n(!0), i(z, null, W(w.value ? M.value.chords.filter((e) => e.source.groupId === w.value.id) : p.value ? M.value.chords.filter((e) => e.source.groupId === p.value) : M.value.chords, (e) => (n(), i(z, {
670
+ (n(!0), i(R, null, W(w.value ? M.value.chords.filter((e) => e.source.groupId === w.value.id) : p.value ? M.value.chords.filter((e) => e.source.groupId === p.value) : M.value.chords, (e) => (n(), i(R, {
664
671
  key: `ribbon-${e.id}`
665
672
  }, [
666
673
  e.source.value ? (n(), i("path", {
667
674
  key: 0,
668
- class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
675
+ class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
669
676
  d: ae(e.source, e.target),
670
677
  fill: a.value.style.chart.backgroundColor,
671
- style: E({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
678
+ style: F({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
672
679
  }, null, 14, da)) : v("", !0),
673
680
  e.source.value ? (n(), i("path", {
674
681
  key: 1,
675
- class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
682
+ class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
676
683
  d: ae(e.source, e.target),
677
684
  fill: y.value.colors[e.source.index],
678
685
  stroke: a.value.style.chart.ribbons.stroke,
679
686
  "stroke-width": a.value.style.chart.ribbons.strokeWidth,
680
687
  "stroke-linecap": "round",
681
688
  "stroke-linejoin": "round",
682
- style: E({ opacity: De(e) }),
689
+ style: F({ opacity: De(e) }),
683
690
  onMouseenter: () => xt({
684
691
  ...e,
685
692
  path: ae(e.source, e.target),
@@ -693,14 +700,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
693
700
  }, null, 46, va)) : v("", !0),
694
701
  e.source.value && t.$slots.pattern ? (n(), i("path", {
695
702
  key: 2,
696
- class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
703
+ class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
697
704
  d: ae(e.source, e.target),
698
705
  fill: `url(#pattern_${S.value}_${e.source.index})`,
699
706
  stroke: a.value.style.chart.ribbons.stroke,
700
707
  "stroke-width": a.value.style.chart.ribbons.strokeWidth,
701
708
  "stroke-linecap": "round",
702
709
  "stroke-linejoin": "round",
703
- style: E({
710
+ style: F({
704
711
  opacity: De(e),
705
712
  pointerEvents: "none"
706
713
  })
@@ -714,7 +721,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
714
721
  "stroke-width": a.value.style.chart.ribbons.strokeWidth,
715
722
  "stroke-linecap": "round",
716
723
  "stroke-linejoin": "round",
717
- class: F({ "vue-ui-chord-ribbon": !0 }),
724
+ class: z({ "vue-ui-chord-ribbon": !0 }),
718
725
  style: {
719
726
  pointerEvents: "none"
720
727
  }
@@ -727,14 +734,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
727
734
  "stroke-width": a.value.style.chart.ribbons.strokeWidth,
728
735
  "stroke-linecap": "round",
729
736
  "stroke-linejoin": "round",
730
- class: F({ "vue-ui-chord-ribbon": !0 }),
737
+ class: z({ "vue-ui-chord-ribbon": !0 }),
731
738
  style: {
732
739
  pointerEvents: "none"
733
740
  }
734
741
  }, null, 8, ga)) : v("", !0)
735
742
  ]),
736
743
  (w.value || m.value || p.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", pa, [
737
- (n(!0), i(z, null, W(mt.value, (e) => (n(), i(z, {
744
+ (n(!0), i(R, null, W(mt.value, (e) => (n(), i(R, {
738
745
  key: e.id
739
746
  }, [
740
747
  B("line", {
@@ -782,7 +789,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
782
789
  ], 64))), 128))
783
790
  ])) : v("", !0),
784
791
  a.value.style.chart.arcs.labels.show ? (n(), i("g", $a, [
785
- a.value.style.chart.arcs.labels.curved ? (n(!0), i(z, { key: 0 }, W(M.value.groups, (e, l) => (n(), i("text", {
792
+ a.value.style.chart.arcs.labels.curved ? (n(!0), i(R, { key: 0 }, W(M.value.groups, (e, l) => (n(), i("text", {
786
793
  key: `curved-label-${l}`,
787
794
  "font-size": a.value.style.chart.arcs.labels.fontSize,
788
795
  "font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
@@ -798,7 +805,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
798
805
  s: "%)",
799
806
  r: a.value.style.chart.arcs.labels.roundingPercentage
800
807
  }) : ""), 9, Ca)
801
- ], 8, wa))), 128)) : !w.value && !m.value && !p.value ? (n(!0), i(z, { key: 1 }, W(M.value.groups, (e, l) => (n(), i("text", {
808
+ ], 8, wa))), 128)) : !w.value && !m.value && !p.value ? (n(!0), i(R, { key: 1 }, W(M.value.groups, (e, l) => (n(), i("text", {
802
809
  key: `label-${l}`,
803
810
  transform: `
804
811
  ${wt((e.startAngle + e.endAngle) / 2)}
@@ -846,7 +853,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
846
853
  }, Je({
847
854
  item: _(({ legend: e }) => [
848
855
  B("div", {
849
- style: E({
856
+ style: F({
850
857
  opacity: p.value ? p.value === e.id ? 1 : 0.3 : 1
851
858
  }),
852
859
  onClick: (l) => e.select()
@@ -885,7 +892,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
885
892
  tabindex: "0",
886
893
  role: "button",
887
894
  class: "vue-data-ui-refresh-button",
888
- style: E({
895
+ style: F({
889
896
  background: a.value.style.chart.backgroundColor
890
897
  }),
891
898
  onClick: Ye
@@ -936,7 +943,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
936
943
  }, 8, ["config"])) : v("", !0)
937
944
  ], 46, aa));
938
945
  }
939
- }, Da = /* @__PURE__ */ ta(_a, [["__scopeId", "data-v-ab90a89e"]]);
946
+ }, Da = /* @__PURE__ */ ta(_a, [["__scopeId", "data-v-d479992b"]]);
940
947
  export {
941
948
  Da as default
942
949
  };