vue-data-ui 3.4.9 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/README.md +114 -37
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
  73. package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
  79. package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
  80. package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
  82. package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
  83. package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
  86. package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
  88. package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
  89. package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
  90. package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
  91. package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
  92. package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
  94. package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
  95. package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
  96. package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
  97. package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
  100. package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
  103. package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
  104. package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
  105. package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
  106. package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
  107. package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
  111. package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
  112. package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
  113. package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
  119. package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
  120. package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
  121. package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
  123. package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
  126. package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
  127. package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
  128. package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
  129. package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
  130. package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
  131. package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
  132. package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
  133. package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
  134. package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
  135. package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
  136. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
  140. package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
  141. package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
  142. package/dist/vue-ui-onion-DTY2p87s.js +0 -873
  143. package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
  144. package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
  145. package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
  146. package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
  147. package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
  148. package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
  149. package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
  150. package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
  151. package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
@@ -1,7 +1,7 @@
1
- import { useCssVars as dt, computed as g, defineAsyncComponent as Z, ref as r, toRefs as ft, watch as ee, shallowRef as Le, onMounted as gt, onBeforeUnmount as yt, createElementBlock as i, openBlock as n, unref as o, normalizeStyle as z, createBlock as j, createCommentVNode as f, createSlots as ht, withCtx as O, renderSlot as y, normalizeProps as U, guardReactiveProps as D, normalizeClass as te, createVNode as mt, createElementVNode as pt, Fragment as $, renderList as S, mergeProps as Pe, toDisplayString as G, createTextVNode as ze } from "vue";
2
- import { c as bt, t as kt, b as wt, p as Oe, e as xt, o as Se, f as Ie, g as $t, X as At, J as Me, a as le, d as se, R as ae } from "./lib-C_mNZmhD.js";
1
+ import { useCssVars as dt, computed as y, defineAsyncComponent as Z, ref as u, toRefs as ft, watch as ee, shallowRef as Le, onMounted as gt, onBeforeUnmount as yt, createElementBlock as i, openBlock as n, unref as o, normalizeStyle as I, createBlock as D, createCommentVNode as g, withCtx as h, renderSlot as d, normalizeProps as w, guardReactiveProps as x, createSlots as ht, normalizeClass as te, createVNode as mt, createElementVNode as pt, Fragment as _, renderList as M, mergeProps as Pe, toDisplayString as G, createTextVNode as ze } from "vue";
2
+ import { c as bt, t as kt, b as wt, p as Oe, e as xt, o as Se, f as Ie, g as $t, X as At, J as Me, a as le, d as ae, R as se } from "./lib-C_mNZmhD.js";
3
3
  import { t as Ct, u as _t } from "./useResponsive-DfdjqQps.js";
4
- import { u as Lt, a as Ee } from "./useNestedProp-BjZe1Y85.js";
4
+ import { u as Lt, a as Ee } from "./useNestedProp-DjGXw6S9.js";
5
5
  import { u as Pt, B as zt } from "./BaseScanner-BgWxam9d.js";
6
6
  import { u as Ot } from "./usePrinter-DTzqpYKF.js";
7
7
  import { u as St } from "./useSvgExport-DrjCWun4.js";
@@ -9,7 +9,7 @@ import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
9
9
  import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
10
10
  import { u as Et } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
11
11
  import Bt from "./img-BecE5qXd.js";
12
- import Ft from "./Title-l36lOBMx.js";
12
+ import Ft from "./Title-isbiM8i8.js";
13
13
  import { t as Rt } from "./themes-AUNCOb2G.js";
14
14
  import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["cx", "cy", "r", "stroke", "stroke-width"], Gt = { key: 1 }, Vt = ["stroke", "d", "stroke-width"], Wt = { style: { "pointer-events": "none" } }, Xt = ["cx", "cy", "fill", "r", "stroke"], Yt = ["x", "y", "fill", "font-size"], qt = { key: 2 }, Ht = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Jt = { style: { "pointer-events": "none" } }, Kt = ["cx", "cy", "fill", "r", "stroke"], Qt = ["x", "y", "fill", "font-size"], Zt = ["text-anchor", "transform", "x", "y", "font-weight", "font-size", "fill", "text-decoration", "onClick", "onMouseenter", "onMouseleave"], el = ["cx", "cy", "fill", "stroke", "r", "onClick", "onMouseenter", "onMouseleave"], tl = {
@@ -33,12 +33,12 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
33
33
  },
34
34
  setup(Be, { expose: Fe }) {
35
35
  dt((e) => ({
36
- c0ba409a: Ye.value,
37
- v431c6012: Xe.value,
38
- v556fd074: qe.value
36
+ v09389e9a: Ye.value,
37
+ v5c5a5379: Xe.value,
38
+ v9edd1cca: qe.value
39
39
  }));
40
- const Re = Z(() => import("./PenAndPaper-DSvu9dwa.js")), Te = Z(() => import("./UserOptions-CGnQt6Fd.js")), Ne = Z(() => import("./PackageVersion-CTUqGqWV.js")), { vue_ui_relation_circle: je } = Lt(), m = Be, Ue = g(() => !!m.dataset && Object.keys(m.dataset).length), I = r(bt()), ne = r(0), A = r(null), ie = r(null), oe = r(null), ue = r(null), re = r(0), l = r(X()), { loading: ce, FINAL_DATASET: De, manualLoading: V } = Pt({
41
- ...ft(m),
40
+ const Re = Z(() => import("./PenAndPaper-SZQIAgkg.js")), Te = Z(() => import("./UserOptions-CGnQt6Fd.js")), Ne = Z(() => import("./PackageVersion-DQvyATVa.js")), { vue_ui_relation_circle: je } = Lt(), p = Be, Ue = y(() => !!p.dataset && Object.keys(p.dataset).length), E = u(bt()), ne = u(0), L = u(null), ie = u(null), oe = u(null), re = u(null), ue = u(0), l = u(X()), { loading: ce, FINAL_DATASET: De, manualLoading: V } = Pt({
41
+ ...ft(p),
42
42
  FINAL_CONFIG: l,
43
43
  prepareConfig: X,
44
44
  skeletonDataset: [
@@ -64,61 +64,61 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
64
64
  }
65
65
  }
66
66
  })
67
- }), { userOptionsVisible: W, setUserOptionsVisibility: ve, keepUserOptionState: de } = It({ config: l.value }), { svgRef: E } = Mt({ config: l.value.style.title });
67
+ }), { userOptionsVisible: W, setUserOptionsVisibility: ve, keepUserOptionState: de } = It({ config: l.value }), { svgRef: F } = Mt({ config: l.value.style.title });
68
68
  function X() {
69
69
  const e = Ee({
70
- userConfig: m.config,
70
+ userConfig: p.config,
71
71
  defaultConfig: je
72
72
  });
73
73
  return e.theme ? {
74
74
  ...Ee({
75
- userConfig: Rt.vue_ui_relation_circle[e.theme] || m.config,
75
+ userConfig: Rt.vue_ui_relation_circle[e.theme] || p.config,
76
76
  defaultConfig: e
77
77
  }),
78
78
  customPalette: wt[e.theme] || Oe
79
79
  } : e;
80
80
  }
81
- ee(() => m.config, (e) => {
82
- l.value = X(), W.value = !l.value.userOptions.showOnChartHover, C.value = l.value.style.size, h.value = l.value.style.weightLabels.size, F.value = l.value.style.plot.radius, M.value = l.value.style.labels.fontSize, u.value.height = l.value.style.size, u.value.width = l.value.style.size, be(), re.value += 1;
83
- }, { deep: !0 }), ee(() => m.dataset, (e) => {
81
+ ee(() => p.config, (e) => {
82
+ l.value = X(), W.value = !l.value.userOptions.showOnChartHover, P.value = l.value.style.size, m.value = l.value.style.weightLabels.size, T.value = l.value.style.plot.radius, B.value = l.value.style.labels.fontSize, r.value.height = l.value.style.size, r.value.width = l.value.style.size, be(), ue.value += 1;
83
+ }, { deep: !0 }), ee(() => p.dataset, (e) => {
84
84
  Array.isArray(e) && e.length > 0 && (V.value = !1);
85
85
  }, { deep: !0 });
86
86
  const { isPrinting: fe, isImaging: ge, generatePdf: ye, generateImage: he } = Ot({
87
- elementId: `relation_circle_${I.value}`,
87
+ elementId: `relation_circle_${E.value}`,
88
88
  fileName: l.value.style.title.text || "vue-ui-relation-circle",
89
89
  options: l.value.userOptions.print
90
- }), Ge = g(() => l.value.userOptions.show && !l.value.style.title.text), me = g(() => xt(l.value.customPalette)), k = r([]), p = r([]), d = r({}), b = r([]), Ve = r(0), B = g(() => De.value.slice(0, l.value.style.limit).map((e) => {
91
- const s = Array.isArray(e.relations) ? e.relations : [];
90
+ }), Ge = y(() => l.value.userOptions.show && !l.value.style.title.text), me = y(() => xt(l.value.customPalette)), $ = u([]), b = u([]), f = u({}), k = u([]), Ve = u(0), R = y(() => De.value.slice(0, l.value.style.limit).map((e) => {
91
+ const a = Array.isArray(e.relations) ? e.relations : [];
92
92
  return {
93
93
  ...e,
94
- weights: Array.isArray(e.weights) ? e.weights : new Array(s.length).fill(1),
95
- relations: s
94
+ weights: Array.isArray(e.weights) ? e.weights : new Array(a.length).fill(1),
95
+ relations: a
96
96
  };
97
97
  }));
98
- ee(B, () => {
99
- k.value = [], p.value = [], Y(), q();
98
+ ee(R, () => {
99
+ $.value = [], b.value = [], Y(), q();
100
100
  });
101
- const C = r(l.value.style.size), h = r(l.value.style.weightLabels.size), F = r(l.value.style.plot.radius), M = r(l.value.style.labels.fontSize), u = r({
101
+ const P = u(l.value.style.size), m = u(l.value.style.weightLabels.size), T = u(l.value.style.plot.radius), B = u(l.value.style.labels.fontSize), r = u({
102
102
  height: l.value.style.size,
103
103
  width: l.value.style.size
104
- }), _ = g({
104
+ }), z = y({
105
105
  get() {
106
- return C.value * l.value.style.circle.radiusProportion;
106
+ return P.value * l.value.style.circle.radiusProportion;
107
107
  },
108
108
  set(e) {
109
109
  return e;
110
110
  }
111
- }), We = g(() => l.value.style.links.curved), Xe = g(() => `${l.value.style.animation.speedMs}ms`), Ye = g(() => _.value * 2), qe = g(() => _.value * 4), w = Le(null), L = Le(null);
111
+ }), We = y(() => l.value.style.links.curved), Xe = y(() => `${l.value.style.animation.speedMs}ms`), Ye = y(() => z.value * 2), qe = y(() => z.value * 4), A = Le(null), O = Le(null);
112
112
  gt(() => {
113
- be(), document.getElementById(`relation_circle_${I.value}`).addEventListener("click", we);
113
+ be(), document.getElementById(`relation_circle_${E.value}`).addEventListener("click", we);
114
114
  });
115
- const pe = g(() => l.value.debug);
115
+ const pe = y(() => l.value.debug);
116
116
  function be() {
117
- if (Se(m.dataset) ? (Ie({
117
+ if (Se(p.dataset) ? (Ie({
118
118
  componentName: "VueUiRelationCircle",
119
119
  type: "dataset",
120
120
  debug: pe.value
121
- }), V.value = !0) : m.dataset.forEach((e, s) => {
121
+ }), V.value = !0) : p.dataset.forEach((e, a) => {
122
122
  $t({
123
123
  datasetObject: e,
124
124
  requiredAttributes: ["id", "label", "relations", "weights"]
@@ -127,76 +127,76 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
127
127
  componentName: "VueUiRelationCircle",
128
128
  type: "datasetSerieAttribute",
129
129
  property: t,
130
- index: s,
130
+ index: a,
131
131
  debug: pe.value
132
132
  });
133
133
  });
134
- }), Se(m.dataset) || (V.value = l.value.loading), l.value.responsive) {
134
+ }), Se(p.dataset) || (V.value = l.value.loading), l.value.responsive) {
135
135
  const e = Ct(() => {
136
- const { width: s, height: t } = _t({
137
- chart: A.value,
136
+ const { width: a, height: t } = _t({
137
+ chart: L.value,
138
138
  title: l.value.style.title.text ? ie.value : null,
139
139
  source: oe.value,
140
- noTitle: ue.value
140
+ noTitle: re.value
141
141
  });
142
142
  requestAnimationFrame(() => {
143
- C.value = Math.min(s, t), u.value.width = Math.max(0.1, s), u.value.height = Math.max(0.1, t - 12), _.value = C.value * l.value.style.circle.radiusProportion, k.value = [], p.value = [], Y(), q(), ke(), l.value.responsiveProportionalSizing ? (h.value = ae({
144
- relator: C.value,
143
+ P.value = Math.min(a, t), r.value.width = Math.max(0.1, a), r.value.height = Math.max(0.1, t - 12), z.value = P.value * l.value.style.circle.radiusProportion, $.value = [], b.value = [], Y(), q(), ke(), l.value.responsiveProportionalSizing ? (m.value = se({
144
+ relator: P.value,
145
145
  adjuster: l.value.style.size,
146
146
  source: l.value.style.weightLabels.size,
147
147
  threshold: 6,
148
148
  fallback: 6
149
- }), F.value = ae({
150
- relator: C.value,
149
+ }), T.value = se({
150
+ relator: P.value,
151
151
  adjuster: l.value.style.size,
152
152
  source: l.value.style.plot.radius,
153
153
  threshold: 1,
154
154
  fallback: 1
155
- }), M.value = ae({
156
- relator: C.value,
155
+ }), B.value = se({
156
+ relator: P.value,
157
157
  adjuster: l.value.style.size,
158
158
  source: l.value.style.labels.fontSize,
159
159
  threshold: 6,
160
160
  fallback: 6
161
- })) : (h.value = l.value.style.weightLabels.size, F.value = l.value.style.plot.radius, M.value = l.value.style.labels.fontSize);
161
+ })) : (m.value = l.value.style.weightLabels.size, T.value = l.value.style.plot.radius, B.value = l.value.style.labels.fontSize);
162
162
  });
163
163
  });
164
- w.value && (L.value && w.value.unobserve(L.value), w.value.disconnect()), w.value = new ResizeObserver(e), L.value = A.value.parentNode, w.value.observe(L.value);
164
+ A.value && (O.value && A.value.unobserve(O.value), A.value.disconnect()), A.value = new ResizeObserver(e), O.value = L.value.parentNode, A.value.observe(O.value);
165
165
  } else
166
- k.value = [], p.value = [], Y(), q();
166
+ $.value = [], b.value = [], Y(), q();
167
167
  ke();
168
168
  }
169
169
  yt(() => {
170
- document.getElementById(`relation_circle_${I.value}`).removeEventListener("click", we), w.value && (L.value && w.value.unobserve(L.value), w.value.disconnect());
170
+ document.getElementById(`relation_circle_${E.value}`).removeEventListener("click", we), A.value && (O.value && A.value.unobserve(O.value), A.value.disconnect());
171
171
  });
172
172
  const { autoSizeLabels: ke } = Et({
173
- svgRef: E,
173
+ svgRef: F,
174
174
  fontSize: l.value.style.labels.fontSize,
175
175
  minFontSize: l.value.style.labels.minFontSize,
176
- sizeRef: M,
176
+ sizeRef: B,
177
177
  labelClass: ".vue-ui-relation-circle-legend"
178
178
  });
179
179
  function we(e) {
180
- const s = e.target;
181
- s && Array.from(s.classList).includes("vue-ui-user-options") || s && Array.from(s.classList).includes("vue-ui-user-options-summary") || s && Array.from(s.classList).includes("vue-data-ui-button") || s && Array.from(s.classList).includes("vue-ui-relation-circle-legend") || (d.value = {}, b.value = []);
180
+ const a = e.target;
181
+ a && Array.from(a.classList).includes("vue-ui-user-options") || a && Array.from(a.classList).includes("vue-ui-user-options-summary") || a && Array.from(a.classList).includes("vue-data-ui-button") || a && Array.from(a.classList).includes("vue-ui-relation-circle-legend") || (f.value = {}, k.value = []);
182
182
  }
183
183
  function Y() {
184
- const e = 6.28319 / B.value.length, s = 360 / B.value.length;
185
- let t = 0, a = 0;
186
- B.value.forEach((c, v) => {
187
- const K = c.weights.reduce((ct, vt) => ct + vt, 0), Q = _.value * Math.cos(t) + u.value.width / 2, rt = _.value * Math.sin(t) + u.value.height / 2 + l.value.style.circle.offsetY;
188
- k.value.push({ x: Q, y: rt, ...c, color: c.color ? c.color : me.value[v] ? me.value[v] : Oe[v], regAngle: a, totalWeight: K }), t += e, a += s;
184
+ const e = 6.28319 / R.value.length, a = 360 / R.value.length;
185
+ let t = 0, s = 0;
186
+ R.value.forEach((c, v) => {
187
+ const K = c.weights.reduce((ct, vt) => ct + vt, 0), Q = z.value * Math.cos(t) + r.value.width / 2, ut = z.value * Math.sin(t) + r.value.height / 2 + l.value.style.circle.offsetY;
188
+ $.value.push({ x: Q, y: ut, ...c, color: c.color ? c.color : me.value[v] ? me.value[v] : Oe[v], regAngle: s, totalWeight: K }), t += e, s += a;
189
189
  });
190
190
  }
191
- function He(e, s) {
192
- const t = (e.x + s.x) / 2, a = (e.y + s.y) / 2;
193
- return { x: t, y: a };
191
+ function He(e, a) {
192
+ const t = (e.x + a.x) / 2, s = (e.y + a.y) / 2;
193
+ return { x: t, y: s };
194
194
  }
195
195
  function q() {
196
- p.value = [], k.value.forEach((e) => {
197
- k.value.filter((t) => t.relations.includes(e.id)).forEach((t, a) => {
196
+ b.value = [], $.value.forEach((e) => {
197
+ $.value.filter((t) => t.relations.includes(e.id)).forEach((t, s) => {
198
198
  const c = t.relations.indexOf(e.id);
199
- p.value.push({
199
+ b.value.push({
200
200
  weight: t.weights[c] ? t.weights[c] : 0,
201
201
  relationId: `${e.id}_${t.id}`,
202
202
  x1: e.x,
@@ -218,24 +218,24 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
218
218
  });
219
219
  }
220
220
  function Je(e) {
221
- const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, a = { x: e.x1, y: e.y1 }, c = {
222
- x: u.value.width / 2,
223
- y: u.value.height / 2 + l.value.style.circle.offsetY
224
- }, v = 0.5, K = Math.pow(1 - v, 3) * s.x + 3 * Math.pow(1 - v, 2) * v * a.x + 3 * (1 - v) * Math.pow(v, 2) * c.x + Math.pow(v, 3) * t.x, Q = Math.pow(1 - v, 3) * s.y + 3 * Math.pow(1 - v, 2) * v * a.y + 3 * (1 - v) * Math.pow(v, 2) * c.y + Math.pow(v, 3) * t.y;
221
+ const a = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, s = { x: e.x1, y: e.y1 }, c = {
222
+ x: r.value.width / 2,
223
+ y: r.value.height / 2 + l.value.style.circle.offsetY
224
+ }, v = 0.5, K = Math.pow(1 - v, 3) * a.x + 3 * Math.pow(1 - v, 2) * v * s.x + 3 * (1 - v) * Math.pow(v, 2) * c.x + Math.pow(v, 3) * t.x, Q = Math.pow(1 - v, 3) * a.y + 3 * Math.pow(1 - v, 2) * v * s.y + 3 * (1 - v) * Math.pow(v, 2) * c.y + Math.pow(v, 3) * t.y;
225
225
  return { x: K, y: Q };
226
226
  }
227
- const Ke = g(() => Math.max(...p.value.map((e) => e.weight)));
227
+ const Ke = y(() => Math.max(...b.value.map((e) => e.weight)));
228
228
  function Qe(e) {
229
- return Object.hasOwn(d.value, "x") ? b.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
229
+ return Object.hasOwn(f.value, "x") ? k.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
230
230
  }
231
- function x(e) {
231
+ function C(e) {
232
232
  return e.colorSource;
233
233
  }
234
234
  function xe(e) {
235
- return Object.hasOwn(d.value, "x") ? b.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}` ? `opacity:1;stroke-width:${H(e)}` : "opacity: 0" : "opacity: 1";
235
+ return Object.hasOwn(f.value, "x") ? k.value.includes(e.id) && e.relationId === `${e.id}_${f.value.id}` || e.relationId === `${f.value.id}_${e.id}` ? `opacity:1;stroke-width:${H(e)}` : "opacity: 0" : "opacity: 1";
236
236
  }
237
- function P(e) {
238
- return Object.hasOwn(d.value, "x") ? !!(b.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}`) : !1;
237
+ function S(e) {
238
+ return Object.hasOwn(f.value, "x") ? !!(k.value.includes(e.id) && e.relationId === `${e.id}_${f.value.id}` || e.relationId === `${f.value.id}_${e.id}`) : !1;
239
239
  }
240
240
  function Ze(e) {
241
241
  return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
@@ -244,95 +244,115 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
244
244
  return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
245
245
  }
246
246
  function tt(e) {
247
- return Object.hasOwn(d.value, "x") ? d.value.id === e.id || b.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
247
+ return Object.hasOwn(f.value, "x") ? f.value.id === e.id || k.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
248
248
  }
249
249
  function lt(e) {
250
250
  return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
251
251
  }
252
- const R = r(null);
253
- function $e(e, s) {
254
- R.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s });
252
+ const N = u(null);
253
+ function $e(e, a) {
254
+ N.value = a, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: a });
255
255
  }
256
- function Ae(e, s) {
257
- R.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s });
256
+ function Ae(e, a) {
257
+ N.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: a });
258
258
  }
259
- function Ce(e, s) {
260
- l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: e, seriesIndex: s }), Ve.value = 360 - e.regAngle, d.value.id && e.id === d.value.id ? (d.value = {}, b.value = []) : (d.value = e, b.value = [...e.relations]);
259
+ function Ce(e, a) {
260
+ l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: e, seriesIndex: a }), Ve.value = 360 - e.regAngle, f.value.id && e.id === f.value.id ? (f.value = {}, k.value = []) : (f.value = e, k.value = [...e.relations]);
261
261
  }
262
262
  function H(e) {
263
- const s = e.weight / Ke.value * l.value.style.links.maxWidth;
264
- return Math.max(0.3, s);
263
+ const a = e.weight / Ke.value * l.value.style.links.maxWidth;
264
+ return Math.max(0.3, a);
265
265
  }
266
- const T = r(!1);
266
+ const j = u(!1);
267
267
  function _e(e) {
268
- T.value = e, ne.value += 1;
268
+ j.value = e, ne.value += 1;
269
269
  }
270
- const N = r(!1);
270
+ const U = u(!1);
271
271
  function J() {
272
- N.value = !N.value;
272
+ U.value = !U.value;
273
273
  }
274
- async function st({ scale: e = 2 } = {}) {
275
- if (!A.value) return;
276
- const { width: s, height: t } = A.value.getBoundingClientRect(), a = s / t, { imageUri: c, base64: v } = await Bt({ domElement: A.value, base64: !0, img: !0, scale: e });
274
+ async function at({ scale: e = 2 } = {}) {
275
+ if (!L.value) return;
276
+ const { width: a, height: t } = L.value.getBoundingClientRect(), s = a / t, { imageUri: c, base64: v } = await Bt({ domElement: L.value, base64: !0, img: !0, scale: e });
277
277
  return {
278
278
  imageUri: c,
279
279
  base64: v,
280
280
  title: l.value.style.title.text,
281
- width: s,
281
+ width: a,
282
282
  height: t,
283
- aspectRatio: a
283
+ aspectRatio: s
284
284
  };
285
285
  }
286
- const at = g(() => l.value.style.backgroundColor), nt = g(() => l.value.style.title), { exportSvg: it, getSvg: ot } = St({
287
- svg: E,
286
+ const st = y(() => l.value.style.backgroundColor), nt = y(() => l.value.style.title), { exportSvg: it, getSvg: ot } = St({
287
+ svg: F,
288
288
  title: nt,
289
- backgroundColor: at
289
+ backgroundColor: st
290
290
  });
291
- async function ut({ isCb: e }) {
291
+ async function rt({ isCb: e }) {
292
292
  if (e) {
293
- const { blob: s, url: t, text: a, dataUrl: c } = await ot();
294
- l.value.userOptions.callbacks.svg({ blob: s, url: t, text: a, dataUrl: c });
293
+ const { blob: a, url: t, text: s, dataUrl: c } = await ot();
294
+ l.value.userOptions.callbacks.svg({ blob: a, url: t, text: s, dataUrl: c });
295
295
  } else
296
296
  it();
297
297
  }
298
298
  return Fe({
299
- getImage: st,
299
+ getImage: at,
300
300
  generatePdf: ye,
301
301
  generateImage: he,
302
302
  toggleAnnotator: J,
303
303
  toggleFullscreen: _e
304
- }), (e, s) => (n(), i("div", {
304
+ }), (e, a) => (n(), i("div", {
305
305
  ref_key: "relationCircleChart",
306
- ref: A,
306
+ ref: L,
307
307
  class: "vue-data-ui-component vue-ui-relation-circle",
308
- style: z(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
309
- id: `relation_circle_${I.value}`,
310
- onMouseenter: s[0] || (s[0] = () => o(ve)(!0)),
311
- onMouseleave: s[1] || (s[1] = () => o(ve)(!1))
308
+ style: I(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
309
+ id: `relation_circle_${E.value}`,
310
+ onMouseenter: a[0] || (a[0] = () => o(ve)(!0)),
311
+ onMouseleave: a[1] || (a[1] = () => o(ve)(!1))
312
312
  }, [
313
- l.value.userOptions.buttons.annotator ? (n(), j(o(Re), {
313
+ l.value.userOptions.buttons.annotator ? (n(), D(o(Re), {
314
314
  key: 0,
315
- svgRef: o(E),
315
+ svgRef: o(F),
316
316
  backgroundColor: l.value.style.backgroundColor,
317
317
  color: l.value.style.color,
318
- active: N.value,
318
+ active: U.value,
319
319
  onClose: J
320
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
320
+ }, {
321
+ "annotator-action-close": h(() => [
322
+ d(e.$slots, "annotator-action-close", {}, void 0, !0)
323
+ ]),
324
+ "annotator-action-color": h(({ color: t }) => [
325
+ d(e.$slots, "annotator-action-color", w(x({ color: t })), void 0, !0)
326
+ ]),
327
+ "annotator-action-draw": h(({ mode: t }) => [
328
+ d(e.$slots, "annotator-action-draw", w(x({ mode: t })), void 0, !0)
329
+ ]),
330
+ "annotator-action-undo": h(({ disabled: t }) => [
331
+ d(e.$slots, "annotator-action-undo", w(x({ disabled: t })), void 0, !0)
332
+ ]),
333
+ "annotator-action-redo": h(({ disabled: t }) => [
334
+ d(e.$slots, "annotator-action-redo", w(x({ disabled: t })), void 0, !0)
335
+ ]),
336
+ "annotator-action-delete": h(({ disabled: t }) => [
337
+ d(e.$slots, "annotator-action-delete", w(x({ disabled: t })), void 0, !0)
338
+ ]),
339
+ _: 3
340
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
321
341
  Ge.value ? (n(), i("div", {
322
342
  key: 1,
323
343
  ref_key: "noTitle",
324
- ref: ue,
344
+ ref: re,
325
345
  class: "vue-data-ui-no-title-space",
326
346
  style: "height:36px; width: 100%;background:transparent"
327
- }, null, 512)) : f("", !0),
347
+ }, null, 512)) : g("", !0),
328
348
  l.value.style.title.text ? (n(), i("div", {
329
349
  key: 2,
330
350
  ref_key: "chartTitle",
331
351
  ref: ie,
332
352
  style: "width:100%;background:transparent"
333
353
  }, [
334
- (n(), j(Ft, {
335
- key: `title_${re.value}`,
354
+ (n(), D(Ft, {
355
+ key: `title_${ue.value}`,
336
356
  config: {
337
357
  title: {
338
358
  cy: "relation-div-title",
@@ -344,86 +364,86 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
344
364
  }
345
365
  }
346
366
  }, null, 8, ["config"]))
347
- ], 512)) : f("", !0),
348
- l.value.userOptions.show && Ue.value && (o(de) || o(W)) ? (n(), j(o(Te), {
367
+ ], 512)) : g("", !0),
368
+ l.value.userOptions.show && Ue.value && (o(de) || o(W)) ? (n(), D(o(Te), {
349
369
  ref: "details",
350
370
  key: `user_options_${ne.value}`,
351
371
  backgroundColor: l.value.style.backgroundColor,
352
372
  color: l.value.style.color,
353
373
  isPrinting: o(fe),
354
374
  isImaging: o(ge),
355
- uid: I.value,
375
+ uid: E.value,
356
376
  hasPdf: l.value.userOptions.buttons.pdf,
357
377
  hasImg: l.value.userOptions.buttons.img,
358
378
  hasSvg: l.value.userOptions.buttons.svg,
359
379
  hasFullscreen: l.value.userOptions.buttons.img,
360
380
  hasXls: !1,
361
- isFullscreen: T.value,
381
+ isFullscreen: j.value,
362
382
  titles: { ...l.value.userOptions.buttonTitles },
363
- chartElement: A.value,
383
+ chartElement: L.value,
364
384
  position: l.value.userOptions.position,
365
385
  hasAnnotator: l.value.userOptions.buttons.annotator,
366
- isAnnotation: N.value,
386
+ isAnnotation: U.value,
367
387
  callbacks: l.value.userOptions.callbacks,
368
388
  printScale: l.value.userOptions.print.scale,
369
389
  onToggleFullscreen: _e,
370
390
  onGeneratePdf: o(ye),
371
391
  onGenerateImage: o(he),
372
- onGenerateSvg: ut,
392
+ onGenerateSvg: rt,
373
393
  onToggleAnnotator: J,
374
- style: z({
394
+ style: I({
375
395
  visibility: o(de) ? o(W) ? "visible" : "hidden" : "visible"
376
396
  })
377
397
  }, ht({ _: 2 }, [
378
398
  e.$slots.menuIcon ? {
379
399
  name: "menuIcon",
380
- fn: O(({ isOpen: t, color: a }) => [
381
- y(e.$slots, "menuIcon", U(D({ isOpen: t, color: a })), void 0, !0)
400
+ fn: h(({ isOpen: t, color: s }) => [
401
+ d(e.$slots, "menuIcon", w(x({ isOpen: t, color: s })), void 0, !0)
382
402
  ]),
383
403
  key: "0"
384
404
  } : void 0,
385
405
  e.$slots.optionPdf ? {
386
406
  name: "optionPdf",
387
- fn: O(() => [
388
- y(e.$slots, "optionPdf", {}, void 0, !0)
407
+ fn: h(() => [
408
+ d(e.$slots, "optionPdf", {}, void 0, !0)
389
409
  ]),
390
410
  key: "1"
391
411
  } : void 0,
392
412
  e.$slots.optionImg ? {
393
413
  name: "optionImg",
394
- fn: O(() => [
395
- y(e.$slots, "optionImg", {}, void 0, !0)
414
+ fn: h(() => [
415
+ d(e.$slots, "optionImg", {}, void 0, !0)
396
416
  ]),
397
417
  key: "2"
398
418
  } : void 0,
399
419
  e.$slots.optionSvg ? {
400
420
  name: "optionSvg",
401
- fn: O(() => [
402
- y(e.$slots, "optionSvg", {}, void 0, !0)
421
+ fn: h(() => [
422
+ d(e.$slots, "optionSvg", {}, void 0, !0)
403
423
  ]),
404
424
  key: "3"
405
425
  } : void 0,
406
426
  e.$slots.optionFullscreen ? {
407
427
  name: "optionFullscreen",
408
- fn: O(({ toggleFullscreen: t, isFullscreen: a }) => [
409
- y(e.$slots, "optionFullscreen", U(D({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
428
+ fn: h(({ toggleFullscreen: t, isFullscreen: s }) => [
429
+ d(e.$slots, "optionFullscreen", w(x({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
410
430
  ]),
411
431
  key: "4"
412
432
  } : void 0,
413
433
  e.$slots.optionAnnotator ? {
414
434
  name: "optionAnnotator",
415
- fn: O(({ toggleAnnotator: t, isAnnotator: a }) => [
416
- y(e.$slots, "optionAnnotator", U(D({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
435
+ fn: h(({ toggleAnnotator: t, isAnnotator: s }) => [
436
+ d(e.$slots, "optionAnnotator", w(x({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
417
437
  ]),
418
438
  key: "5"
419
439
  } : void 0
420
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
440
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
421
441
  (n(), i("svg", {
422
442
  ref_key: "svgRef",
423
- ref: E,
443
+ ref: F,
424
444
  xmlns: o(At),
425
- class: te([{ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }, "relation-circle"]),
426
- viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
445
+ class: te([{ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }, "relation-circle"]),
446
+ viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
427
447
  width: "100%",
428
448
  style: "user-select:none; background:transparent"
429
449
  }, [
@@ -432,150 +452,150 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
432
452
  key: 0,
433
453
  x: 0,
434
454
  y: 0,
435
- width: u.value.width <= 0 ? 10 : u.value.width,
436
- height: u.value.height <= 0 ? 10 : u.value.height,
455
+ width: r.value.width <= 0 ? 10 : r.value.width,
456
+ height: r.value.height <= 0 ? 10 : r.value.height,
437
457
  style: {
438
458
  pointerEvents: "none"
439
459
  }
440
460
  }, [
441
- y(e.$slots, "chart-background", {}, void 0, !0)
442
- ], 8, Ut)) : f("", !0),
461
+ d(e.$slots, "chart-background", {}, void 0, !0)
462
+ ], 8, Ut)) : g("", !0),
443
463
  pt("circle", {
444
- cx: (u.value.width <= 0 ? 1e-4 : u.value.width) / 2,
445
- cy: (u.value.height <= 0 ? 1e-4 : u.value.height) / 2 + l.value.style.circle.offsetY,
446
- r: _.value <= 0 ? 1e-4 : _.value,
464
+ cx: (r.value.width <= 0 ? 1e-4 : r.value.width) / 2,
465
+ cy: (r.value.height <= 0 ? 1e-4 : r.value.height) / 2 + l.value.style.circle.offsetY,
466
+ r: z.value <= 0 ? 1e-4 : z.value,
447
467
  stroke: l.value.style.circle.stroke,
448
468
  "stroke-width": l.value.style.circle.strokeWidth,
449
469
  fill: "transparent",
450
470
  class: "main-circle"
451
471
  }, null, 8, Dt),
452
472
  We.value ? (n(), i("g", Gt, [
453
- (n(!0), i($, null, S(p.value, (t, a) => (n(), i("path", {
454
- key: `relation_${a}`,
455
- style: z(xe(t)),
456
- stroke: x(t),
457
- class: te(["relation", { "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && b.value.includes(t.id) }]),
458
- d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${u.value.width / 2},${u.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
473
+ (n(!0), i(_, null, M(b.value, (t, s) => (n(), i("path", {
474
+ key: `relation_${s}`,
475
+ style: I(xe(t)),
476
+ stroke: C(t),
477
+ class: te(["relation", { "vue-ui-relation-circle-selected": f.value.hasOwnProperty("id") && k.value.includes(t.id) }]),
478
+ d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${r.value.width / 2},${r.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
459
479
  fill: "none",
460
480
  "stroke-width": H(t),
461
481
  "stroke-linecap": "round"
462
482
  }, null, 14, Vt))), 128)),
463
- (n(!0), i($, null, S(p.value, (t, a) => (n(), i("g", Wt, [
464
- P(t) ? y(e.$slots, "dataLabel", Pe({
483
+ (n(!0), i(_, null, M(b.value, (t, s) => (n(), i("g", Wt, [
484
+ S(t) ? d(e.$slots, "dataLabel", Pe({
465
485
  key: 0,
466
486
  ref_for: !0
467
487
  }, {
468
488
  x: t.midPointBezier.x,
469
489
  y: t.midPointBezier.y,
470
- color: x(t),
490
+ color: C(t),
471
491
  weight: t.weight,
472
- fontSize: h.value
473
- }), void 0, !0) : f("", !0),
474
- P(t) && !e.$slots.dataLabel ? (n(), i("circle", {
492
+ fontSize: m.value
493
+ }), void 0, !0) : g("", !0),
494
+ S(t) && !e.$slots.dataLabel ? (n(), i("circle", {
475
495
  key: 1,
476
496
  cx: t.midPointBezier.x,
477
497
  cy: t.midPointBezier.y,
478
- fill: x(t),
479
- r: h.value,
498
+ fill: C(t),
499
+ r: m.value,
480
500
  stroke: l.value.style.backgroundColor,
481
501
  "stroke-width": "1"
482
- }, null, 8, Xt)) : f("", !0),
483
- P(t) && !e.$slots.dataLabel ? (n(), i("text", {
502
+ }, null, 8, Xt)) : g("", !0),
503
+ S(t) && !e.$slots.dataLabel ? (n(), i("text", {
484
504
  key: 2,
485
505
  x: t.midPointBezier.x,
486
- y: t.midPointBezier.y + h.value / 3,
487
- fill: o(Me)(x(t)),
506
+ y: t.midPointBezier.y + m.value / 3,
507
+ fill: o(Me)(C(t)),
488
508
  "text-anchor": "middle",
489
- "font-size": h.value
509
+ "font-size": m.value
490
510
  }, G(o(le)(
491
511
  l.value.style.weightLabels.formatter,
492
512
  t.weight,
493
- o(se)({
513
+ o(ae)({
494
514
  p: l.value.style.weightLabels.prefix,
495
515
  v: t.weight,
496
516
  s: l.value.style.weightLabels.suffix,
497
517
  r: l.value.style.weightLabels.rounding
498
518
  }),
499
519
  { ...t }
500
- )), 9, Yt)) : f("", !0)
520
+ )), 9, Yt)) : g("", !0)
501
521
  ]))), 256))
502
522
  ])) : (n(), i("g", qt, [
503
- (n(!0), i($, null, S(p.value, (t, a) => (n(), i("line", {
504
- key: `relation_${a}`,
505
- stroke: x(t),
523
+ (n(!0), i(_, null, M(b.value, (t, s) => (n(), i("line", {
524
+ key: `relation_${s}`,
525
+ stroke: C(t),
506
526
  "stroke-width": H(t),
507
- style: z(xe(t)),
527
+ style: I(xe(t)),
508
528
  x1: t.x1,
509
529
  x2: t.x2,
510
530
  y1: t.y1,
511
531
  y2: t.y2,
512
- class: te({ "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && b.value.includes(t.id) }),
532
+ class: te({ "vue-ui-relation-circle-selected": f.value.hasOwnProperty("id") && k.value.includes(t.id) }),
513
533
  "stroke-linecap": "round"
514
534
  }, null, 14, Ht))), 128)),
515
- (n(!0), i($, null, S(p.value, (t, a) => (n(), i("g", Jt, [
516
- P(t) ? y(e.$slots, "dataLabel", Pe({
535
+ (n(!0), i(_, null, M(b.value, (t, s) => (n(), i("g", Jt, [
536
+ S(t) ? d(e.$slots, "dataLabel", Pe({
517
537
  key: 0,
518
538
  ref_for: !0
519
539
  }, {
520
540
  x: t.midPointLine.x,
521
541
  y: t.midPointLine.y,
522
- color: x(t),
542
+ color: C(t),
523
543
  weight: t.weight,
524
- fontSize: h.value
525
- }), void 0, !0) : f("", !0),
526
- P(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (n(), i("circle", {
544
+ fontSize: m.value
545
+ }), void 0, !0) : g("", !0),
546
+ S(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (n(), i("circle", {
527
547
  key: 1,
528
548
  cx: t.midPointLine.x,
529
549
  cy: t.midPointLine.y,
530
- fill: x(t),
531
- r: h.value,
550
+ fill: C(t),
551
+ r: m.value,
532
552
  stroke: l.value.style.backgroundColor,
533
553
  "stroke-width": "1"
534
- }, null, 8, Kt)) : f("", !0),
535
- P(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (n(), i("text", {
554
+ }, null, 8, Kt)) : g("", !0),
555
+ S(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (n(), i("text", {
536
556
  key: 2,
537
557
  x: t.midPointLine.x,
538
- y: t.midPointLine.y + h.value / 3,
539
- fill: o(Me)(x(t)),
558
+ y: t.midPointLine.y + m.value / 3,
559
+ fill: o(Me)(C(t)),
540
560
  "text-anchor": "middle",
541
- "font-size": h.value
561
+ "font-size": m.value
542
562
  }, G(o(le)(
543
563
  l.value.style.weightLabels.formatter,
544
564
  t.weight,
545
- o(se)({
565
+ o(ae)({
546
566
  p: l.value.style.weightLabels.prefix,
547
567
  v: t.weight,
548
568
  s: l.value.style.weightLabels.suffix,
549
569
  r: l.value.style.weightLabels.rounding
550
570
  }),
551
571
  { ...t }
552
- )), 9, Qt)) : f("", !0)
572
+ )), 9, Qt)) : g("", !0)
553
573
  ]))), 256))
554
574
  ])),
555
- (n(!0), i($, null, S(k.value, (t, a) => (n(), i("text", {
556
- key: `plot_text_${a}`,
575
+ (n(!0), i(_, null, M($.value, (t, s) => (n(), i("text", {
576
+ key: `plot_text_${s}`,
557
577
  "text-anchor": Ze(t),
558
578
  transform: lt(t),
559
579
  x: et(t),
560
580
  y: t.y + 5,
561
581
  class: "vue-ui-relation-circle-legend",
562
582
  "transform-origin": "start",
563
- "font-weight": d.value.id === t.id ? "900" : "400",
564
- style: z(`font-family:${l.value.style.fontFamily};${tt(t)}`),
565
- "font-size": M.value,
583
+ "font-weight": f.value.id === t.id ? "900" : "400",
584
+ style: I(`font-family:${l.value.style.fontFamily};${tt(t)}`),
585
+ "font-size": B.value,
566
586
  fill: l.value.style.labels.color,
567
- "text-decoration": a === R.value ? "underline" : void 0,
568
- onClick: (c) => Ce(t, a),
569
- onMouseenter: (c) => $e(t, a),
570
- onMouseleave: (c) => Ae(t, a)
587
+ "text-decoration": s === N.value ? "underline" : void 0,
588
+ onClick: (c) => Ce(t, s),
589
+ onMouseenter: (c) => $e(t, s),
590
+ onMouseleave: (c) => Ae(t, s)
571
591
  }, [
572
- o(ce) ? (n(), i($, { key: 0 }, [
592
+ o(ce) ? (n(), i(_, { key: 0 }, [
573
593
  ze(" -------- ")
574
- ], 64)) : (n(), i($, { key: 1 }, [
594
+ ], 64)) : (n(), i(_, { key: 1 }, [
575
595
  ze(G(t.label) + " (" + G(o(le)(
576
596
  l.value.style.weightLabels.formatter,
577
597
  t.totalWeight,
578
- o(se)({
598
+ o(ae)({
579
599
  p: l.value.style.weightLabels.prefix,
580
600
  v: t.totalWeight,
581
601
  s: l.value.style.weightLabels.suffix,
@@ -585,37 +605,37 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
585
605
  )) + ") ", 1)
586
606
  ], 64))
587
607
  ], 44, Zt))), 128)),
588
- (n(!0), i($, null, S(k.value, (t, a) => (n(), i("circle", {
608
+ (n(!0), i(_, null, M($.value, (t, s) => (n(), i("circle", {
589
609
  cx: t.x,
590
610
  cy: t.y,
591
- key: `plot_${a}`,
592
- style: z(`${Qe(t)}; transition: r 0.2s ease-in-out;`),
611
+ key: `plot_${s}`,
612
+ style: I(`${Qe(t)}; transition: r 0.2s ease-in-out;`),
593
613
  class: "vue-ui-relation-circle-plot",
594
614
  fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
595
615
  stroke: l.value.style.backgroundColor,
596
616
  "stroke-width": "1",
597
- r: F.value * (a === R.value ? 2 : 1),
598
- onClick: (c) => Ce(t, a),
599
- onMouseenter: (c) => $e(t, a),
600
- onMouseleave: (c) => Ae(t, a)
617
+ r: T.value * (s === N.value ? 2 : 1),
618
+ onClick: (c) => Ce(t, s),
619
+ onMouseenter: (c) => $e(t, s),
620
+ onMouseleave: (c) => Ae(t, s)
601
621
  }, null, 44, el))), 128)),
602
- y(e.$slots, "svg", { svg: u.value }, void 0, !0)
622
+ d(e.$slots, "svg", { svg: r.value }, void 0, !0)
603
623
  ], 10, jt)),
604
624
  e.$slots.watermark ? (n(), i("div", tl, [
605
- y(e.$slots, "watermark", U(D({ isPrinting: o(fe) || o(ge) })), void 0, !0)
606
- ])) : f("", !0),
625
+ d(e.$slots, "watermark", w(x({ isPrinting: o(fe) || o(ge) })), void 0, !0)
626
+ ])) : g("", !0),
607
627
  e.$slots.source ? (n(), i("div", {
608
628
  key: 5,
609
629
  ref_key: "source",
610
630
  ref: oe,
611
631
  dir: "auto"
612
632
  }, [
613
- y(e.$slots, "source", {}, void 0, !0)
614
- ], 512)) : f("", !0),
615
- o(ce) ? (n(), j(zt, { key: 6 })) : f("", !0)
633
+ d(e.$slots, "source", {}, void 0, !0)
634
+ ], 512)) : g("", !0),
635
+ o(ce) ? (n(), D(zt, { key: 6 })) : g("", !0)
616
636
  ], 44, Nt));
617
637
  }
618
- }, ml = /* @__PURE__ */ Tt(ll, [["__scopeId", "data-v-81f56cbf"]]);
638
+ }, ml = /* @__PURE__ */ Tt(ll, [["__scopeId", "data-v-7d3425c2"]]);
619
639
  export {
620
640
  ml as default
621
641
  };