vue-data-ui 2.4.40 → 2.4.41

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 (155) hide show
  1. package/dist/{Arrow-DkayNE_-.js → Arrow-6z0ZQva_.js} +1 -1
  2. package/dist/{Arrow-Bg4pmMHf.cjs → Arrow-Cht76m69.cjs} +1 -1
  3. package/dist/{BaseIcon-zXh1vLYa.cjs → BaseIcon-D-JUZiGA.cjs} +1 -1
  4. package/dist/{BaseIcon-DpYqpYmv.js → BaseIcon-DCE3wRiG.js} +1 -1
  5. package/dist/{DataTable-BuiPd6c1.js → DataTable-B5DiCrf_.js} +2 -2
  6. package/dist/{DataTable-BB87HJ5b.cjs → DataTable-Cr3Xkxe4.cjs} +1 -1
  7. package/dist/{Legend-D2Yi-COI.cjs → Legend-BXG_XPom.cjs} +1 -1
  8. package/dist/{Legend-BRVDmlwW.js → Legend-DzxQIjDO.js} +1 -1
  9. package/dist/{PackageVersion-rf9gXZ-Q.cjs → PackageVersion-CMtZxTqq.cjs} +1 -1
  10. package/dist/{PackageVersion-BT4zkGPO.js → PackageVersion-S7OD_s5u.js} +1 -1
  11. package/dist/{PenAndPaper-BFq1cFfJ.js → PenAndPaper-BxJZd7k9.js} +3 -3
  12. package/dist/{PenAndPaper-DS7gA4X0.cjs → PenAndPaper-DWYhyZye.cjs} +1 -1
  13. package/dist/{Shape-Dwxh0EWa.js → Shape-C3ywBhkW.js} +1 -1
  14. package/dist/{Shape-DVggzfpA.cjs → Shape-CvL90fNe.cjs} +1 -1
  15. package/dist/{Slicer-BXHFpzP5.cjs → Slicer-B2aHb4bj.cjs} +1 -1
  16. package/dist/{Slicer-D7x1gyjP.js → Slicer-D9ASV60L.js} +2 -2
  17. package/dist/{Title-BFvWnqI4.js → Title-BB0O0yol.js} +1 -1
  18. package/dist/{Title-RB80eFiD.cjs → Title-D9gPXVTT.cjs} +1 -1
  19. package/dist/{Tooltip-RHI1EGzy.js → Tooltip-GvLaModr.js} +1 -1
  20. package/dist/{Tooltip-BC1YZMi2.cjs → Tooltip-ypQtmi99.cjs} +1 -1
  21. package/dist/index-B5Ugkauv.cjs +9 -0
  22. package/dist/{index-DY8hDTi7.js → index-B6Q1Fyk0.js} +12 -3
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +9 -0
  25. package/dist/types/vue-data-ui.d.ts +9 -0
  26. package/dist/{useNestedProp-lhL30X68.js → useNestedProp-DQpuJSz3.js} +1 -1
  27. package/dist/{useNestedProp-DLJc0s53.cjs → useNestedProp-bZitLnbb.cjs} +1 -1
  28. package/dist/{usePrinter-DjAQofRy.js → usePrinter-D8dIU7aG.js} +1 -1
  29. package/dist/{usePrinter-BfuqGrO4.cjs → usePrinter-DtpFEgOX.cjs} +1 -1
  30. package/dist/{vue-data-ui-DYb5l8_5.cjs → vue-data-ui-DBN7iJHU.cjs} +1 -1
  31. package/dist/{vue-data-ui-BjixO_L4.js → vue-data-ui-H24TWcBx.js} +60 -60
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-CkYhOmXF.js → vue-ui-3d-bar-BA2CQYGW.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-BEjtuA39.cjs → vue-ui-3d-bar-BaNI_M3v.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-xK9e3wkz.js → vue-ui-accordion-BOHicozd.js} +3 -3
  37. package/dist/{vue-ui-accordion-ClQObElI.cjs → vue-ui-accordion-u4xDSvRn.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-x5CjkABf.cjs → vue-ui-age-pyramid-DN25tjv-.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-DtQAo1-2.js → vue-ui-age-pyramid-vKWko9vn.js} +10 -10
  40. package/dist/{vue-ui-annotator-DqDELeOR.cjs → vue-ui-annotator-BcxUQ5tM.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-Yt34insl.js → vue-ui-annotator-D4KNucw5.js} +1 -1
  42. package/dist/{vue-ui-bullet-DSPQ5yWt.cjs → vue-ui-bullet-C3DKTZbg.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-CCvwPwji.js → vue-ui-bullet-DZgtd_qb.js} +8 -8
  44. package/dist/{vue-ui-candlestick-CVJB9WMH.js → vue-ui-candlestick-C8yBMu8-.js} +11 -11
  45. package/dist/{vue-ui-candlestick-Cb7CgmeV.cjs → vue-ui-candlestick-DVEofXBZ.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-IqZRrbo_.js → vue-ui-carousel-table-Bpsrlbx9.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-CkJngi1u.cjs → vue-ui-carousel-table-C62szGjt.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-Dt3GLx3U.js → vue-ui-chestnut-DhPSNM96.js} +8 -8
  49. package/dist/{vue-ui-chestnut-ojvaZyue.cjs → vue-ui-chestnut-VWwSZnUX.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-D24bAdi0.js → vue-ui-cursor-BM2OiZnZ.js} +2 -2
  51. package/dist/{vue-ui-cursor-Cbi7OUiE.cjs → vue-ui-cursor-BwnZYB4D.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-CB_W7yvi.js → vue-ui-dashboard-BcnW7vDs.js} +2 -2
  53. package/dist/{vue-ui-dashboard-DVf1sULB.cjs → vue-ui-dashboard-D8FU1GbE.cjs} +1 -1
  54. package/dist/{vue-ui-digits-CVAyG4kM.cjs → vue-ui-digits-BmQBwho3.cjs} +1 -1
  55. package/dist/{vue-ui-digits-Qn4l0R5o.js → vue-ui-digits-M4Pvrg0n.js} +2 -2
  56. package/dist/{vue-ui-donut-t688YqqL.js → vue-ui-donut-BgsQjURe.js} +11 -11
  57. package/dist/{vue-ui-donut-Cgvksx9U.cjs → vue-ui-donut-CZZfvbPk.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-KdVsB3m_.js → vue-ui-donut-evolution-BO2-ARBX.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-DWdf8MKP.cjs → vue-ui-donut-evolution-DP14ctdf.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-DxMZm_Xi.cjs → vue-ui-dumbbell-CsMqgiGr.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-CS5kvI8A.js → vue-ui-dumbbell-zv7yiPPM.js} +10 -10
  62. package/dist/{vue-ui-flow-4sSoYnJt.js → vue-ui-flow-BqtIWBkz.js} +9 -9
  63. package/dist/{vue-ui-flow-In-tHpYL.cjs → vue-ui-flow-E5MkZ3Yb.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-MD4lrv0t.js → vue-ui-funnel-CmVLAttG.js} +8 -8
  65. package/dist/{vue-ui-funnel-MXYMVu1G.cjs → vue-ui-funnel-QU0_JscL.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-B9KiEfI4.cjs → vue-ui-galaxy-BPDH-9KW.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-K09M9SgI.js → vue-ui-galaxy-sy8zvgcg.js} +11 -11
  68. package/dist/{vue-ui-gauge-Bg2V5WNl.js → vue-ui-gauge--hARSvgz.js} +7 -7
  69. package/dist/{vue-ui-gauge-DaR_viLn.cjs → vue-ui-gauge-D_yokJMS.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-7Hv-0fsh.cjs → vue-ui-gizmo-AUJq3EQL.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-CdLxfJUw.js → vue-ui-gizmo-CvTeq5j0.js} +3 -3
  72. package/dist/{vue-ui-heatmap-DhgJ3LO9.cjs → vue-ui-heatmap-D-xNLuqW.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-CNPjaHGJ.js → vue-ui-heatmap-lI8oO-nh.js} +10 -10
  74. package/dist/{vue-ui-history-plot-DZOYwPTh.cjs → vue-ui-history-plot-BC0Rvo-r.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-DRwX7quj.js → vue-ui-history-plot-D3CwJpll.js} +11 -11
  76. package/dist/{vue-ui-kpi-Cnrfv2vn.cjs → vue-ui-kpi-B4FQKZ_r.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-C-5_TwY8.js → vue-ui-kpi-C0agq-Os.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-uBFny7gt.cjs → vue-ui-mini-loader-BJ70GAEv.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-fZawewEF.js → vue-ui-mini-loader-CkjJ5pRO.js} +2 -2
  80. package/dist/{vue-ui-molecule-BOClRlY3.cjs → vue-ui-molecule-CsQfkIEE.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-pO5l42Vf.js → vue-ui-molecule-V9UFJHeV.js} +11 -11
  82. package/dist/{vue-ui-mood-radar-CiMiQJuS.cjs → vue-ui-mood-radar-CdU2vusL.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-jbYjFZID.js → vue-ui-mood-radar-Cj_wOEbY.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-Bb5otIw_.js → vue-ui-nested-donuts-DFVQwbHg.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-IArnFfHY.cjs → vue-ui-nested-donuts-DevV-xZr.cjs} +1 -1
  86. package/dist/{vue-ui-onion-BvQLUPjh.js → vue-ui-onion-BJ-PjA7d.js} +11 -11
  87. package/dist/{vue-ui-onion-SKVqk7rN.cjs → vue-ui-onion-DGWktnME.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-_LH1iK_w.js → vue-ui-parallel-coordinate-plot-33naX1Ss.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-CeqeyIHj.cjs → vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-7jB46g4Z.cjs → vue-ui-quadrant-DqZqBb2L.cjs} +1 -1
  91. package/dist/{vue-ui-quadrant-BiWyF1fA.js → vue-ui-quadrant-xJaZzXgo.js} +12 -12
  92. package/dist/{vue-ui-quick-chart-C1398EYu.js → vue-ui-quick-chart-BwN9eLye.js} +9 -9
  93. package/dist/{vue-ui-quick-chart-79l8Uv8o.cjs → vue-ui-quick-chart-BzpXJYR_.cjs} +1 -1
  94. package/dist/{vue-ui-radar-BvWCcL2b.js → vue-ui-radar-B4EXwJDY.js} +12 -12
  95. package/dist/{vue-ui-radar-BYk3bLkt.cjs → vue-ui-radar-CQ66YUG5.cjs} +1 -1
  96. package/dist/{vue-ui-rating-jKjMQHRN.cjs → vue-ui-rating-D334I4ju.cjs} +1 -1
  97. package/dist/{vue-ui-rating-CyGmfYEU.js → vue-ui-rating-DNkygw1i.js} +2 -2
  98. package/dist/vue-ui-relation-circle-BKeSh28h.js +492 -0
  99. package/dist/vue-ui-relation-circle-CP2Z6IWV.cjs +1 -0
  100. package/dist/{vue-ui-rings-L8pGRQbs.cjs → vue-ui-rings-2oDSTctd.cjs} +1 -1
  101. package/dist/{vue-ui-rings-DEwuDHW2.js → vue-ui-rings-D6M3UNSE.js} +11 -11
  102. package/dist/{vue-ui-scatter-BfI6xftp.cjs → vue-ui-scatter-C9ZoWV1q.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-BYL4iitb.js → vue-ui-scatter-JUPbbsO7.js} +12 -12
  104. package/dist/{vue-ui-screenshot-D4aNIcHd.js → vue-ui-screenshot-DmLDHfF9.js} +1 -1
  105. package/dist/{vue-ui-screenshot-Cf8g-RjG.cjs → vue-ui-screenshot-JMBX_AWn.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-FCpm0_eE.js → vue-ui-skeleton-D7rg5vFC.js} +3 -3
  107. package/dist/{vue-ui-skeleton-BGfzzQdU.cjs → vue-ui-skeleton-E9_X0-sa.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-BFXulKpd.js → vue-ui-smiley-BAlHZm8H.js} +2 -2
  109. package/dist/{vue-ui-smiley-mjxS_13E.cjs → vue-ui-smiley-aRTznf8z.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-B2SOk378.cjs → vue-ui-spark-trend-DZR6Fqu5.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-D-13-kV6.js → vue-ui-spark-trend-J9swikF_.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-C8cjDKBy.js → vue-ui-sparkbar-B0tCpwZ9.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-BlA1rgRo.cjs → vue-ui-sparkbar-Bjmi8pMf.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-DRBVe3tu.js → vue-ui-sparkgauge-DVX2pIC3.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-C4sFc7nb.cjs → vue-ui-sparkgauge-Dhzbkn67.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-iMRsSDvC.js → vue-ui-sparkhistogram-Wd6q0mqj.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-CkqzLBYq.cjs → vue-ui-sparkhistogram-gIaXDrFh.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-C0JZ7Xq1.cjs → vue-ui-sparkline-B5ySeM9y.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-DIkUaObR.js → vue-ui-sparkline-DYT-gts9.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-DJW1lBGU.js → vue-ui-sparkstackbar-BMGA05VR.js} +5 -5
  121. package/dist/{vue-ui-sparkstackbar-DJbWCqs3.cjs → vue-ui-sparkstackbar-ilvB3RBv.cjs} +1 -1
  122. package/dist/{vue-ui-stackbar-BtOrW2Ml.cjs → vue-ui-stackbar-BZKwsAjO.cjs} +1 -1
  123. package/dist/{vue-ui-stackbar-BGUXEdZi.js → vue-ui-stackbar-BZbOagnf.js} +12 -12
  124. package/dist/{vue-ui-strip-plot-hn1U9cvT.js → vue-ui-strip-plot-B-r4luYX.js} +11 -11
  125. package/dist/{vue-ui-strip-plot-DJTQ8r5H.cjs → vue-ui-strip-plot-DPo7osh_.cjs} +1 -1
  126. package/dist/{vue-ui-table-DFvOQzJu.cjs → vue-ui-table-C6z56ODT.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-ZnkAoAkQ.cjs → vue-ui-table-heatmap-B05GifSw.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-DqZsXcsO.js → vue-ui-table-heatmap-CM-c7n0F.js} +4 -4
  129. package/dist/{vue-ui-table-sparkline-CV8o-yV6.js → vue-ui-table-sparkline-DHaEHFG_.js} +5 -5
  130. package/dist/{vue-ui-table-sparkline-5mX0B27t.cjs → vue-ui-table-sparkline-Dx-ePVqW.cjs} +1 -1
  131. package/dist/{vue-ui-table-7A1eCPQd.js → vue-ui-table-wlXHwJVW.js} +1 -1
  132. package/dist/{vue-ui-thermometer-M6QwKOld.js → vue-ui-thermometer-BU_ckSdu.js} +7 -7
  133. package/dist/{vue-ui-thermometer-BwLTfi7y.cjs → vue-ui-thermometer-HCpOZBHv.cjs} +1 -1
  134. package/dist/{vue-ui-timer-QypGImgW.cjs → vue-ui-timer-CUChwyzF.cjs} +1 -1
  135. package/dist/{vue-ui-timer-CoYF7LEU.js → vue-ui-timer-DiRZ849L.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-CzLOyhXF.js → vue-ui-tiremarks-BHMNb_tq.js} +7 -7
  137. package/dist/{vue-ui-tiremarks-DAFNYvB1.cjs → vue-ui-tiremarks-yoQtfbj7.cjs} +1 -1
  138. package/dist/{vue-ui-treemap-CutiBRIN.cjs → vue-ui-treemap-BInwLSes.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-DF5BIKs-.js → vue-ui-treemap-BpD6OdL3.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-bDcCcUy8.js → vue-ui-vertical-bar-CBNWMmCg.js} +11 -11
  141. package/dist/{vue-ui-vertical-bar-D-ZZAU0r.cjs → vue-ui-vertical-bar-hS4gzdKs.cjs} +1 -1
  142. package/dist/{vue-ui-waffle-BR_HwmLy.js → vue-ui-waffle-BE8iTrGF.js} +11 -11
  143. package/dist/{vue-ui-waffle-CCO3ZHyo.cjs → vue-ui-waffle-Cmq6zhD8.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-Cvcfc6o1.cjs → vue-ui-wheel-BT0mLxln.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-DuO0nc0d.js → vue-ui-wheel-BXSIBRLM.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-Cv5bXF2B.js → vue-ui-word-cloud-3wvSYRbp.js} +10 -10
  147. package/dist/{vue-ui-word-cloud-BknJQRiM.cjs → vue-ui-word-cloud-BXHlm41O.cjs} +1 -1
  148. package/dist/{vue-ui-xy-Cqb73yZ3.cjs → vue-ui-xy-CfduqTWA.cjs} +1 -1
  149. package/dist/{vue-ui-xy-Clf_sTRI.js → vue-ui-xy-D8XvOgW6.js} +14 -14
  150. package/dist/{vue-ui-xy-canvas-7OwcP1-L.cjs → vue-ui-xy-canvas-BTR-cL02.cjs} +1 -1
  151. package/dist/{vue-ui-xy-canvas-BOJGw4H7.js → vue-ui-xy-canvas-Cx7vPyfT.js} +11 -11
  152. package/package.json +1 -1
  153. package/dist/index--lHmCKjC.cjs +0 -9
  154. package/dist/vue-ui-relation-circle-B3Df8yCi.js +0 -366
  155. package/dist/vue-ui-relation-circle-CZomraV2.cjs +0 -1
@@ -1,366 +0,0 @@
1
- import { useCssVars as xe, computed as c, ref as a, watch as be, onMounted as Ae, onBeforeUnmount as Oe, openBlock as n, createElementBlock as i, normalizeStyle as C, createBlock as A, createCommentVNode as f, unref as y, createSlots as Pe, withCtx as O, renderSlot as m, normalizeProps as N, guardReactiveProps as S, normalizeClass as R, createVNode as Ie, createElementVNode as Fe, Fragment as P, renderList as I, toDisplayString as Te } from "vue";
2
- import { u as Ee, c as ze, t as Le, a as Ne, p as ne, b as Se, o as Re, e as re, g as Me, X as je } from "./index-DY8hDTi7.js";
3
- import { t as Be, u as Ge } from "./useResponsive-CoxXLe23.js";
4
- import { _ as Ue } from "./Title-BFvWnqI4.js";
5
- import { u as De, U as Ve } from "./usePrinter-DjAQofRy.js";
6
- import We from "./vue-ui-skeleton-FCpm0_eE.js";
7
- import { u as se } from "./useNestedProp-lhL30X68.js";
8
- import { _ as Xe } from "./PackageVersion-BT4zkGPO.js";
9
- import { P as Ye } from "./PenAndPaper-BFq1cFfJ.js";
10
- import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const He = ["id"], Je = ["xmlns", "viewBox"], Ke = ["cx", "cy", "r", "stroke", "stroke-width"], Qe = { key: 0 }, Ze = ["stroke", "d", "stroke-width"], et = { key: 1 }, tt = ["stroke", "x1", "x2", "y1", "y2"], lt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], nt = ["cx", "cy", "fill", "onClick", "r"], rt = {
12
- key: 5,
13
- class: "vue-data-ui-watermark"
14
- }, st = {
15
- __name: "vue-ui-relation-circle",
16
- props: {
17
- dataset: {
18
- type: Array,
19
- default() {
20
- return [];
21
- }
22
- },
23
- config: {
24
- type: Object,
25
- default() {
26
- return {};
27
- }
28
- }
29
- },
30
- setup(ae, { expose: ie }) {
31
- const d = ae;
32
- xe((e) => ({
33
- "47419f48": fe.value,
34
- "77774d27": ve.value,
35
- df46026e: ge.value
36
- }));
37
- const { vue_ui_relation_circle: oe } = Ee(), F = c(() => !!d.dataset && Object.keys(d.dataset).length), k = a(ze()), M = a(0), _ = a(null), j = a(null), B = a(null), G = a(null), U = a(0), l = c({
38
- get: () => D(),
39
- set: (e) => e
40
- });
41
- function D() {
42
- const e = se({
43
- userConfig: d.config,
44
- defaultConfig: oe
45
- });
46
- return e.theme ? {
47
- ...se({
48
- userConfig: Le.vue_ui_relation_circle[e.theme] || d.config,
49
- defaultConfig: e
50
- }),
51
- customPalette: Ne[e.theme] || ne
52
- } : e;
53
- }
54
- be(() => d.config, (e) => {
55
- l.value = D(), H(), U.value += 1;
56
- }, { deep: !0 });
57
- const { isPrinting: V, isImaging: W, generatePdf: X, generateImage: Y } = De({
58
- elementId: `relation_circle_${k.value}`,
59
- fileName: l.value.style.title.text || "vue-ui-relation-circle"
60
- }), ue = c(() => l.value.userOptions.show && !l.value.style.title.text), q = c(() => Se(l.value.customPalette)), g = a([]), p = a([]), o = a({}), v = a([]), ce = a(0), T = c(() => d.dataset.slice(0, l.value.style.limit)), E = a(l.value.style.size), u = a({
61
- height: l.value.style.size,
62
- width: l.value.style.size
63
- }), h = c({
64
- get() {
65
- return E.value * l.value.style.circle.radiusProportion;
66
- },
67
- set(e) {
68
- return e;
69
- }
70
- }), de = c(() => l.value.style.links.curved), ve = c(() => `${l.value.style.animation.speedMs}ms`), fe = c(() => h.value * 2), ge = c(() => h.value * 4), w = a(null);
71
- Ae(() => {
72
- H(), document.getElementById(`relation_circle_${k.value}`).addEventListener("click", J);
73
- });
74
- function H() {
75
- if (Re(d.dataset) ? re({
76
- componentName: "VueUiRelationCircle",
77
- type: "dataset"
78
- }) : d.dataset.forEach((e, r) => {
79
- Me({
80
- datasetObject: e,
81
- requiredAttributes: ["id", "label", "relations", "weights"]
82
- }).forEach((t) => {
83
- re({
84
- componentName: "VueUiRelationCircle",
85
- type: "datasetSerieAttribute",
86
- property: t,
87
- index: r
88
- });
89
- });
90
- }), l.value.responsive) {
91
- const e = Be(() => {
92
- const { width: r, height: t } = Ge({
93
- chart: _.value,
94
- title: l.value.style.title.text ? j.value : null,
95
- source: B.value,
96
- noTitle: G.value
97
- });
98
- E.value = Math.min(r, t), u.value.width = r, u.value.height = t, h.value = E.value * l.value.style.circle.radiusProportion, g.value = [], p.value = [], K(), Q();
99
- });
100
- w.value = new ResizeObserver(e), w.value.observe(_.value.parentNode);
101
- } else
102
- g.value = [], p.value = [], K(), Q();
103
- }
104
- Oe(() => {
105
- document.getElementById(`relation_circle_${k.value}`).removeEventListener("click", J), w.value && w.value.disconnect();
106
- });
107
- function J(e) {
108
- const r = e.target;
109
- r && Array.from(r.classList).includes("vue-ui-user-options") || r && Array.from(r.classList).includes("vue-ui-user-options-summary") || r && Array.from(r.classList).includes("vue-data-ui-button") || r && Array.from(r.classList).includes("vue-ui-relation-circle-legend") || (o.value = {}, v.value = []);
110
- }
111
- function K() {
112
- const e = 6.28319 / T.value.length, r = 360 / T.value.length;
113
- let t = 0, s = 0;
114
- T.value.forEach(($, L) => {
115
- const Ce = h.value * Math.cos(t) + u.value.width / 2, we = h.value * Math.sin(t) + u.value.height / 2 + l.value.style.circle.offsetY;
116
- g.value.push({ x: Ce, y: we, ...$, color: $.color ? $.color : q.value[L] ? q.value[L] : ne[L], regAngle: s }), t += e, s += r;
117
- });
118
- }
119
- function Q() {
120
- g.value.forEach((e) => {
121
- g.value.filter((t) => t.relations.includes(e.id)).forEach((t, s) => {
122
- p.value.push({
123
- weight: e.weights && e.weights[s] ? e.weights[s] : 1,
124
- relationId: `${e.id}_${t.id}`,
125
- x1: e.x,
126
- y1: e.y,
127
- x2: t.x,
128
- y2: t.y,
129
- colorSource: e.color,
130
- colorTarget: t.color,
131
- ...e
132
- });
133
- });
134
- });
135
- }
136
- const he = c(() => Math.max(...p.value.map((e) => e.weight)));
137
- function ye(e) {
138
- return Object.hasOwn(o.value, "x") ? v.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
139
- }
140
- function Z(e) {
141
- return Object.hasOwn(o.value, "x") ? e.colorTarget : e.colorSource;
142
- }
143
- function ee(e) {
144
- return Object.hasOwn(o.value, "x") ? v.value.includes(e.id) && e.relationId === `${e.id}_${o.value.id}` || e.relationId === `${o.value.id}_${e.id}` ? `opacity:1;stroke-width:${le(e)}` : "opacity: 0" : "opacity: 1";
145
- }
146
- function me(e) {
147
- return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
148
- }
149
- function pe(e) {
150
- return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
151
- }
152
- function ke(e) {
153
- return Object.hasOwn(o.value, "x") ? o.value.id === e.id || v.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
154
- }
155
- function _e(e) {
156
- return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
157
- }
158
- function te(e) {
159
- ce.value = 360 - e.regAngle, o.value.id && e.id === o.value.id ? (o.value = {}, v.value = []) : (o.value = e, v.value = [...e.relations]);
160
- }
161
- function le(e) {
162
- return e.weight / he.value * l.value.style.links.maxWidth;
163
- }
164
- const x = a(!1);
165
- function $e(e) {
166
- x.value = e, M.value += 1;
167
- }
168
- const b = a(!1);
169
- function z() {
170
- b.value = !b.value;
171
- }
172
- return ie({
173
- generatePdf: X,
174
- generateImage: Y,
175
- toggleAnnotator: z
176
- }), (e, r) => (n(), i("div", {
177
- ref_key: "relationCircleChart",
178
- ref: _,
179
- class: "vue-ui-relation-circle",
180
- style: C(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
181
- id: `relation_circle_${k.value}`
182
- }, [
183
- l.value.userOptions.buttons.annotator ? (n(), A(Ye, {
184
- key: 0,
185
- parent: _.value,
186
- backgroundColor: l.value.style.backgroundColor,
187
- color: l.value.style.color,
188
- active: b.value,
189
- onClose: z
190
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
191
- ue.value ? (n(), i("div", {
192
- key: 1,
193
- ref_key: "noTitle",
194
- ref: G,
195
- class: "vue-data-ui-no-title-space",
196
- style: "height:36px; width: 100%;background:transparent"
197
- }, null, 512)) : f("", !0),
198
- l.value.style.title.text ? (n(), i("div", {
199
- key: 2,
200
- ref_key: "chartTitle",
201
- ref: j,
202
- style: "width:100%;background:transparent"
203
- }, [
204
- (n(), A(Ue, {
205
- key: `title_${U.value}`,
206
- config: {
207
- title: {
208
- cy: "relation-div-title",
209
- ...l.value.style.title
210
- },
211
- subtitle: {
212
- cy: "relation-div-subtitle",
213
- ...l.value.style.title.subtitle
214
- }
215
- }
216
- }, null, 8, ["config"]))
217
- ], 512)) : f("", !0),
218
- l.value.userOptions.show && F.value ? (n(), A(Ve, {
219
- ref: "details",
220
- key: `user_options_${M.value}`,
221
- backgroundColor: l.value.style.backgroundColor,
222
- color: l.value.style.color,
223
- isPrinting: y(V),
224
- isImaging: y(W),
225
- uid: k.value,
226
- hasPdf: l.value.userOptions.buttons.pdf,
227
- hasImg: l.value.userOptions.buttons.img,
228
- hasFullscreen: l.value.userOptions.buttons.img,
229
- hasXls: !1,
230
- isFullscreen: x.value,
231
- titles: { ...l.value.userOptions.buttonTitles },
232
- chartElement: _.value,
233
- position: l.value.userOptions.position,
234
- hasAnnotator: l.value.userOptions.buttons.annotator,
235
- isAnnotation: b.value,
236
- onToggleFullscreen: $e,
237
- onGeneratePdf: y(X),
238
- onGenerateImage: y(Y),
239
- onToggleAnnotator: z
240
- }, Pe({ _: 2 }, [
241
- e.$slots.optionPdf ? {
242
- name: "optionPdf",
243
- fn: O(() => [
244
- m(e.$slots, "optionPdf", {}, void 0, !0)
245
- ]),
246
- key: "0"
247
- } : void 0,
248
- e.$slots.optionImg ? {
249
- name: "optionImg",
250
- fn: O(() => [
251
- m(e.$slots, "optionImg", {}, void 0, !0)
252
- ]),
253
- key: "1"
254
- } : void 0,
255
- e.$slots.optionFullscreen ? {
256
- name: "optionFullscreen",
257
- fn: O(({ toggleFullscreen: t, isFullscreen: s }) => [
258
- m(e.$slots, "optionFullscreen", N(S({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
259
- ]),
260
- key: "2"
261
- } : void 0,
262
- e.$slots.optionAnnotator ? {
263
- name: "optionAnnotator",
264
- fn: O(({ toggleAnnotator: t, isAnnotator: s }) => [
265
- m(e.$slots, "optionAnnotator", N(S({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
266
- ]),
267
- key: "3"
268
- } : void 0
269
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
270
- F.value ? (n(), i("svg", {
271
- key: 4,
272
- xmlns: y(je),
273
- class: R([{ "vue-data-ui-fullscreen--on": x.value, "vue-data-ui-fulscreen--off": !x.value }, "relation-circle"]),
274
- viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
275
- width: "100%",
276
- style: "user-select:none; background:transparent"
277
- }, [
278
- Ie(Xe),
279
- Fe("circle", {
280
- cx: (u.value.width <= 0 ? 1e-4 : u.value.width) / 2,
281
- cy: (u.value.height <= 0 ? 1e-4 : u.value.height) / 2 + l.value.style.circle.offsetY,
282
- r: h.value <= 0 ? 1e-4 : h.value,
283
- stroke: l.value.style.circle.stroke,
284
- "stroke-width": l.value.style.circle.strokeWidth,
285
- fill: "transparent",
286
- class: "main-circle"
287
- }, null, 8, Ke),
288
- de.value ? (n(), i("g", Qe, [
289
- (n(!0), i(P, null, I(p.value, (t, s) => (n(), i("path", {
290
- key: `relation_${s}`,
291
- style: C(ee(t)),
292
- stroke: Z(t),
293
- class: R(["relation", { "vue-ui-relation-circle-selected": o.value.hasOwnProperty("id") && v.value.includes(t.id) }]),
294
- 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}`,
295
- fill: "none",
296
- "stroke-width": le(t),
297
- "stroke-linecap": "round"
298
- }, null, 14, Ze))), 128))
299
- ])) : (n(), i("g", et, [
300
- (n(!0), i(P, null, I(p.value, (t, s) => (n(), i("line", {
301
- key: `relation_${s}`,
302
- stroke: Z(t),
303
- style: C(ee(t)),
304
- x1: t.x1,
305
- x2: t.x2,
306
- y1: t.y1,
307
- y2: t.y2,
308
- class: R({ "vue-ui-relation-circle-selected": o.value.hasOwnProperty("id") && v.value.includes(t.id) }),
309
- "stroke-linecap": "round"
310
- }, null, 14, tt))), 128))
311
- ])),
312
- (n(!0), i(P, null, I(g.value, (t, s) => (n(), i("text", {
313
- key: `plot_text_${s}`,
314
- "text-anchor": me(t),
315
- transform: _e(t),
316
- x: pe(t),
317
- y: t.y + 5,
318
- onClick: ($) => te(t),
319
- class: "vue-ui-relation-circle-legend",
320
- "transform-origin": "start",
321
- "font-weight": o.value.id === t.id ? "900" : "400",
322
- style: C(`font-family:${l.value.style.fontFamily};${ke(t)}`),
323
- "font-size": l.value.style.labels.fontSize,
324
- fill: l.value.style.labels.color
325
- }, Te(t.label), 13, lt))), 128)),
326
- (n(!0), i(P, null, I(g.value, (t, s) => (n(), i("circle", {
327
- cx: t.x,
328
- cy: t.y,
329
- key: `plot_${s}`,
330
- style: C(ye(t)),
331
- class: "vue-ui-relation-circle-plot",
332
- fill: l.value.style.plot.color,
333
- onClick: ($) => te(t),
334
- r: l.value.style.plot.radius
335
- }, null, 12, nt))), 128)),
336
- m(e.$slots, "svg", { svg: u.value }, void 0, !0)
337
- ], 10, Je)) : f("", !0),
338
- e.$slots.watermark ? (n(), i("div", rt, [
339
- m(e.$slots, "watermark", N(S({ isPrinting: y(V) || y(W) })), void 0, !0)
340
- ])) : f("", !0),
341
- e.$slots.source ? (n(), i("div", {
342
- key: 6,
343
- ref_key: "source",
344
- ref: B,
345
- dir: "auto"
346
- }, [
347
- m(e.$slots, "source", {}, void 0, !0)
348
- ], 512)) : f("", !0),
349
- F.value ? f("", !0) : (n(), A(We, {
350
- key: 7,
351
- config: {
352
- type: "relationCircle",
353
- style: {
354
- backgroundColor: l.value.style.backgroundColor,
355
- relationCircle: {
356
- color: "#CCCCCC"
357
- }
358
- }
359
- }
360
- }, null, 8, ["config"]))
361
- ], 12, He));
362
- }
363
- }, yt = /* @__PURE__ */ qe(st, [["__scopeId", "data-v-a4837ff7"]]);
364
- export {
365
- yt as default
366
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index--lHmCKjC.cjs"),U=require("./useResponsive-BJ7DTGpm.cjs"),de=require("./Title-RB80eFiD.cjs"),D=require("./usePrinter-BfuqGrO4.cjs"),ve=require("./vue-ui-skeleton-BGfzzQdU.cjs"),W=require("./useNestedProp-DLJc0s53.cjs"),fe=require("./PackageVersion-rf9gXZ-Q.cjs"),ge=require("./PenAndPaper-DS7gA4X0.cjs"),me=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ye=["id"],he=["xmlns","viewBox"],ke=["cx","cy","r","stroke","stroke-width"],pe={key:0},Ce=["stroke","d","stroke-width"],_e={key:1},$e=["stroke","x1","x2","y1","y2"],xe=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],we=["cx","cy","fill","onClick","r"],Be={key:5,class:"vue-data-ui-watermark"},be={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(X,{expose:Y}){const u=X;e.useCssVars(t=>({"47419f48":ee.value,"77774d27":Z.value,df46026e:te.value}));const{vue_ui_relation_circle:H}=i.useConfig(),C=e.computed(()=>!!u.dataset&&Object.keys(u.dataset).length),g=e.ref(i.createUid()),B=e.ref(0),m=e.ref(null),b=e.ref(null),P=e.ref(null),A=e.ref(null),O=e.ref(0),n=e.computed({get:()=>E(),set:t=>t});function E(){const t=W.useNestedProp({userConfig:u.config,defaultConfig:H});return t.theme?{...W.useNestedProp({userConfig:i.themes.vue_ui_relation_circle[t.theme]||u.config,defaultConfig:t}),customPalette:i.themePalettes[t.theme]||i.palette}:t}e.watch(()=>u.config,t=>{n.value=E(),T(),O.value+=1},{deep:!0});const{isPrinting:S,isImaging:I,generatePdf:N,generateImage:z}=D.usePrinter({elementId:`relation_circle_${g.value}`,fileName:n.value.style.title.text||"vue-ui-relation-circle"}),J=e.computed(()=>n.value.userOptions.show&&!n.value.style.title.text),F=e.computed(()=>i.convertCustomPalette(n.value.customPalette)),d=e.ref([]),f=e.ref([]),a=e.ref({}),c=e.ref([]),K=e.ref(0),_=e.computed(()=>u.dataset.slice(0,n.value.style.limit)),$=e.ref(n.value.style.size),s=e.ref({height:n.value.style.size,width:n.value.style.size}),v=e.computed({get(){return $.value*n.value.style.circle.radiusProportion},set(t){return t}}),Q=e.computed(()=>n.value.style.links.curved),Z=e.computed(()=>`${n.value.style.animation.speedMs}ms`),ee=e.computed(()=>v.value*2),te=e.computed(()=>v.value*4),h=e.ref(null);e.onMounted(()=>{T(),document.getElementById(`relation_circle_${g.value}`).addEventListener("click",L)});function T(){if(i.objectIsEmpty(u.dataset)?i.error({componentName:"VueUiRelationCircle",type:"dataset"}):u.dataset.forEach((t,r)=>{i.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["id","label","relations","weights"]}).forEach(l=>{i.error({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:l,index:r})})}),n.value.responsive){const t=U.throttle(()=>{const{width:r,height:l}=U.useResponsive({chart:m.value,title:n.value.style.title.text?b.value:null,source:P.value,noTitle:A.value});$.value=Math.min(r,l),s.value.width=r,s.value.height=l,v.value=$.value*n.value.style.circle.radiusProportion,d.value=[],f.value=[],V(),R()});h.value=new ResizeObserver(t),h.value.observe(m.value.parentNode)}else d.value=[],f.value=[],V(),R()}e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${g.value}`).removeEventListener("click",L),h.value&&h.value.disconnect()});function L(t){const r=t.target;r&&Array.from(r.classList).includes("vue-ui-user-options")||r&&Array.from(r.classList).includes("vue-ui-user-options-summary")||r&&Array.from(r.classList).includes("vue-data-ui-button")||r&&Array.from(r.classList).includes("vue-ui-relation-circle-legend")||(a.value={},c.value=[])}function V(){const t=6.28319/_.value.length,r=360/_.value.length;let l=0,o=0;_.value.forEach((y,w)=>{const ue=v.value*Math.cos(l)+s.value.width/2,ce=v.value*Math.sin(l)+s.value.height/2+n.value.style.circle.offsetY;d.value.push({x:ue,y:ce,...y,color:y.color?y.color:F.value[w]?F.value[w]:i.palette[w],regAngle:o}),l+=t,o+=r})}function R(){d.value.forEach(t=>{d.value.filter(l=>l.relations.includes(t.id)).forEach((l,o)=>{f.value.push({weight:t.weights&&t.weights[o]?t.weights[o]:1,relationId:`${t.id}_${l.id}`,x1:t.x,y1:t.y,x2:l.x,y2:l.y,colorSource:t.color,colorTarget:l.color,...t})})})}const le=e.computed(()=>Math.max(...f.value.map(t=>t.weight)));function ne(t){return Object.hasOwn(a.value,"x")?c.value.includes(t.id)?"opacity:1":"opacity:0.1":"opacity:1"}function q(t){return Object.hasOwn(a.value,"x")?t.colorTarget:t.colorSource}function M(t){return Object.hasOwn(a.value,"x")?c.value.includes(t.id)&&t.relationId===`${t.id}_${a.value.id}`||t.relationId===`${a.value.id}_${t.id}`?`opacity:1;stroke-width:${G(t)}`:"opacity: 0":"opacity: 1"}function re(t){return t.regAngle>90&&t.regAngle<270?"end":"start"}function oe(t){return t.regAngle>90&&t.regAngle<270?t.x-5:t.x+5}function ae(t){return Object.hasOwn(a.value,"x")?a.value.id===t.id||c.value.includes(t.id)?"opacity:1":"opacity:0.2":"opacity:1"}function se(t){return t.regAngle>90&&t.regAngle<270?`rotate(${t.regAngle+180},${t.x},${t.y})`:`rotate(${t.regAngle},${t.x},${t.y})`}function j(t){K.value=360-t.regAngle,a.value.id&&t.id===a.value.id?(a.value={},c.value=[]):(a.value=t,c.value=[...t.relations])}function G(t){return t.weight/le.value*n.value.style.links.maxWidth}const k=e.ref(!1);function ie(t){k.value=t,B.value+=1}const p=e.ref(!1);function x(){p.value=!p.value}return Y({generatePdf:N,generateImage:z,toggleAnnotator:x}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:m,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${n.value.style.backgroundColor};text-align:center;${n.value.responsive?"height: 100%":""}`),id:`relation_circle_${g.value}`},[n.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ge.PenAndPaper,{key:0,parent:m.value,backgroundColor:n.value.style.backgroundColor,color:n.value.style.color,active:p.value,onClose:x},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),J.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:A,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),n.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:b,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${O.value}`,config:{title:{cy:"relation-div-title",...n.value.style.title},subtitle:{cy:"relation-div-subtitle",...n.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),n.value.userOptions.show&&C.value?(e.openBlock(),e.createBlock(D.UserOptions,{ref:"details",key:`user_options_${B.value}`,backgroundColor:n.value.style.backgroundColor,color:n.value.style.color,isPrinting:e.unref(S),isImaging:e.unref(I),uid:g.value,hasPdf:n.value.userOptions.buttons.pdf,hasImg:n.value.userOptions.buttons.img,hasFullscreen:n.value.userOptions.buttons.img,hasXls:!1,isFullscreen:k.value,titles:{...n.value.userOptions.buttonTitles},chartElement:m.value,position:n.value.userOptions.position,hasAnnotator:n.value.userOptions.buttons.annotator,isAnnotation:p.value,onToggleFullscreen:ie,onGeneratePdf:e.unref(N),onGenerateImage:e.unref(z),onToggleAnnotator:x},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"2"}:void 0,t.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:o})=>[e.renderSlot(t.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:o})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(i.XMLNS),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value},"relation-circle"]),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,width:"100%",style:"user-select:none; background:transparent"},[e.createVNode(fe._sfc_main),e.createElementVNode("circle",{cx:(s.value.width<=0?1e-4:s.value.width)/2,cy:(s.value.height<=0?1e-4:s.value.height)/2+n.value.style.circle.offsetY,r:v.value<=0?1e-4:v.value,stroke:n.value.style.circle.stroke,"stroke-width":n.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,ke),Q.value?(e.openBlock(),e.createElementBlock("g",pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,o)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${o}`,style:e.normalizeStyle(M(l)),stroke:q(l),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":a.value.hasOwnProperty("id")&&c.value.includes(l.id)}]),d:`M${l.x1},${l.y1} C${l.x1},${l.y1} ${s.value.width/2},${s.value.height/2+n.value.style.circle.offsetY} ${l.x2},${l.y2}`,fill:"none","stroke-width":G(l),"stroke-linecap":"round"},null,14,Ce))),128))])):(e.openBlock(),e.createElementBlock("g",_e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,o)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${o}`,stroke:q(l),style:e.normalizeStyle(M(l)),x1:l.x1,x2:l.x2,y1:l.y1,y2:l.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":a.value.hasOwnProperty("id")&&c.value.includes(l.id)}),"stroke-linecap":"round"},null,14,$e))),128))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${o}`,"text-anchor":re(l),transform:se(l),x:oe(l),y:l.y+5,onClick:y=>j(l),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":a.value.id===l.id?"900":"400",style:e.normalizeStyle(`font-family:${n.value.style.fontFamily};${ae(l)}`),"font-size":n.value.style.labels.fontSize,fill:n.value.style.labels.color},e.toDisplayString(l.label),13,xe))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,key:`plot_${o}`,style:e.normalizeStyle(ne(l)),class:"vue-ui-relation-circle-plot",fill:n.value.style.plot.color,onClick:y=>j(l),r:n.value.style.plot.radius},null,12,we))),128)),e.renderSlot(t.$slots,"svg",{svg:s.value},void 0,!0)],10,he)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Be,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(S)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),t.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:P,dir:"auto"},[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:7,config:{type:"relationCircle",style:{backgroundColor:n.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,ye))}},Pe=me._export_sfc(be,[["__scopeId","data-v-a4837ff7"]]);exports.default=Pe;