vue-data-ui 3.15.12 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -1,704 +0,0 @@
1
- import { useCssVars as xt, defineAsyncComponent as ae, computed as g, ref as u, toRefs as $t, watch as ne, shallowRef as Me, onMounted as At, onBeforeUnmount as Pt, openBlock as n, createElementBlock as i, unref as o, normalizeStyle as M, createBlock as W, withCtx as h, renderSlot as v, normalizeProps as k, guardReactiveProps as w, createCommentVNode as y, createSlots as Lt, normalizeClass as oe, createVNode as Ot, createElementVNode as _t, Fragment as P, renderList as T, mergeProps as Te, toDisplayString as X, createTextVNode as Ee, nextTick as zt } from "vue";
2
- import { j as St, t as Be, m as It, p as Fe, n as Mt, o as Re, q as Ne, r as Tt, X as Et, W as je, k as ie, l as re, a2 as ue } from "./lib-GwPnJSrY.js";
3
- import { t as Bt, u as Ft } from "./useResponsive-DfdjqQps.js";
4
- import { u as Rt } from "./useConfig-CIgyKZ6R.js";
5
- import { u as Nt, B as jt } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as Dt } from "./usePrinter-DiK5R6k-.js";
7
- import { u as Ut } from "./useSvgExport-ByUukOZt.js";
8
- import { u as ce } from "./useNestedProp-BBT0mbHh.js";
9
- import { u as Vt } from "./useThemeCheck-D1ZYXUwG.js";
10
- import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
12
- import { u as Xt } from "./useAutoSizeLabelsInsideViewbox-80fzdfxt.js";
13
- import Yt from "./img-BYYzY_QU.js";
14
- import qt from "./Title-BfyrP-jp.js";
15
- import Ht from "./vue_ui_relation_circle-CCroen7h.js";
16
- import { _ as Jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Kt = ["id"], Qt = ["xmlns", "viewBox"], Zt = ["width", "height"], el = ["cx", "cy", "r", "stroke", "stroke-width"], tl = { key: 1 }, ll = ["stroke", "d", "stroke-width"], sl = { style: { "pointer-events": "none" } }, al = ["cx", "cy", "fill", "r", "stroke"], nl = ["x", "y", "fill", "font-size"], ol = { key: 2 }, il = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], rl = { style: { "pointer-events": "none" } }, ul = ["cx", "cy", "fill", "r", "stroke"], cl = ["x", "y", "fill", "font-size"], vl = ["text-anchor", "transform", "x", "y", "font-weight", "font-size", "fill", "text-decoration", "onClick", "onMouseenter", "onMouseleave"], dl = ["cx", "cy", "fill", "stroke", "r", "onClick", "onMouseenter", "onMouseleave"], fl = {
18
- key: 4,
19
- class: "vue-data-ui-watermark"
20
- }, gl = {
21
- __name: "vue-ui-relation-circle",
22
- props: {
23
- dataset: {
24
- type: Array,
25
- default() {
26
- return [];
27
- }
28
- },
29
- config: {
30
- type: Object,
31
- default() {
32
- return {};
33
- }
34
- }
35
- },
36
- emits: ["copyAlt"],
37
- setup(De, { expose: Ue, emit: Ve }) {
38
- xt((e) => ({
39
- ef749558: at.value,
40
- v65ad059a: st.value,
41
- be987c56: nt.value
42
- }));
43
- const Ge = ae(() => import("./PenAndPaper-DWV1FMIi.js")), We = ae(() => import("./UserOptions-CrLqEimB.js")), Xe = ae(() => import("./PackageVersion-DN9d0ME5.js")), { vue_ui_relation_circle: Ye } = Rt(), { isThemeValid: qe, warnInvalidTheme: He } = Vt(), m = De, Je = Ve, Ke = g(() => !!m.dataset && Object.keys(m.dataset).length), E = u(St()), ve = u(0), L = u(null), de = u(null), fe = u(null), ge = u(null), ye = u(0), F = u(!1), R = u(!1), l = u(H()), N = g(() => l.value.userOptions.useCursorPointer), Qe = g(() => Be({
44
- defaultConfig: {
45
- userOptions: { show: !1 },
46
- customPalette: new Array(7).fill("#CACACA"),
47
- style: {
48
- backgroundColor: "#99999930",
49
- labels: { color: "#6A6A6A" },
50
- circle: { stroke: "#6A6A6A" },
51
- plot: { color: "#6A6A6A", useSerieColor: !0 },
52
- links: { maxWidth: 2 }
53
- }
54
- },
55
- userConfig: l.value.skeletonConfig ?? {}
56
- })), { loading: he, FINAL_DATASET: Ze, manualLoading: Y } = Nt({
57
- ...$t(m),
58
- FINAL_CONFIG: l,
59
- prepareConfig: H,
60
- skeletonDataset: m.config?.skeletonDataset ?? [
61
- { id: "A", label: "_", relations: ["B", "C", "D", "E", "F", "G"] },
62
- { id: "B", label: "_", relations: ["A"] },
63
- { id: "C", label: "_", relations: ["A"] },
64
- { id: "D", label: "_", relations: ["A"] },
65
- { id: "E", label: "_", relations: ["A"] },
66
- { id: "F", label: "_", relations: ["A"] },
67
- { id: "G", label: "_", relations: ["A"] }
68
- ],
69
- skeletonConfig: Be({
70
- defaultConfig: l.value,
71
- userConfig: Qe.value
72
- })
73
- }), { userOptionsVisible: q, setUserOptionsVisibility: me, keepUserOptionState: pe } = Gt({ config: l.value }), { svgRef: j } = Wt({ config: l.value.style.title });
74
- function H() {
75
- const e = ce({
76
- userConfig: m.config,
77
- defaultConfig: Ye
78
- }), s = e.theme;
79
- if (!s) return e;
80
- if (!qe.value(e))
81
- return He(e), e;
82
- const t = ce({
83
- userConfig: Ht[s] || m.config,
84
- defaultConfig: e
85
- }), a = ce({
86
- userConfig: m.config,
87
- defaultConfig: t
88
- });
89
- return {
90
- ...a,
91
- customPalette: a.customPalette.length ? a.customPalette : It[s] || Fe
92
- };
93
- }
94
- ne(() => m.config, (e) => {
95
- l.value = H(), q.value = !l.value.userOptions.showOnChartHover, O.value = l.value.style.size, p.value = l.value.style.weightLabels.size, D.value = l.value.style.plot.radius, B.value = l.value.style.labels.fontSize, r.value.height = l.value.style.size, r.value.width = l.value.style.size, xe(), ye.value += 1;
96
- }, { deep: !0 }), ne(() => m.dataset, (e) => {
97
- Array.isArray(e) && e.length > 0 && (Y.value = !1);
98
- }, { deep: !0 });
99
- const { isPrinting: J, isImaging: K, generatePdf: be, generateImage: ke } = Dt({
100
- elementId: `relation_circle_${E.value}`,
101
- fileName: l.value.style.title.text || "vue-ui-relation-circle",
102
- options: l.value.userOptions.print
103
- }), et = g(() => l.value.userOptions.show && !l.value.style.title.text), we = g(() => Mt(l.value.customPalette)), x = u([]), b = u([]), f = u({}), C = u([]), tt = u(0), z = g(() => Ze.value.slice(0, l.value.style.limit).map((e) => {
104
- const s = Array.isArray(e.relations) ? e.relations : [];
105
- return {
106
- ...e,
107
- weights: Array.isArray(e.weights) ? e.weights : new Array(s.length).fill(1),
108
- relations: s
109
- };
110
- }));
111
- ne(z, () => {
112
- x.value = [], b.value = [], Q(), Z();
113
- });
114
- const O = u(l.value.style.size), p = u(l.value.style.weightLabels.size), D = u(l.value.style.plot.radius), B = u(l.value.style.labels.fontSize), r = u({
115
- height: l.value.style.size,
116
- width: l.value.style.size
117
- }), _ = g({
118
- get() {
119
- return O.value * l.value.style.circle.radiusProportion;
120
- },
121
- set(e) {
122
- return e;
123
- }
124
- }), lt = g(() => l.value.style.links.curved), st = g(() => `${l.value.style.animation.speedMs}ms`), at = g(() => _.value * 2), nt = g(() => _.value * 4), $ = Me(null), S = Me(null);
125
- At(() => {
126
- xe(), document.getElementById(`relation_circle_${E.value}`).addEventListener("click", Ae);
127
- });
128
- const Ce = g(() => l.value.debug);
129
- function xe() {
130
- if (Re(m.dataset) ? (Ne({
131
- componentName: "VueUiRelationCircle",
132
- type: "dataset",
133
- debug: Ce.value
134
- }), Y.value = !0) : m.dataset.forEach((e, s) => {
135
- Tt({
136
- datasetObject: e,
137
- requiredAttributes: ["id", "label", "relations", "weights"]
138
- }).forEach((t) => {
139
- Ne({
140
- componentName: "VueUiRelationCircle",
141
- type: "datasetSerieAttribute",
142
- property: t,
143
- index: s,
144
- debug: Ce.value
145
- });
146
- });
147
- }), Re(m.dataset) || (Y.value = l.value.loading), l.value.responsive) {
148
- const e = Bt(() => {
149
- const { width: s, height: t } = Ft({
150
- chart: L.value,
151
- title: l.value.style.title.text ? de.value : null,
152
- source: fe.value,
153
- noTitle: ge.value
154
- });
155
- requestAnimationFrame(() => {
156
- O.value = Math.min(s, t), r.value.width = Math.max(0.1, s), r.value.height = Math.max(0.1, t - 12), _.value = O.value * l.value.style.circle.radiusProportion, x.value = [], b.value = [], Q(), Z(), $e(), l.value.responsiveProportionalSizing ? (p.value = ue({
157
- relator: O.value,
158
- adjuster: l.value.style.size,
159
- source: l.value.style.weightLabels.size,
160
- threshold: 6,
161
- fallback: 6
162
- }), D.value = ue({
163
- relator: O.value,
164
- adjuster: l.value.style.size,
165
- source: l.value.style.plot.radius,
166
- threshold: 1,
167
- fallback: 1
168
- }), B.value = ue({
169
- relator: O.value,
170
- adjuster: l.value.style.size,
171
- source: l.value.style.labels.fontSize,
172
- threshold: 6,
173
- fallback: 6
174
- })) : (p.value = l.value.style.weightLabels.size, D.value = l.value.style.plot.radius, B.value = l.value.style.labels.fontSize);
175
- });
176
- });
177
- $.value && (S.value && $.value.unobserve(S.value), $.value.disconnect()), $.value = new ResizeObserver(e), S.value = L.value.parentNode, $.value.observe(S.value);
178
- } else
179
- x.value = [], b.value = [], Q(), Z();
180
- $e();
181
- }
182
- Pt(() => {
183
- document.getElementById(`relation_circle_${E.value}`).removeEventListener("click", Ae), $.value && (S.value && $.value.unobserve(S.value), $.value.disconnect());
184
- });
185
- const { autoSizeLabels: $e } = Xt({
186
- svgRef: j,
187
- fontSize: l.value.style.labels.fontSize,
188
- minFontSize: l.value.style.labels.minFontSize,
189
- sizeRef: B,
190
- labelClass: ".vue-ui-relation-circle-legend"
191
- });
192
- function Ae(e) {
193
- const s = e.target;
194
- 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") || (f.value = {}, C.value = []);
195
- }
196
- function Q() {
197
- const e = 6.28319 / z.value.length, s = 360 / z.value.length;
198
- let t = 0, a = 0;
199
- z.value.forEach((c, d) => {
200
- const le = c.weights.reduce((wt, Ct) => wt + Ct, 0), se = _.value * Math.cos(t) + r.value.width / 2, kt = _.value * Math.sin(t) + r.value.height / 2 + l.value.style.circle.offsetY;
201
- x.value.push({ x: se, y: kt, ...c, color: c.color ? c.color : we.value[d] ? we.value[d] : Fe[d], regAngle: a, totalWeight: le }), t += e, a += s;
202
- });
203
- }
204
- function ot(e, s) {
205
- const t = (e.x + s.x) / 2, a = (e.y + s.y) / 2;
206
- return { x: t, y: a };
207
- }
208
- function Z() {
209
- b.value = [], x.value.forEach((e) => {
210
- x.value.filter((t) => t.relations.includes(e.id)).forEach((t, a) => {
211
- const c = t.relations.indexOf(e.id);
212
- b.value.push({
213
- weight: t.weights[c] ? t.weights[c] : 0,
214
- relationId: `${e.id}_${t.id}`,
215
- x1: e.x,
216
- y1: e.y,
217
- x2: t.x,
218
- y2: t.y,
219
- colorSource: e.color,
220
- colorTarget: t.color,
221
- midPointLine: ot({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
222
- midPointBezier: it({
223
- x1: e.x,
224
- x2: t.x,
225
- y1: e.y,
226
- y2: t.y
227
- }),
228
- ...e
229
- });
230
- });
231
- });
232
- }
233
- function it(e) {
234
- const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, a = { x: e.x1, y: e.y1 }, c = {
235
- x: r.value.width / 2,
236
- y: r.value.height / 2 + l.value.style.circle.offsetY
237
- }, d = 0.5, le = Math.pow(1 - d, 3) * s.x + 3 * Math.pow(1 - d, 2) * d * a.x + 3 * (1 - d) * Math.pow(d, 2) * c.x + Math.pow(d, 3) * t.x, se = Math.pow(1 - d, 3) * s.y + 3 * Math.pow(1 - d, 2) * d * a.y + 3 * (1 - d) * Math.pow(d, 2) * c.y + Math.pow(d, 3) * t.y;
238
- return { x: le, y: se };
239
- }
240
- const rt = g(() => Math.max(...b.value.map((e) => e.weight)));
241
- function ut(e) {
242
- return Object.hasOwn(f.value, "x") ? C.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
243
- }
244
- function A(e) {
245
- return e.colorSource;
246
- }
247
- function Pe(e) {
248
- return Object.hasOwn(f.value, "x") ? C.value.includes(e.id) && e.relationId === `${e.id}_${f.value.id}` || e.relationId === `${f.value.id}_${e.id}` ? `opacity:1;stroke-width:${ee(e)}` : "opacity: 0" : "opacity: 1";
249
- }
250
- function I(e) {
251
- return Object.hasOwn(f.value, "x") ? !!(C.value.includes(e.id) && e.relationId === `${e.id}_${f.value.id}` || e.relationId === `${f.value.id}_${e.id}`) : !1;
252
- }
253
- function ct(e) {
254
- return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
255
- }
256
- function vt(e) {
257
- return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
258
- }
259
- function dt(e) {
260
- return Object.hasOwn(f.value, "x") ? f.value.id === e.id || C.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
261
- }
262
- function ft(e) {
263
- return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
264
- }
265
- const U = u(null);
266
- function Le(e, s) {
267
- U.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s });
268
- }
269
- function Oe(e, s) {
270
- U.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s });
271
- }
272
- function _e(e, s) {
273
- l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: e, seriesIndex: s }), tt.value = 360 - e.regAngle, f.value.id && e.id === f.value.id ? (f.value = {}, C.value = []) : (f.value = e, C.value = [...e.relations]);
274
- }
275
- function ee(e) {
276
- const s = e.weight / rt.value * l.value.style.links.maxWidth;
277
- return Math.max(0.3, s);
278
- }
279
- const V = u(!1);
280
- function ze(e) {
281
- V.value = e, ve.value += 1;
282
- }
283
- const G = u(!1);
284
- function te() {
285
- G.value = !G.value;
286
- }
287
- async function gt({ scale: e = 2 } = {}) {
288
- if (!L.value) return;
289
- const { width: s, height: t } = L.value.getBoundingClientRect(), a = s / t, { imageUri: c, base64: d } = await Yt({ domElement: L.value, base64: !0, img: !0, scale: e });
290
- return {
291
- imageUri: c,
292
- base64: d,
293
- title: l.value.style.title.text,
294
- width: s,
295
- height: t,
296
- aspectRatio: a
297
- };
298
- }
299
- const yt = g(() => l.value.style.backgroundColor), ht = g(() => l.value.style.title), { exportSvg: mt, getSvg: pt } = Ut({
300
- svg: j,
301
- title: ht,
302
- backgroundColor: yt
303
- });
304
- async function Se({ isCb: e }) {
305
- R.value = !0, await zt();
306
- try {
307
- if (e) {
308
- const { blob: s, url: t, text: a, dataUrl: c } = await pt();
309
- await Promise.resolve(l.value.userOptions.callbacks.svg({ blob: s, url: t, text: a, dataUrl: c }));
310
- } else
311
- await Promise.resolve(mt());
312
- } finally {
313
- R.value = !1;
314
- }
315
- }
316
- function bt(e) {
317
- if (e?.stage === "start") {
318
- F.value = !0;
319
- return;
320
- }
321
- if (e?.stage === "end") {
322
- F.value = !1;
323
- return;
324
- }
325
- ke();
326
- }
327
- async function Ie() {
328
- if (Je("copyAlt", {
329
- config: l.value,
330
- dataset: z.value
331
- }), !l.value.userOptions.callbacks.altCopy) {
332
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
333
- return;
334
- }
335
- await Promise.resolve(l.value.userOptions.callbacks.altCopy({
336
- config: l.value,
337
- dataset: z.value
338
- }));
339
- }
340
- return Ue({
341
- getImage: gt,
342
- generatePdf: be,
343
- generateSvg: Se,
344
- generateImage: ke,
345
- toggleAnnotator: te,
346
- toggleFullscreen: ze,
347
- copyAlt: Ie
348
- }), (e, s) => (n(), i("div", {
349
- ref_key: "relationCircleChart",
350
- ref: L,
351
- class: "vue-data-ui-component vue-ui-relation-circle",
352
- style: M(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
353
- id: `relation_circle_${E.value}`,
354
- onMouseenter: s[0] || (s[0] = () => o(me)(!0)),
355
- onMouseleave: s[1] || (s[1] = () => o(me)(!1))
356
- }, [
357
- l.value.userOptions.buttons.annotator ? (n(), W(o(Ge), {
358
- key: 0,
359
- svgRef: o(j),
360
- backgroundColor: l.value.style.backgroundColor,
361
- color: l.value.style.color,
362
- active: G.value,
363
- isCursorPointer: N.value,
364
- onClose: te
365
- }, {
366
- "annotator-action-close": h(() => [
367
- v(e.$slots, "annotator-action-close", {}, void 0, !0)
368
- ]),
369
- "annotator-action-color": h(({ color: t }) => [
370
- v(e.$slots, "annotator-action-color", k(w({ color: t })), void 0, !0)
371
- ]),
372
- "annotator-action-draw": h(({ mode: t }) => [
373
- v(e.$slots, "annotator-action-draw", k(w({ mode: t })), void 0, !0)
374
- ]),
375
- "annotator-action-undo": h(({ disabled: t }) => [
376
- v(e.$slots, "annotator-action-undo", k(w({ disabled: t })), void 0, !0)
377
- ]),
378
- "annotator-action-redo": h(({ disabled: t }) => [
379
- v(e.$slots, "annotator-action-redo", k(w({ disabled: t })), void 0, !0)
380
- ]),
381
- "annotator-action-delete": h(({ disabled: t }) => [
382
- v(e.$slots, "annotator-action-delete", k(w({ disabled: t })), void 0, !0)
383
- ]),
384
- _: 3
385
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : y("", !0),
386
- et.value ? (n(), i("div", {
387
- key: 1,
388
- ref_key: "noTitle",
389
- ref: ge,
390
- class: "vue-data-ui-no-title-space",
391
- style: "height:36px; width: 100%;background:transparent"
392
- }, null, 512)) : y("", !0),
393
- l.value.style.title.text ? (n(), i("div", {
394
- key: 2,
395
- ref_key: "chartTitle",
396
- ref: de,
397
- style: "width:100%;background:transparent"
398
- }, [
399
- (n(), W(qt, {
400
- key: `title_${ye.value}`,
401
- config: {
402
- title: {
403
- cy: "relation-div-title",
404
- ...l.value.style.title
405
- },
406
- subtitle: {
407
- cy: "relation-div-subtitle",
408
- ...l.value.style.title.subtitle
409
- }
410
- }
411
- }, null, 8, ["config"]))
412
- ], 512)) : y("", !0),
413
- l.value.userOptions.show && Ke.value && (o(pe) || o(q)) ? (n(), W(o(We), {
414
- ref: "details",
415
- key: `user_options_${ve.value}`,
416
- backgroundColor: l.value.style.backgroundColor,
417
- color: l.value.style.color,
418
- isPrinting: o(J),
419
- isImaging: o(K),
420
- uid: E.value,
421
- hasPdf: l.value.userOptions.buttons.pdf,
422
- hasImg: l.value.userOptions.buttons.img,
423
- hasSvg: l.value.userOptions.buttons.svg,
424
- hasFullscreen: l.value.userOptions.buttons.fullscreen,
425
- hasAltCopy: l.value.userOptions.buttons.altCopy,
426
- hasXls: !1,
427
- isFullscreen: V.value,
428
- titles: { ...l.value.userOptions.buttonTitles },
429
- chartElement: L.value,
430
- position: l.value.userOptions.position,
431
- hasAnnotator: l.value.userOptions.buttons.annotator,
432
- isAnnotation: G.value,
433
- callbacks: l.value.userOptions.callbacks,
434
- printScale: l.value.userOptions.print.scale,
435
- isCursorPointer: N.value,
436
- onToggleFullscreen: ze,
437
- onGeneratePdf: o(be),
438
- onGenerateImage: bt,
439
- onGenerateSvg: Se,
440
- onToggleAnnotator: te,
441
- onCopyAlt: Ie,
442
- style: M({
443
- visibility: o(pe) ? o(q) ? "visible" : "hidden" : "visible"
444
- })
445
- }, Lt({ _: 2 }, [
446
- e.$slots.menuIcon ? {
447
- name: "menuIcon",
448
- fn: h(({ isOpen: t, color: a }) => [
449
- v(e.$slots, "menuIcon", k(w({ isOpen: t, color: a })), void 0, !0)
450
- ]),
451
- key: "0"
452
- } : void 0,
453
- e.$slots.optionPdf ? {
454
- name: "optionPdf",
455
- fn: h(() => [
456
- v(e.$slots, "optionPdf", {}, void 0, !0)
457
- ]),
458
- key: "1"
459
- } : void 0,
460
- e.$slots.optionImg ? {
461
- name: "optionImg",
462
- fn: h(() => [
463
- v(e.$slots, "optionImg", {}, void 0, !0)
464
- ]),
465
- key: "2"
466
- } : void 0,
467
- e.$slots.optionSvg ? {
468
- name: "optionSvg",
469
- fn: h(() => [
470
- v(e.$slots, "optionSvg", {}, void 0, !0)
471
- ]),
472
- key: "3"
473
- } : void 0,
474
- e.$slots.optionFullscreen ? {
475
- name: "optionFullscreen",
476
- fn: h(({ toggleFullscreen: t, isFullscreen: a }) => [
477
- v(e.$slots, "optionFullscreen", k(w({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
478
- ]),
479
- key: "4"
480
- } : void 0,
481
- e.$slots.optionAnnotator ? {
482
- name: "optionAnnotator",
483
- fn: h(({ toggleAnnotator: t, isAnnotator: a }) => [
484
- v(e.$slots, "optionAnnotator", k(w({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
485
- ]),
486
- key: "5"
487
- } : void 0,
488
- e.$slots.optionAltCopy ? {
489
- name: "optionAltCopy",
490
- fn: h(({ altCopy: t }) => [
491
- v(e.$slots, "optionAltCopy", k(w({ altCopy: t })), void 0, !0)
492
- ]),
493
- key: "6"
494
- } : void 0
495
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "isCursorPointer", "onGeneratePdf", "style"])) : y("", !0),
496
- (n(), i("svg", {
497
- ref_key: "svgRef",
498
- ref: j,
499
- xmlns: o(Et),
500
- class: oe([{ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }, "relation-circle"]),
501
- viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
502
- width: "100%",
503
- style: "user-select:none; background:transparent"
504
- }, [
505
- Ot(o(Xe)),
506
- e.$slots["chart-background"] ? (n(), i("foreignObject", {
507
- key: 0,
508
- x: 0,
509
- y: 0,
510
- width: r.value.width <= 0 ? 10 : r.value.width,
511
- height: r.value.height <= 0 ? 10 : r.value.height,
512
- style: {
513
- pointerEvents: "none"
514
- }
515
- }, [
516
- v(e.$slots, "chart-background", {}, void 0, !0)
517
- ], 8, Zt)) : y("", !0),
518
- _t("circle", {
519
- cx: (r.value.width <= 0 ? 1e-4 : r.value.width) / 2,
520
- cy: (r.value.height <= 0 ? 1e-4 : r.value.height) / 2 + l.value.style.circle.offsetY,
521
- r: _.value <= 0 ? 1e-4 : _.value,
522
- stroke: l.value.style.circle.stroke,
523
- "stroke-width": l.value.style.circle.strokeWidth,
524
- fill: "transparent",
525
- class: "main-circle"
526
- }, null, 8, el),
527
- lt.value ? (n(), i("g", tl, [
528
- (n(!0), i(P, null, T(b.value, (t, a) => (n(), i("path", {
529
- key: `relation_${a}`,
530
- style: M(Pe(t)),
531
- stroke: A(t),
532
- class: oe(["relation", { "vue-ui-relation-circle-selected": f.value.hasOwnProperty("id") && C.value.includes(t.id) }]),
533
- 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}`,
534
- fill: "none",
535
- "stroke-width": ee(t),
536
- "stroke-linecap": "round"
537
- }, null, 14, ll))), 128)),
538
- (n(!0), i(P, null, T(b.value, (t, a) => (n(), i("g", sl, [
539
- I(t) ? v(e.$slots, "dataLabel", Te({
540
- key: 0,
541
- ref_for: !0
542
- }, {
543
- x: t.midPointBezier.x,
544
- y: t.midPointBezier.y,
545
- color: A(t),
546
- weight: t.weight,
547
- fontSize: p.value
548
- }), void 0, !0) : y("", !0),
549
- I(t) && !e.$slots.dataLabel ? (n(), i("circle", {
550
- key: 1,
551
- cx: t.midPointBezier.x,
552
- cy: t.midPointBezier.y,
553
- fill: A(t),
554
- r: p.value,
555
- stroke: l.value.style.backgroundColor,
556
- "stroke-width": "1"
557
- }, null, 8, al)) : y("", !0),
558
- I(t) && !e.$slots.dataLabel ? (n(), i("text", {
559
- key: 2,
560
- x: t.midPointBezier.x,
561
- y: t.midPointBezier.y + p.value / 3,
562
- fill: o(je)(A(t)),
563
- "text-anchor": "middle",
564
- "font-size": p.value
565
- }, X(o(ie)(
566
- l.value.style.weightLabels.formatter,
567
- t.weight,
568
- o(re)({
569
- p: l.value.style.weightLabels.prefix,
570
- v: t.weight,
571
- s: l.value.style.weightLabels.suffix,
572
- r: l.value.style.weightLabels.rounding
573
- }),
574
- { ...t }
575
- )), 9, nl)) : y("", !0)
576
- ]))), 256))
577
- ])) : (n(), i("g", ol, [
578
- (n(!0), i(P, null, T(b.value, (t, a) => (n(), i("line", {
579
- key: `relation_${a}`,
580
- stroke: A(t),
581
- "stroke-width": ee(t),
582
- style: M(Pe(t)),
583
- x1: t.x1,
584
- x2: t.x2,
585
- y1: t.y1,
586
- y2: t.y2,
587
- class: oe({ "vue-ui-relation-circle-selected": f.value.hasOwnProperty("id") && C.value.includes(t.id) }),
588
- "stroke-linecap": "round"
589
- }, null, 14, il))), 128)),
590
- (n(!0), i(P, null, T(b.value, (t, a) => (n(), i("g", rl, [
591
- I(t) ? v(e.$slots, "dataLabel", Te({
592
- key: 0,
593
- ref_for: !0
594
- }, {
595
- x: t.midPointLine.x,
596
- y: t.midPointLine.y,
597
- color: A(t),
598
- weight: t.weight,
599
- fontSize: p.value
600
- }), void 0, !0) : y("", !0),
601
- I(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (n(), i("circle", {
602
- key: 1,
603
- cx: t.midPointLine.x,
604
- cy: t.midPointLine.y,
605
- fill: A(t),
606
- r: p.value,
607
- stroke: l.value.style.backgroundColor,
608
- "stroke-width": "1"
609
- }, null, 8, ul)) : y("", !0),
610
- I(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (n(), i("text", {
611
- key: 2,
612
- x: t.midPointLine.x,
613
- y: t.midPointLine.y + p.value / 3,
614
- fill: o(je)(A(t)),
615
- "text-anchor": "middle",
616
- "font-size": p.value
617
- }, X(o(ie)(
618
- l.value.style.weightLabels.formatter,
619
- t.weight,
620
- o(re)({
621
- p: l.value.style.weightLabels.prefix,
622
- v: t.weight,
623
- s: l.value.style.weightLabels.suffix,
624
- r: l.value.style.weightLabels.rounding
625
- }),
626
- { ...t }
627
- )), 9, cl)) : y("", !0)
628
- ]))), 256))
629
- ])),
630
- (n(!0), i(P, null, T(x.value, (t, a) => (n(), i("text", {
631
- key: `plot_text_${a}`,
632
- "text-anchor": ct(t),
633
- transform: ft(t),
634
- x: vt(t),
635
- y: t.y + 5,
636
- class: "vue-ui-relation-circle-legend",
637
- "transform-origin": "start",
638
- "font-weight": f.value.id === t.id ? "900" : "400",
639
- style: M(`font-family:${l.value.style.fontFamily};${dt(t)};cursor:${N.value ? "pointer" : "default"}`),
640
- "font-size": B.value,
641
- fill: l.value.style.labels.color,
642
- "text-decoration": a === U.value ? "underline" : void 0,
643
- onClick: (c) => _e(t, a),
644
- onMouseenter: (c) => Le(t, a),
645
- onMouseleave: (c) => Oe(t, a)
646
- }, [
647
- o(he) ? (n(), i(P, { key: 0 }, [
648
- Ee(" -------- ")
649
- ], 64)) : (n(), i(P, { key: 1 }, [
650
- Ee(X(t.label) + " (" + X(o(ie)(
651
- l.value.style.weightLabels.formatter,
652
- t.totalWeight,
653
- o(re)({
654
- p: l.value.style.weightLabels.prefix,
655
- v: t.totalWeight,
656
- s: l.value.style.weightLabels.suffix,
657
- r: l.value.style.weightLabels.rounding
658
- }),
659
- { ...t }
660
- )) + ") ", 1)
661
- ], 64))
662
- ], 44, vl))), 128)),
663
- (n(!0), i(P, null, T(x.value, (t, a) => (n(), i("circle", {
664
- cx: t.x,
665
- cy: t.y,
666
- key: `plot_${a}`,
667
- style: M(`${ut(t)}; transition: r 0.2s ease-in-out; cursor:${N.value ? "pointer" : "default"}`),
668
- class: "vue-ui-relation-circle-plot",
669
- fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
670
- stroke: l.value.style.backgroundColor,
671
- "stroke-width": "1",
672
- r: D.value * (a === U.value ? 2 : 1),
673
- onClick: (c) => _e(t, a),
674
- onMouseenter: (c) => Le(t, a),
675
- onMouseleave: (c) => Oe(t, a)
676
- }, null, 44, dl))), 128)),
677
- v(e.$slots, "svg", {
678
- svg: {
679
- ...r.value,
680
- isPrintingImg: o(J) | o(K) | F.value,
681
- isPrintingSvg: R.value
682
- }
683
- }, void 0, !0)
684
- ], 10, Qt)),
685
- e.$slots.watermark ? (n(), i("div", fl, [
686
- v(e.$slots, "watermark", k(w({ isPrinting: o(J) || o(K) || F.value || R.value })), void 0, !0)
687
- ])) : y("", !0),
688
- e.$slots.source ? (n(), i("div", {
689
- key: 5,
690
- ref_key: "source",
691
- ref: fe,
692
- dir: "auto"
693
- }, [
694
- v(e.$slots, "source", {}, void 0, !0)
695
- ], 512)) : y("", !0),
696
- v(e.$slots, "skeleton", {}, () => [
697
- o(he) ? (n(), W(jt, { key: 0 })) : y("", !0)
698
- ], !0)
699
- ], 44, Kt));
700
- }
701
- }, Sl = /* @__PURE__ */ Jt(gl, [["__scopeId", "data-v-b93c34f8"]]);
702
- export {
703
- Sl as default
704
- };