vue-data-ui 3.0.15 → 3.0.17

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 (90) hide show
  1. package/dist/{Arrow-DGSYU08F.js → Arrow-BUPQR2G4.js} +1 -1
  2. package/dist/{BaseDraggableDialog-C8qz7ExB.js → BaseDraggableDialog-CzkHS5si.js} +2 -2
  3. package/dist/{BaseIcon-BA3j_Lwf.js → BaseIcon-xyB9D1pA.js} +1 -1
  4. package/dist/{ColorPicker-sW0pMaCb.js → ColorPicker-Cb4Flxwu.js} +2 -2
  5. package/dist/{DataTable-Co-fVzdq.js → DataTable-D5jcKSEP.js} +2 -2
  6. package/dist/{Legend-NBffBBnn.js → Legend-cvVLEFcw.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-CWsUFLND.js → NonSvgPenAndPaper-yPGrFiQ4.js} +3 -3
  8. package/dist/{PackageVersion-DkN4tXY6.js → PackageVersion-CvI7dfPE.js} +1 -1
  9. package/dist/{PenAndPaper-C5tGS7J9.js → PenAndPaper-ByuyUNh2.js} +3 -3
  10. package/dist/{Shape-Bgg7Nwsz.js → Shape-Dn4xCkhb.js} +1 -1
  11. package/dist/{Slicer-DzsOD_6h.js → Slicer-D6stZJ6_.js} +2 -2
  12. package/dist/{SparkTooltip-Cfx3n0pP.js → SparkTooltip-BJpOcNPA.js} +1 -1
  13. package/dist/{Title-Cdu-aDOL.js → Title-D_WUff_Y.js} +1 -1
  14. package/dist/{Tooltip-mB2Rs1Vj.js → Tooltip-CZV_BR2c.js} +1 -1
  15. package/dist/{UserOptions-BMoiHEKE.js → UserOptions-ZcUANK_c.js} +2 -2
  16. package/dist/{dom-to-png-DzfS79Op.js → dom-to-png-B_c5U1KX.js} +1 -1
  17. package/dist/{img-7sjXtnNU.js → img-CUZp-9tT.js} +1 -1
  18. package/dist/{index-CjmWQAkv.js → index-FPxvoief.js} +1 -1
  19. package/dist/{pdf-BepSOa2A.js → pdf-BQdP4qEx.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/useAutoSizeLabelsInsideViewbox-BOEYVAI_.js +55 -0
  22. package/dist/{useNestedProp-DFYUwW_F.js → useNestedProp-DzVMdkPE.js} +1 -1
  23. package/dist/{usePrinter-BD_X6xEq.js → usePrinter-M0JhvX8r.js} +2 -2
  24. package/dist/{vue-data-ui-BHC_kJCP.js → vue-data-ui-BtZ0NkLV.js} +64 -64
  25. package/dist/vue-data-ui.js +1 -1
  26. package/dist/{vue-ui-3d-bar-CvM_pNPs.js → vue-ui-3d-bar-68r5eL4m.js} +6 -6
  27. package/dist/{vue-ui-accordion-BOmbEAe4.js → vue-ui-accordion-u-pE5AEw.js} +3 -3
  28. package/dist/{vue-ui-age-pyramid-2GEKVOIu.js → vue-ui-age-pyramid-CZgDP5ON.js} +6 -6
  29. package/dist/{vue-ui-annotator-ULK7i_cb.js → vue-ui-annotator-ykVZA4ga.js} +2 -2
  30. package/dist/{vue-ui-bullet-CtrrTkUl.js → vue-ui-bullet-BKZe1klo.js} +7 -7
  31. package/dist/{vue-ui-candlestick-C8_qIKhP.js → vue-ui-candlestick-BiEnPu20.js} +7 -7
  32. package/dist/{vue-ui-carousel-table-C5-I9TDG.js → vue-ui-carousel-table-DizqUzW2.js} +4 -4
  33. package/dist/{vue-ui-chestnut-DbGjz6NE.js → vue-ui-chestnut-Db9AmXXR.js} +5 -5
  34. package/dist/{vue-ui-chord-DSav5VH4.js → vue-ui-chord-D_Fu289O.js} +8 -8
  35. package/dist/{vue-ui-circle-pack-Ost-SfPy.js → vue-ui-circle-pack-_2rvcgPO.js} +6 -6
  36. package/dist/{vue-ui-cursor-CvvBIdhO.js → vue-ui-cursor-BGUkW6bz.js} +2 -2
  37. package/dist/{vue-ui-dashboard-B6jTz1V8.js → vue-ui-dashboard-CACU8tqW.js} +62 -62
  38. package/dist/{vue-ui-digits-DW4j5hMp.js → vue-ui-digits-B4-KFEj0.js} +2 -2
  39. package/dist/{vue-ui-donut-CQgVEHBd.js → vue-ui-donut-B1GmuATW.js} +8 -8
  40. package/dist/{vue-ui-donut-evolution-3Kg_0Aq8.js → vue-ui-donut-evolution-BQe6iCFb.js} +8 -8
  41. package/dist/{vue-ui-dumbbell-B0RA0uh4.js → vue-ui-dumbbell-hAgVOFYv.js} +7 -7
  42. package/dist/{vue-ui-flow-mfN9qv9u.js → vue-ui-flow-Cjw1F1EQ.js} +7 -7
  43. package/dist/{vue-ui-funnel-By1EE6eQ.js → vue-ui-funnel-DxN3_Q5d.js} +6 -6
  44. package/dist/{vue-ui-galaxy-DUnLy7nU.js → vue-ui-galaxy-CcXisqah.js} +5 -5
  45. package/dist/{vue-ui-gauge-B9s5assa.js → vue-ui-gauge-DM4t5Y_a.js} +7 -7
  46. package/dist/{vue-ui-gizmo-D5nFPB5S.js → vue-ui-gizmo-CbwGU4tH.js} +3 -3
  47. package/dist/{vue-ui-heatmap-B99sMjxs.js → vue-ui-heatmap-DagGZ1a2.js} +7 -7
  48. package/dist/{vue-ui-history-plot-BcnKJSTL.js → vue-ui-history-plot-C_8thHuP.js} +7 -7
  49. package/dist/{vue-ui-kpi-BoiQMCdn.js → vue-ui-kpi-BabguWm3.js} +3 -3
  50. package/dist/{vue-ui-mini-loader-Fd0upr6u.js → vue-ui-mini-loader-8rpOo_4B.js} +2 -2
  51. package/dist/{vue-ui-molecule-C8U7G10y.js → vue-ui-molecule-DZ0O2nx-.js} +5 -5
  52. package/dist/{vue-ui-mood-radar-83Su_aAf.js → vue-ui-mood-radar-xSf3Dq2u.js} +7 -7
  53. package/dist/{vue-ui-nested-donuts-BT9ZqiqC.js → vue-ui-nested-donuts-BLudObDe.js} +7 -7
  54. package/dist/{vue-ui-onion-9JIdWtsY.js → vue-ui-onion-FxCDw1HB.js} +8 -8
  55. package/dist/{vue-ui-parallel-coordinate-plot-C1FjeIr0.js → vue-ui-parallel-coordinate-plot-BF3CHzSy.js} +8 -8
  56. package/dist/{vue-ui-quadrant-3WUBK3nJ.js → vue-ui-quadrant-DYADhMJO.js} +8 -8
  57. package/dist/{vue-ui-quick-chart-DY43gV8A.js → vue-ui-quick-chart-Bu-fq-bT.js} +6 -6
  58. package/dist/{vue-ui-radar-C4KMiQ_0.js → vue-ui-radar-CfRc8umQ.js} +8 -8
  59. package/dist/{vue-ui-rating-BvD7AC9t.js → vue-ui-rating-Clq7xuBB.js} +2 -2
  60. package/dist/{vue-ui-relation-circle-CkJugcvo.js → vue-ui-relation-circle-C-bGpsP0.js} +203 -194
  61. package/dist/{vue-ui-ridgeline-BWWwyiku.js → vue-ui-ridgeline-AjzApr3m.js} +8 -8
  62. package/dist/{vue-ui-rings--RHm1WPt.js → vue-ui-rings-1Pj_2A9U.js} +8 -8
  63. package/dist/{vue-ui-scatter-BlJi3Vto.js → vue-ui-scatter-BHkSGYtY.js} +8 -8
  64. package/dist/{vue-ui-skeleton-BpaC2poA.js → vue-ui-skeleton-uolO3H7L.js} +3 -3
  65. package/dist/{vue-ui-smiley-DFQ-eGPr.js → vue-ui-smiley-C42TbD2C.js} +2 -2
  66. package/dist/{vue-ui-spark-trend-DBvs77p7.js → vue-ui-spark-trend-CGWWYkOY.js} +3 -3
  67. package/dist/{vue-ui-sparkbar-5-xCacnj.js → vue-ui-sparkbar-DHX5aYQt.js} +3 -3
  68. package/dist/{vue-ui-sparkgauge-B_Hahm_m.js → vue-ui-sparkgauge-DToUIHu1.js} +3 -3
  69. package/dist/{vue-ui-sparkhistogram-CE3o-lRl.js → vue-ui-sparkhistogram-gFxgNqYu.js} +4 -4
  70. package/dist/{vue-ui-sparkline-RzY__SHu.js → vue-ui-sparkline-72DukbMK.js} +3 -3
  71. package/dist/{vue-ui-sparkstackbar-mf1_NIVO.js → vue-ui-sparkstackbar-DDXK9P4e.js} +3 -3
  72. package/dist/{vue-ui-stackbar-e0_-TwRA.js → vue-ui-stackbar-rx0Fxh0e.js} +9 -9
  73. package/dist/{vue-ui-strip-plot-DNF_a6tQ.js → vue-ui-strip-plot-5dsRP2yk.js} +7 -7
  74. package/dist/{vue-ui-table-DyRQD9Jx.js → vue-ui-table-ByG9jsR_.js} +3 -3
  75. package/dist/{vue-ui-table-heatmap-D0khMn8L.js → vue-ui-table-heatmap-CwRQnjOd.js} +5 -5
  76. package/dist/{vue-ui-table-sparkline-CrEJ_BYI.js → vue-ui-table-sparkline-CMW71OVJ.js} +4 -4
  77. package/dist/{vue-ui-thermometer-WWlRC1pG.js → vue-ui-thermometer-D6ShCr7E.js} +7 -7
  78. package/dist/{vue-ui-timer-DFrFvU8Z.js → vue-ui-timer-Cq8IiIq0.js} +5 -5
  79. package/dist/{vue-ui-tiremarks-BcGXDBHM.js → vue-ui-tiremarks-DN1kPCuc.js} +6 -6
  80. package/dist/{vue-ui-treemap-CISOrlRD.js → vue-ui-treemap-DMAe9tkY.js} +8 -8
  81. package/dist/{vue-ui-vertical-bar-BIGQJhXk.js → vue-ui-vertical-bar-CFAQnB5o.js} +9 -9
  82. package/dist/{vue-ui-waffle-ZR7fefhR.js → vue-ui-waffle-CDxiee8r.js} +8 -8
  83. package/dist/{vue-ui-wheel-DRp9k9JL.js → vue-ui-wheel-DU-LT0Eh.js} +6 -6
  84. package/dist/{vue-ui-word-cloud-jlqVnKu7.js → vue-ui-word-cloud-Bpyb6-d9.js} +6 -6
  85. package/dist/{vue-ui-world-PWs6PTyh.js → vue-ui-world-DxrhbFBm.js} +6 -6
  86. package/dist/vue-ui-xy-Dr406GVq.js +4068 -0
  87. package/dist/{vue-ui-xy-canvas-JxDjG7z8.js → vue-ui-xy-canvas-pI2s0gPy.js} +8 -8
  88. package/package.json +1 -1
  89. package/dist/useAutoSizeLabelsInsideViewbox-iRzr0rIq.js +0 -81
  90. package/dist/vue-ui-xy-D9GnZXb-.js +0 -4044
@@ -1,18 +1,19 @@
1
- import { useCssVars as nt, computed as h, defineAsyncComponent as Q, ref as o, toRefs as ut, watch as Z, shallowRef as Ce, onMounted as rt, onBeforeUnmount as ot, createElementBlock as n, openBlock as i, unref as u, normalizeStyle as O, createBlock as N, createCommentVNode as f, createSlots as ct, withCtx as M, renderSlot as g, normalizeProps as j, guardReactiveProps as D, normalizeClass as ee, createVNode as vt, createElementVNode as dt, Fragment as $, renderList as z, mergeProps as Le, toDisplayString as U, createTextVNode as Pe } from "vue";
2
- import { u as ft, c as yt, t as ht, a as gt, p as Oe, b as mt, d as pt, o as ze, f as Ie, g as kt, X as bt, F as Me, k as te, i as le, E as se } from "./index-CjmWQAkv.js";
3
- import { t as wt, u as xt } from "./useResponsive-DfdjqQps.js";
4
- import { u as $t, B as At } from "./useLoading-D7YHNtLX.js";
5
- import { u as _t } from "./usePrinter-BD_X6xEq.js";
6
- import { u as Se } from "./useNestedProp-DFYUwW_F.js";
7
- import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Lt } from "./useChartAccessibility-9icAAmYg.js";
9
- import Pt from "./img-7sjXtnNU.js";
10
- import Ot from "./Title-Cdu-aDOL.js";
11
- import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["cx", "cy", "r", "stroke", "stroke-width"], Bt = { key: 1 }, Ft = ["stroke", "d", "stroke-width"], Tt = { style: { "pointer-events": "none" } }, Rt = ["cx", "cy", "fill", "r", "stroke"], Nt = ["x", "y", "fill", "font-size"], jt = { key: 2 }, Dt = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Ut = { style: { "pointer-events": "none" } }, Gt = ["cx", "cy", "fill", "r", "stroke"], Vt = ["x", "y", "fill", "font-size"], Wt = ["text-anchor", "transform", "x", "y", "font-weight", "font-size", "fill", "text-decoration", "onClick", "onMouseenter", "onMouseleave"], Xt = ["cx", "cy", "fill", "stroke", "r", "onClick", "onMouseenter", "onMouseleave"], Yt = {
1
+ import { useCssVars as ut, computed as h, defineAsyncComponent as Z, ref as r, toRefs as ot, watch as ee, shallowRef as Le, onMounted as rt, onBeforeUnmount as ct, createElementBlock as n, openBlock as i, unref as u, normalizeStyle as z, createBlock as N, createCommentVNode as f, createSlots as vt, withCtx as M, renderSlot as g, normalizeProps as j, guardReactiveProps as D, normalizeClass as te, createVNode as dt, createElementVNode as ft, Fragment as $, renderList as O, mergeProps as Pe, toDisplayString as U, createTextVNode as ze } from "vue";
2
+ import { u as yt, c as ht, t as gt, a as mt, p as Oe, b as pt, d as bt, o as Se, f as Ie, g as kt, X as wt, F as Me, k as le, i as se, E as ae } from "./index-FPxvoief.js";
3
+ import { t as xt, u as $t } from "./useResponsive-DfdjqQps.js";
4
+ import { u as At, B as _t } from "./useLoading-D7YHNtLX.js";
5
+ import { u as Ct } from "./usePrinter-M0JhvX8r.js";
6
+ import { u as Ee } from "./useNestedProp-DzVMdkPE.js";
7
+ import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Pt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as zt } from "./useAutoSizeLabelsInsideViewbox-BOEYVAI_.js";
10
+ import Ot from "./img-CUZp-9tT.js";
11
+ import St from "./Title-D_WUff_Y.js";
12
+ import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["cx", "cy", "r", "stroke", "stroke-width"], Rt = { key: 1 }, Tt = ["stroke", "d", "stroke-width"], Nt = { style: { "pointer-events": "none" } }, jt = ["cx", "cy", "fill", "r", "stroke"], Dt = ["x", "y", "fill", "font-size"], Ut = { key: 2 }, Vt = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Gt = { style: { "pointer-events": "none" } }, Wt = ["cx", "cy", "fill", "r", "stroke"], Xt = ["x", "y", "fill", "font-size"], Yt = ["text-anchor", "transform", "x", "y", "font-weight", "font-size", "fill", "text-decoration", "onClick", "onMouseenter", "onMouseleave"], qt = ["cx", "cy", "fill", "stroke", "r", "onClick", "onMouseenter", "onMouseleave"], Ht = {
13
14
  key: 4,
14
15
  class: "vue-data-ui-watermark"
15
- }, qt = {
16
+ }, Jt = {
16
17
  __name: "vue-ui-relation-circle",
17
18
  props: {
18
19
  dataset: {
@@ -28,16 +29,16 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
28
29
  }
29
30
  }
30
31
  },
31
- setup(Ee, { expose: Be }) {
32
- nt((e) => ({
33
- "3ea1ca4e": Xe.value,
34
- "5faa9838": We.value,
35
- f74c4bcc: Ye.value
32
+ setup(Fe, { expose: Be }) {
33
+ ut((e) => ({
34
+ "51791a0b": Ye.value,
35
+ "501dae6a": Xe.value,
36
+ "2abe5668": qe.value
36
37
  }));
37
- const Fe = Q(() => import("./PenAndPaper-C5tGS7J9.js")), Te = Q(() => import("./UserOptions-BMoiHEKE.js")), Re = Q(() => import("./PackageVersion-DkN4tXY6.js")), { vue_ui_relation_circle: Ne } = ft(), m = Ee, je = h(() => !!m.dataset && Object.keys(m.dataset).length), I = o(yt()), ae = o(0), A = o(null), ie = o(null), ne = o(null), ue = o(null), re = o(0), l = o(W()), { loading: oe, FINAL_DATASET: De, manualLoading: G } = $t({
38
- ...ut(m),
38
+ const Re = Z(() => import("./PenAndPaper-ByuyUNh2.js")), Te = Z(() => import("./UserOptions-ZcUANK_c.js")), Ne = Z(() => import("./PackageVersion-CvI7dfPE.js")), { vue_ui_relation_circle: je } = yt(), m = Fe, De = h(() => !!m.dataset && Object.keys(m.dataset).length), S = r(ht()), ie = r(0), A = r(null), ne = r(null), ue = r(null), oe = r(null), re = r(0), l = r(X()), { loading: ce, FINAL_DATASET: Ue, manualLoading: V } = At({
39
+ ...ot(m),
39
40
  FINAL_CONFIG: l,
40
- prepareConfig: W,
41
+ prepareConfig: X,
41
42
  skeletonDataset: [
42
43
  { id: "A", label: "_", relations: ["B", "C", "D", "E", "F", "G"] },
43
44
  { id: "B", label: "_", relations: ["A"] },
@@ -47,7 +48,7 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
47
48
  { id: "F", label: "_", relations: ["A"] },
48
49
  { id: "G", label: "_", relations: ["A"] }
49
50
  ],
50
- skeletonConfig: ht({
51
+ skeletonConfig: gt({
51
52
  defaultConfig: l.value,
52
53
  userConfig: {
53
54
  userOptions: { show: !1 },
@@ -61,30 +62,30 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
61
62
  }
62
63
  }
63
64
  })
64
- }), { userOptionsVisible: V, setUserOptionsVisibility: ce, keepUserOptionState: ve } = Ct({ config: l.value }), { svgRef: de } = Lt({ config: l.value.style.title });
65
- function W() {
66
- const e = Se({
65
+ }), { userOptionsVisible: G, setUserOptionsVisibility: ve, keepUserOptionState: de } = Lt({ config: l.value }), { svgRef: W } = Pt({ config: l.value.style.title });
66
+ function X() {
67
+ const e = Ee({
67
68
  userConfig: m.config,
68
- defaultConfig: Ne
69
+ defaultConfig: je
69
70
  });
70
71
  return e.theme ? {
71
- ...Se({
72
- userConfig: mt.vue_ui_relation_circle[e.theme] || m.config,
72
+ ...Ee({
73
+ userConfig: pt.vue_ui_relation_circle[e.theme] || m.config,
73
74
  defaultConfig: e
74
75
  }),
75
- customPalette: gt[e.theme] || Oe
76
+ customPalette: mt[e.theme] || Oe
76
77
  } : e;
77
78
  }
78
- Z(() => m.config, (e) => {
79
- l.value = W(), V.value = !l.value.userOptions.showOnChartHover, _.value = l.value.style.size, y.value = l.value.style.weightLabels.size, E.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, ke(), re.value += 1;
80
- }, { deep: !0 }), Z(() => m.dataset, (e) => {
81
- Array.isArray(e) && e.length > 0 && (G.value = !1);
79
+ ee(() => m.config, (e) => {
80
+ l.value = X(), G.value = !l.value.userOptions.showOnChartHover, _.value = l.value.style.size, y.value = l.value.style.weightLabels.size, F.value = l.value.style.plot.radius, I.value = l.value.style.labels.fontSize, o.value.height = l.value.style.size, o.value.width = l.value.style.size, be(), re.value += 1;
81
+ }, { deep: !0 }), ee(() => m.dataset, (e) => {
82
+ Array.isArray(e) && e.length > 0 && (V.value = !1);
82
83
  }, { deep: !0 });
83
- const { isPrinting: fe, isImaging: ye, generatePdf: he, generateImage: ge } = _t({
84
- elementId: `relation_circle_${I.value}`,
84
+ const { isPrinting: fe, isImaging: ye, generatePdf: he, generateImage: ge } = Ct({
85
+ elementId: `relation_circle_${S.value}`,
85
86
  fileName: l.value.style.title.text || "vue-ui-relation-circle",
86
87
  options: l.value.userOptions.print
87
- }), Ue = h(() => l.value.userOptions.show && !l.value.style.title.text), me = h(() => pt(l.value.customPalette)), b = o([]), p = o([]), d = o({}), k = o([]), Ge = o(0), S = h(() => De.value.slice(0, l.value.style.limit).map((e) => {
88
+ }), Ve = h(() => l.value.userOptions.show && !l.value.style.title.text), me = h(() => bt(l.value.customPalette)), k = r([]), p = r([]), d = r({}), b = r([]), Ge = r(0), E = h(() => Ue.value.slice(0, l.value.style.limit).map((e) => {
88
89
  const s = Array.isArray(e.relations) ? e.relations : [];
89
90
  return {
90
91
  ...e,
@@ -92,10 +93,10 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
92
93
  relations: s
93
94
  };
94
95
  }));
95
- Z(S, () => {
96
- b.value = [], p.value = [], X(), Y();
96
+ ee(E, () => {
97
+ k.value = [], p.value = [], Y(), q();
97
98
  });
98
- const _ = o(l.value.style.size), y = o(l.value.style.weightLabels.size), E = o(l.value.style.plot.radius), B = o(l.value.style.labels.fontSize), r = o({
99
+ const _ = r(l.value.style.size), y = r(l.value.style.weightLabels.size), F = r(l.value.style.plot.radius), I = r(l.value.style.labels.fontSize), o = r({
99
100
  height: l.value.style.size,
100
101
  width: l.value.style.size
101
102
  }), C = h({
@@ -105,17 +106,17 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
105
106
  set(e) {
106
107
  return e;
107
108
  }
108
- }), Ve = h(() => l.value.style.links.curved), We = h(() => `${l.value.style.animation.speedMs}ms`), Xe = h(() => C.value * 2), Ye = h(() => C.value * 4), w = Ce(null), L = Ce(null);
109
+ }), We = h(() => l.value.style.links.curved), Xe = h(() => `${l.value.style.animation.speedMs}ms`), Ye = h(() => C.value * 2), qe = h(() => C.value * 4), w = Le(null), L = Le(null);
109
110
  rt(() => {
110
- ke(), document.getElementById(`relation_circle_${I.value}`).addEventListener("click", be);
111
+ be(), document.getElementById(`relation_circle_${S.value}`).addEventListener("click", we);
111
112
  });
112
113
  const pe = h(() => l.value.debug);
113
- function ke() {
114
- if (ze(m.dataset) ? (Ie({
114
+ function be() {
115
+ if (Se(m.dataset) ? (Ie({
115
116
  componentName: "VueUiRelationCircle",
116
117
  type: "dataset",
117
118
  debug: pe.value
118
- }), G.value = !0) : m.dataset.forEach((e, s) => {
119
+ }), V.value = !0) : m.dataset.forEach((e, s) => {
119
120
  kt({
120
121
  datasetObject: e,
121
122
  requiredAttributes: ["id", "label", "relations", "weights"]
@@ -128,62 +129,70 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
128
129
  debug: pe.value
129
130
  });
130
131
  });
131
- }), ze(m.dataset) || (G.value = l.value.loading), l.value.responsive) {
132
- const e = wt(() => {
133
- const { width: s, height: t } = xt({
132
+ }), Se(m.dataset) || (V.value = l.value.loading), l.value.responsive) {
133
+ const e = xt(() => {
134
+ const { width: s, height: t } = $t({
134
135
  chart: A.value,
135
- title: l.value.style.title.text ? ie.value : null,
136
- source: ne.value,
137
- noTitle: ue.value
136
+ title: l.value.style.title.text ? ne.value : null,
137
+ source: ue.value,
138
+ noTitle: oe.value
138
139
  });
139
140
  requestAnimationFrame(() => {
140
- _.value = Math.min(s, t), r.value.width = Math.max(0.1, s), r.value.height = Math.max(0.1, t - 12), C.value = _.value * l.value.style.circle.radiusProportion, b.value = [], p.value = [], X(), Y(), l.value.responsiveProportionalSizing ? (y.value = se({
141
+ _.value = Math.min(s, t), o.value.width = Math.max(0.1, s), o.value.height = Math.max(0.1, t - 12), C.value = _.value * l.value.style.circle.radiusProportion, k.value = [], p.value = [], Y(), q(), ke(), l.value.responsiveProportionalSizing ? (y.value = ae({
141
142
  relator: _.value,
142
143
  adjuster: l.value.style.size,
143
144
  source: l.value.style.weightLabels.size,
144
145
  threshold: 6,
145
146
  fallback: 6
146
- }), E.value = se({
147
+ }), F.value = ae({
147
148
  relator: _.value,
148
149
  adjuster: l.value.style.size,
149
150
  source: l.value.style.plot.radius,
150
151
  threshold: 1,
151
152
  fallback: 1
152
- }), B.value = se({
153
+ }), I.value = ae({
153
154
  relator: _.value,
154
155
  adjuster: l.value.style.size,
155
156
  source: l.value.style.labels.fontSize,
156
157
  threshold: 6,
157
158
  fallback: 6
158
- })) : (y.value = l.value.style.weightLabels.size, E.value = l.value.style.plot.radius, B.value = l.value.style.labels.fontSize);
159
+ })) : (y.value = l.value.style.weightLabels.size, F.value = l.value.style.plot.radius, I.value = l.value.style.labels.fontSize);
159
160
  });
160
161
  });
161
162
  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);
162
163
  } else
163
- b.value = [], p.value = [], X(), Y();
164
+ k.value = [], p.value = [], Y(), q();
165
+ ke();
164
166
  }
165
- ot(() => {
166
- document.getElementById(`relation_circle_${I.value}`).removeEventListener("click", be), w.value && (L.value && w.value.unobserve(L.value), w.value.disconnect());
167
+ ct(() => {
168
+ document.getElementById(`relation_circle_${S.value}`).removeEventListener("click", we), w.value && (L.value && w.value.unobserve(L.value), w.value.disconnect());
169
+ });
170
+ const { autoSizeLabels: ke } = zt({
171
+ svgRef: W,
172
+ fontSize: l.value.style.labels.fontSize,
173
+ minFontSize: l.value.style.labels.minFontSize,
174
+ sizeRef: I,
175
+ labelClass: ".vue-ui-relation-circle-legend"
167
176
  });
168
- function be(e) {
177
+ function we(e) {
169
178
  const s = e.target;
170
- 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 = {}, k.value = []);
179
+ 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 = []);
171
180
  }
172
- function X() {
173
- const e = 6.28319 / S.value.length, s = 360 / S.value.length;
181
+ function Y() {
182
+ const e = 6.28319 / E.value.length, s = 360 / E.value.length;
174
183
  let t = 0, a = 0;
175
- S.value.forEach((c, v) => {
176
- const J = c.weights.reduce((at, it) => at + it, 0), K = C.value * Math.cos(t) + r.value.width / 2, st = C.value * Math.sin(t) + r.value.height / 2 + l.value.style.circle.offsetY;
177
- b.value.push({ x: K, y: st, ...c, color: c.color ? c.color : me.value[v] ? me.value[v] : Oe[v], regAngle: a, totalWeight: J }), t += e, a += s;
184
+ E.value.forEach((c, v) => {
185
+ const K = c.weights.reduce((it, nt) => it + nt, 0), Q = C.value * Math.cos(t) + o.value.width / 2, at = C.value * Math.sin(t) + o.value.height / 2 + l.value.style.circle.offsetY;
186
+ k.value.push({ x: Q, y: at, ...c, color: c.color ? c.color : me.value[v] ? me.value[v] : Oe[v], regAngle: a, totalWeight: K }), t += e, a += s;
178
187
  });
179
188
  }
180
- function qe(e, s) {
189
+ function He(e, s) {
181
190
  const t = (e.x + s.x) / 2, a = (e.y + s.y) / 2;
182
191
  return { x: t, y: a };
183
192
  }
184
- function Y() {
185
- p.value = [], b.value.forEach((e) => {
186
- b.value.filter((t) => t.relations.includes(e.id)).forEach((t, a) => {
193
+ function q() {
194
+ p.value = [], k.value.forEach((e) => {
195
+ k.value.filter((t) => t.relations.includes(e.id)).forEach((t, a) => {
187
196
  const c = t.relations.indexOf(e.id);
188
197
  p.value.push({
189
198
  weight: t.weights[c] ? t.weights[c] : 0,
@@ -194,8 +203,8 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
194
203
  y2: t.y,
195
204
  colorSource: e.color,
196
205
  colorTarget: t.color,
197
- midPointLine: qe({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
198
- midPointBezier: He({
206
+ midPointLine: He({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
207
+ midPointBezier: Je({
199
208
  x1: e.x,
200
209
  x2: t.x,
201
210
  y1: e.y,
@@ -206,63 +215,63 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
206
215
  });
207
216
  });
208
217
  }
209
- function He(e) {
218
+ function Je(e) {
210
219
  const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, a = { x: e.x1, y: e.y1 }, c = {
211
- x: r.value.width / 2,
212
- y: r.value.height / 2 + l.value.style.circle.offsetY
213
- }, v = 0.5, J = 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, K = 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;
214
- return { x: J, y: K };
220
+ x: o.value.width / 2,
221
+ y: o.value.height / 2 + l.value.style.circle.offsetY
222
+ }, 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;
223
+ return { x: K, y: Q };
215
224
  }
216
- const Je = h(() => Math.max(...p.value.map((e) => e.weight)));
217
- function Ke(e) {
218
- return Object.hasOwn(d.value, "x") ? k.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
225
+ const Ke = h(() => Math.max(...p.value.map((e) => e.weight)));
226
+ function Qe(e) {
227
+ return Object.hasOwn(d.value, "x") ? b.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
219
228
  }
220
229
  function x(e) {
221
230
  return e.colorSource;
222
231
  }
223
- function we(e) {
224
- return Object.hasOwn(d.value, "x") ? k.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}` ? `opacity:1;stroke-width:${q(e)}` : "opacity: 0" : "opacity: 1";
232
+ function xe(e) {
233
+ 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";
225
234
  }
226
235
  function P(e) {
227
- return Object.hasOwn(d.value, "x") ? !!(k.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}`) : !1;
228
- }
229
- function Qe(e) {
230
- return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
236
+ 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;
231
237
  }
232
238
  function Ze(e) {
233
- return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
239
+ return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
234
240
  }
235
241
  function et(e) {
236
- return Object.hasOwn(d.value, "x") ? d.value.id === e.id || k.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
242
+ return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
237
243
  }
238
244
  function tt(e) {
239
- return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
245
+ return Object.hasOwn(d.value, "x") ? d.value.id === e.id || b.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
240
246
  }
241
- const F = o(null);
242
- function xe(e, s) {
243
- F.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s });
247
+ function lt(e) {
248
+ return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
244
249
  }
250
+ const B = r(null);
245
251
  function $e(e, s) {
246
- F.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s });
252
+ B.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s });
247
253
  }
248
254
  function Ae(e, s) {
249
- l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: e, seriesIndex: s }), Ge.value = 360 - e.regAngle, d.value.id && e.id === d.value.id ? (d.value = {}, k.value = []) : (d.value = e, k.value = [...e.relations]);
255
+ B.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s });
250
256
  }
251
- function q(e) {
252
- const s = e.weight / Je.value * l.value.style.links.maxWidth;
257
+ function _e(e, s) {
258
+ l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: e, seriesIndex: s }), Ge.value = 360 - e.regAngle, d.value.id && e.id === d.value.id ? (d.value = {}, b.value = []) : (d.value = e, b.value = [...e.relations]);
259
+ }
260
+ function H(e) {
261
+ const s = e.weight / Ke.value * l.value.style.links.maxWidth;
253
262
  return Math.max(0.3, s);
254
263
  }
255
- const T = o(!1);
256
- function _e(e) {
257
- T.value = e, ae.value += 1;
264
+ const R = r(!1);
265
+ function Ce(e) {
266
+ R.value = e, ie.value += 1;
258
267
  }
259
- const R = o(!1);
260
- function H() {
261
- R.value = !R.value;
268
+ const T = r(!1);
269
+ function J() {
270
+ T.value = !T.value;
262
271
  }
263
- async function lt({ scale: e = 2 } = {}) {
272
+ async function st({ scale: e = 2 } = {}) {
264
273
  if (!A.value) return;
265
- const { width: s, height: t } = A.value.getBoundingClientRect(), a = s / t, { imageUri: c, base64: v } = await Pt({ domElement: A.value, base64: !0, img: !0, scale: e });
274
+ const { width: s, height: t } = A.value.getBoundingClientRect(), a = s / t, { imageUri: c, base64: v } = await Ot({ domElement: A.value, base64: !0, img: !0, scale: e });
266
275
  return {
267
276
  imageUri: c,
268
277
  base64: v,
@@ -273,42 +282,42 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
273
282
  };
274
283
  }
275
284
  return Be({
276
- getImage: lt,
285
+ getImage: st,
277
286
  generatePdf: he,
278
287
  generateImage: ge,
279
- toggleAnnotator: H,
280
- toggleFullscreen: _e
288
+ toggleAnnotator: J,
289
+ toggleFullscreen: Ce
281
290
  }), (e, s) => (i(), n("div", {
282
291
  ref_key: "relationCircleChart",
283
292
  ref: A,
284
293
  class: "vue-ui-relation-circle",
285
- style: O(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
286
- id: `relation_circle_${I.value}`,
287
- onMouseenter: s[0] || (s[0] = () => u(ce)(!0)),
288
- onMouseleave: s[1] || (s[1] = () => u(ce)(!1))
294
+ style: z(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
295
+ id: `relation_circle_${S.value}`,
296
+ onMouseenter: s[0] || (s[0] = () => u(ve)(!0)),
297
+ onMouseleave: s[1] || (s[1] = () => u(ve)(!1))
289
298
  }, [
290
- l.value.userOptions.buttons.annotator ? (i(), N(u(Fe), {
299
+ l.value.userOptions.buttons.annotator ? (i(), N(u(Re), {
291
300
  key: 0,
292
- svgRef: u(de),
301
+ svgRef: u(W),
293
302
  backgroundColor: l.value.style.backgroundColor,
294
303
  color: l.value.style.color,
295
- active: R.value,
296
- onClose: H
304
+ active: T.value,
305
+ onClose: J
297
306
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
298
- Ue.value ? (i(), n("div", {
307
+ Ve.value ? (i(), n("div", {
299
308
  key: 1,
300
309
  ref_key: "noTitle",
301
- ref: ue,
310
+ ref: oe,
302
311
  class: "vue-data-ui-no-title-space",
303
312
  style: "height:36px; width: 100%;background:transparent"
304
313
  }, null, 512)) : f("", !0),
305
314
  l.value.style.title.text ? (i(), n("div", {
306
315
  key: 2,
307
316
  ref_key: "chartTitle",
308
- ref: ie,
317
+ ref: ne,
309
318
  style: "width:100%;background:transparent"
310
319
  }, [
311
- (i(), N(Ot, {
320
+ (i(), N(St, {
312
321
  key: `title_${re.value}`,
313
322
  config: {
314
323
  title: {
@@ -322,34 +331,34 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
322
331
  }
323
332
  }, null, 8, ["config"]))
324
333
  ], 512)) : f("", !0),
325
- l.value.userOptions.show && je.value && (u(ve) || u(V)) ? (i(), N(u(Te), {
334
+ l.value.userOptions.show && De.value && (u(de) || u(G)) ? (i(), N(u(Te), {
326
335
  ref: "details",
327
- key: `user_options_${ae.value}`,
336
+ key: `user_options_${ie.value}`,
328
337
  backgroundColor: l.value.style.backgroundColor,
329
338
  color: l.value.style.color,
330
339
  isPrinting: u(fe),
331
340
  isImaging: u(ye),
332
- uid: I.value,
341
+ uid: S.value,
333
342
  hasPdf: l.value.userOptions.buttons.pdf,
334
343
  hasImg: l.value.userOptions.buttons.img,
335
344
  hasFullscreen: l.value.userOptions.buttons.img,
336
345
  hasXls: !1,
337
- isFullscreen: T.value,
346
+ isFullscreen: R.value,
338
347
  titles: { ...l.value.userOptions.buttonTitles },
339
348
  chartElement: A.value,
340
349
  position: l.value.userOptions.position,
341
350
  hasAnnotator: l.value.userOptions.buttons.annotator,
342
- isAnnotation: R.value,
351
+ isAnnotation: T.value,
343
352
  callbacks: l.value.userOptions.callbacks,
344
353
  printScale: l.value.userOptions.print.scale,
345
- onToggleFullscreen: _e,
354
+ onToggleFullscreen: Ce,
346
355
  onGeneratePdf: u(he),
347
356
  onGenerateImage: u(ge),
348
- onToggleAnnotator: H,
349
- style: O({
350
- visibility: u(ve) ? u(V) ? "visible" : "hidden" : "visible"
357
+ onToggleAnnotator: J,
358
+ style: z({
359
+ visibility: u(de) ? u(G) ? "visible" : "hidden" : "visible"
351
360
  })
352
- }, ct({ _: 2 }, [
361
+ }, vt({ _: 2 }, [
353
362
  e.$slots.menuIcon ? {
354
363
  name: "menuIcon",
355
364
  fn: M(({ isOpen: t, color: a }) => [
@@ -388,48 +397,48 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
388
397
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
389
398
  (i(), n("svg", {
390
399
  ref_key: "svgRef",
391
- ref: de,
392
- xmlns: u(bt),
393
- class: ee([{ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }, "relation-circle"]),
394
- viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
400
+ ref: W,
401
+ xmlns: u(wt),
402
+ class: te([{ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }, "relation-circle"]),
403
+ viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
395
404
  width: "100%",
396
405
  style: "user-select:none; background:transparent"
397
406
  }, [
398
- vt(u(Re)),
407
+ dt(u(Ne)),
399
408
  e.$slots["chart-background"] ? (i(), n("foreignObject", {
400
409
  key: 0,
401
410
  x: 0,
402
411
  y: 0,
403
- width: r.value.width <= 0 ? 10 : r.value.width,
404
- height: r.value.height <= 0 ? 10 : r.value.height,
412
+ width: o.value.width <= 0 ? 10 : o.value.width,
413
+ height: o.value.height <= 0 ? 10 : o.value.height,
405
414
  style: {
406
415
  pointerEvents: "none"
407
416
  }
408
417
  }, [
409
418
  g(e.$slots, "chart-background", {}, void 0, !0)
410
- ], 8, St)) : f("", !0),
411
- dt("circle", {
412
- cx: (r.value.width <= 0 ? 1e-4 : r.value.width) / 2,
413
- cy: (r.value.height <= 0 ? 1e-4 : r.value.height) / 2 + l.value.style.circle.offsetY,
419
+ ], 8, Ft)) : f("", !0),
420
+ ft("circle", {
421
+ cx: (o.value.width <= 0 ? 1e-4 : o.value.width) / 2,
422
+ cy: (o.value.height <= 0 ? 1e-4 : o.value.height) / 2 + l.value.style.circle.offsetY,
414
423
  r: C.value <= 0 ? 1e-4 : C.value,
415
424
  stroke: l.value.style.circle.stroke,
416
425
  "stroke-width": l.value.style.circle.strokeWidth,
417
426
  fill: "transparent",
418
427
  class: "main-circle"
419
- }, null, 8, Et),
420
- Ve.value ? (i(), n("g", Bt, [
421
- (i(!0), n($, null, z(p.value, (t, a) => (i(), n("path", {
428
+ }, null, 8, Bt),
429
+ We.value ? (i(), n("g", Rt, [
430
+ (i(!0), n($, null, O(p.value, (t, a) => (i(), n("path", {
422
431
  key: `relation_${a}`,
423
- style: O(we(t)),
432
+ style: z(xe(t)),
424
433
  stroke: x(t),
425
- class: ee(["relation", { "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && k.value.includes(t.id) }]),
426
- 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}`,
434
+ class: te(["relation", { "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && b.value.includes(t.id) }]),
435
+ d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${o.value.width / 2},${o.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
427
436
  fill: "none",
428
- "stroke-width": q(t),
437
+ "stroke-width": H(t),
429
438
  "stroke-linecap": "round"
430
- }, null, 14, Ft))), 128)),
431
- (i(!0), n($, null, z(p.value, (t, a) => (i(), n("g", Tt, [
432
- P(t) ? g(e.$slots, "dataLabel", Le({
439
+ }, null, 14, Tt))), 128)),
440
+ (i(!0), n($, null, O(p.value, (t, a) => (i(), n("g", Nt, [
441
+ P(t) ? g(e.$slots, "dataLabel", Pe({
433
442
  key: 0,
434
443
  ref_for: !0
435
444
  }, {
@@ -447,7 +456,7 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
447
456
  r: y.value,
448
457
  stroke: l.value.style.backgroundColor,
449
458
  "stroke-width": "1"
450
- }, null, 8, Rt)) : f("", !0),
459
+ }, null, 8, jt)) : f("", !0),
451
460
  P(t) && !e.$slots.dataLabel ? (i(), n("text", {
452
461
  key: 2,
453
462
  x: t.midPointBezier.x,
@@ -455,33 +464,33 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
455
464
  fill: u(Me)(x(t)),
456
465
  "text-anchor": "middle",
457
466
  "font-size": y.value
458
- }, U(u(te)(
467
+ }, U(u(le)(
459
468
  l.value.style.weightLabels.formatter,
460
469
  t.weight,
461
- u(le)({
470
+ u(se)({
462
471
  p: l.value.style.weightLabels.prefix,
463
472
  v: t.weight,
464
473
  s: l.value.style.weightLabels.suffix,
465
474
  r: l.value.style.weightLabels.rounding
466
475
  }),
467
476
  { ...t }
468
- )), 9, Nt)) : f("", !0)
477
+ )), 9, Dt)) : f("", !0)
469
478
  ]))), 256))
470
- ])) : (i(), n("g", jt, [
471
- (i(!0), n($, null, z(p.value, (t, a) => (i(), n("line", {
479
+ ])) : (i(), n("g", Ut, [
480
+ (i(!0), n($, null, O(p.value, (t, a) => (i(), n("line", {
472
481
  key: `relation_${a}`,
473
482
  stroke: x(t),
474
- "stroke-width": q(t),
475
- style: O(we(t)),
483
+ "stroke-width": H(t),
484
+ style: z(xe(t)),
476
485
  x1: t.x1,
477
486
  x2: t.x2,
478
487
  y1: t.y1,
479
488
  y2: t.y2,
480
- class: ee({ "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && k.value.includes(t.id) }),
489
+ class: te({ "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && b.value.includes(t.id) }),
481
490
  "stroke-linecap": "round"
482
- }, null, 14, Dt))), 128)),
483
- (i(!0), n($, null, z(p.value, (t, a) => (i(), n("g", Ut, [
484
- P(t) ? g(e.$slots, "dataLabel", Le({
491
+ }, null, 14, Vt))), 128)),
492
+ (i(!0), n($, null, O(p.value, (t, a) => (i(), n("g", Gt, [
493
+ P(t) ? g(e.$slots, "dataLabel", Pe({
485
494
  key: 0,
486
495
  ref_for: !0
487
496
  }, {
@@ -499,7 +508,7 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
499
508
  r: y.value,
500
509
  stroke: l.value.style.backgroundColor,
501
510
  "stroke-width": "1"
502
- }, null, 8, Gt)) : f("", !0),
511
+ }, null, 8, Wt)) : f("", !0),
503
512
  P(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), n("text", {
504
513
  key: 2,
505
514
  x: t.midPointLine.x,
@@ -507,43 +516,43 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
507
516
  fill: u(Me)(x(t)),
508
517
  "text-anchor": "middle",
509
518
  "font-size": y.value
510
- }, U(u(te)(
519
+ }, U(u(le)(
511
520
  l.value.style.weightLabels.formatter,
512
521
  t.weight,
513
- u(le)({
522
+ u(se)({
514
523
  p: l.value.style.weightLabels.prefix,
515
524
  v: t.weight,
516
525
  s: l.value.style.weightLabels.suffix,
517
526
  r: l.value.style.weightLabels.rounding
518
527
  }),
519
528
  { ...t }
520
- )), 9, Vt)) : f("", !0)
529
+ )), 9, Xt)) : f("", !0)
521
530
  ]))), 256))
522
531
  ])),
523
- (i(!0), n($, null, z(b.value, (t, a) => (i(), n("text", {
532
+ (i(!0), n($, null, O(k.value, (t, a) => (i(), n("text", {
524
533
  key: `plot_text_${a}`,
525
- "text-anchor": Qe(t),
526
- transform: tt(t),
527
- x: Ze(t),
534
+ "text-anchor": Ze(t),
535
+ transform: lt(t),
536
+ x: et(t),
528
537
  y: t.y + 5,
529
538
  class: "vue-ui-relation-circle-legend",
530
539
  "transform-origin": "start",
531
540
  "font-weight": d.value.id === t.id ? "900" : "400",
532
- style: O(`font-family:${l.value.style.fontFamily};${et(t)}`),
533
- "font-size": B.value,
541
+ style: z(`font-family:${l.value.style.fontFamily};${tt(t)}`),
542
+ "font-size": I.value,
534
543
  fill: l.value.style.labels.color,
535
- "text-decoration": a === F.value ? "underline" : void 0,
536
- onClick: (c) => Ae(t, a),
537
- onMouseenter: (c) => xe(t, a),
538
- onMouseleave: (c) => $e(t, a)
544
+ "text-decoration": a === B.value ? "underline" : void 0,
545
+ onClick: (c) => _e(t, a),
546
+ onMouseenter: (c) => $e(t, a),
547
+ onMouseleave: (c) => Ae(t, a)
539
548
  }, [
540
- u(oe) ? (i(), n($, { key: 0 }, [
541
- Pe(" -------- ")
549
+ u(ce) ? (i(), n($, { key: 0 }, [
550
+ ze(" -------- ")
542
551
  ], 64)) : (i(), n($, { key: 1 }, [
543
- Pe(U(t.label) + " (" + U(u(te)(
552
+ ze(U(t.label) + " (" + U(u(le)(
544
553
  l.value.style.weightLabels.formatter,
545
554
  t.totalWeight,
546
- u(le)({
555
+ u(se)({
547
556
  p: l.value.style.weightLabels.prefix,
548
557
  v: t.totalWeight,
549
558
  s: l.value.style.weightLabels.suffix,
@@ -552,38 +561,38 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
552
561
  { ...t }
553
562
  )) + ") ", 1)
554
563
  ], 64))
555
- ], 44, Wt))), 128)),
556
- (i(!0), n($, null, z(b.value, (t, a) => (i(), n("circle", {
564
+ ], 44, Yt))), 128)),
565
+ (i(!0), n($, null, O(k.value, (t, a) => (i(), n("circle", {
557
566
  cx: t.x,
558
567
  cy: t.y,
559
568
  key: `plot_${a}`,
560
- style: O(`${Ke(t)}; transition: r 0.2s ease-in-out;`),
569
+ style: z(`${Qe(t)}; transition: r 0.2s ease-in-out;`),
561
570
  class: "vue-ui-relation-circle-plot",
562
571
  fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
563
572
  stroke: l.value.style.backgroundColor,
564
573
  "stroke-width": "1",
565
- r: E.value * (a === F.value ? 2 : 1),
566
- onClick: (c) => Ae(t, a),
567
- onMouseenter: (c) => xe(t, a),
568
- onMouseleave: (c) => $e(t, a)
569
- }, null, 44, Xt))), 128)),
570
- g(e.$slots, "svg", { svg: r.value }, void 0, !0)
571
- ], 10, Mt)),
572
- e.$slots.watermark ? (i(), n("div", Yt, [
574
+ r: F.value * (a === B.value ? 2 : 1),
575
+ onClick: (c) => _e(t, a),
576
+ onMouseenter: (c) => $e(t, a),
577
+ onMouseleave: (c) => Ae(t, a)
578
+ }, null, 44, qt))), 128)),
579
+ g(e.$slots, "svg", { svg: o.value }, void 0, !0)
580
+ ], 10, Et)),
581
+ e.$slots.watermark ? (i(), n("div", Ht, [
573
582
  g(e.$slots, "watermark", j(D({ isPrinting: u(fe) || u(ye) })), void 0, !0)
574
583
  ])) : f("", !0),
575
584
  e.$slots.source ? (i(), n("div", {
576
585
  key: 5,
577
586
  ref_key: "source",
578
- ref: ne,
587
+ ref: ue,
579
588
  dir: "auto"
580
589
  }, [
581
590
  g(e.$slots, "source", {}, void 0, !0)
582
591
  ], 512)) : f("", !0),
583
- u(oe) ? (i(), N(At, { key: 6 })) : f("", !0)
584
- ], 44, It));
592
+ u(ce) ? (i(), N(_t, { key: 6 })) : f("", !0)
593
+ ], 44, Mt));
585
594
  }
586
- }, nl = /* @__PURE__ */ zt(qt, [["__scopeId", "data-v-858c05c5"]]);
595
+ }, rl = /* @__PURE__ */ It(Jt, [["__scopeId", "data-v-72b30f4c"]]);
587
596
  export {
588
- nl as default
597
+ rl as default
589
598
  };