vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.4

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 (92) hide show
  1. package/README.md +21 -0
  2. package/dist/{Arrow-HbfibAF0.js → Arrow-XoY1VXNf.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
  4. package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-d4dmqhkb.js} +1 -1
  5. package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-B3v0IhDO.js} +2 -2
  6. package/dist/{DataTable-CsoAI95B.js → DataTable-CmbjnjRg.js} +2 -2
  7. package/dist/{Legend-ZW-PFcHg.js → Legend-YPYnzTBz.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
  9. package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-OcbP0WH2.js} +1 -1
  10. package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-BgPXmpGI.js} +3 -3
  11. package/dist/{Shape-BBbhObHC.js → Shape-WvXjwML_.js} +1 -1
  12. package/dist/{Slicer-Vh74fjdf.js → Slicer-CaMHCF_p.js} +2 -2
  13. package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-BTLad6y3.js} +1 -1
  14. package/dist/{Title-Dx8ctnVy.js → Title-CJcZXNtK.js} +1 -1
  15. package/dist/{Tooltip-COHlzpZI.js → Tooltip-dXp8FaUj.js} +1 -1
  16. package/dist/{UserOptions-CGn3YdRV.js → UserOptions-Cs7JW3dK.js} +154 -138
  17. package/dist/dom-to-png-DGfv21rX.js +247 -0
  18. package/dist/img-fdViJw1e.js +20 -0
  19. package/dist/{index-CbcpITE_.js → index-BzQ0j5xI.js} +190 -128
  20. package/dist/{pdf-Cy09nTjn.js → pdf-Bj65uPK-.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +60 -1
  23. package/dist/types/vue-data-ui.d.ts +60 -1
  24. package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-DqpZEE3h.js} +1 -1
  25. package/dist/{usePrinter-u-gQiRNz.js → usePrinter-CpG5jh_z.js} +2 -2
  26. package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-CeIncf6V.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-fAJK0nIB.js} +175 -174
  29. package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-D5w5EqmV.js} +200 -199
  31. package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-CSGemK-O.js} +2 -2
  32. package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-FPBahjOr.js} +9 -8
  33. package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-BpP9MQC2.js} +115 -114
  34. package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-lpdLFAfT.js} +80 -79
  35. package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-D5um0tmC.js} +453 -452
  36. package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-CgrXXOgv.js} +43 -42
  37. package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-Jk-Yd8T_.js} +143 -142
  38. package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
  40. package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-B3h4BufU.js} +2 -2
  41. package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-DcjJqRof.js} +151 -150
  42. package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DmSbXlMu.js} +111 -110
  43. package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-BLcmTUd_.js} +54 -53
  44. package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-BmIGl6DC.js} +14 -13
  45. package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-BJfxaSQC.js} +75 -74
  46. package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-Cpnr2YW-.js} +84 -83
  47. package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BhPFNziU.js} +33 -32
  48. package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-CpwNMx3i.js} +222 -221
  50. package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-DpxHqDZw.js} +234 -233
  51. package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
  53. package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-3-vg0Re6.js} +44 -43
  54. package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-B7W7wGkW.js} +76 -75
  55. package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-ByoeDL-3.js} +53 -52
  56. package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-CNVwf4QX.js} +72 -71
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +13 -12
  58. package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-C-wPn5l5.js} +13 -12
  59. package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-SV-m_FhA.js} +8 -7
  60. package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DqOzvLUy.js} +283 -282
  61. package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CsZXcINB.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-B0zxq02O.js} +75 -74
  63. package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-CykFyAin.js} +102 -101
  64. package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-DoJwXgd3.js} +110 -109
  65. package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BTT3BYrI.js} +166 -165
  66. package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
  67. package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
  72. package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-DuGcJQ6F.js} +39 -38
  75. package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-C6vbloAI.js} +82 -81
  76. package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-Bb6pNaIM.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-_ypWL_z2.js} +77 -76
  78. package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-_pPedR_D.js} +74 -73
  79. package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-CmLnTIU7.js} +22 -21
  80. package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CpAJT80M.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-DXgmJClr.js} +38 -37
  82. package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-Ci2Yi9Gh.js} +109 -108
  83. package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-pn_EqFmU.js} +82 -81
  84. package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-vqh1kEDT.js} +33 -32
  85. package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-BCcK6wwZ.js} +8 -7
  86. package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-Bu8Giu0b.js} +110 -109
  87. package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-CzRlg19V.js} +57 -56
  88. package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-0gHPOOwZ.js} +982 -856
  89. package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-DuAgXbBB.js} +41 -40
  90. package/package.json +1 -1
  91. package/dist/dom-to-png-BjSUS-jY.js +0 -243
  92. package/dist/img-DWfzRJdv.js +0 -19
@@ -1,13 +1,13 @@
1
- import { useCssVars as Pt, defineAsyncComponent as Y, ref as h, shallowRef as qe, computed as C, watch as _t, onMounted as He, onBeforeUnmount as Qe, createElementBlock as i, openBlock as n, unref as d, normalizeStyle as E, normalizeClass as z, createBlock as G, createCommentVNode as v, renderSlot as $, createElementVNode as B, createSlots as Ze, withCtx as _, normalizeProps as re, guardReactiveProps as ue, withModifiers as Je, createVNode as he, Fragment as F, renderList as U, mergeProps as Tt, toDisplayString as j, createTextVNode as St, nextTick as Ot } from "vue";
2
- import { u as Bt, c as fe, t as Lt, p as ie, a as Nt, o as Et, e as Ke, g as zt, b as Ft, d as Rt, X as Xt, G as jt, f as ge, q as Dt, r as Vt, i as Yt } from "./index-CbcpITE_.js";
1
+ import { useCssVars as Pt, defineAsyncComponent as Y, ref as h, shallowRef as qe, computed as C, watch as _t, onMounted as He, onBeforeUnmount as Qe, createElementBlock as i, openBlock as n, unref as d, normalizeStyle as E, normalizeClass as z, createBlock as G, createCommentVNode as v, renderSlot as $, createElementVNode as B, createSlots as Ze, withCtx as _, normalizeProps as re, guardReactiveProps as ue, withModifiers as Je, createVNode as he, Fragment as F, renderList as U, mergeProps as Tt, toDisplayString as j, createTextVNode as Ot, nextTick as St } from "vue";
2
+ import { u as Bt, c as fe, t as Lt, p as ie, a as Nt, o as Et, e as Ke, g as zt, b as Ft, d as Rt, X as Xt, G as jt, f as ge, q as Dt, r as Vt, i as Yt } from "./index-BzQ0j5xI.js";
3
3
  import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
4
- import { u as et } from "./useNestedProp-y56W8I7J.js";
4
+ import { u as et } from "./useNestedProp-DqpZEE3h.js";
5
5
  import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
6
- import { u as Wt } from "./usePrinter-u-gQiRNz.js";
6
+ import { u as Wt } from "./usePrinter-CpG5jh_z.js";
7
7
  import { t as qt, u as Ht } from "./useResponsive-JZ9xq-JV.js";
8
- import Qt from "./Legend-ZW-PFcHg.js";
9
- import Zt from "./Title-Dx8ctnVy.js";
10
- import { _ as Jt } from "./Shape-BBbhObHC.js";
8
+ import Qt from "./Legend-YPYnzTBz.js";
9
+ import Zt from "./Title-CJcZXNtK.js";
10
+ import { _ as Jt } from "./Shape-WvXjwML_.js";
11
11
  import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { key: 1 }, la = ["id", "d"], sa = { key: 2 }, na = ["transform"], ra = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["d", "fill"], ca = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], da = ["d", "fill", "stroke", "stroke-width"], va = ["d", "fill", "stroke", "stroke-width"], ha = ["d", "fill", "stroke", "stroke-width"], fa = { key: 0 }, ga = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ba = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], pa = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ma = ["transform", "fill", "text-anchor", "font-size", "font-weight"], ya = { key: 1 }, ka = ["font-size", "font-weight", "fill"], $a = ["href"], wa = ["transform", "text-anchor", "font-size", "font-weight", "fill"], Ca = {
13
13
  key: 5,
@@ -35,9 +35,9 @@ const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { k
35
35
  emits: ["selectLegend", "selectGroup", "selectRibbon"],
36
36
  setup(tt, { expose: at, emit: ot }) {
37
37
  Pt((t) => ({
38
- cd4b43ce: t.slicerColor
38
+ "60541bab": t.slicerColor
39
39
  }));
40
- const lt = Y(() => import("./vue-ui-accordion-BkA7rtwr.js")), st = Y(() => import("./BaseIcon-j0c6lJUs.js")), nt = Y(() => import("./DataTable-CsoAI95B.js")), rt = Y(() => import("./PackageVersion-DCAZ9Z7V.js")), ut = Y(() => import("./PenAndPaper-B9RP4oFj.js")), it = Y(() => import("./vue-ui-skeleton-miKWlCAi.js")), ct = Y(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_chord: dt } = Bt(), g = tt, te = ot, L = h(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), T = h(fe()), w = h(null), m = h(null), b = h(null), be = h(0), W = h(null), pe = h(null), me = h(null), ye = h(null), ke = h(null), $e = h(0), we = h(0), Ce = h(0), q = h(!1), R = qe(null), H = qe(null), a = C({
40
+ const lt = Y(() => import("./vue-ui-accordion-bpaEpjqI.js")), st = Y(() => import("./BaseIcon-d4dmqhkb.js")), nt = Y(() => import("./DataTable-CmbjnjRg.js")), rt = Y(() => import("./PackageVersion-OcbP0WH2.js")), ut = Y(() => import("./PenAndPaper-BgPXmpGI.js")), it = Y(() => import("./vue-ui-skeleton-CavMQlAm.js")), ct = Y(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_chord: dt } = Bt(), g = tt, te = ot, L = h(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), T = h(fe()), w = h(null), m = h(null), b = h(null), be = h(0), W = h(null), pe = h(null), me = h(null), ye = h(null), ke = h(null), $e = h(0), we = h(0), Ce = h(0), q = h(!1), R = qe(null), H = qe(null), a = C({
41
41
  get: () => Te(),
42
42
  set: (t) => t
43
43
  }), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: xe } = Gt({ config: a.value }), { svgRef: Q } = Ut({ config: a.value.style.chart.title }), { isPrinting: Ae, isImaging: Ie, generatePdf: Pe, generateImage: _e } = Wt({
@@ -61,9 +61,9 @@ const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { k
61
61
  } : t;
62
62
  }
63
63
  _t(() => g.config, (t) => {
64
- a.value = Te(), ce.value = !a.value.userOptions.showOnChartHover, Se(), $e.value += 1, we.value += 1, Ce.value += 1, x.value = a.value.initialRotation, Z.value.showTable = a.value.table.show;
64
+ a.value = Te(), ce.value = !a.value.userOptions.showOnChartHover, Oe(), $e.value += 1, we.value += 1, Ce.value += 1, x.value = a.value.initialRotation, Z.value.showTable = a.value.table.show;
65
65
  }, { deep: !0 });
66
- function Se() {
66
+ function Oe() {
67
67
  if (Et(g.dataset) ? Ke({
68
68
  componentName: "VueUiChord",
69
69
  type: "dataset"
@@ -76,7 +76,7 @@ const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { k
76
76
  type: "datasetAttribute",
77
77
  property: t
78
78
  });
79
- }), L.value && Oe(), a.value.responsive) {
79
+ }), L.value && Se(), a.value.responsive) {
80
80
  const t = qt(() => {
81
81
  const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } = Ht({
82
82
  chart: W.value,
@@ -93,7 +93,7 @@ const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { k
93
93
  q.value = !0;
94
94
  }, 500);
95
95
  }
96
- function Oe() {
96
+ function Se() {
97
97
  if (!g.dataset || !Object.hasOwn(g.dataset, "matrix") || g.dataset.matrix.length < 2) {
98
98
  console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
99
99
 
@@ -111,14 +111,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
111
111
  }
112
112
  const Be = h(null);
113
113
  He(() => {
114
- Se();
114
+ Oe();
115
115
  });
116
- const S = h({
116
+ const O = h({
117
117
  height: 600,
118
118
  width: 600
119
119
  }), vt = C(() => a.value.userOptions.show && !a.value.style.chart.title.text), ht = C(() => Ft(a.value.customPalette)), p = C(() => ({
120
- inner: S.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
121
- outer: S.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
120
+ inner: O.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
121
+ outer: O.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
122
122
  })), ft = C(() => a.value.style.chart.arcs.padAngle / 100), y = C(() => L.value ? {
123
123
  matrix: g.dataset.matrix ?? [[0]],
124
124
  labels: g.dataset.labels ?? [""],
@@ -151,14 +151,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
151
151
  }
152
152
  const I = [];
153
153
  for (let c = 0; c < e; c += 1) {
154
- const k = t[c].map((O, X) => ({ j: X, v: O }));
155
- k.sort((O, X) => X.v - O.v);
154
+ const k = t[c].map((S, X) => ({ j: X, v: S }));
155
+ k.sort((S, X) => X.v - S.v);
156
156
  let P = f[c].startAngle;
157
- for (const { j: O, v: X } of k) {
157
+ for (const { j: S, v: X } of k) {
158
158
  const V = P, ee = V + X * r;
159
159
  I.push({
160
160
  index: c,
161
- subIndex: O,
161
+ subIndex: S,
162
162
  pattern: `pattern_${T.value}_${c}`,
163
163
  startAngle: V,
164
164
  endAngle: ee,
@@ -183,7 +183,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
183
183
  }
184
184
  const M = C(() => {
185
185
  const t = gt(y.value.matrix, ft.value);
186
- return Oe(), t.chords.sort(
186
+ return Se(), t.chords.sort(
187
187
  (o, e) => Math.max(e.source.value, e.target.value) - Math.max(o.source.value, o.target.value)
188
188
  ), t;
189
189
  }), bt = C(() => {
@@ -260,12 +260,12 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
260
260
  return t;
261
261
  });
262
262
  function Le(t, o, e, l) {
263
- const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, f = Math.sin(u) * e, A = Math.cos(s) * e, I = 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;
264
- return `M${r},${f} A${e},${e} 0 ${O} 1 ${A},${I} L${N},${c} A${l},${l} 0 ${O} 0 ${k},${P} Z`;
263
+ const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, f = Math.sin(u) * e, A = Math.cos(s) * e, I = Math.sin(s) * e, N = Math.cos(s) * l, c = Math.sin(s) * l, k = Math.cos(u) * l, P = Math.sin(u) * l, S = o - t > Math.PI ? 1 : 0;
264
+ return `M${r},${f} A${e},${e} 0 ${S} 1 ${A},${I} L${N},${c} A${l},${l} 0 ${S} 0 ${k},${P} Z`;
265
265
  }
266
266
  function ae(t, o) {
267
- const e = p.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, A = Math.sin(l) * e, I = 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, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, V = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
268
- return `M${f},${A}A${e},${e} 0 ${X} 1 ${I},${N}Q0,0 ${c},${k}A${e},${e} 0 ${V} 1 ${P},${O}Q0,0 ${f},${A}Z`;
267
+ const e = p.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, A = Math.sin(l) * e, I = Math.cos(u) * e, N = Math.sin(u) * e, c = Math.cos(s) * e, k = Math.sin(s) * e, P = Math.cos(r) * e, S = Math.sin(r) * e, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, V = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
268
+ return `M${f},${A}A${e},${e} 0 ${X} 1 ${I},${N}Q0,0 ${c},${k}A${e},${e} 0 ${V} 1 ${P},${S}Q0,0 ${f},${A}Z`;
269
269
  }
270
270
  const Ne = C(() => x.value * Math.PI / 180);
271
271
  function mt(t) {
@@ -407,20 +407,20 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
407
407
  config: e
408
408
  };
409
409
  });
410
- function We() {
411
- Ot(() => {
412
- const t = y.value.matrix.map((l, u) => [
413
- [y.value.labels[u] || u],
414
- l
415
- ]), o = [
410
+ function We(t = null) {
411
+ St(() => {
412
+ const o = y.value.matrix.map((u, s) => [
413
+ [y.value.labels[s] || s],
414
+ u
415
+ ]), e = [
416
416
  [a.value.style.chart.title.text],
417
417
  [a.value.style.chart.title.subtitle.text],
418
418
  [
419
419
  [""],
420
- ...y.value.labels.map((l, u) => [l || u])
420
+ ...y.value.labels.map((u, s) => [u || s])
421
421
  ]
422
- ].concat(t), e = Dt(o);
423
- Vt({ csvContent: e, title: a.value.style.chart.title.text || "vue-ui-chord" });
422
+ ].concat(o), l = Dt(e);
423
+ t ? t(l) : Vt({ csvContent: l, title: a.value.style.chart.title.text || "vue-ui-chord" });
424
424
  });
425
425
  }
426
426
  return at({
@@ -500,6 +500,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
500
500
  titles: { ...a.value.userOptions.buttonTitles },
501
501
  hasAnnotator: a.value.userOptions.buttons.annotator,
502
502
  isAnnotation: K.value,
503
+ callbacks: a.value.userOptions.callbacks,
503
504
  onToggleFullscreen: Ct,
504
505
  onGeneratePdf: d(Pe),
505
506
  onGenerateCsv: We,
@@ -559,13 +560,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
559
560
  ]),
560
561
  key: "6"
561
562
  } : void 0
562
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
563
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
563
564
  L.value ? (n(), i("svg", {
564
565
  key: 4,
565
566
  xmlns: d(Xt),
566
567
  ref_key: "svgRef",
567
568
  ref: Q,
568
- viewBox: `0 0 ${S.value.width} ${S.value.height}`,
569
+ viewBox: `0 0 ${O.value.width} ${O.value.height}`,
569
570
  preserveAspectRatio: "xMidYMid meet",
570
571
  style: {
571
572
  overflow: "visible"
@@ -579,8 +580,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
579
580
  key: 0,
580
581
  x: 0,
581
582
  y: 0,
582
- width: S.value.width <= 0 ? 10 : S.value.width,
583
- height: S.value.height <= 0 ? 10 : S.value.height,
583
+ width: O.value.width <= 0 ? 10 : O.value.width,
584
+ height: O.value.height <= 0 ? 10 : O.value.height,
584
585
  style: {
585
586
  pointerEvents: "none"
586
587
  }
@@ -605,7 +606,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
605
606
  ]))), 256))
606
607
  ])) : v("", !0),
607
608
  B("g", {
608
- transform: `translate(${S.value.width / 2}, ${S.value.height / 2}) rotate(${x.value})`
609
+ transform: `translate(${O.value.width / 2}, ${O.value.height / 2}) rotate(${x.value})`
609
610
  }, [
610
611
  (n(!0), i(F, null, U(M.value.groups, (e, l) => (n(), i("g", null, [
611
612
  (n(), i("path", {
@@ -914,7 +915,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
914
915
  onClose: o[3] || (o[3] = (e) => Z.value.showTable = !1)
915
916
  }, {
916
917
  th: _(({ th: e }) => [
917
- St(j(e.name), 1)
918
+ Ot(j(e.name), 1)
918
919
  ]),
919
920
  td: _(({ td: e }) => [
920
921
  B("div", Aa, j(e.name ? e.name : Xe(e)), 1)
@@ -926,7 +927,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
926
927
  }, 8, ["config"])) : v("", !0)
927
928
  ], 46, ea));
928
929
  }
929
- }, Ra = /* @__PURE__ */ Kt(Ia, [["__scopeId", "data-v-f848c3b0"]]);
930
+ }, Ra = /* @__PURE__ */ Kt(Ia, [["__scopeId", "data-v-3ea9d08d"]]);
930
931
  export {
931
932
  Ra as default
932
933
  };