vue-data-ui 2.16.6 → 2.17.0

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 +83 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1096 -160
  23. package/dist/types/vue-data-ui.d.ts +1096 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
  82. package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
  85. package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
  86. package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
@@ -1,22 +1,23 @@
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 F, createBlock as U, 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 z, renderList as G, mergeProps as St, toDisplayString as j, createTextVNode as Tt, 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 Ft, b as zt, d as Rt, X as Xt, F as jt, f as ge, q as Dt, r as Vt, i as Yt } from "./index-DvIXJm6t.js";
3
- import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
4
- import { u as et } from "./useNestedProp-DrYHm61t.js";
5
- import { u as Gt } from "./useChartAccessibility-9icAAmYg.js";
6
- import { u as Wt } from "./usePrinter-CWnXbGMb.js";
7
- import { t as qt, u as Ht } from "./useResponsive-DfdjqQps.js";
8
- import Qt from "./Legend-nBXoxXJH.js";
9
- import Zt from "./Title-Gi81VwUM.js";
10
- import { _ as Jt } from "./Shape-Bnf512BA.js";
11
- import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
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"], pa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ba = ["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 = {
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";
3
+ import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
4
+ import { u as tt } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
6
+ import { u as qt } from "./usePrinter-DDHcrl0A.js";
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";
12
+ import { _ as ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
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 = {
13
14
  key: 5,
14
15
  class: "vue-data-ui-watermark"
15
- }, Ma = ["onClick"], xa = {
16
+ }, Ia = ["onClick"], Aa = {
16
17
  key: 8,
17
18
  "data-dom-to-png-ignore": "",
18
19
  class: "reset-wrapper"
19
- }, Aa = { style: { "text-align": "right", width: "100%" } }, Ia = {
20
+ }, Pa = { style: { "text-align": "right", width: "100%" } }, _a = {
20
21
  __name: "vue-ui-chord",
21
22
  props: {
22
23
  dataset: {
@@ -33,14 +34,14 @@ const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { k
33
34
  }
34
35
  },
35
36
  emits: ["selectLegend", "selectGroup", "selectRibbon"],
36
- setup(tt, { expose: at, emit: ot }) {
37
- Pt((t) => ({
38
- bcd9ecd2: t.slicerColor
37
+ setup(at, { expose: ot, emit: lt }) {
38
+ _t((t) => ({
39
+ 76214312: t.slicerColor
39
40
  }));
40
- const lt = Y(() => import("./vue-ui-accordion-D55kCO5G.js")), st = Y(() => import("./BaseIcon-Bn996RXm.js")), nt = Y(() => import("./DataTable-CHBLjKtZ.js")), rt = Y(() => import("./PackageVersion-Bg_9KCU-.js")), ut = Y(() => import("./PenAndPaper-BPTpbnay.js")), it = Y(() => import("./vue-ui-skeleton-BAOt2neL.js")), ct = Y(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_chord: dt } = Bt(), g = tt, te = ot, L = h(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), S = h(fe()), w = h(null), m = h(null), p = h(null), pe = h(0), W = 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), R = qe(null), H = qe(null), a = C({
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
42
  get: () => Se(),
42
43
  set: (t) => t
43
- }), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: xe } = Ut({ config: a.value }), { svgRef: Q } = Gt({ config: a.value.style.chart.title }), { isPrinting: Ae, isImaging: Ie, generatePdf: Pe, generateImage: _e } = Wt({
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({
44
45
  elementId: `chord_${S.value}`,
45
46
  fileName: a.value.style.chart.title.text || "vue-ui-chord",
46
47
  options: a.value.userOptions.print
@@ -48,46 +49,46 @@ const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { k
48
49
  showTable: a.value.table.show
49
50
  });
50
51
  function Se() {
51
- const t = et({
52
+ const t = tt({
52
53
  userConfig: g.config,
53
- defaultConfig: dt
54
+ defaultConfig: vt
54
55
  });
55
56
  return t.theme ? {
56
- ...et({
57
- userConfig: Nt.vue_ui_chord[t.theme] || g.config,
57
+ ...tt({
58
+ userConfig: Et.vue_ui_chord[t.theme] || g.config,
58
59
  defaultConfig: t
59
60
  }),
60
- customPalette: Lt[t.theme] || ie
61
+ customPalette: Nt[t.theme] || ie
61
62
  } : t;
62
63
  }
63
- _t(() => g.config, (t) => {
64
+ St(() => g.config, (t) => {
64
65
  a.value = Se(), ce.value = !a.value.userOptions.showOnChartHover, Te(), $e.value += 1, we.value += 1, Ce.value += 1, x.value = a.value.initialRotation, Z.value.showTable = a.value.table.show;
65
66
  }, { deep: !0 });
66
67
  function Te() {
67
- if (Et(g.dataset) ? Ke({
68
+ if (Ft(g.dataset) ? et({
68
69
  componentName: "VueUiChord",
69
70
  type: "dataset"
70
- }) : Ft({
71
+ }) : zt({
71
72
  datasetObject: g.dataset,
72
73
  requiredAttributes: ["matrix"]
73
74
  }).forEach((t) => {
74
- L.value = !1, Ke({
75
+ L.value = !1, et({
75
76
  componentName: "VueUiChord",
76
77
  type: "datasetAttribute",
77
78
  property: t
78
79
  });
79
80
  }), L.value && Oe(), a.value.responsive) {
80
- const t = qt(() => {
81
- const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } = Ht({
82
- chart: W.value,
81
+ const t = Ht(() => {
82
+ const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } = Qt({
83
+ chart: R.value,
83
84
  title: a.value.style.chart.title.text ? be.value : null,
84
85
  legend: a.value.style.chart.legend.show ? me.value : null,
85
86
  source: ye.value,
86
87
  noTitle: ke.value
87
88
  }), f = s + r + u + l;
88
- o < e ? W.value.style.width = "100%" : (W.value.style.height = "100%", Q.value.style.height = `calc(100% - ${f}px)`);
89
+ o < e ? R.value.style.width = "100%" : (R.value.style.height = "100%", Q.value.style.height = `calc(100% - ${f}px)`);
89
90
  }, 100);
90
- R.value && (H.value && R.value.unobserve(H.value), R.value.disconnect()), R.value = new ResizeObserver(t), H.value = W.value.parentNode, R.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 = R.value.parentNode, X.value.observe(H.value), t();
91
92
  }
92
93
  Be.value = setTimeout(() => {
93
94
  q.value = !0;
@@ -110,34 +111,34 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
110
111
  });
111
112
  }
112
113
  const Be = h(null);
113
- He(() => {
114
+ Qe(() => {
114
115
  Te();
115
116
  });
116
117
  const T = h({
117
118
  height: 600,
118
119
  width: 600
119
- }), vt = C(() => a.value.userOptions.show && !a.value.style.chart.title.text), ht = C(() => zt(a.value.customPalette)), b = C(() => ({
120
+ }), ht = C(() => a.value.userOptions.show && !a.value.style.chart.title.text), ft = C(() => Rt(a.value.customPalette)), b = C(() => ({
120
121
  inner: T.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
121
122
  outer: T.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
122
- })), ft = C(() => a.value.style.chart.arcs.padAngle / 100), y = C(() => L.value ? {
123
+ })), gt = C(() => a.value.style.chart.arcs.padAngle / 100), y = C(() => L.value ? {
123
124
  matrix: g.dataset.matrix ?? [[0]],
124
125
  labels: g.dataset.labels ?? [""],
125
- colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) => Rt(t)) : g.dataset.matrix.map((t, o) => ht.value[o] || ie[o] || ie[o % ie.length])
126
+ colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) => Xt(t)) : g.dataset.matrix.map((t, o) => ft.value[o] || ie[o] || ie[o % ie.length])
126
127
  } : {
127
128
  matrix: [],
128
129
  labels: [],
129
130
  colors: []
130
131
  });
131
- function gt(t, o) {
132
+ function pt(t, o) {
132
133
  const e = t.length, l = b.value.inner, u = new Array(e).fill(0);
133
134
  let s = 0;
134
135
  for (let c = 0; c < e; c += 1)
135
136
  for (let k = 0; k < e; k += 1)
136
137
  u[c] += t[c][k], s += t[c][k];
137
138
  const r = (2 * Math.PI - o * e) / s, f = [];
138
- let A = 0;
139
+ let I = 0;
139
140
  for (let c = 0; c < e; c += 1) {
140
- const k = A, P = k + u[c] * r;
141
+ const k = I, P = k + u[c] * r;
141
142
  f.push({
142
143
  index: c,
143
144
  pattern: `pattern_${S.value}_${c}`,
@@ -147,22 +148,22 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
147
148
  id: fe(),
148
149
  color: y.value.colors[c],
149
150
  proportion: u[c] / s
150
- }), A = P + o;
151
+ }), I = P + o;
151
152
  }
152
- const I = [];
153
+ const A = [];
153
154
  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);
155
+ const k = t[c].map((O, j) => ({ j, v: O }));
156
+ k.sort((O, j) => j.v - O.v);
156
157
  let P = f[c].startAngle;
157
- for (const { j: O, v: X } of k) {
158
- const V = P, ee = V + X * r;
159
- I.push({
158
+ for (const { j: O, v: j } of k) {
159
+ const V = P, ee = V + j * r;
160
+ A.push({
160
161
  index: c,
161
162
  subIndex: O,
162
163
  pattern: `pattern_${S.value}_${c}`,
163
164
  startAngle: V,
164
165
  endAngle: ee,
165
- value: X,
166
+ value: j,
166
167
  groupName: y.value.labels[c],
167
168
  groupId: f[c].id,
168
169
  groupColor: y.value.colors[c],
@@ -173,8 +174,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
173
174
  }
174
175
  }
175
176
  const N = [];
176
- for (const c of I) {
177
- const k = I.find(
177
+ for (const c of A) {
178
+ const k = A.find(
178
179
  (P) => P.index === c.subIndex && P.subIndex === c.index
179
180
  );
180
181
  N.push({ source: c, target: k, id: fe() });
@@ -182,11 +183,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
182
183
  return { groups: f, chords: N };
183
184
  }
184
185
  const M = C(() => {
185
- const t = gt(y.value.matrix, ft.value);
186
+ const t = pt(y.value.matrix, gt.value);
186
187
  return Oe(), t.chords.sort(
187
188
  (o, e) => Math.max(e.source.value, e.target.value) - Math.max(o.source.value, o.target.value)
188
189
  ), t;
189
- }), pt = C(() => {
190
+ }), bt = C(() => {
190
191
  const t = b.value.outer + a.value.style.chart.ribbons.labels.offset + 12, e = a.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
191
192
  if (m.value) {
192
193
  const s = m.value;
@@ -245,14 +246,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
245
246
  });
246
247
  }
247
248
  return p.value && u(p.value), w.value && u(w.value.id), l;
248
- }), bt = C(() => {
249
- const t = pt.value.map((u) => ({ ...u })).sort((u, s) => u.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
249
+ }), mt = C(() => {
250
+ const t = bt.value.map((u) => ({ ...u })).sort((u, s) => u.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
250
251
  let e = !0, l = 0;
251
252
  for (; e && l++ < 10; ) {
252
253
  e = !1;
253
254
  for (let f = 1; f < t.length; f += 1) {
254
- const A = t[f - 1], I = t[f], N = A.theta + A.w + o;
255
- I.theta < N && (I.theta = N, e = !0);
255
+ const I = t[f - 1], A = t[f], N = I.theta + I.w + o;
256
+ A.theta < N && (A.theta = N, e = !0);
256
257
  }
257
258
  const u = t[0], s = t[t.length - 1], r = s.theta + s.w + o - 2 * Math.PI;
258
259
  u.theta < r && (u.theta = r, e = !0);
@@ -260,31 +261,31 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
260
261
  return t;
261
262
  });
262
263
  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`;
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`;
265
266
  }
266
267
  function ae(t, o) {
267
- 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, 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`;
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`;
269
270
  }
270
271
  const Ne = C(() => x.value * Math.PI / 180);
271
- function mt(t) {
272
- return (t.startAngle + t.endAngle) / 2;
273
- }
274
272
  function yt(t) {
275
- return ((mt(t) + Ne.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
273
+ return (t.startAngle + t.endAngle) / 2;
276
274
  }
277
275
  function kt(t) {
276
+ return ((yt(t) + Ne.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
277
+ }
278
+ function $t(t) {
278
279
  let o = t + Ne.value;
279
280
  return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
280
281
  }
281
- function $t(t) {
282
+ function wt(t) {
282
283
  const o = t - Math.PI / 2, e = Math.cos(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24);
283
284
  return `translate(${e},${l})`;
284
285
  }
285
- function wt(t, o, e) {
286
- const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, r = Math.sin(l) * e, f = Math.cos(u) * e, A = Math.sin(u) * e, I = o - t > Math.PI ? 1 : 0;
287
- return `M${s},${r} A${e},${e} 0 ${I} 1 ${f},${A}`;
286
+ function Ct(t, o, e) {
287
+ const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, r = Math.sin(l) * e, f = Math.cos(u) * e, I = Math.sin(u) * e, A = o - t > Math.PI ? 1 : 0;
288
+ return `M${s},${r} A${e},${e} 0 ${A} 1 ${f},${I}`;
288
289
  }
289
290
  const x = h(a.value.initialRotation), J = h(!1);
290
291
  let Ee = 0, Fe = 0;
@@ -315,13 +316,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
315
316
  })
316
317
  );
317
318
  }
318
- He(() => {
319
+ Qe(() => {
319
320
  window.addEventListener("mousemove", oe), window.addEventListener("mouseup", le), window.addEventListener("touchmove", oe, { passive: !1 }), window.addEventListener("touchend", le);
320
- }), Qe(() => {
321
- window.removeEventListener("mousemove", oe), window.removeEventListener("mouseup", le), window.removeEventListener("touchmove", oe), window.removeEventListener("touchend", le), clearTimeout(Be.value), R.value && (H.value && R.value.unobserve(H.value), R.value.disconnect());
321
+ }), Ze(() => {
322
+ window.removeEventListener("mousemove", oe), window.removeEventListener("mouseup", le), window.removeEventListener("touchmove", oe), window.removeEventListener("touchend", le), clearTimeout(Be.value), X.value && (H.value && X.value.unobserve(H.value), X.value.disconnect());
322
323
  });
323
324
  const de = h(!1);
324
- function Ct(t) {
325
+ function je(t) {
325
326
  de.value = t, pe.value += 1;
326
327
  }
327
328
  function Mt(t) {
@@ -330,10 +331,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
330
331
  function xt(t) {
331
332
  p.value || (m.value = t);
332
333
  }
333
- function je(t) {
334
+ function De(t) {
334
335
  return !p.value && !w.value && !m.value ? 0.8 : (p.value ? p.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : m.value?.id === t.id) ? 1 : 0.1;
335
336
  }
336
- function De(t) {
337
+ function Ue(t) {
337
338
  return !p.value && !w.value && !m.value || (p.value ? p.value === t.id : w.value ? w.value.id === t.id : [m.value?.source.groupId, m.value?.target.groupId].includes(t.id)) ? 1 : 0.3;
338
339
  }
339
340
  const K = h(!1);
@@ -343,34 +344,34 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
343
344
  function Ve() {
344
345
  Z.value.showTable = !Z.value.showTable;
345
346
  }
346
- function At() {
347
+ function It() {
347
348
  return M.value;
348
349
  }
349
- const D = h(null);
350
+ const U = h(null);
350
351
  function Ye() {
351
352
  const t = a.value.initialRotation;
352
- D.value !== null && cancelAnimationFrame(D.value);
353
+ U.value !== null && cancelAnimationFrame(U.value);
353
354
  const o = () => {
354
- x.value += (t - x.value) * 0.05, Math.abs(x.value - t) < 0.1 ? (x.value = t, D.value = null) : D.value = requestAnimationFrame(o);
355
+ x.value += (t - x.value) * 0.05, Math.abs(x.value - t) < 0.1 ? (x.value = t, U.value = null) : U.value = requestAnimationFrame(o);
355
356
  };
356
- D.value = requestAnimationFrame(o);
357
+ U.value = requestAnimationFrame(o);
357
358
  }
358
- Qe(() => {
359
- D.value !== null && cancelAnimationFrame(D.value);
359
+ Ze(() => {
360
+ U.value !== null && cancelAnimationFrame(U.value);
360
361
  });
361
- function Ue(t) {
362
+ function Ge(t) {
362
363
  t === p.value ? (p.value = null, te("selectLegend", null)) : (p.value = t, te("selectLegend", M.value.groups.find((o) => o.id === t)));
363
364
  }
364
- const Ge = C(() => M.value.groups.map((t, o) => ({
365
+ const We = C(() => M.value.groups.map((t, o) => ({
365
366
  name: t.name,
366
367
  color: t.color,
367
368
  shape: "circle",
368
369
  patternIndex: o,
369
370
  pattern: `pattern_${S.value}_${o}`,
370
371
  id: t.id,
371
- select: () => Ue(t.id),
372
+ select: () => Ge(t.id),
372
373
  opacity: p.value ? p.value === t.id ? 1 : 0.3 : 1
373
- }))), It = C(() => ({
374
+ }))), At = C(() => ({
374
375
  cy: "chord-div-legend",
375
376
  backgroundColor: a.value.style.chart.legend.backgroundColor,
376
377
  color: a.value.style.chart.legend.color,
@@ -407,8 +408,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
407
408
  config: e
408
409
  };
409
410
  });
410
- function We(t = null) {
411
- Ot(() => {
411
+ function qe(t = null) {
412
+ Bt(() => {
412
413
  const o = y.value.matrix.map((u, s) => [
413
414
  [y.value.labels[s] || s],
414
415
  u
@@ -419,20 +420,27 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
419
420
  [""],
420
421
  ...y.value.labels.map((u, s) => [u || s])
421
422
  ]
422
- ].concat(o), l = Dt(e);
423
+ ].concat(o), l = Ut(e);
423
424
  t ? t(l) : Vt({ csvContent: l, title: a.value.style.chart.title.text || "vue-ui-chord" });
424
425
  });
425
426
  }
426
- return at({
427
- getData: At,
428
- generateCsv: We,
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 };
431
+ }
432
+ return ot({
433
+ getData: It,
434
+ getImage: Pt,
435
+ generateCsv: qe,
429
436
  generateImage: _e,
430
437
  generatePdf: Pe,
431
438
  toggleAnnotator: ve,
432
- toggleTable: Ve
439
+ toggleTable: Ve,
440
+ toggleFullscreen: je
433
441
  }), (t, o) => (n(), i("div", {
434
442
  ref_key: "chordChart",
435
- ref: W,
443
+ ref: R,
436
444
  class: F({
437
445
  "vue-ui-chord": !0,
438
446
  "vue-data-ui-wrapper-fullscreen": de.value,
@@ -443,7 +451,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
443
451
  onMouseenter: o[4] || (o[4] = () => d(Me)(!0)),
444
452
  onMouseleave: o[5] || (o[5] = () => d(Me)(!1))
445
453
  }, [
446
- a.value.userOptions.buttons.annotator && d(Q) ? (n(), U(d(ut), {
454
+ a.value.userOptions.buttons.annotator && d(Q) ? (n(), G(d(it), {
447
455
  key: 0,
448
456
  color: a.value.style.chart.color,
449
457
  backgroundColor: a.value.style.chart.backgroundColor,
@@ -452,7 +460,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
452
460
  onClose: ve
453
461
  }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
454
462
  $(t.$slots, "userConfig", {}, void 0, !0),
455
- vt.value ? (n(), i("div", {
463
+ ht.value ? (n(), i("div", {
456
464
  key: 1,
457
465
  ref_key: "noTitle",
458
466
  ref: ke,
@@ -465,7 +473,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
465
473
  ref: be,
466
474
  style: "width:100%;background:transparent;padding-bottom:24px"
467
475
  }, [
468
- (n(), U(Zt, {
476
+ (n(), G(Jt, {
469
477
  key: `title_${$e.value}`,
470
478
  config: {
471
479
  title: {
@@ -479,13 +487,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
479
487
  }
480
488
  }, null, 8, ["config"]))
481
489
  ], 512)) : v("", !0),
482
- a.value.userOptions.show && L.value && (d(xe) || d(ce)) ? (n(), U(d(ct), {
490
+ a.value.userOptions.show && L.value && (d(xe) || d(ce)) ? (n(), G(d(dt), {
483
491
  ref: "details",
484
492
  key: `user_option_${pe.value}`,
485
493
  backgroundColor: a.value.style.chart.backgroundColor,
486
494
  color: a.value.style.chart.color,
487
- isPrinting: d(Ae),
488
- isImaging: d(Ie),
495
+ isPrinting: d(Ie),
496
+ isImaging: d(Ae),
489
497
  uid: S.value,
490
498
  hasTooltip: !1,
491
499
  hasPdf: a.value.userOptions.buttons.pdf,
@@ -495,23 +503,23 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
495
503
  hasLabel: !1,
496
504
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
497
505
  isFullscreen: de.value,
498
- chartElement: W.value,
506
+ chartElement: R.value,
499
507
  position: a.value.userOptions.position,
500
508
  titles: { ...a.value.userOptions.buttonTitles },
501
509
  hasAnnotator: a.value.userOptions.buttons.annotator,
502
510
  isAnnotation: K.value,
503
511
  callbacks: a.value.userOptions.callbacks,
504
512
  printScale: a.value.userOptions.print.scale,
505
- onToggleFullscreen: Ct,
513
+ onToggleFullscreen: je,
506
514
  onGeneratePdf: d(Pe),
507
- onGenerateCsv: We,
515
+ onGenerateCsv: qe,
508
516
  onGenerateImage: d(_e),
509
517
  onToggleTable: Ve,
510
518
  onToggleAnnotator: ve,
511
519
  style: E({
512
520
  visibility: d(xe) ? d(ce) ? "visible" : "hidden" : "visible"
513
521
  })
514
- }, Ze({ _: 2 }, [
522
+ }, Je({ _: 2 }, [
515
523
  t.$slots.menuIcon ? {
516
524
  name: "menuIcon",
517
525
  fn: _(({ isOpen: e, color: l }) => [
@@ -564,7 +572,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
564
572
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
565
573
  L.value ? (n(), i("svg", {
566
574
  key: 4,
567
- xmlns: d(Xt),
575
+ xmlns: d(jt),
568
576
  ref_key: "svgRef",
569
577
  ref: Q,
570
578
  viewBox: `0 0 ${T.value.width} ${T.value.height}`,
@@ -573,10 +581,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
573
581
  overflow: "visible"
574
582
  },
575
583
  class: F({ "vue-ui-chord-rotating": J.value, "vue-ui-chord-idle": !J.value }),
576
- onMousedown: Je(Re, ["prevent"]),
577
- onTouchstart: Je(Re, ["prevent"])
584
+ onMousedown: Ke(Re, ["prevent"]),
585
+ onTouchstart: Ke(Re, ["prevent"])
578
586
  }, [
579
- he(d(rt)),
587
+ he(d(ut)),
580
588
  t.$slots["chart-background"] ? (n(), i("foreignObject", {
581
589
  key: 0,
582
590
  x: 0,
@@ -588,28 +596,28 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
588
596
  }
589
597
  }, [
590
598
  $(t.$slots, "chart-background", {}, void 0, !0)
591
- ], 8, aa)) : v("", !0),
592
- a.value.style.chart.arcs.labels.curved ? (n(), i("defs", oa, [
593
- (n(!0), i(z, null, G(M.value.groups, (e, l) => (n(), i("path", {
599
+ ], 8, la)) : v("", !0),
600
+ 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", {
594
602
  key: `labelPath-${l}`,
595
603
  id: `labelPath-${l}_${S.value}`,
596
- d: wt(
604
+ d: Ct(
597
605
  e.startAngle,
598
606
  e.endAngle,
599
607
  (b.value.inner + b.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
600
608
  ),
601
609
  fill: "none"
602
- }, null, 8, la))), 128))
610
+ }, null, 8, na))), 128))
603
611
  ])) : v("", !0),
604
- t.$slots.pattern ? (n(), i("g", sa, [
605
- (n(!0), i(z, null, G(M.value.groups, (e, l) => (n(), i("defs", null, [
606
- $(t.$slots, "pattern", St({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${S.value}_${l}` }), void 0, !0)
612
+ t.$slots.pattern ? (n(), i("g", ra, [
613
+ (n(!0), i(z, null, W(M.value.groups, (e, l) => (n(), i("defs", null, [
614
+ $(t.$slots, "pattern", Tt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${S.value}_${l}` }), void 0, !0)
607
615
  ]))), 256))
608
616
  ])) : v("", !0),
609
617
  B("g", {
610
618
  transform: `translate(${T.value.width / 2}, ${T.value.height / 2}) rotate(${x.value})`
611
619
  }, [
612
- (n(!0), i(z, null, G(M.value.groups, (e, l) => (n(), i("g", null, [
620
+ (n(!0), i(z, null, W(M.value.groups, (e, l) => (n(), i("g", null, [
613
621
  (n(), i("path", {
614
622
  class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
615
623
  key: `arc-${l}`,
@@ -625,12 +633,12 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
625
633
  "stroke-linecap": "round",
626
634
  "stroke-linejoin": "round",
627
635
  style: E({
628
- opacity: De(e)
636
+ opacity: Ue(e)
629
637
  }),
630
638
  onMouseenter: () => Mt(e),
631
639
  onMouseleave: o[0] || (o[0] = (u) => w.value = null),
632
640
  onClick: (u) => te("selectGroup", e)
633
- }, null, 46, ra)),
641
+ }, null, 46, ia)),
634
642
  t.$slots.pattern ? (n(), i("path", {
635
643
  class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
636
644
  key: `arc-${l}`,
@@ -646,13 +654,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
646
654
  "stroke-linecap": "round",
647
655
  "stroke-linejoin": "round",
648
656
  style: E({
649
- opacity: De(e),
657
+ opacity: Ue(e),
650
658
  pointerEvents: "none"
651
659
  })
652
- }, null, 14, ua)) : v("", !0)
660
+ }, null, 14, ca)) : v("", !0)
653
661
  ]))), 256)),
654
662
  B("g", null, [
655
- (n(!0), i(z, null, G(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, {
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, {
656
664
  key: `ribbon-${e.id}`
657
665
  }, [
658
666
  e.source.value ? (n(), i("path", {
@@ -661,7 +669,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
661
669
  d: ae(e.source, e.target),
662
670
  fill: a.value.style.chart.backgroundColor,
663
671
  style: E({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
664
- }, null, 14, ia)) : v("", !0),
672
+ }, null, 14, da)) : v("", !0),
665
673
  e.source.value ? (n(), i("path", {
666
674
  key: 1,
667
675
  class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
@@ -671,7 +679,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
671
679
  "stroke-width": a.value.style.chart.ribbons.strokeWidth,
672
680
  "stroke-linecap": "round",
673
681
  "stroke-linejoin": "round",
674
- style: E({ opacity: je(e) }),
682
+ style: E({ opacity: De(e) }),
675
683
  onMouseenter: () => xt({
676
684
  ...e,
677
685
  path: ae(e.source, e.target),
@@ -682,7 +690,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
682
690
  color: y.value.colors[e.source.index]
683
691
  }),
684
692
  onMouseleave: o[1] || (o[1] = (l) => m.value = null)
685
- }, null, 46, ca)) : v("", !0),
693
+ }, null, 46, va)) : v("", !0),
686
694
  e.source.value && t.$slots.pattern ? (n(), i("path", {
687
695
  key: 2,
688
696
  class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
@@ -693,10 +701,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
693
701
  "stroke-linecap": "round",
694
702
  "stroke-linejoin": "round",
695
703
  style: E({
696
- opacity: je(e),
704
+ opacity: De(e),
697
705
  pointerEvents: "none"
698
706
  })
699
- }, null, 14, da)) : v("", !0)
707
+ }, null, 14, ha)) : v("", !0)
700
708
  ], 64))), 128)),
701
709
  m.value ? (n(), i("path", {
702
710
  key: 0,
@@ -710,7 +718,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
710
718
  style: {
711
719
  pointerEvents: "none"
712
720
  }
713
- }, null, 8, va)) : v("", !0),
721
+ }, null, 8, fa)) : v("", !0),
714
722
  m.value && t.$slots.pattern ? (n(), i("path", {
715
723
  key: 1,
716
724
  d: m.value.path,
@@ -723,10 +731,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
723
731
  style: {
724
732
  pointerEvents: "none"
725
733
  }
726
- }, null, 8, ha)) : v("", !0)
734
+ }, null, 8, ga)) : v("", !0)
727
735
  ]),
728
- (w.value || m.value || p.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", fa, [
729
- (n(!0), i(z, null, G(bt.value, (e) => (n(), i(z, {
736
+ (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, {
730
738
  key: e.id
731
739
  }, [
732
740
  B("line", {
@@ -737,7 +745,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
737
745
  stroke: a.value.style.chart.backgroundColor,
738
746
  "stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
739
747
  "pointer-events": "none"
740
- }, null, 8, ga),
748
+ }, null, 8, ba),
741
749
  B("line", {
742
750
  x1: e.midBaseX,
743
751
  y1: e.midBaseY,
@@ -746,7 +754,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
746
754
  stroke: a.value.style.chart.ribbons.labels.connector.stroke,
747
755
  "stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
748
756
  "pointer-events": "none"
749
- }, null, 8, pa),
757
+ }, null, 8, ma),
750
758
  a.value.style.chart.ribbons.labels.marker.show ? (n(), i("circle", {
751
759
  key: 0,
752
760
  cx: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
@@ -756,7 +764,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
756
764
  "stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
757
765
  fill: e.groupColor,
758
766
  "pointer-events": "none"
759
- }, null, 8, ba)) : v("", !0),
767
+ }, null, 8, ya)) : v("", !0),
760
768
  B("text", {
761
769
  transform: `
762
770
  translate(
@@ -765,56 +773,56 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
765
773
  ) rotate(${-x.value})
766
774
  `,
767
775
  fill: a.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : a.value.style.chart.ribbons.labels.color,
768
- "text-anchor": kt(e.theta),
776
+ "text-anchor": $t(e.theta),
769
777
  "font-size": a.value.style.chart.ribbons.labels.fontSize,
770
778
  "font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
771
779
  dy: ".35em",
772
780
  "pointer-events": "none"
773
- }, j(Xe(e.value)), 9, ma)
781
+ }, D(Xe(e.value)), 9, ka)
774
782
  ], 64))), 128))
775
783
  ])) : v("", !0),
776
- a.value.style.chart.arcs.labels.show ? (n(), i("g", ya, [
777
- a.value.style.chart.arcs.labels.curved ? (n(!0), i(z, { key: 0 }, G(M.value.groups, (e, l) => (n(), i("text", {
784
+ 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", {
778
786
  key: `curved-label-${l}`,
779
787
  "font-size": a.value.style.chart.arcs.labels.fontSize,
780
788
  "font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
781
- fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? d(jt)(y.value.colors[l]) : a.value.style.chart.arcs.labels.color
789
+ fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? d(Dt)(y.value.colors[l]) : a.value.style.chart.arcs.labels.color
782
790
  }, [
783
791
  B("textPath", {
784
792
  href: `#labelPath-${l}_${S.value}`,
785
793
  startOffset: "50%",
786
794
  "text-anchor": "middle"
787
- }, j(y.value.labels[l]) + j(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
795
+ }, D(y.value.labels[l]) + D(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
788
796
  p: " (",
789
797
  v: isNaN(e.proportion) ? 0 : e.proportion * 100,
790
798
  s: "%)",
791
799
  r: a.value.style.chart.arcs.labels.roundingPercentage
792
- }) : ""), 9, $a)
793
- ], 8, ka))), 128)) : !w.value && !m.value && !p.value ? (n(!0), i(z, { key: 1 }, G(M.value.groups, (e, l) => (n(), i("text", {
800
+ }) : ""), 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", {
794
802
  key: `label-${l}`,
795
803
  transform: `
796
- ${$t((e.startAngle + e.endAngle) / 2)}
804
+ ${wt((e.startAngle + e.endAngle) / 2)}
797
805
  rotate(${-x.value})
798
806
  `,
799
807
  dy: ".35em",
800
- "text-anchor": yt(e) > Math.PI ? "end" : "start",
808
+ "text-anchor": kt(e) > Math.PI ? "end" : "start",
801
809
  "font-size": a.value.style.chart.arcs.labels.fontSize,
802
810
  "font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
803
811
  fill: a.value.style.chart.arcs.labels.color
804
- }, j(y.value.labels[l]) + j(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
812
+ }, D(y.value.labels[l]) + D(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
805
813
  p: " (",
806
814
  v: isNaN(e.proportion) ? 0 : e.proportion * 100,
807
815
  s: "%)",
808
816
  r: a.value.style.chart.arcs.labels.roundingPercentage
809
- }) : ""), 9, wa))), 128)) : v("", !0)
817
+ }) : ""), 9, Ma))), 128)) : v("", !0)
810
818
  ])) : v("", !0)
811
- ], 8, na),
819
+ ], 8, ua),
812
820
  $(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
813
- ], 42, ta)) : v("", !0),
814
- t.$slots.watermark ? (n(), i("div", Ca, [
815
- $(t.$slots, "watermark", re(ue({ isPrinting: d(Ae) || d(Ie) })), void 0, !0)
821
+ ], 42, oa)) : v("", !0),
822
+ t.$slots.watermark ? (n(), i("div", xa, [
823
+ $(t.$slots, "watermark", re(ue({ isPrinting: d(Ie) || d(Ae) })), void 0, !0)
816
824
  ])) : v("", !0),
817
- L.value ? v("", !0) : (n(), U(d(it), {
825
+ L.value ? v("", !0) : (n(), G(d(ct), {
818
826
  key: 6,
819
827
  config: {
820
828
  type: "chord",
@@ -830,26 +838,26 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
830
838
  ref_key: "chartLegend",
831
839
  ref: me
832
840
  }, [
833
- a.value.style.chart.legend.show ? (n(), U(Qt, {
841
+ a.value.style.chart.legend.show ? (n(), G(Zt, {
834
842
  key: `legend_${Ce.value}`,
835
- legendSet: Ge.value,
836
- config: It.value,
837
- onClickMarker: o[2] || (o[2] = ({ legend: e }) => Ue(e.id))
838
- }, Ze({
843
+ legendSet: We.value,
844
+ config: At.value,
845
+ onClickMarker: o[2] || (o[2] = ({ legend: e }) => Ge(e.id))
846
+ }, Je({
839
847
  item: _(({ legend: e }) => [
840
848
  B("div", {
841
849
  style: E({
842
850
  opacity: p.value ? p.value === e.id ? 1 : 0.3 : 1
843
851
  }),
844
852
  onClick: (l) => e.select()
845
- }, j(e.name), 13, Ma)
853
+ }, D(e.name), 13, Ia)
846
854
  ]),
847
855
  _: 2
848
856
  }, [
849
857
  t.$slots.pattern ? {
850
858
  name: "legend-pattern",
851
859
  fn: _(({ legend: e, index: l }) => [
852
- he(Jt, {
860
+ he(Kt, {
853
861
  shape: e.shape,
854
862
  radius: 30,
855
863
  stroke: "none",
@@ -860,7 +868,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
860
868
  key: "0"
861
869
  } : void 0
862
870
  ]), 1032, ["legendSet", "config"])) : v("", !0),
863
- $(t.$slots, "legend", { legend: Ge.value }, void 0, !0)
871
+ $(t.$slots, "legend", { legend: We.value }, void 0, !0)
864
872
  ], 512),
865
873
  t.$slots.source ? (n(), i("div", {
866
874
  key: 7,
@@ -870,7 +878,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
870
878
  }, [
871
879
  $(t.$slots, "source", {}, void 0, !0)
872
880
  ], 512)) : v("", !0),
873
- x.value !== a.value.initialRotation ? (n(), i("div", xa, [
881
+ x.value !== a.value.initialRotation ? (n(), i("div", Aa, [
874
882
  $(t.$slots, "reset-action", { reset: Ye }, () => [
875
883
  B("button", {
876
884
  "data-cy-reset": "",
@@ -882,14 +890,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
882
890
  }),
883
891
  onClick: Ye
884
892
  }, [
885
- he(d(st), {
893
+ he(d(nt), {
886
894
  name: "refresh",
887
895
  stroke: a.value.style.chart.color
888
896
  }, null, 8, ["stroke"])
889
897
  ], 4)
890
898
  ], !0)
891
899
  ])) : v("", !0),
892
- L.value ? (n(), U(d(lt), {
900
+ L.value ? (n(), G(d(st), {
893
901
  key: 9,
894
902
  hideDetails: "",
895
903
  config: {
@@ -906,7 +914,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
906
914
  }
907
915
  }, {
908
916
  content: _(() => [
909
- (n(), U(d(nt), {
917
+ (n(), G(d(rt), {
910
918
  key: `table_${we.value}`,
911
919
  colNames: ne.value.colNames,
912
920
  head: ne.value.head,
@@ -916,19 +924,19 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
916
924
  onClose: o[3] || (o[3] = (e) => Z.value.showTable = !1)
917
925
  }, {
918
926
  th: _(({ th: e }) => [
919
- Tt(j(e.name), 1)
927
+ Ot(D(e.name), 1)
920
928
  ]),
921
929
  td: _(({ td: e }) => [
922
- B("div", Aa, j(e.name ? e.name : Xe(e)), 1)
930
+ B("div", Pa, D(e.name ? e.name : Xe(e)), 1)
923
931
  ]),
924
932
  _: 1
925
933
  }, 8, ["colNames", "head", "body", "config", "title"]))
926
934
  ]),
927
935
  _: 1
928
936
  }, 8, ["config"])) : v("", !0)
929
- ], 46, ea));
937
+ ], 46, aa));
930
938
  }
931
- }, Ra = /* @__PURE__ */ Kt(Ia, [["__scopeId", "data-v-f06fb39d"]]);
939
+ }, Da = /* @__PURE__ */ ta(_a, [["__scopeId", "data-v-ab90a89e"]]);
932
940
  export {
933
- Ra as default
941
+ Da as default
934
942
  };