vue-data-ui 3.0.14 → 3.0.15

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 (89) hide show
  1. package/dist/{Arrow-D_KT7quB.js → Arrow-DGSYU08F.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Dk6ObnG6.js → BaseDraggableDialog-C8qz7ExB.js} +2 -2
  3. package/dist/{BaseIcon-BCqWWRyS.js → BaseIcon-BA3j_Lwf.js} +1 -1
  4. package/dist/{ColorPicker-D4s6oWij.js → ColorPicker-sW0pMaCb.js} +2 -2
  5. package/dist/{DataTable-R-HFYyQH.js → DataTable-Co-fVzdq.js} +2 -2
  6. package/dist/{Legend-C2AUd0Q-.js → Legend-NBffBBnn.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-CndJxks1.js → NonSvgPenAndPaper-CWsUFLND.js} +3 -3
  8. package/dist/{PackageVersion-L8jgnm93.js → PackageVersion-DkN4tXY6.js} +1 -1
  9. package/dist/{PenAndPaper-B0N4qLUl.js → PenAndPaper-C5tGS7J9.js} +3 -3
  10. package/dist/{Shape-BOLi_2P0.js → Shape-Bgg7Nwsz.js} +1 -1
  11. package/dist/{Slicer-CzxtPv2I.js → Slicer-DzsOD_6h.js} +2 -2
  12. package/dist/{SparkTooltip-Cl7CDAK-.js → SparkTooltip-Cfx3n0pP.js} +1 -1
  13. package/dist/{Title-qljpbaH_.js → Title-Cdu-aDOL.js} +1 -1
  14. package/dist/{Tooltip-CAWZetlE.js → Tooltip-mB2Rs1Vj.js} +1 -1
  15. package/dist/{UserOptions-Bi3vHBGc.js → UserOptions-BMoiHEKE.js} +2 -2
  16. package/dist/{dom-to-png-DeN7qRoq.js → dom-to-png-DzfS79Op.js} +1 -1
  17. package/dist/{img-DOMLxaLG.js → img-7sjXtnNU.js} +1 -1
  18. package/dist/{index-BbjJEUYf.js → index-CjmWQAkv.js} +4 -4
  19. package/dist/{pdf-DzF5U6qH.js → pdf-BepSOa2A.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/useAutoSizeLabelsInsideViewbox-iRzr0rIq.js +81 -0
  22. package/dist/{useNestedProp-B0O5SJFw.js → useNestedProp-DFYUwW_F.js} +1 -1
  23. package/dist/{usePrinter-BR9xYJPs.js → usePrinter-BD_X6xEq.js} +2 -2
  24. package/dist/{vue-data-ui-Clsjl_5G.js → vue-data-ui-BHC_kJCP.js} +64 -64
  25. package/dist/vue-data-ui.js +1 -1
  26. package/dist/{vue-ui-3d-bar-CfPp7uSf.js → vue-ui-3d-bar-CvM_pNPs.js} +6 -6
  27. package/dist/{vue-ui-accordion-BzryhJUY.js → vue-ui-accordion-BOmbEAe4.js} +3 -3
  28. package/dist/{vue-ui-age-pyramid-Bfm3eU8g.js → vue-ui-age-pyramid-2GEKVOIu.js} +6 -6
  29. package/dist/{vue-ui-annotator-CzSx0F_d.js → vue-ui-annotator-ULK7i_cb.js} +2 -2
  30. package/dist/{vue-ui-bullet-DRB4T0IN.js → vue-ui-bullet-CtrrTkUl.js} +7 -7
  31. package/dist/{vue-ui-candlestick-Zj-wL3Fw.js → vue-ui-candlestick-C8_qIKhP.js} +7 -7
  32. package/dist/{vue-ui-carousel-table-Cy0In84y.js → vue-ui-carousel-table-C5-I9TDG.js} +4 -4
  33. package/dist/{vue-ui-chestnut-C3JyH-Tw.js → vue-ui-chestnut-DbGjz6NE.js} +5 -5
  34. package/dist/{vue-ui-chord-BViOdSxx.js → vue-ui-chord-DSav5VH4.js} +8 -8
  35. package/dist/{vue-ui-circle-pack-CoaLoFGK.js → vue-ui-circle-pack-Ost-SfPy.js} +6 -6
  36. package/dist/{vue-ui-cursor-m4mIw8qD.js → vue-ui-cursor-CvvBIdhO.js} +2 -2
  37. package/dist/{vue-ui-dashboard-C_Q85tT0.js → vue-ui-dashboard-B6jTz1V8.js} +62 -62
  38. package/dist/{vue-ui-digits-DLr-55NR.js → vue-ui-digits-DW4j5hMp.js} +2 -2
  39. package/dist/{vue-ui-donut-BRIaxAzH.js → vue-ui-donut-CQgVEHBd.js} +8 -8
  40. package/dist/{vue-ui-donut-evolution-B5s4iM6g.js → vue-ui-donut-evolution-3Kg_0Aq8.js} +8 -8
  41. package/dist/{vue-ui-dumbbell-Dmnge0uo.js → vue-ui-dumbbell-B0RA0uh4.js} +7 -7
  42. package/dist/{vue-ui-flow-COgCmDRI.js → vue-ui-flow-mfN9qv9u.js} +7 -7
  43. package/dist/{vue-ui-funnel-Dj8K2IL4.js → vue-ui-funnel-By1EE6eQ.js} +6 -6
  44. package/dist/{vue-ui-galaxy-BwO1zmev.js → vue-ui-galaxy-DUnLy7nU.js} +5 -5
  45. package/dist/{vue-ui-gauge-CEzzFE1a.js → vue-ui-gauge-B9s5assa.js} +7 -7
  46. package/dist/{vue-ui-gizmo-CQZU0GHu.js → vue-ui-gizmo-D5nFPB5S.js} +3 -3
  47. package/dist/{vue-ui-heatmap-WYbCgo4T.js → vue-ui-heatmap-B99sMjxs.js} +7 -7
  48. package/dist/{vue-ui-history-plot-D0MZkhIx.js → vue-ui-history-plot-BcnKJSTL.js} +7 -7
  49. package/dist/{vue-ui-kpi-CO1e3lQt.js → vue-ui-kpi-BoiQMCdn.js} +3 -3
  50. package/dist/{vue-ui-mini-loader-Cwqdk0Hc.js → vue-ui-mini-loader-Fd0upr6u.js} +2 -2
  51. package/dist/{vue-ui-molecule-BqpN0Jwl.js → vue-ui-molecule-C8U7G10y.js} +5 -5
  52. package/dist/{vue-ui-mood-radar-BTatGJlv.js → vue-ui-mood-radar-83Su_aAf.js} +7 -7
  53. package/dist/{vue-ui-nested-donuts-CBM5xhcZ.js → vue-ui-nested-donuts-BT9ZqiqC.js} +7 -7
  54. package/dist/{vue-ui-onion-DqPp3WUr.js → vue-ui-onion-9JIdWtsY.js} +8 -8
  55. package/dist/{vue-ui-parallel-coordinate-plot-BCtTZHSi.js → vue-ui-parallel-coordinate-plot-C1FjeIr0.js} +8 -8
  56. package/dist/{vue-ui-quadrant-DC1-Lm48.js → vue-ui-quadrant-3WUBK3nJ.js} +8 -8
  57. package/dist/{vue-ui-quick-chart-BoppF9R_.js → vue-ui-quick-chart-DY43gV8A.js} +6 -6
  58. package/dist/{vue-ui-radar-BhUonhBU.js → vue-ui-radar-C4KMiQ_0.js} +8 -8
  59. package/dist/{vue-ui-rating-D8LoaDfF.js → vue-ui-rating-BvD7AC9t.js} +2 -2
  60. package/dist/{vue-ui-relation-circle-BJDsl3eM.js → vue-ui-relation-circle-CkJugcvo.js} +194 -203
  61. package/dist/{vue-ui-ridgeline-DsadsetS.js → vue-ui-ridgeline-BWWwyiku.js} +8 -8
  62. package/dist/{vue-ui-rings-DBm6tU4x.js → vue-ui-rings--RHm1WPt.js} +8 -8
  63. package/dist/{vue-ui-scatter-Bn9aVcZq.js → vue-ui-scatter-BlJi3Vto.js} +8 -8
  64. package/dist/{vue-ui-skeleton-_9gYG5uM.js → vue-ui-skeleton-BpaC2poA.js} +3 -3
  65. package/dist/{vue-ui-smiley-CAa8JkGc.js → vue-ui-smiley-DFQ-eGPr.js} +2 -2
  66. package/dist/{vue-ui-spark-trend-C4GWQ2O3.js → vue-ui-spark-trend-DBvs77p7.js} +3 -3
  67. package/dist/{vue-ui-sparkbar-Dx1Pf0pI.js → vue-ui-sparkbar-5-xCacnj.js} +3 -3
  68. package/dist/{vue-ui-sparkgauge-Ap1WNJ8J.js → vue-ui-sparkgauge-B_Hahm_m.js} +3 -3
  69. package/dist/{vue-ui-sparkhistogram-Dk4iCckr.js → vue-ui-sparkhistogram-CE3o-lRl.js} +4 -4
  70. package/dist/{vue-ui-sparkline-BY_0v4nM.js → vue-ui-sparkline-RzY__SHu.js} +3 -3
  71. package/dist/{vue-ui-sparkstackbar-CyiRxg1b.js → vue-ui-sparkstackbar-mf1_NIVO.js} +3 -3
  72. package/dist/{vue-ui-stackbar-BWJkn4sU.js → vue-ui-stackbar-e0_-TwRA.js} +9 -9
  73. package/dist/{vue-ui-strip-plot-COg5_F-1.js → vue-ui-strip-plot-DNF_a6tQ.js} +7 -7
  74. package/dist/{vue-ui-table--aZGc83K.js → vue-ui-table-DyRQD9Jx.js} +3 -3
  75. package/dist/{vue-ui-table-heatmap-Bp8FepMh.js → vue-ui-table-heatmap-D0khMn8L.js} +5 -5
  76. package/dist/{vue-ui-table-sparkline-S5Vvy7zi.js → vue-ui-table-sparkline-CrEJ_BYI.js} +4 -4
  77. package/dist/{vue-ui-thermometer-BrwzA-cJ.js → vue-ui-thermometer-WWlRC1pG.js} +7 -7
  78. package/dist/{vue-ui-timer-C8eyCIql.js → vue-ui-timer-DFrFvU8Z.js} +5 -5
  79. package/dist/{vue-ui-tiremarks-DUw68EW0.js → vue-ui-tiremarks-BcGXDBHM.js} +6 -6
  80. package/dist/{vue-ui-treemap-DipBxisq.js → vue-ui-treemap-CISOrlRD.js} +8 -8
  81. package/dist/{vue-ui-vertical-bar-DA3E8leo.js → vue-ui-vertical-bar-BIGQJhXk.js} +9 -9
  82. package/dist/{vue-ui-waffle-DFoees7z.js → vue-ui-waffle-ZR7fefhR.js} +8 -8
  83. package/dist/{vue-ui-wheel-D86304mK.js → vue-ui-wheel-DRp9k9JL.js} +6 -6
  84. package/dist/{vue-ui-word-cloud-BsNeRazH.js → vue-ui-word-cloud-jlqVnKu7.js} +6 -6
  85. package/dist/{vue-ui-world-BYIS8MNS.js → vue-ui-world-PWs6PTyh.js} +6 -6
  86. package/dist/{vue-ui-xy-DUBk7Pk1.js → vue-ui-xy-D9GnZXb-.js} +315 -312
  87. package/dist/{vue-ui-xy-canvas-BIgquvWF.js → vue-ui-xy-canvas-JxDjG7z8.js} +8 -8
  88. package/package.json +1 -1
  89. package/dist/useAutoSizeLabelsInsideViewbox-DeGOz-va.js +0 -81
@@ -1,19 +1,18 @@
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-BbjJEUYf.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-BR9xYJPs.js";
6
- import { u as Ee } from "./useNestedProp-B0O5SJFw.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-DeGOz-va.js";
10
- import Ot from "./img-DOMLxaLG.js";
11
- import St from "./Title-qljpbaH_.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 = {
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 = {
14
13
  key: 4,
15
14
  class: "vue-data-ui-watermark"
16
- }, Jt = {
15
+ }, qt = {
17
16
  __name: "vue-ui-relation-circle",
18
17
  props: {
19
18
  dataset: {
@@ -29,16 +28,16 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
29
28
  }
30
29
  }
31
30
  },
32
- setup(Fe, { expose: Be }) {
33
- ut((e) => ({
34
- "51791a0b": Ye.value,
35
- "501dae6a": Xe.value,
36
- "2abe5668": qe.value
31
+ setup(Ee, { expose: Be }) {
32
+ nt((e) => ({
33
+ "3ea1ca4e": Xe.value,
34
+ "5faa9838": We.value,
35
+ f74c4bcc: Ye.value
37
36
  }));
38
- const Re = Z(() => import("./PenAndPaper-B0N4qLUl.js")), Te = Z(() => import("./UserOptions-Bi3vHBGc.js")), Ne = Z(() => import("./PackageVersion-L8jgnm93.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),
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),
40
39
  FINAL_CONFIG: l,
41
- prepareConfig: X,
40
+ prepareConfig: W,
42
41
  skeletonDataset: [
43
42
  { id: "A", label: "_", relations: ["B", "C", "D", "E", "F", "G"] },
44
43
  { id: "B", label: "_", relations: ["A"] },
@@ -48,7 +47,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
48
47
  { id: "F", label: "_", relations: ["A"] },
49
48
  { id: "G", label: "_", relations: ["A"] }
50
49
  ],
51
- skeletonConfig: gt({
50
+ skeletonConfig: ht({
52
51
  defaultConfig: l.value,
53
52
  userConfig: {
54
53
  userOptions: { show: !1 },
@@ -62,30 +61,30 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
62
61
  }
63
62
  }
64
63
  })
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({
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({
68
67
  userConfig: m.config,
69
- defaultConfig: je
68
+ defaultConfig: Ne
70
69
  });
71
70
  return e.theme ? {
72
- ...Ee({
73
- userConfig: pt.vue_ui_relation_circle[e.theme] || m.config,
71
+ ...Se({
72
+ userConfig: mt.vue_ui_relation_circle[e.theme] || m.config,
74
73
  defaultConfig: e
75
74
  }),
76
- customPalette: mt[e.theme] || Oe
75
+ customPalette: gt[e.theme] || Oe
77
76
  } : e;
78
77
  }
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);
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);
83
82
  }, { deep: !0 });
84
- const { isPrinting: fe, isImaging: ye, generatePdf: he, generateImage: ge } = Ct({
85
- elementId: `relation_circle_${S.value}`,
83
+ const { isPrinting: fe, isImaging: ye, generatePdf: he, generateImage: ge } = _t({
84
+ elementId: `relation_circle_${I.value}`,
86
85
  fileName: l.value.style.title.text || "vue-ui-relation-circle",
87
86
  options: l.value.userOptions.print
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) => {
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) => {
89
88
  const s = Array.isArray(e.relations) ? e.relations : [];
90
89
  return {
91
90
  ...e,
@@ -93,10 +92,10 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
93
92
  relations: s
94
93
  };
95
94
  }));
96
- ee(E, () => {
97
- k.value = [], p.value = [], Y(), q();
95
+ Z(S, () => {
96
+ b.value = [], p.value = [], X(), Y();
98
97
  });
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({
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({
100
99
  height: l.value.style.size,
101
100
  width: l.value.style.size
102
101
  }), C = h({
@@ -106,17 +105,17 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
106
105
  set(e) {
107
106
  return e;
108
107
  }
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);
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);
110
109
  rt(() => {
111
- be(), document.getElementById(`relation_circle_${S.value}`).addEventListener("click", we);
110
+ ke(), document.getElementById(`relation_circle_${I.value}`).addEventListener("click", be);
112
111
  });
113
112
  const pe = h(() => l.value.debug);
114
- function be() {
115
- if (Se(m.dataset) ? (Ie({
113
+ function ke() {
114
+ if (ze(m.dataset) ? (Ie({
116
115
  componentName: "VueUiRelationCircle",
117
116
  type: "dataset",
118
117
  debug: pe.value
119
- }), V.value = !0) : m.dataset.forEach((e, s) => {
118
+ }), G.value = !0) : m.dataset.forEach((e, s) => {
120
119
  kt({
121
120
  datasetObject: e,
122
121
  requiredAttributes: ["id", "label", "relations", "weights"]
@@ -129,70 +128,62 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
129
128
  debug: pe.value
130
129
  });
131
130
  });
132
- }), Se(m.dataset) || (V.value = l.value.loading), l.value.responsive) {
133
- const e = xt(() => {
134
- const { width: s, height: t } = $t({
131
+ }), ze(m.dataset) || (G.value = l.value.loading), l.value.responsive) {
132
+ const e = wt(() => {
133
+ const { width: s, height: t } = xt({
135
134
  chart: A.value,
136
- title: l.value.style.title.text ? ne.value : null,
137
- source: ue.value,
138
- noTitle: oe.value
135
+ title: l.value.style.title.text ? ie.value : null,
136
+ source: ne.value,
137
+ noTitle: ue.value
139
138
  });
140
139
  requestAnimationFrame(() => {
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({
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({
142
141
  relator: _.value,
143
142
  adjuster: l.value.style.size,
144
143
  source: l.value.style.weightLabels.size,
145
144
  threshold: 6,
146
145
  fallback: 6
147
- }), F.value = ae({
146
+ }), E.value = se({
148
147
  relator: _.value,
149
148
  adjuster: l.value.style.size,
150
149
  source: l.value.style.plot.radius,
151
150
  threshold: 1,
152
151
  fallback: 1
153
- }), I.value = ae({
152
+ }), B.value = se({
154
153
  relator: _.value,
155
154
  adjuster: l.value.style.size,
156
155
  source: l.value.style.labels.fontSize,
157
156
  threshold: 6,
158
157
  fallback: 6
159
- })) : (y.value = l.value.style.weightLabels.size, F.value = l.value.style.plot.radius, I.value = l.value.style.labels.fontSize);
158
+ })) : (y.value = l.value.style.weightLabels.size, E.value = l.value.style.plot.radius, B.value = l.value.style.labels.fontSize);
160
159
  });
161
160
  });
162
161
  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);
163
162
  } else
164
- k.value = [], p.value = [], Y(), q();
165
- ke();
163
+ b.value = [], p.value = [], X(), Y();
166
164
  }
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"
165
+ ot(() => {
166
+ document.getElementById(`relation_circle_${I.value}`).removeEventListener("click", be), w.value && (L.value && w.value.unobserve(L.value), w.value.disconnect());
176
167
  });
177
- function we(e) {
168
+ function be(e) {
178
169
  const s = e.target;
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 = []);
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 = []);
180
171
  }
181
- function Y() {
182
- const e = 6.28319 / E.value.length, s = 360 / E.value.length;
172
+ function X() {
173
+ const e = 6.28319 / S.value.length, s = 360 / S.value.length;
183
174
  let t = 0, a = 0;
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;
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;
187
178
  });
188
179
  }
189
- function He(e, s) {
180
+ function qe(e, s) {
190
181
  const t = (e.x + s.x) / 2, a = (e.y + s.y) / 2;
191
182
  return { x: t, y: a };
192
183
  }
193
- function q() {
194
- p.value = [], k.value.forEach((e) => {
195
- k.value.filter((t) => t.relations.includes(e.id)).forEach((t, a) => {
184
+ function Y() {
185
+ p.value = [], b.value.forEach((e) => {
186
+ b.value.filter((t) => t.relations.includes(e.id)).forEach((t, a) => {
196
187
  const c = t.relations.indexOf(e.id);
197
188
  p.value.push({
198
189
  weight: t.weights[c] ? t.weights[c] : 0,
@@ -203,8 +194,8 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
203
194
  y2: t.y,
204
195
  colorSource: e.color,
205
196
  colorTarget: t.color,
206
- midPointLine: He({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
207
- midPointBezier: Je({
197
+ midPointLine: qe({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
198
+ midPointBezier: He({
208
199
  x1: e.x,
209
200
  x2: t.x,
210
201
  y1: e.y,
@@ -215,63 +206,63 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
215
206
  });
216
207
  });
217
208
  }
218
- function Je(e) {
209
+ function He(e) {
219
210
  const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, a = { x: e.x1, y: e.y1 }, c = {
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 };
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 };
224
215
  }
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";
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";
228
219
  }
229
220
  function x(e) {
230
221
  return e.colorSource;
231
222
  }
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";
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";
234
225
  }
235
226
  function P(e) {
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;
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;
237
228
  }
238
- function Ze(e) {
229
+ function Qe(e) {
239
230
  return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
240
231
  }
241
- function et(e) {
232
+ function Ze(e) {
242
233
  return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
243
234
  }
244
- function tt(e) {
245
- return Object.hasOwn(d.value, "x") ? d.value.id === e.id || b.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
235
+ 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";
246
237
  }
247
- function lt(e) {
238
+ function tt(e) {
248
239
  return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
249
240
  }
250
- const B = r(null);
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 });
244
+ }
251
245
  function $e(e, s) {
252
- B.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s });
246
+ F.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s });
253
247
  }
254
248
  function Ae(e, s) {
255
- B.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: 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]);
256
250
  }
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;
251
+ function q(e) {
252
+ const s = e.weight / Je.value * l.value.style.links.maxWidth;
262
253
  return Math.max(0.3, s);
263
254
  }
264
- const R = r(!1);
265
- function Ce(e) {
266
- R.value = e, ie.value += 1;
255
+ const T = o(!1);
256
+ function _e(e) {
257
+ T.value = e, ae.value += 1;
267
258
  }
268
- const T = r(!1);
269
- function J() {
270
- T.value = !T.value;
259
+ const R = o(!1);
260
+ function H() {
261
+ R.value = !R.value;
271
262
  }
272
- async function st({ scale: e = 2 } = {}) {
263
+ async function lt({ scale: e = 2 } = {}) {
273
264
  if (!A.value) return;
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 });
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 });
275
266
  return {
276
267
  imageUri: c,
277
268
  base64: v,
@@ -282,42 +273,42 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
282
273
  };
283
274
  }
284
275
  return Be({
285
- getImage: st,
276
+ getImage: lt,
286
277
  generatePdf: he,
287
278
  generateImage: ge,
288
- toggleAnnotator: J,
289
- toggleFullscreen: Ce
279
+ toggleAnnotator: H,
280
+ toggleFullscreen: _e
290
281
  }), (e, s) => (i(), n("div", {
291
282
  ref_key: "relationCircleChart",
292
283
  ref: A,
293
284
  class: "vue-ui-relation-circle",
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))
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))
298
289
  }, [
299
- l.value.userOptions.buttons.annotator ? (i(), N(u(Re), {
290
+ l.value.userOptions.buttons.annotator ? (i(), N(u(Fe), {
300
291
  key: 0,
301
- svgRef: u(W),
292
+ svgRef: u(de),
302
293
  backgroundColor: l.value.style.backgroundColor,
303
294
  color: l.value.style.color,
304
- active: T.value,
305
- onClose: J
295
+ active: R.value,
296
+ onClose: H
306
297
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
307
- Ve.value ? (i(), n("div", {
298
+ Ue.value ? (i(), n("div", {
308
299
  key: 1,
309
300
  ref_key: "noTitle",
310
- ref: oe,
301
+ ref: ue,
311
302
  class: "vue-data-ui-no-title-space",
312
303
  style: "height:36px; width: 100%;background:transparent"
313
304
  }, null, 512)) : f("", !0),
314
305
  l.value.style.title.text ? (i(), n("div", {
315
306
  key: 2,
316
307
  ref_key: "chartTitle",
317
- ref: ne,
308
+ ref: ie,
318
309
  style: "width:100%;background:transparent"
319
310
  }, [
320
- (i(), N(St, {
311
+ (i(), N(Ot, {
321
312
  key: `title_${re.value}`,
322
313
  config: {
323
314
  title: {
@@ -331,34 +322,34 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
331
322
  }
332
323
  }, null, 8, ["config"]))
333
324
  ], 512)) : f("", !0),
334
- l.value.userOptions.show && De.value && (u(de) || u(G)) ? (i(), N(u(Te), {
325
+ l.value.userOptions.show && je.value && (u(ve) || u(V)) ? (i(), N(u(Te), {
335
326
  ref: "details",
336
- key: `user_options_${ie.value}`,
327
+ key: `user_options_${ae.value}`,
337
328
  backgroundColor: l.value.style.backgroundColor,
338
329
  color: l.value.style.color,
339
330
  isPrinting: u(fe),
340
331
  isImaging: u(ye),
341
- uid: S.value,
332
+ uid: I.value,
342
333
  hasPdf: l.value.userOptions.buttons.pdf,
343
334
  hasImg: l.value.userOptions.buttons.img,
344
335
  hasFullscreen: l.value.userOptions.buttons.img,
345
336
  hasXls: !1,
346
- isFullscreen: R.value,
337
+ isFullscreen: T.value,
347
338
  titles: { ...l.value.userOptions.buttonTitles },
348
339
  chartElement: A.value,
349
340
  position: l.value.userOptions.position,
350
341
  hasAnnotator: l.value.userOptions.buttons.annotator,
351
- isAnnotation: T.value,
342
+ isAnnotation: R.value,
352
343
  callbacks: l.value.userOptions.callbacks,
353
344
  printScale: l.value.userOptions.print.scale,
354
- onToggleFullscreen: Ce,
345
+ onToggleFullscreen: _e,
355
346
  onGeneratePdf: u(he),
356
347
  onGenerateImage: u(ge),
357
- onToggleAnnotator: J,
358
- style: z({
359
- visibility: u(de) ? u(G) ? "visible" : "hidden" : "visible"
348
+ onToggleAnnotator: H,
349
+ style: O({
350
+ visibility: u(ve) ? u(V) ? "visible" : "hidden" : "visible"
360
351
  })
361
- }, vt({ _: 2 }, [
352
+ }, ct({ _: 2 }, [
362
353
  e.$slots.menuIcon ? {
363
354
  name: "menuIcon",
364
355
  fn: M(({ isOpen: t, color: a }) => [
@@ -397,48 +388,48 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
397
388
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
398
389
  (i(), n("svg", {
399
390
  ref_key: "svgRef",
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}`,
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}`,
404
395
  width: "100%",
405
396
  style: "user-select:none; background:transparent"
406
397
  }, [
407
- dt(u(Ne)),
398
+ vt(u(Re)),
408
399
  e.$slots["chart-background"] ? (i(), n("foreignObject", {
409
400
  key: 0,
410
401
  x: 0,
411
402
  y: 0,
412
- width: o.value.width <= 0 ? 10 : o.value.width,
413
- height: o.value.height <= 0 ? 10 : o.value.height,
403
+ width: r.value.width <= 0 ? 10 : r.value.width,
404
+ height: r.value.height <= 0 ? 10 : r.value.height,
414
405
  style: {
415
406
  pointerEvents: "none"
416
407
  }
417
408
  }, [
418
409
  g(e.$slots, "chart-background", {}, void 0, !0)
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,
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,
423
414
  r: C.value <= 0 ? 1e-4 : C.value,
424
415
  stroke: l.value.style.circle.stroke,
425
416
  "stroke-width": l.value.style.circle.strokeWidth,
426
417
  fill: "transparent",
427
418
  class: "main-circle"
428
- }, null, 8, Bt),
429
- We.value ? (i(), n("g", Rt, [
430
- (i(!0), n($, null, O(p.value, (t, a) => (i(), n("path", {
419
+ }, null, 8, Et),
420
+ Ve.value ? (i(), n("g", Bt, [
421
+ (i(!0), n($, null, z(p.value, (t, a) => (i(), n("path", {
431
422
  key: `relation_${a}`,
432
- style: z(xe(t)),
423
+ style: O(we(t)),
433
424
  stroke: x(t),
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}`,
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}`,
436
427
  fill: "none",
437
- "stroke-width": H(t),
428
+ "stroke-width": q(t),
438
429
  "stroke-linecap": "round"
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({
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({
442
433
  key: 0,
443
434
  ref_for: !0
444
435
  }, {
@@ -456,7 +447,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
456
447
  r: y.value,
457
448
  stroke: l.value.style.backgroundColor,
458
449
  "stroke-width": "1"
459
- }, null, 8, jt)) : f("", !0),
450
+ }, null, 8, Rt)) : f("", !0),
460
451
  P(t) && !e.$slots.dataLabel ? (i(), n("text", {
461
452
  key: 2,
462
453
  x: t.midPointBezier.x,
@@ -464,33 +455,33 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
464
455
  fill: u(Me)(x(t)),
465
456
  "text-anchor": "middle",
466
457
  "font-size": y.value
467
- }, U(u(le)(
458
+ }, U(u(te)(
468
459
  l.value.style.weightLabels.formatter,
469
460
  t.weight,
470
- u(se)({
461
+ u(le)({
471
462
  p: l.value.style.weightLabels.prefix,
472
463
  v: t.weight,
473
464
  s: l.value.style.weightLabels.suffix,
474
465
  r: l.value.style.weightLabels.rounding
475
466
  }),
476
467
  { ...t }
477
- )), 9, Dt)) : f("", !0)
468
+ )), 9, Nt)) : f("", !0)
478
469
  ]))), 256))
479
- ])) : (i(), n("g", Ut, [
480
- (i(!0), n($, null, O(p.value, (t, a) => (i(), n("line", {
470
+ ])) : (i(), n("g", jt, [
471
+ (i(!0), n($, null, z(p.value, (t, a) => (i(), n("line", {
481
472
  key: `relation_${a}`,
482
473
  stroke: x(t),
483
- "stroke-width": H(t),
484
- style: z(xe(t)),
474
+ "stroke-width": q(t),
475
+ style: O(we(t)),
485
476
  x1: t.x1,
486
477
  x2: t.x2,
487
478
  y1: t.y1,
488
479
  y2: t.y2,
489
- class: te({ "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && b.value.includes(t.id) }),
480
+ class: ee({ "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && k.value.includes(t.id) }),
490
481
  "stroke-linecap": "round"
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({
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({
494
485
  key: 0,
495
486
  ref_for: !0
496
487
  }, {
@@ -508,7 +499,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
508
499
  r: y.value,
509
500
  stroke: l.value.style.backgroundColor,
510
501
  "stroke-width": "1"
511
- }, null, 8, Wt)) : f("", !0),
502
+ }, null, 8, Gt)) : f("", !0),
512
503
  P(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), n("text", {
513
504
  key: 2,
514
505
  x: t.midPointLine.x,
@@ -516,43 +507,43 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
516
507
  fill: u(Me)(x(t)),
517
508
  "text-anchor": "middle",
518
509
  "font-size": y.value
519
- }, U(u(le)(
510
+ }, U(u(te)(
520
511
  l.value.style.weightLabels.formatter,
521
512
  t.weight,
522
- u(se)({
513
+ u(le)({
523
514
  p: l.value.style.weightLabels.prefix,
524
515
  v: t.weight,
525
516
  s: l.value.style.weightLabels.suffix,
526
517
  r: l.value.style.weightLabels.rounding
527
518
  }),
528
519
  { ...t }
529
- )), 9, Xt)) : f("", !0)
520
+ )), 9, Vt)) : f("", !0)
530
521
  ]))), 256))
531
522
  ])),
532
- (i(!0), n($, null, O(k.value, (t, a) => (i(), n("text", {
523
+ (i(!0), n($, null, z(b.value, (t, a) => (i(), n("text", {
533
524
  key: `plot_text_${a}`,
534
- "text-anchor": Ze(t),
535
- transform: lt(t),
536
- x: et(t),
525
+ "text-anchor": Qe(t),
526
+ transform: tt(t),
527
+ x: Ze(t),
537
528
  y: t.y + 5,
538
529
  class: "vue-ui-relation-circle-legend",
539
530
  "transform-origin": "start",
540
531
  "font-weight": d.value.id === t.id ? "900" : "400",
541
- style: z(`font-family:${l.value.style.fontFamily};${tt(t)}`),
542
- "font-size": I.value,
532
+ style: O(`font-family:${l.value.style.fontFamily};${et(t)}`),
533
+ "font-size": B.value,
543
534
  fill: l.value.style.labels.color,
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)
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)
548
539
  }, [
549
- u(ce) ? (i(), n($, { key: 0 }, [
550
- ze(" -------- ")
540
+ u(oe) ? (i(), n($, { key: 0 }, [
541
+ Pe(" -------- ")
551
542
  ], 64)) : (i(), n($, { key: 1 }, [
552
- ze(U(t.label) + " (" + U(u(le)(
543
+ Pe(U(t.label) + " (" + U(u(te)(
553
544
  l.value.style.weightLabels.formatter,
554
545
  t.totalWeight,
555
- u(se)({
546
+ u(le)({
556
547
  p: l.value.style.weightLabels.prefix,
557
548
  v: t.totalWeight,
558
549
  s: l.value.style.weightLabels.suffix,
@@ -561,38 +552,38 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
561
552
  { ...t }
562
553
  )) + ") ", 1)
563
554
  ], 64))
564
- ], 44, Yt))), 128)),
565
- (i(!0), n($, null, O(k.value, (t, a) => (i(), n("circle", {
555
+ ], 44, Wt))), 128)),
556
+ (i(!0), n($, null, z(b.value, (t, a) => (i(), n("circle", {
566
557
  cx: t.x,
567
558
  cy: t.y,
568
559
  key: `plot_${a}`,
569
- style: z(`${Qe(t)}; transition: r 0.2s ease-in-out;`),
560
+ style: O(`${Ke(t)}; transition: r 0.2s ease-in-out;`),
570
561
  class: "vue-ui-relation-circle-plot",
571
562
  fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
572
563
  stroke: l.value.style.backgroundColor,
573
564
  "stroke-width": "1",
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, [
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, [
582
573
  g(e.$slots, "watermark", j(D({ isPrinting: u(fe) || u(ye) })), void 0, !0)
583
574
  ])) : f("", !0),
584
575
  e.$slots.source ? (i(), n("div", {
585
576
  key: 5,
586
577
  ref_key: "source",
587
- ref: ue,
578
+ ref: ne,
588
579
  dir: "auto"
589
580
  }, [
590
581
  g(e.$slots, "source", {}, void 0, !0)
591
582
  ], 512)) : f("", !0),
592
- u(ce) ? (i(), N(_t, { key: 6 })) : f("", !0)
593
- ], 44, Mt));
583
+ u(oe) ? (i(), N(At, { key: 6 })) : f("", !0)
584
+ ], 44, It));
594
585
  }
595
- }, rl = /* @__PURE__ */ It(Jt, [["__scopeId", "data-v-72b30f4c"]]);
586
+ }, nl = /* @__PURE__ */ zt(qt, [["__scopeId", "data-v-858c05c5"]]);
596
587
  export {
597
- rl as default
588
+ nl as default
598
589
  };