vue-data-ui 2.6.5 → 2.6.7

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 (201) hide show
  1. package/dist/{Arrow-DfGZcZu4.js → Arrow-BxUmDF04.js} +1 -1
  2. package/dist/{Arrow-CyeGXbbD.cjs → Arrow-PPbxds1Q.cjs} +1 -1
  3. package/dist/{BaseIcon-B5DvqSYe.cjs → BaseIcon-BmVwfJg2.cjs} +1 -1
  4. package/dist/{BaseIcon-BzuvxztF.js → BaseIcon-CDx9pxUG.js} +1 -1
  5. package/dist/{DataTable-zpYtivMM.cjs → DataTable-Cv_TVAas.cjs} +1 -1
  6. package/dist/{DataTable-BCCBpyhr.js → DataTable-TjJIVFlL.js} +2 -2
  7. package/dist/{Legend-CJkkmRNE.cjs → Legend-DunrYGuw.cjs} +1 -1
  8. package/dist/{Legend-CyJrN721.js → Legend-NKGwxkI7.js} +2 -2
  9. package/dist/{PackageVersion-Dv25_ZxF.cjs → PackageVersion-DJKkRuOD.cjs} +1 -1
  10. package/dist/{PackageVersion-PZr4BkQ5.js → PackageVersion-QRvxRYPv.js} +1 -1
  11. package/dist/{PenAndPaper-Cniu2YEX.js → PenAndPaper-CxC1lWGK.js} +3 -3
  12. package/dist/{PenAndPaper-Cx3_Liuv.cjs → PenAndPaper-MTTJ3Gd9.cjs} +1 -1
  13. package/dist/{Shape-BXTmpde5.js → Shape-58uyOuYc.js} +26 -23
  14. package/dist/Shape-D_1vUjCL.cjs +1 -0
  15. package/dist/{Slicer-DzKrIvL0.cjs → Slicer-BGEieXKn.cjs} +1 -1
  16. package/dist/{Slicer-D3tEQT9Z.js → Slicer-C7ormJRw.js} +2 -2
  17. package/dist/{Title-CXBc1TH6.js → Title-BI8etrRU.js} +1 -1
  18. package/dist/{Title-DdUtciJN.cjs → Title-Dk92HYMu.cjs} +1 -1
  19. package/dist/Tooltip-ClMeqejQ.cjs +1 -0
  20. package/dist/{Tooltip-C9lPh5bN.js → Tooltip-Cxc8c50d.js} +23 -20
  21. package/dist/{index-DLCyjPV0.js → index-9EeNZMz1.js} +6 -1
  22. package/dist/index-DEnRHTzk.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +89 -62
  25. package/dist/types/vue-data-ui.d.ts +89 -62
  26. package/dist/useChartAccessibility-BWojgys7.js +13 -0
  27. package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
  28. package/dist/{useNestedProp-BdTohsDJ.cjs → useNestedProp-BNT60LxO.cjs} +1 -1
  29. package/dist/{useNestedProp-q86V3_LA.js → useNestedProp-df_bKQEI.js} +1 -1
  30. package/dist/{usePrinter-CPqTP09H.cjs → usePrinter-dyVny55M.cjs} +1 -1
  31. package/dist/{usePrinter-CpHZjw3G.js → usePrinter-ngrh00Ym.js} +1 -1
  32. package/dist/{vue-data-ui-CR9Dof80.cjs → vue-data-ui-BYX-I7HQ.cjs} +1 -1
  33. package/dist/{vue-data-ui-CzqznXmA.js → vue-data-ui-CDD7JcMs.js} +61 -61
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +1 -1
  36. package/dist/{vue-ui-3d-bar-DvHdA_uo.js → vue-ui-3d-bar-BArLjlrc.js} +171 -168
  37. package/dist/vue-ui-3d-bar-DegdXf_S.cjs +19 -0
  38. package/dist/{vue-ui-accordion-FM16tlk7.cjs → vue-ui-accordion-D2qxHGzp.cjs} +1 -1
  39. package/dist/{vue-ui-accordion-DR2qjfsa.js → vue-ui-accordion-Qo8JxnIN.js} +3 -3
  40. package/dist/{vue-ui-age-pyramid-BoXxK9_W.js → vue-ui-age-pyramid-Biz02m7c.js} +85 -82
  41. package/dist/vue-ui-age-pyramid-kpaaJ2Gx.cjs +1 -0
  42. package/dist/{vue-ui-annotator-5tI8NuFh.cjs → vue-ui-annotator-By6XNYm0.cjs} +1 -1
  43. package/dist/{vue-ui-annotator-D4kCCpAK.js → vue-ui-annotator-MXs48Lua.js} +1 -1
  44. package/dist/{vue-ui-bullet-X3Xa_OZ6.js → vue-ui-bullet-CtBs_r3I.js} +92 -89
  45. package/dist/vue-ui-bullet-Dkz6vX0T.cjs +34 -0
  46. package/dist/vue-ui-candlestick-DiEUIuW8.cjs +2 -0
  47. package/dist/{vue-ui-candlestick-BTW5toA5.js → vue-ui-candlestick-gPztmuJE.js} +155 -152
  48. package/dist/{vue-ui-carousel-table-Cmnwv9Y3.cjs → vue-ui-carousel-table-CYeXP21y.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-D7s_SrJR.js → vue-ui-carousel-table-D9ckYNKZ.js} +4 -4
  50. package/dist/{vue-ui-chestnut-DN9EZShg.js → vue-ui-chestnut-DWjn-jcN.js} +186 -183
  51. package/dist/vue-ui-chestnut-oZtRERnV.cjs +6 -0
  52. package/dist/{vue-ui-circle-pack-ts3rurGX.js → vue-ui-circle-pack-Bz5yVvAM.js} +99 -96
  53. package/dist/vue-ui-circle-pack-DCJ6N00S.cjs +1 -0
  54. package/dist/{vue-ui-cursor-SW96fYT3.js → vue-ui-cursor-BrrVDy1u.js} +2 -2
  55. package/dist/{vue-ui-cursor-CpWkrHpR.cjs → vue-ui-cursor-DZhRygRy.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-BZcfgajg.js → vue-ui-dashboard-DEmGN8Js.js} +2 -2
  57. package/dist/{vue-ui-dashboard-Buh9xBz-.cjs → vue-ui-dashboard-o8Ju_cXW.cjs} +1 -1
  58. package/dist/{vue-ui-digits-rB78vJRR.cjs → vue-ui-digits-CgyYdrQ5.cjs} +1 -1
  59. package/dist/{vue-ui-digits-C00yOT24.js → vue-ui-digits-DbOrROu7.js} +2 -2
  60. package/dist/vue-ui-donut-9pWaRwf3.cjs +1 -0
  61. package/dist/{vue-ui-donut-BkGR2Q-_.js → vue-ui-donut-CP5uWglM.js} +158 -156
  62. package/dist/{vue-ui-donut-evolution-B7WrjiTO.js → vue-ui-donut-evolution-BAMD1wQ5.js} +133 -131
  63. package/dist/vue-ui-donut-evolution-Ci_gIrkO.cjs +1 -0
  64. package/dist/{vue-ui-dumbbell-gQadUH53.js → vue-ui-dumbbell-CFYd-Ypn.js} +125 -122
  65. package/dist/vue-ui-dumbbell-DUNYoZxT.cjs +9 -0
  66. package/dist/{vue-ui-flow-CqSTZbgP.js → vue-ui-flow-CdvGWFzv.js} +96 -93
  67. package/dist/vue-ui-flow-W89ofPB-.cjs +1 -0
  68. package/dist/{vue-ui-funnel-Jr9TMTsq.js → vue-ui-funnel-DYutKyoz.js} +88 -85
  69. package/dist/vue-ui-funnel-RvdVrhFu.cjs +1 -0
  70. package/dist/{vue-ui-galaxy-BrQ10tPo.js → vue-ui-galaxy-BCBRlYS1.js} +123 -120
  71. package/dist/vue-ui-galaxy-Djdx-ca8.cjs +1 -0
  72. package/dist/{vue-ui-gauge-DOMio6Mv.js → vue-ui-gauge-BNAAZt4F.js} +86 -83
  73. package/dist/vue-ui-gauge-BVVmf09x.cjs +1 -0
  74. package/dist/{vue-ui-gizmo-SKS1idHb.js → vue-ui-gizmo-BFQ_KgLX.js} +3 -3
  75. package/dist/{vue-ui-gizmo-C3NimqVM.cjs → vue-ui-gizmo-Ceh0oFY3.cjs} +1 -1
  76. package/dist/vue-ui-heatmap-CiZpI-tA.cjs +1 -0
  77. package/dist/{vue-ui-heatmap-l4vCjb6f.js → vue-ui-heatmap-Ct3qaBv7.js} +109 -106
  78. package/dist/vue-ui-history-plot-Ci8Y2EFg.cjs +1 -0
  79. package/dist/{vue-ui-history-plot-B05tJML1.js → vue-ui-history-plot-shn74MJ6.js} +130 -127
  80. package/dist/{vue-ui-kpi-DF4U5E1w.js → vue-ui-kpi-B_pV-2JJ.js} +3 -3
  81. package/dist/{vue-ui-kpi-DQJr571M.cjs → vue-ui-kpi-DfYrbxlX.cjs} +1 -1
  82. package/dist/{vue-ui-mini-loader-BMARnOW4.js → vue-ui-mini-loader-BFnWQs5p.js} +2 -2
  83. package/dist/{vue-ui-mini-loader-BZkVKkqn.cjs → vue-ui-mini-loader-LIqf62jk.cjs} +1 -1
  84. package/dist/vue-ui-molecule-D8YuYTKv.cjs +1 -0
  85. package/dist/{vue-ui-molecule-C1ycekVJ.js → vue-ui-molecule-DNz1m8XZ.js} +147 -144
  86. package/dist/{vue-ui-mood-radar-_Kd-Lhpm.js → vue-ui-mood-radar-DiYB_zhM.js} +97 -94
  87. package/dist/vue-ui-mood-radar-uvH7qUHy.cjs +1 -0
  88. package/dist/{vue-ui-nested-donuts-DIwRSn-O.js → vue-ui-nested-donuts-9hn-g4ir.js} +99 -96
  89. package/dist/vue-ui-nested-donuts-C7ikDjp7.cjs +17 -0
  90. package/dist/vue-ui-onion-5Rqvd4Fw.cjs +5 -0
  91. package/dist/{vue-ui-onion-Dqb0gwGl.js → vue-ui-onion-DCWfNTNu.js} +105 -102
  92. package/dist/{vue-ui-parallel-coordinate-plot-De-tYNNy.js → vue-ui-parallel-coordinate-plot-CaPFL9_1.js} +97 -94
  93. package/dist/vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs +8 -0
  94. package/dist/vue-ui-quadrant-B0Sw5NGo.cjs +1 -0
  95. package/dist/{vue-ui-quadrant-BQ5maxJq.js → vue-ui-quadrant-BoQZ375K.js} +155 -153
  96. package/dist/vue-ui-quick-chart-D3zV1d7t.cjs +15 -0
  97. package/dist/{vue-ui-quick-chart-DF_510YT.js → vue-ui-quick-chart-vfMN8F1q.js} +164 -161
  98. package/dist/{vue-ui-radar-DDHd0AYs.js → vue-ui-radar-CAuu6wkh.js} +129 -127
  99. package/dist/vue-ui-radar-CNMJCAwo.cjs +1 -0
  100. package/dist/{vue-ui-rating-Chi3OOtp.js → vue-ui-rating-Bm0HZ3du.js} +2 -2
  101. package/dist/{vue-ui-rating-D9kQcY2a.cjs → vue-ui-rating-dsRDRL98.cjs} +1 -1
  102. package/dist/{vue-ui-relation-circle-CV1xQOok.js → vue-ui-relation-circle-5OZMN9jR.js} +127 -124
  103. package/dist/vue-ui-relation-circle-iD7BufNH.cjs +1 -0
  104. package/dist/{vue-ui-rings-D2ezwyae.js → vue-ui-rings-COefBaQT.js} +114 -112
  105. package/dist/vue-ui-rings-DC4WG4sK.cjs +2 -0
  106. package/dist/vue-ui-scatter-5ny76dmi.cjs +1 -0
  107. package/dist/{vue-ui-scatter-BxbUYPk1.js → vue-ui-scatter-DhO83TZZ.js} +157 -154
  108. package/dist/{vue-ui-screenshot-Bc7Lv1i8.cjs → vue-ui-screenshot-DABH_phE.cjs} +1 -1
  109. package/dist/{vue-ui-screenshot-cxDgcXJB.js → vue-ui-screenshot-brillPo5.js} +1 -1
  110. package/dist/{vue-ui-skeleton-D6ojufhb.js → vue-ui-skeleton-BmJiYGtE.js} +3 -3
  111. package/dist/{vue-ui-skeleton-DvdPnQbR.cjs → vue-ui-skeleton-_DN0U6W6.cjs} +1 -1
  112. package/dist/{vue-ui-smiley-DEJ6S-We.cjs → vue-ui-smiley-CW6714mb.cjs} +1 -1
  113. package/dist/{vue-ui-smiley-9nGRDSn7.js → vue-ui-smiley-D9NRimij.js} +2 -2
  114. package/dist/{vue-ui-spark-trend-DiNeAGXR.js → vue-ui-spark-trend-BKZj03CQ.js} +5 -5
  115. package/dist/{vue-ui-spark-trend-BosbwgVe.cjs → vue-ui-spark-trend-expbkxgR.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-DNf_Majv.js → vue-ui-sparkbar-CYRORE5i.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-DGFKrcg0.cjs → vue-ui-sparkbar-Cr9FtevP.cjs} +1 -1
  118. package/dist/vue-ui-sparkgauge-BHXFhvTv.cjs +1 -0
  119. package/dist/{vue-ui-sparkgauge-D89HjxSK.js → vue-ui-sparkgauge-JV4tYB7P.js} +56 -53
  120. package/dist/{vue-ui-sparkhistogram-CU1_P6AJ.js → vue-ui-sparkhistogram-DKINHX2q.js} +93 -90
  121. package/dist/vue-ui-sparkhistogram-T4a3DDck.cjs +1 -0
  122. package/dist/{vue-ui-sparkline-C2McLmh5.js → vue-ui-sparkline-CbRTHtig.js} +109 -106
  123. package/dist/vue-ui-sparkline-Dc6Sf3n8.cjs +1 -0
  124. package/dist/{vue-ui-sparkstackbar-Cu4aG9PB.js → vue-ui-sparkstackbar-6u9-2nG4.js} +59 -56
  125. package/dist/vue-ui-sparkstackbar-CV5SkdsP.cjs +1 -0
  126. package/dist/{vue-ui-stackbar-6m5CpvNM.js → vue-ui-stackbar-CUppObfj.js} +136 -133
  127. package/dist/vue-ui-stackbar-CXB-nd71.cjs +6 -0
  128. package/dist/vue-ui-strip-plot-6IXF_U6-.cjs +1 -0
  129. package/dist/{vue-ui-strip-plot-DlZ2Eez4.js → vue-ui-strip-plot-doaNZAW4.js} +127 -124
  130. package/dist/{vue-ui-table-U0_3I0fu.js → vue-ui-table-CZsNuDR5.js} +1 -1
  131. package/dist/{vue-ui-table-BjhcV9qB.cjs → vue-ui-table-S66UCskD.cjs} +1 -1
  132. package/dist/{vue-ui-table-heatmap-Bfqytiv5.cjs → vue-ui-table-heatmap-BU9UU15H.cjs} +1 -1
  133. package/dist/{vue-ui-table-heatmap-BrGkCaOG.js → vue-ui-table-heatmap-CjohHqDV.js} +4 -4
  134. package/dist/{vue-ui-table-sparkline-CXlnp8E3.cjs → vue-ui-table-sparkline-CHFFTD0a.cjs} +1 -1
  135. package/dist/{vue-ui-table-sparkline-C1wNBDqO.js → vue-ui-table-sparkline-ab2rwdKB.js} +5 -5
  136. package/dist/{vue-ui-thermometer-Bx2abW1B.js → vue-ui-thermometer-C72mHwUi.js} +84 -81
  137. package/dist/vue-ui-thermometer-Ccd6RGh8.cjs +1 -0
  138. package/dist/vue-ui-timer-C8Fn2B0b.cjs +64 -0
  139. package/dist/{vue-ui-timer-3UkgrtEj.js → vue-ui-timer-D-LNi6lz.js} +183 -180
  140. package/dist/{vue-ui-tiremarks-C_xuD4De.js → vue-ui-tiremarks-Bo8EWsJ8.js} +59 -56
  141. package/dist/vue-ui-tiremarks-SOzvMOz4.cjs +1 -0
  142. package/dist/vue-ui-treemap-BqTTQrVh.cjs +1 -0
  143. package/dist/{vue-ui-treemap-BjDSR72h.js → vue-ui-treemap-uj94elVB.js} +123 -120
  144. package/dist/{vue-ui-vertical-bar-DUhOoSNl.js → vue-ui-vertical-bar-BUTOw-DK.js} +108 -106
  145. package/dist/vue-ui-vertical-bar-C4Sxun4Q.cjs +4 -0
  146. package/dist/{vue-ui-waffle-Dpox5n5s.js → vue-ui-waffle-CTWA1frT.js} +107 -104
  147. package/dist/vue-ui-waffle-DYWGRKdT.cjs +1 -0
  148. package/dist/vue-ui-wheel-8K72ZKda.js +330 -0
  149. package/dist/vue-ui-wheel-Cz5-0klT.cjs +1 -0
  150. package/dist/{vue-ui-word-cloud-u5S86-Ft.js → vue-ui-word-cloud-CSwBPDB8.js} +97 -94
  151. package/dist/vue-ui-word-cloud-D39riLZb.cjs +1 -0
  152. package/dist/vue-ui-xy-BbWXjajH.cjs +3 -0
  153. package/dist/{vue-ui-xy-0nBQDwL2.js → vue-ui-xy-DpDKutd7.js} +65 -58
  154. package/dist/{vue-ui-xy-canvas-yQlThVu7.cjs → vue-ui-xy-canvas-BCj0SCqe.cjs} +2 -2
  155. package/dist/{vue-ui-xy-canvas-DI7LiD4U.js → vue-ui-xy-canvas-BQm9gah4.js} +82 -81
  156. package/package.json +1 -1
  157. package/dist/Shape-GAZUIBfN.cjs +0 -1
  158. package/dist/Tooltip-BlGVq6xj.cjs +0 -1
  159. package/dist/index-DSGAenF3.cjs +0 -9
  160. package/dist/vue-ui-3d-bar-vvpkf_bv.cjs +0 -19
  161. package/dist/vue-ui-age-pyramid-CMMnrI3R.cjs +0 -1
  162. package/dist/vue-ui-bullet-nXPlud-q.cjs +0 -34
  163. package/dist/vue-ui-candlestick-B6T0LhEG.cjs +0 -2
  164. package/dist/vue-ui-chestnut-D8Gq_i77.cjs +0 -6
  165. package/dist/vue-ui-circle-pack-DCz3OWlu.cjs +0 -1
  166. package/dist/vue-ui-donut-BpgK-I9o.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BVJCDPQ2.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-DRcemHVG.cjs +0 -9
  169. package/dist/vue-ui-flow-DdQsK5DR.cjs +0 -1
  170. package/dist/vue-ui-funnel-Bq4yoTfd.cjs +0 -1
  171. package/dist/vue-ui-galaxy-ia1UNlpc.cjs +0 -1
  172. package/dist/vue-ui-gauge-C3FbYOSi.cjs +0 -1
  173. package/dist/vue-ui-heatmap-BCau2Z3U.cjs +0 -1
  174. package/dist/vue-ui-history-plot-DL7VjOd0.cjs +0 -1
  175. package/dist/vue-ui-molecule-B5XDGmLx.cjs +0 -1
  176. package/dist/vue-ui-mood-radar-DyMCJKFb.cjs +0 -1
  177. package/dist/vue-ui-nested-donuts-B4Am-r6T.cjs +0 -17
  178. package/dist/vue-ui-onion-YeBdJrdx.cjs +0 -5
  179. package/dist/vue-ui-parallel-coordinate-plot-CoecETlm.cjs +0 -8
  180. package/dist/vue-ui-quadrant-Btzq3qNJ.cjs +0 -1
  181. package/dist/vue-ui-quick-chart-5cWjffLJ.cjs +0 -15
  182. package/dist/vue-ui-radar-t22bqFiQ.cjs +0 -1
  183. package/dist/vue-ui-relation-circle-CWgGPxDJ.cjs +0 -1
  184. package/dist/vue-ui-rings-CiLJkRwa.cjs +0 -2
  185. package/dist/vue-ui-scatter-B24gGA8q.cjs +0 -1
  186. package/dist/vue-ui-sparkgauge-DwK7dzdJ.cjs +0 -1
  187. package/dist/vue-ui-sparkhistogram-DKoI6_TT.cjs +0 -1
  188. package/dist/vue-ui-sparkline-Bp7GMRrA.cjs +0 -1
  189. package/dist/vue-ui-sparkstackbar-Dayxdcr7.cjs +0 -1
  190. package/dist/vue-ui-stackbar-C21xTVy9.cjs +0 -6
  191. package/dist/vue-ui-strip-plot-DAo8FMup.cjs +0 -1
  192. package/dist/vue-ui-thermometer-CBdAwYdC.cjs +0 -1
  193. package/dist/vue-ui-timer-CRDQbqJ_.cjs +0 -64
  194. package/dist/vue-ui-tiremarks-C78mfaBr.cjs +0 -1
  195. package/dist/vue-ui-treemap-CP__1pdb.cjs +0 -1
  196. package/dist/vue-ui-vertical-bar-DTB8r4LH.cjs +0 -4
  197. package/dist/vue-ui-waffle-CrVyCF7k.cjs +0 -1
  198. package/dist/vue-ui-wheel-DV2zgr4d.cjs +0 -1
  199. package/dist/vue-ui-wheel-ykD8OULJ.js +0 -319
  200. package/dist/vue-ui-word-cloud-DBkAo2uX.cjs +0 -1
  201. package/dist/vue-ui-xy-mEVVQr_U.cjs +0 -3
@@ -1,18 +1,19 @@
1
- import { useCssVars as Ge, computed as f, ref as o, watch as Ve, onMounted as We, onBeforeUnmount as De, createElementBlock as a, openBlock as i, unref as u, normalizeStyle as C, createBlock as S, createCommentVNode as v, createSlots as Xe, withCtx as F, renderSlot as h, normalizeProps as V, guardReactiveProps as W, normalizeClass as D, createVNode as Ye, createElementVNode as qe, Fragment as P, renderList as L, mergeProps as ge, toDisplayString as B } from "vue";
2
- import { u as He, c as Je, t as Ke, p as me, a as Qe, b as Ze, o as et, e as ke, g as tt, X as lt, G as pe, i as X, f as Y, F as q } from "./index-DLCyjPV0.js";
3
- import { t as st, u as it } from "./useResponsive-BWapHhVH.js";
4
- import { _ as at } from "./Title-CXBc1TH6.js";
5
- import { u as nt, U as rt } from "./usePrinter-CpHZjw3G.js";
6
- import ut from "./vue-ui-skeleton-D6ojufhb.js";
7
- import { u as we } from "./useNestedProp-q86V3_LA.js";
8
- import { _ as ot } from "./PackageVersion-PZr4BkQ5.js";
9
- import { P as ct } from "./PenAndPaper-Cniu2YEX.js";
10
- import { u as dt } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["cx", "cy", "r", "stroke", "stroke-width"], mt = { key: 1 }, kt = ["stroke", "d", "stroke-width"], pt = { style: { "pointer-events": "none" } }, wt = ["cx", "cy", "fill", "r", "stroke"], xt = ["x", "y", "fill", "font-size"], bt = { key: 2 }, $t = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], _t = { style: { "pointer-events": "none" } }, Ct = ["cx", "cy", "fill", "r", "stroke"], Pt = ["x", "y", "fill", "font-size"], Lt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], Ot = ["cx", "cy", "fill", "stroke", "onClick", "r"], zt = {
1
+ import { useCssVars as Ve, computed as y, ref as o, watch as We, onMounted as De, onBeforeUnmount as Xe, createElementBlock as a, openBlock as i, unref as u, normalizeStyle as C, createBlock as S, createCommentVNode as v, createSlots as Ye, withCtx as F, renderSlot as h, normalizeProps as V, guardReactiveProps as W, normalizeClass as D, createVNode as qe, createElementVNode as He, Fragment as P, renderList as L, mergeProps as ge, toDisplayString as B } from "vue";
2
+ import { u as Je, c as Ke, t as Qe, p as me, a as Ze, b as et, o as tt, e as ke, g as lt, X as st, G as pe, i as X, f as Y, F as q } from "./index-9EeNZMz1.js";
3
+ import { t as it, u as at } from "./useResponsive-BWapHhVH.js";
4
+ import { _ as rt } from "./Title-BI8etrRU.js";
5
+ import { u as nt, U as ut } from "./usePrinter-ngrh00Ym.js";
6
+ import ot from "./vue-ui-skeleton-BmJiYGtE.js";
7
+ import { u as we } from "./useNestedProp-df_bKQEI.js";
8
+ import { _ as ct } from "./PackageVersion-QRvxRYPv.js";
9
+ import { P as dt } from "./PenAndPaper-CxC1lWGK.js";
10
+ import { u as vt } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as ft } from "./useChartAccessibility-BWojgys7.js";
12
+ import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const ht = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["cx", "cy", "r", "stroke", "stroke-width"], pt = { key: 1 }, wt = ["stroke", "d", "stroke-width"], xt = { style: { "pointer-events": "none" } }, bt = ["cx", "cy", "fill", "r", "stroke"], $t = ["x", "y", "fill", "font-size"], _t = { key: 2 }, Ct = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Pt = { style: { "pointer-events": "none" } }, Lt = ["cx", "cy", "fill", "r", "stroke"], Ot = ["x", "y", "fill", "font-size"], zt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], At = ["cx", "cy", "fill", "stroke", "onClick", "r"], It = {
13
14
  key: 5,
14
15
  class: "vue-data-ui-watermark"
15
- }, At = {
16
+ }, Mt = {
16
17
  __name: "vue-ui-relation-circle",
17
18
  props: {
18
19
  dataset: {
@@ -29,15 +30,15 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
29
30
  }
30
31
  },
31
32
  setup(xe, { expose: be }) {
32
- Ge((e) => ({
33
- "51b67ab0": Oe.value,
34
- "3bc0348f": Le.value,
35
- "5deebf9e": ze.value
33
+ Ve((e) => ({
34
+ "1fee7ef0": ze.value,
35
+ "394bce67": Oe.value,
36
+ "23e0d009": Ae.value
36
37
  }));
37
- const { vue_ui_relation_circle: $e } = He(), p = xe, E = f(() => !!p.dataset && Object.keys(p.dataset).length), O = o(Je()), H = o(0), z = o(null), J = o(null), K = o(null), Q = o(null), Z = o(0), l = f({
38
+ const { vue_ui_relation_circle: $e } = Je(), p = xe, E = y(() => !!p.dataset && Object.keys(p.dataset).length), O = o(Ke()), H = o(0), z = o(null), J = o(null), K = o(null), Q = o(null), Z = o(0), l = y({
38
39
  get: () => le(),
39
40
  set: (e) => e
40
- }), { userOptionsVisible: T, setUserOptionsVisibility: ee, keepUserOptionState: te } = dt({ config: l.value });
41
+ }), { userOptionsVisible: T, setUserOptionsVisibility: ee, keepUserOptionState: te } = vt({ config: l.value }), { svgRef: _e } = ft({ config: l.value.style.title });
41
42
  function le() {
42
43
  const e = we({
43
44
  userConfig: p.config,
@@ -45,38 +46,38 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
45
46
  });
46
47
  return e.theme ? {
47
48
  ...we({
48
- userConfig: Qe.vue_ui_relation_circle[e.theme] || p.config,
49
+ userConfig: Ze.vue_ui_relation_circle[e.theme] || p.config,
49
50
  defaultConfig: e
50
51
  }),
51
- customPalette: Ke[e.theme] || me
52
+ customPalette: Qe[e.theme] || me
52
53
  } : e;
53
54
  }
54
- Ve(() => p.config, (e) => {
55
+ We(() => p.config, (e) => {
55
56
  l.value = le(), T.value = !l.value.userOptions.showOnChartHover, ce(), Z.value += 1;
56
57
  }, { deep: !0 });
57
- const { isPrinting: se, isImaging: ie, generatePdf: ae, generateImage: ne } = nt({
58
+ const { isPrinting: se, isImaging: ie, generatePdf: ae, generateImage: re } = nt({
58
59
  elementId: `relation_circle_${O.value}`,
59
60
  fileName: l.value.style.title.text || "vue-ui-relation-circle"
60
- }), _e = f(() => l.value.userOptions.show && !l.value.style.title.text), re = f(() => Ze(l.value.customPalette)), x = o([]), g = o([]), c = o({}), m = o([]), Ce = o(0), N = f(() => p.dataset.slice(0, l.value.style.limit)), $ = o(l.value.style.size), k = o(l.value.style.weightLabels.size), ue = o(l.value.style.plot.radius), oe = o(l.value.style.labels.fontSize), r = o({
61
+ }), Ce = y(() => l.value.userOptions.show && !l.value.style.title.text), ne = y(() => et(l.value.customPalette)), x = o([]), g = o([]), c = o({}), m = o([]), Pe = o(0), R = y(() => p.dataset.slice(0, l.value.style.limit)), $ = o(l.value.style.size), k = o(l.value.style.weightLabels.size), ue = o(l.value.style.plot.radius), oe = o(l.value.style.labels.fontSize), n = o({
61
62
  height: l.value.style.size,
62
63
  width: l.value.style.size
63
- }), b = f({
64
+ }), b = y({
64
65
  get() {
65
66
  return $.value * l.value.style.circle.radiusProportion;
66
67
  },
67
68
  set(e) {
68
69
  return e;
69
70
  }
70
- }), Pe = f(() => l.value.style.links.curved), Le = f(() => `${l.value.style.animation.speedMs}ms`), Oe = f(() => b.value * 2), ze = f(() => b.value * 4), A = o(null);
71
- We(() => {
71
+ }), Le = y(() => l.value.style.links.curved), Oe = y(() => `${l.value.style.animation.speedMs}ms`), ze = y(() => b.value * 2), Ae = y(() => b.value * 4), A = o(null);
72
+ De(() => {
72
73
  ce(), document.getElementById(`relation_circle_${O.value}`).addEventListener("click", de);
73
74
  });
74
75
  function ce() {
75
- if (et(p.dataset) ? ke({
76
+ if (tt(p.dataset) ? ke({
76
77
  componentName: "VueUiRelationCircle",
77
78
  type: "dataset"
78
79
  }) : p.dataset.forEach((e, s) => {
79
- tt({
80
+ lt({
80
81
  datasetObject: e,
81
82
  requiredAttributes: ["id", "label", "relations", "weights"]
82
83
  }).forEach((t) => {
@@ -88,15 +89,15 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
88
89
  });
89
90
  });
90
91
  }), l.value.responsive) {
91
- const e = st(() => {
92
- const { width: s, height: t } = it({
92
+ const e = it(() => {
93
+ const { width: s, height: t } = at({
93
94
  chart: z.value,
94
95
  title: l.value.style.title.text ? J.value : null,
95
96
  source: K.value,
96
97
  noTitle: Q.value
97
98
  });
98
99
  requestAnimationFrame(() => {
99
- $.value = Math.min(s, t), r.value.width = s, r.value.height = t, b.value = $.value * l.value.style.circle.radiusProportion, x.value = [], g.value = [], ve(), ye(), k.value = q({
100
+ $.value = Math.min(s, t), n.value.width = s, n.value.height = t, b.value = $.value * l.value.style.circle.radiusProportion, x.value = [], g.value = [], ve(), fe(), k.value = q({
100
101
  relator: $.value,
101
102
  adjuster: l.value.style.size,
102
103
  source: l.value.style.weightLabels.size,
@@ -119,9 +120,9 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
119
120
  });
120
121
  A.value = new ResizeObserver(e), A.value.observe(z.value.parentNode);
121
122
  } else
122
- x.value = [], g.value = [], ve(), ye();
123
+ x.value = [], g.value = [], ve(), fe();
123
124
  }
124
- De(() => {
125
+ Xe(() => {
125
126
  document.getElementById(`relation_circle_${O.value}`).removeEventListener("click", de), A.value && A.value.disconnect();
126
127
  });
127
128
  function de(e) {
@@ -129,23 +130,23 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
129
130
  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") || (c.value = {}, m.value = []);
130
131
  }
131
132
  function ve() {
132
- const e = 6.28319 / N.value.length, s = 360 / N.value.length;
133
- let t = 0, n = 0;
134
- N.value.forEach((y, d) => {
135
- const U = y.weights.reduce((je, Ue) => je + Ue, 0), G = b.value * Math.cos(t) + r.value.width / 2, Re = b.value * Math.sin(t) + r.value.height / 2 + l.value.style.circle.offsetY;
136
- x.value.push({ x: G, y: Re, ...y, color: y.color ? y.color : re.value[d] ? re.value[d] : me[d], regAngle: n, totalWeight: U }), t += e, n += s;
133
+ const e = 6.28319 / R.value.length, s = 360 / R.value.length;
134
+ let t = 0, r = 0;
135
+ R.value.forEach((f, d) => {
136
+ const U = f.weights.reduce((Ue, Ge) => Ue + Ge, 0), G = b.value * Math.cos(t) + n.value.width / 2, je = b.value * Math.sin(t) + n.value.height / 2 + l.value.style.circle.offsetY;
137
+ x.value.push({ x: G, y: je, ...f, color: f.color ? f.color : ne.value[d] ? ne.value[d] : me[d], regAngle: r, totalWeight: U }), t += e, r += s;
137
138
  });
138
139
  }
139
- function Ae(e, s) {
140
- const t = (e.x + s.x) / 2, n = (e.y + s.y) / 2;
141
- return { x: t, y: n };
140
+ function Ie(e, s) {
141
+ const t = (e.x + s.x) / 2, r = (e.y + s.y) / 2;
142
+ return { x: t, y: r };
142
143
  }
143
- function ye() {
144
+ function fe() {
144
145
  g.value = [], x.value.forEach((e) => {
145
- x.value.filter((t) => t.relations.includes(e.id)).forEach((t, n) => {
146
- const y = t.relations.indexOf(e.id);
146
+ x.value.filter((t) => t.relations.includes(e.id)).forEach((t, r) => {
147
+ const f = t.relations.indexOf(e.id);
147
148
  g.value.push({
148
- weight: t.weights[y] ? t.weights[y] : 0,
149
+ weight: t.weights[f] ? t.weights[f] : 0,
149
150
  relationId: `${e.id}_${t.id}`,
150
151
  x1: e.x,
151
152
  y1: e.y,
@@ -153,8 +154,8 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
153
154
  y2: t.y,
154
155
  colorSource: e.color,
155
156
  colorTarget: t.color,
156
- midPointLine: Ae({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
157
- midPointBezier: Ie({
157
+ midPointLine: Ie({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
158
+ midPointBezier: Me({
158
159
  x1: e.x,
159
160
  x2: t.x,
160
161
  y1: e.y,
@@ -165,43 +166,43 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
165
166
  });
166
167
  });
167
168
  }
168
- function Ie(e) {
169
- const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, n = { x: e.x1, y: e.y1 }, y = {
170
- x: r.value.width / 2,
171
- y: r.value.height / 2 + l.value.style.circle.offsetY
172
- }, d = 0.5, U = Math.pow(1 - d, 3) * s.x + 3 * Math.pow(1 - d, 2) * d * n.x + 3 * (1 - d) * Math.pow(d, 2) * y.x + Math.pow(d, 3) * t.x, G = Math.pow(1 - d, 3) * s.y + 3 * Math.pow(1 - d, 2) * d * n.y + 3 * (1 - d) * Math.pow(d, 2) * y.y + Math.pow(d, 3) * t.y;
169
+ function Me(e) {
170
+ const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, r = { x: e.x1, y: e.y1 }, f = {
171
+ x: n.value.width / 2,
172
+ y: n.value.height / 2 + l.value.style.circle.offsetY
173
+ }, d = 0.5, U = Math.pow(1 - d, 3) * s.x + 3 * Math.pow(1 - d, 2) * d * r.x + 3 * (1 - d) * Math.pow(d, 2) * f.x + Math.pow(d, 3) * t.x, G = Math.pow(1 - d, 3) * s.y + 3 * Math.pow(1 - d, 2) * d * r.y + 3 * (1 - d) * Math.pow(d, 2) * f.y + Math.pow(d, 3) * t.y;
173
174
  return { x: U, y: G };
174
175
  }
175
- const Me = f(() => Math.max(...g.value.map((e) => e.weight)));
176
- function Se(e) {
176
+ const Se = y(() => Math.max(...g.value.map((e) => e.weight)));
177
+ function Fe(e) {
177
178
  return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
178
179
  }
179
180
  function w(e) {
180
181
  return e.colorSource;
181
182
  }
182
- function fe(e) {
183
- return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}` ? `opacity:1;stroke-width:${R(e)}` : "opacity: 0" : "opacity: 1";
183
+ function ye(e) {
184
+ return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}` ? `opacity:1;stroke-width:${N(e)}` : "opacity: 0" : "opacity: 1";
184
185
  }
185
186
  function _(e) {
186
187
  return Object.hasOwn(c.value, "x") ? !!(m.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}`) : !1;
187
188
  }
188
- function Fe(e) {
189
+ function Be(e) {
189
190
  return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
190
191
  }
191
- function Be(e) {
192
+ function Ee(e) {
192
193
  return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
193
194
  }
194
- function Ee(e) {
195
+ function Te(e) {
195
196
  return Object.hasOwn(c.value, "x") ? c.value.id === e.id || m.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
196
197
  }
197
- function Te(e) {
198
+ function Re(e) {
198
199
  return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
199
200
  }
200
201
  function he(e) {
201
- Ce.value = 360 - e.regAngle, c.value.id && e.id === c.value.id ? (c.value = {}, m.value = []) : (c.value = e, m.value = [...e.relations]);
202
+ Pe.value = 360 - e.regAngle, c.value.id && e.id === c.value.id ? (c.value = {}, m.value = []) : (c.value = e, m.value = [...e.relations]);
202
203
  }
203
- function R(e) {
204
- const s = e.weight / Me.value * l.value.style.links.maxWidth;
204
+ function N(e) {
205
+ const s = e.weight / Se.value * l.value.style.links.maxWidth;
205
206
  return Math.max(0.3, s);
206
207
  }
207
208
  const I = o(!1);
@@ -214,7 +215,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
214
215
  }
215
216
  return be({
216
217
  generatePdf: ae,
217
- generateImage: ne,
218
+ generateImage: re,
218
219
  toggleAnnotator: j
219
220
  }), (e, s) => (i(), a("div", {
220
221
  ref_key: "relationCircleChart",
@@ -225,7 +226,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
225
226
  onMouseenter: s[0] || (s[0] = () => u(ee)(!0)),
226
227
  onMouseleave: s[1] || (s[1] = () => u(ee)(!1))
227
228
  }, [
228
- l.value.userOptions.buttons.annotator ? (i(), S(ct, {
229
+ l.value.userOptions.buttons.annotator ? (i(), S(dt, {
229
230
  key: 0,
230
231
  parent: z.value,
231
232
  backgroundColor: l.value.style.backgroundColor,
@@ -233,7 +234,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
233
234
  active: M.value,
234
235
  onClose: j
235
236
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
236
- _e.value ? (i(), a("div", {
237
+ Ce.value ? (i(), a("div", {
237
238
  key: 1,
238
239
  ref_key: "noTitle",
239
240
  ref: Q,
@@ -246,7 +247,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
246
247
  ref: J,
247
248
  style: "width:100%;background:transparent"
248
249
  }, [
249
- (i(), S(at, {
250
+ (i(), S(rt, {
250
251
  key: `title_${Z.value}`,
251
252
  config: {
252
253
  title: {
@@ -260,7 +261,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
260
261
  }
261
262
  }, null, 8, ["config"]))
262
263
  ], 512)) : v("", !0),
263
- l.value.userOptions.show && E.value && (u(te) || u(T)) ? (i(), S(rt, {
264
+ l.value.userOptions.show && E.value && (u(te) || u(T)) ? (i(), S(ut, {
264
265
  ref: "details",
265
266
  key: `user_options_${H.value}`,
266
267
  backgroundColor: l.value.style.backgroundColor,
@@ -280,12 +281,12 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
280
281
  isAnnotation: M.value,
281
282
  onToggleFullscreen: Ne,
282
283
  onGeneratePdf: u(ae),
283
- onGenerateImage: u(ne),
284
+ onGenerateImage: u(re),
284
285
  onToggleAnnotator: j,
285
286
  style: C({
286
287
  visibility: u(te) ? u(T) ? "visible" : "hidden" : "visible"
287
288
  })
288
- }, Xe({ _: 2 }, [
289
+ }, Ye({ _: 2 }, [
289
290
  e.$slots.optionPdf ? {
290
291
  name: "optionPdf",
291
292
  fn: F(() => [
@@ -302,61 +303,63 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
302
303
  } : void 0,
303
304
  e.$slots.optionFullscreen ? {
304
305
  name: "optionFullscreen",
305
- fn: F(({ toggleFullscreen: t, isFullscreen: n }) => [
306
- h(e.$slots, "optionFullscreen", V(W({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
306
+ fn: F(({ toggleFullscreen: t, isFullscreen: r }) => [
307
+ h(e.$slots, "optionFullscreen", V(W({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
307
308
  ]),
308
309
  key: "2"
309
310
  } : void 0,
310
311
  e.$slots.optionAnnotator ? {
311
312
  name: "optionAnnotator",
312
- fn: F(({ toggleAnnotator: t, isAnnotator: n }) => [
313
- h(e.$slots, "optionAnnotator", V(W({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
313
+ fn: F(({ toggleAnnotator: t, isAnnotator: r }) => [
314
+ h(e.$slots, "optionAnnotator", V(W({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
314
315
  ]),
315
316
  key: "3"
316
317
  } : void 0
317
318
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
318
319
  E.value ? (i(), a("svg", {
319
320
  key: 4,
320
- xmlns: u(lt),
321
+ ref_key: "svgRef",
322
+ ref: _e,
323
+ xmlns: u(st),
321
324
  class: D([{ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }, "relation-circle"]),
322
- viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
325
+ viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
323
326
  width: "100%",
324
327
  style: "user-select:none; background:transparent"
325
328
  }, [
326
- Ye(ot),
329
+ qe(ct),
327
330
  e.$slots["chart-background"] ? (i(), a("foreignObject", {
328
331
  key: 0,
329
332
  x: 0,
330
333
  y: 0,
331
- width: r.value.width <= 0 ? 10 : r.value.width,
332
- height: r.value.height <= 0 ? 10 : r.value.height,
334
+ width: n.value.width <= 0 ? 10 : n.value.width,
335
+ height: n.value.height <= 0 ? 10 : n.value.height,
333
336
  style: {
334
337
  pointerEvents: "none"
335
338
  }
336
339
  }, [
337
340
  h(e.$slots, "chart-background", {}, void 0, !0)
338
- ], 8, ht)) : v("", !0),
339
- qe("circle", {
340
- cx: (r.value.width <= 0 ? 1e-4 : r.value.width) / 2,
341
- cy: (r.value.height <= 0 ? 1e-4 : r.value.height) / 2 + l.value.style.circle.offsetY,
341
+ ], 8, mt)) : v("", !0),
342
+ He("circle", {
343
+ cx: (n.value.width <= 0 ? 1e-4 : n.value.width) / 2,
344
+ cy: (n.value.height <= 0 ? 1e-4 : n.value.height) / 2 + l.value.style.circle.offsetY,
342
345
  r: b.value <= 0 ? 1e-4 : b.value,
343
346
  stroke: l.value.style.circle.stroke,
344
347
  "stroke-width": l.value.style.circle.strokeWidth,
345
348
  fill: "transparent",
346
349
  class: "main-circle"
347
- }, null, 8, gt),
348
- Pe.value ? (i(), a("g", mt, [
349
- (i(!0), a(P, null, L(g.value, (t, n) => (i(), a("path", {
350
- key: `relation_${n}`,
351
- style: C(fe(t)),
350
+ }, null, 8, kt),
351
+ Le.value ? (i(), a("g", pt, [
352
+ (i(!0), a(P, null, L(g.value, (t, r) => (i(), a("path", {
353
+ key: `relation_${r}`,
354
+ style: C(ye(t)),
352
355
  stroke: w(t),
353
356
  class: D(["relation", { "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && m.value.includes(t.id) }]),
354
- 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}`,
357
+ d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${n.value.width / 2},${n.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
355
358
  fill: "none",
356
- "stroke-width": R(t),
359
+ "stroke-width": N(t),
357
360
  "stroke-linecap": "round"
358
- }, null, 14, kt))), 128)),
359
- (i(!0), a(P, null, L(g.value, (t, n) => (i(), a("g", pt, [
361
+ }, null, 14, wt))), 128)),
362
+ (i(!0), a(P, null, L(g.value, (t, r) => (i(), a("g", xt, [
360
363
  _(t) ? h(e.$slots, "dataLabel", ge({
361
364
  key: 0,
362
365
  ref_for: !0
@@ -375,7 +378,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
375
378
  r: k.value,
376
379
  stroke: l.value.style.backgroundColor,
377
380
  "stroke-width": "1"
378
- }, null, 8, wt)) : v("", !0),
381
+ }, null, 8, bt)) : v("", !0),
379
382
  _(t) && !e.$slots.dataLabel ? (i(), a("text", {
380
383
  key: 2,
381
384
  x: t.midPointBezier.x,
@@ -393,22 +396,22 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
393
396
  r: l.value.style.weightLabels.rounding
394
397
  }),
395
398
  { ...t }
396
- )), 9, xt)) : v("", !0)
399
+ )), 9, $t)) : v("", !0)
397
400
  ]))), 256))
398
- ])) : (i(), a("g", bt, [
399
- (i(!0), a(P, null, L(g.value, (t, n) => (i(), a("line", {
400
- key: `relation_${n}`,
401
+ ])) : (i(), a("g", _t, [
402
+ (i(!0), a(P, null, L(g.value, (t, r) => (i(), a("line", {
403
+ key: `relation_${r}`,
401
404
  stroke: w(t),
402
- "stroke-width": R(t),
403
- style: C(fe(t)),
405
+ "stroke-width": N(t),
406
+ style: C(ye(t)),
404
407
  x1: t.x1,
405
408
  x2: t.x2,
406
409
  y1: t.y1,
407
410
  y2: t.y2,
408
411
  class: D({ "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && m.value.includes(t.id) }),
409
412
  "stroke-linecap": "round"
410
- }, null, 14, $t))), 128)),
411
- (i(!0), a(P, null, L(g.value, (t, n) => (i(), a("g", _t, [
413
+ }, null, 14, Ct))), 128)),
414
+ (i(!0), a(P, null, L(g.value, (t, r) => (i(), a("g", Pt, [
412
415
  _(t) ? h(e.$slots, "dataLabel", ge({
413
416
  key: 0,
414
417
  ref_for: !0
@@ -427,7 +430,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
427
430
  r: k.value,
428
431
  stroke: l.value.style.backgroundColor,
429
432
  "stroke-width": "1"
430
- }, null, 8, Ct)) : v("", !0),
433
+ }, null, 8, Lt)) : v("", !0),
431
434
  _(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), a("text", {
432
435
  key: 2,
433
436
  x: t.midPointLine.x,
@@ -445,20 +448,20 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
445
448
  r: l.value.style.weightLabels.rounding
446
449
  }),
447
450
  { ...t }
448
- )), 9, Pt)) : v("", !0)
451
+ )), 9, Ot)) : v("", !0)
449
452
  ]))), 256))
450
453
  ])),
451
- (i(!0), a(P, null, L(x.value, (t, n) => (i(), a("text", {
452
- key: `plot_text_${n}`,
453
- "text-anchor": Fe(t),
454
- transform: Te(t),
455
- x: Be(t),
454
+ (i(!0), a(P, null, L(x.value, (t, r) => (i(), a("text", {
455
+ key: `plot_text_${r}`,
456
+ "text-anchor": Be(t),
457
+ transform: Re(t),
458
+ x: Ee(t),
456
459
  y: t.y + 5,
457
- onClick: (y) => he(t),
460
+ onClick: (f) => he(t),
458
461
  class: "vue-ui-relation-circle-legend",
459
462
  "transform-origin": "start",
460
463
  "font-weight": c.value.id === t.id ? "900" : "400",
461
- style: C(`font-family:${l.value.style.fontFamily};${Ee(t)}`),
464
+ style: C(`font-family:${l.value.style.fontFamily};${Te(t)}`),
462
465
  "font-size": oe.value,
463
466
  fill: l.value.style.labels.color
464
467
  }, B(t.label) + " (" + B(u(X)(
@@ -471,22 +474,22 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
471
474
  r: l.value.style.weightLabels.rounding
472
475
  }),
473
476
  { ...t }
474
- )) + ") ", 13, Lt))), 128)),
475
- (i(!0), a(P, null, L(x.value, (t, n) => (i(), a("circle", {
477
+ )) + ") ", 13, zt))), 128)),
478
+ (i(!0), a(P, null, L(x.value, (t, r) => (i(), a("circle", {
476
479
  cx: t.x,
477
480
  cy: t.y,
478
- key: `plot_${n}`,
479
- style: C(Se(t)),
481
+ key: `plot_${r}`,
482
+ style: C(Fe(t)),
480
483
  class: "vue-ui-relation-circle-plot",
481
484
  fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
482
485
  stroke: l.value.style.backgroundColor,
483
486
  "stroke-width": "1",
484
- onClick: (y) => he(t),
487
+ onClick: (f) => he(t),
485
488
  r: ue.value
486
- }, null, 12, Ot))), 128)),
487
- h(e.$slots, "svg", { svg: r.value }, void 0, !0)
488
- ], 10, ft)) : v("", !0),
489
- e.$slots.watermark ? (i(), a("div", zt, [
489
+ }, null, 12, At))), 128)),
490
+ h(e.$slots, "svg", { svg: n.value }, void 0, !0)
491
+ ], 10, gt)) : v("", !0),
492
+ e.$slots.watermark ? (i(), a("div", It, [
490
493
  h(e.$slots, "watermark", V(W({ isPrinting: u(se) || u(ie) })), void 0, !0)
491
494
  ])) : v("", !0),
492
495
  e.$slots.source ? (i(), a("div", {
@@ -497,7 +500,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
497
500
  }, [
498
501
  h(e.$slots, "source", {}, void 0, !0)
499
502
  ], 512)) : v("", !0),
500
- E.value ? v("", !0) : (i(), S(ut, {
503
+ E.value ? v("", !0) : (i(), S(ot, {
501
504
  key: 7,
502
505
  config: {
503
506
  type: "relationCircle",
@@ -509,9 +512,9 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
509
512
  }
510
513
  }
511
514
  }, null, 8, ["config"]))
512
- ], 44, yt));
515
+ ], 44, ht));
513
516
  }
514
- }, Gt = /* @__PURE__ */ vt(At, [["__scopeId", "data-v-dd9e8e63"]]);
517
+ }, Dt = /* @__PURE__ */ yt(Mt, [["__scopeId", "data-v-61459281"]]);
515
518
  export {
516
- Gt as default
519
+ Dt as default
517
520
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DEnRHTzk.cjs"),Z=require("./useResponsive-YQYQrAZ_.cjs"),Be=require("./Title-Dk92HYMu.cjs"),ee=require("./usePrinter-dyVny55M.cjs"),$e=require("./vue-ui-skeleton-_DN0U6W6.cjs"),te=require("./useNestedProp-BNT60LxO.cjs"),_e=require("./PackageVersion-DJKkRuOD.cjs"),Pe=require("./PenAndPaper-MTTJ3Gd9.cjs"),Le=require("./useUserOptionState-BgepsfED.cjs"),ze=require("./useChartAccessibility-Cm7nkzTG.cjs"),Oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],Ee=["xmlns","viewBox"],Ae=["width","height"],Ne=["cx","cy","r","stroke","stroke-width"],Ie={key:1},Ve=["stroke","d","stroke-width"],Fe={style:{"pointer-events":"none"}},Me=["cx","cy","fill","r","stroke"],Te=["x","y","fill","font-size"],Re={key:2},qe=["stroke","stroke-width","x1","x2","y1","y2"],je={style:{"pointer-events":"none"}},De=["cx","cy","fill","r","stroke"],Ue=["x","y","fill","font-size"],Ge=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],We=["cx","cy","fill","stroke","onClick","r"],Ye={key:5,class:"vue-data-ui-watermark"},Xe={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(le,{expose:re}){e.useCssVars(t=>({"1fee7ef0":ce.value,"394bce67":ue.value,"23e0d009":de.value}));const{vue_ui_relation_circle:ne}=o.useConfig(),y=le,$=e.computed(()=>!!y.dataset&&Object.keys(y.dataset).length),w=e.ref(o.createUid()),E=e.ref(0),x=e.ref(null),A=e.ref(null),N=e.ref(null),I=e.ref(null),V=e.ref(0),r=e.computed({get:()=>T(),set:t=>t}),{userOptionsVisible:_,setUserOptionsVisibility:F,keepUserOptionState:M}=Le.useUserOptionState({config:r.value}),{svgRef:oe}=ze.useChartAccessibility({config:r.value.style.title});function T(){const t=te.useNestedProp({userConfig:y.config,defaultConfig:ne});return t.theme?{...te.useNestedProp({userConfig:o.themes.vue_ui_relation_circle[t.theme]||y.config,defaultConfig:t}),customPalette:o.themePalettes[t.theme]||o.palette}:t}e.watch(()=>y.config,t=>{r.value=T(),_.value=!r.value.userOptions.showOnChartHover,Y(),V.value+=1},{deep:!0});const{isPrinting:R,isImaging:q,generatePdf:j,generateImage:D}=ee.usePrinter({elementId:`relation_circle_${w.value}`,fileName:r.value.style.title.text||"vue-ui-relation-circle"}),se=e.computed(()=>r.value.userOptions.show&&!r.value.style.title.text),U=e.computed(()=>o.convertCustomPalette(r.value.customPalette)),h=e.ref([]),d=e.ref([]),i=e.ref({}),v=e.ref([]),ae=e.ref(0),P=e.computed(()=>y.dataset.slice(0,r.value.style.limit)),k=e.ref(r.value.style.size),f=e.ref(r.value.style.weightLabels.size),G=e.ref(r.value.style.plot.radius),W=e.ref(r.value.style.labels.fontSize),a=e.ref({height:r.value.style.size,width:r.value.style.size}),m=e.computed({get(){return k.value*r.value.style.circle.radiusProportion},set(t){return t}}),ie=e.computed(()=>r.value.style.links.curved),ue=e.computed(()=>`${r.value.style.animation.speedMs}ms`),ce=e.computed(()=>m.value*2),de=e.computed(()=>m.value*4),b=e.ref(null);e.onMounted(()=>{Y(),document.getElementById(`relation_circle_${w.value}`).addEventListener("click",X)});function Y(){if(o.objectIsEmpty(y.dataset)?o.error({componentName:"VueUiRelationCircle",type:"dataset"}):y.dataset.forEach((t,n)=>{o.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["id","label","relations","weights"]}).forEach(l=>{o.error({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:l,index:n})})}),r.value.responsive){const t=Z.throttle(()=>{const{width:n,height:l}=Z.useResponsive({chart:x.value,title:r.value.style.title.text?A.value:null,source:N.value,noTitle:I.value});requestAnimationFrame(()=>{k.value=Math.min(n,l),a.value.width=n,a.value.height=l,m.value=k.value*r.value.style.circle.radiusProportion,h.value=[],d.value=[],H(),J(),f.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.weightLabels.size,threshold:6,fallback:6}),G.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.plot.radius,threshold:1,fallback:1}),W.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.labels.fontSize,threshold:6,fallback:6})})});b.value=new ResizeObserver(t),b.value.observe(x.value.parentNode)}else h.value=[],d.value=[],H(),J()}e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${w.value}`).removeEventListener("click",X),b.value&&b.value.disconnect()});function X(t){const n=t.target;n&&Array.from(n.classList).includes("vue-ui-user-options")||n&&Array.from(n.classList).includes("vue-ui-user-options-summary")||n&&Array.from(n.classList).includes("vue-data-ui-button")||n&&Array.from(n.classList).includes("vue-ui-relation-circle-legend")||(i.value={},v.value=[])}function H(){const t=6.28319/P.value.length,n=360/P.value.length;let l=0,s=0;P.value.forEach((c,u)=>{const O=c.weights.reduce((be,Ce)=>be+Ce,0),S=m.value*Math.cos(l)+a.value.width/2,xe=m.value*Math.sin(l)+a.value.height/2+r.value.style.circle.offsetY;h.value.push({x:S,y:xe,...c,color:c.color?c.color:U.value[u]?U.value[u]:o.palette[u],regAngle:s,totalWeight:O}),l+=t,s+=n})}function ve(t,n){const l=(t.x+n.x)/2,s=(t.y+n.y)/2;return{x:l,y:s}}function J(){d.value=[],h.value.forEach(t=>{h.value.filter(l=>l.relations.includes(t.id)).forEach((l,s)=>{const c=l.relations.indexOf(t.id);d.value.push({weight:l.weights[c]?l.weights[c]:0,relationId:`${t.id}_${l.id}`,x1:t.x,y1:t.y,x2:l.x,y2:l.y,colorSource:t.color,colorTarget:l.color,midPointLine:ve({x:t.x,y:t.y},{x:l.x,y:l.y}),midPointBezier:fe({x1:t.x,x2:l.x,y1:t.y,y2:l.y}),...t})})})}function fe(t){const n={x:t.x1,y:t.y1},l={x:t.x2,y:t.y2},s={x:t.x1,y:t.y1},c={x:a.value.width/2,y:a.value.height/2+r.value.style.circle.offsetY},u=.5,O=Math.pow(1-u,3)*n.x+3*Math.pow(1-u,2)*u*s.x+3*(1-u)*Math.pow(u,2)*c.x+Math.pow(u,3)*l.x,S=Math.pow(1-u,3)*n.y+3*Math.pow(1-u,2)*u*s.y+3*(1-u)*Math.pow(u,2)*c.y+Math.pow(u,3)*l.y;return{x:O,y:S}}const ye=e.computed(()=>Math.max(...d.value.map(t=>t.weight)));function ge(t){return Object.hasOwn(i.value,"x")?v.value.includes(t.id)?"opacity:1":"opacity:0.1":"opacity:1"}function g(t){return t.colorSource}function K(t){return Object.hasOwn(i.value,"x")?v.value.includes(t.id)&&t.relationId===`${t.id}_${i.value.id}`||t.relationId===`${i.value.id}_${t.id}`?`opacity:1;stroke-width:${L(t)}`:"opacity: 0":"opacity: 1"}function p(t){return Object.hasOwn(i.value,"x")?!!(v.value.includes(t.id)&&t.relationId===`${t.id}_${i.value.id}`||t.relationId===`${i.value.id}_${t.id}`):!1}function he(t){return t.regAngle>90&&t.regAngle<270?"end":"start"}function me(t){return t.regAngle>90&&t.regAngle<270?t.x-5:t.x+5}function ke(t){return Object.hasOwn(i.value,"x")?i.value.id===t.id||v.value.includes(t.id)?"opacity:1":"opacity:0.2":"opacity:1"}function pe(t){return t.regAngle>90&&t.regAngle<270?`rotate(${t.regAngle+180},${t.x},${t.y})`:`rotate(${t.regAngle},${t.x},${t.y})`}function Q(t){ae.value=360-t.regAngle,i.value.id&&t.id===i.value.id?(i.value={},v.value=[]):(i.value=t,v.value=[...t.relations])}function L(t){const n=t.weight/ye.value*r.value.style.links.maxWidth;return Math.max(.3,n)}const C=e.ref(!1);function we(t){C.value=t,E.value+=1}const B=e.ref(!1);function z(){B.value=!B.value}return re({generatePdf:j,generateImage:D,toggleAnnotator:z}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:x,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${r.value.style.backgroundColor};text-align:center;${r.value.responsive?"height: 100%":""}`),id:`relation_circle_${w.value}`,onMouseenter:n[0]||(n[0]=()=>e.unref(F)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(F)(!1))},[r.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Pe.PenAndPaper,{key:0,parent:x.value,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,active:B.value,onClose:z},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:I,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),r.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Be._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"relation-div-title",...r.value.style.title},subtitle:{cy:"relation-div-subtitle",...r.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),r.value.userOptions.show&&$.value&&(e.unref(M)||e.unref(_))?(e.openBlock(),e.createBlock(ee.UserOptions,{ref:"details",key:`user_options_${E.value}`,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,isPrinting:e.unref(R),isImaging:e.unref(q),uid:w.value,hasPdf:r.value.userOptions.buttons.pdf,hasImg:r.value.userOptions.buttons.img,hasFullscreen:r.value.userOptions.buttons.img,hasXls:!1,isFullscreen:C.value,titles:{...r.value.userOptions.buttonTitles},chartElement:x.value,position:r.value.userOptions.position,hasAnnotator:r.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:we,onGeneratePdf:e.unref(j),onGenerateImage:e.unref(D),onToggleAnnotator:z,style:e.normalizeStyle({visibility:e.unref(M)?e.unref(_)?"visible":"hidden":"visible"})},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:s})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0,t.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:s})=>[e.renderSlot(t.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:s})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:oe,xmlns:e.unref(o.XMLNS),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value},"relation-circle"]),viewBox:`0 0 ${a.value.width<=0?10:a.value.width} ${a.value.height<=0?10:a.value.height}`,width:"100%",style:"user-select:none; background:transparent"},[e.createVNode(_e._sfc_main),t.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:a.value.width<=0?10:a.value.width,height:a.value.height<=0?10:a.value.height,style:{pointerEvents:"none"}},[e.renderSlot(t.$slots,"chart-background",{},void 0,!0)],8,Ae)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:(a.value.width<=0?1e-4:a.value.width)/2,cy:(a.value.height<=0?1e-4:a.value.height)/2+r.value.style.circle.offsetY,r:m.value<=0?1e-4:m.value,stroke:r.value.style.circle.stroke,"stroke-width":r.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,Ne),ie.value?(e.openBlock(),e.createElementBlock("g",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${s}`,style:e.normalizeStyle(K(l)),stroke:g(l),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&v.value.includes(l.id)}]),d:`M${l.x1},${l.y1} C${l.x1},${l.y1} ${a.value.width/2},${a.value.height/2+r.value.style.circle.offsetY} ${l.x2},${l.y2}`,fill:"none","stroke-width":L(l),"stroke-linecap":"round"},null,14,Ve))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",Fe,[p(l)?e.renderSlot(t.$slots,"dataLabel",e.mergeProps({key:0,ref_for:!0},{x:l.midPointBezier.x,y:l.midPointBezier.y,color:g(l),weight:l.weight,fontSize:f.value}),void 0,!0):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:l.midPointBezier.x,cy:l.midPointBezier.y,fill:g(l),r:f.value,stroke:r.value.style.backgroundColor,"stroke-width":"1"},null,8,Me)):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.midPointBezier.x,y:l.midPointBezier.y+f.value/3,fill:e.unref(o.adaptColorToBackground)(g(l)),"text-anchor":"middle","font-size":f.value},e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.weight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.weight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l})),9,Te)):e.createCommentVNode("",!0)]))),256))])):(e.openBlock(),e.createElementBlock("g",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${s}`,stroke:g(l),"stroke-width":L(l),style:e.normalizeStyle(K(l)),x1:l.x1,x2:l.x2,y1:l.y1,y2:l.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&v.value.includes(l.id)}),"stroke-linecap":"round"},null,14,qe))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",je,[p(l)?e.renderSlot(t.$slots,"dataLabel",e.mergeProps({key:0,ref_for:!0},{x:l.midPointLine.x,y:l.midPointLine.y,color:g(l),weight:l.weight,fontSize:f.value}),void 0,!0):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel&&r.value.style.weightLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:l.midPointLine.x,cy:l.midPointLine.y,fill:g(l),r:f.value,stroke:r.value.style.backgroundColor,"stroke-width":"1"},null,8,De)):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel&&r.value.style.weightLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.midPointLine.x,y:l.midPointLine.y+f.value/3,fill:e.unref(o.adaptColorToBackground)(g(l)),"text-anchor":"middle","font-size":f.value},e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.weight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.weight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l})),9,Ue)):e.createCommentVNode("",!0)]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,s)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${s}`,"text-anchor":he(l),transform:pe(l),x:me(l),y:l.y+5,onClick:c=>Q(l),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":i.value.id===l.id?"900":"400",style:e.normalizeStyle(`font-family:${r.value.style.fontFamily};${ke(l)}`),"font-size":W.value,fill:r.value.style.labels.color},e.toDisplayString(l.label)+" ("+e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.totalWeight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.totalWeight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l}))+") ",13,Ge))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,s)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,key:`plot_${s}`,style:e.normalizeStyle(ge(l)),class:"vue-ui-relation-circle-plot",fill:r.value.style.plot.useSerieColor?l.color:r.value.style.plot.color,stroke:r.value.style.backgroundColor,"stroke-width":"1",onClick:c=>Q(l),r:G.value},null,12,We))),128)),e.renderSlot(t.$slots,"svg",{svg:a.value},void 0,!0)],10,Ee)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(R)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),t.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:N,dir:"auto"},[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:7,config:{type:"relationCircle",style:{backgroundColor:r.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],44,Se))}},He=Oe._export_sfc(Xe,[["__scopeId","data-v-61459281"]]);exports.default=He;