vue-data-ui 3.0.0-next.9 → 3.0.0

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 (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
  4. package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
  5. package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
  6. package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
  7. package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
  9. package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
  10. package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
  15. package/dist/Slicer-MID8pgT3.js +602 -0
  16. package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
  17. package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
  18. package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
  19. package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
  20. package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
  21. package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
  22. package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
  23. package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-f2H3m6Yj.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
  35. package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
  38. package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
  40. package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
  41. package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
  42. package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
  44. package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
  45. package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
  46. package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
  47. package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
  48. package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
  49. package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
  50. package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
  51. package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
  53. package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
  54. package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
  55. package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
  56. package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
  57. package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
  58. package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
  59. package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
  60. package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
  62. package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
  63. package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
  65. package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
  67. package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
  68. package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
  69. package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
  70. package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
  71. package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
  72. package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
  73. package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
  74. package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
  75. package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
  76. package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
  77. package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
  78. package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
  79. package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
  81. package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
  83. package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
  84. package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
  85. package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
  88. package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
  89. package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
  90. package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
  91. package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
  93. package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
  94. package/dist/vue-ui-wheel-waZf462K.js +379 -0
  95. package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
  96. package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
  97. package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-3t0HimeE.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-BC4Ciblw.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
  107. package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
  108. package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
  109. package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
  110. package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
  111. package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
  112. package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
  113. package/dist/vue-ui-flow-MvORTthN.js +0 -765
  114. package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
  115. package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
  116. package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
  117. package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
  118. package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
  119. package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
  120. package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
  121. package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
  122. package/dist/vue-ui-onion-DXLokGec.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
  124. package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
  125. package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
  126. package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
  127. package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
  128. package/dist/vue-ui-rings-Duay-EmS.js +0 -685
  129. package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
  130. package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
  131. package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
  132. package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
  134. package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
  136. package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
  137. package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
  138. package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
  139. package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
  140. package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
  141. package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
  142. package/dist/vue-ui-wheel-tydUATi8.js +0 -352
  143. package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
  144. package/dist/vue-ui-xy--HToGdle.js +0 -2982
@@ -0,0 +1,1178 @@
1
+ import { defineAsyncComponent as de, computed as T, ref as x, toRefs as Yt, watch as Ee, shallowRef as pt, onMounted as Dt, onBeforeUnmount as Rt, createElementBlock as i, openBlock as u, unref as n, normalizeStyle as ae, normalizeClass as gt, createBlock as oe, createCommentVNode as g, createElementVNode as k, createVNode as Fe, createSlots as jt, withCtx as O, renderSlot as N, normalizeProps as he, guardReactiveProps as fe, Fragment as q, renderList as K, toDisplayString as X, createTextVNode as Vt, nextTick as Ut } from "vue";
2
+ import { u as Gt, c as qt, t as Ht, a as Zt, p as ie, b as Jt, o as mt, f as Ie, d as Kt, g as xt, Y as Qt, e as We, a3 as el, V as tl, X as ll, s as Xe, Z as al, k as se, h as Y, i as H, v as ol, w as sl, y as ul, z as nl } from "./index-BtNwOUja.js";
3
+ import { t as il, u as rl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as vl, B as yl } from "./useLoading-D7YHNtLX.js";
5
+ import { u as cl } from "./usePrinter-DUNjpQNe.js";
6
+ import { u as bt } from "./useNestedProp-f2H3m6Yj.js";
7
+ import { u as dl } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as hl } from "./useChartAccessibility-9icAAmYg.js";
9
+ import fl from "./Legend-BUk0WvWJ.js";
10
+ import pl from "./Title-BGu6gEd2.js";
11
+ import { _ as kt } from "./Shape-BRzOzubn.js";
12
+ import gl from "./img-DrR839Ot.js";
13
+ import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { key: 1 }, _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $l = { key: 2 }, Al = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Cl = { key: 0 }, Sl = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], Ll = { key: 1 }, zl = { key: 3 }, Tl = ["id"], Bl = ["stop-color"], Pl = ["stop-color"], Ol = ["id"], Nl = ["stop-color"], El = ["stop-color"], Fl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Il = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Wl = { key: 0 }, Xl = ["d", "stroke", "stroke-width"], Yl = ["d", "stroke", "stroke-width"], Dl = ["d", "stroke", "stroke-width"], Rl = ["d", "stroke", "stroke-width"], jl = {
15
+ key: 4,
16
+ style: { "pointer-events": "none !important" }
17
+ }, Vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Gl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ql = ["x", "y", "font-size", "fill", "font-weight"], Hl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Zl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Jl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Kl = ["id", "transform", "font-size", "font-weight", "fill"], Ql = ["font-size", "fill", "transform"], ea = ["transform", "font-size", "fill"], ta = ["x", "y", "font-size", "fill"], la = ["x", "y", "font-size", "fill"], aa = ["font-size", "font-weight", "fill", "x", "y"], oa = ["id"], sa = ["x", "y", "width", "height"], ua = {
18
+ key: 9,
19
+ style: { pointerEvents: "none" }
20
+ }, na = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], ia = ["x", "y", "fill", "font-size", "font-weight"], ra = {
21
+ key: 4,
22
+ class: "vue-data-ui-watermark"
23
+ }, va = ["onClick"], ya = {
24
+ key: 0,
25
+ style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
26
+ }, ca = {
27
+ viewBox: "0 0 20 20",
28
+ height: "20",
29
+ width: "20",
30
+ style: { overflow: "hidden", background: "transparent" }
31
+ }, da = { key: 0 }, ha = ["innerHTML"], fa = {
32
+ __name: "vue-ui-scatter",
33
+ props: {
34
+ config: {
35
+ type: Object,
36
+ default() {
37
+ return {};
38
+ }
39
+ },
40
+ dataset: {
41
+ type: Array,
42
+ default() {
43
+ return [];
44
+ }
45
+ }
46
+ },
47
+ setup(wt, { expose: _t }) {
48
+ const Mt = de(() => import("./vue-ui-accordion-BKUrAowe.js")), $t = de(() => import("./DataTable-BSSXpM7w.js")), At = de(() => import("./PackageVersion-CJ6Vd7V5.js")), Ct = de(() => import("./PenAndPaper-D3zudcNI.js")), St = de(() => import("./Tooltip-Bh2zYSoM.js")), Lt = de(() => import("./UserOptions-Ck8fz9f4.js")), { vue_ui_scatter: zt } = Gt(), Z = wt, Ye = T(() => !!Z.dataset && Z.dataset.length), D = x(qt()), Tt = x(null), _e = x(!1), Me = x(""), De = x(0), Q = x(null), Re = x(null), je = x(null), Ve = x(null), Ue = x(null), Ge = x(0), qe = x(0), He = x(0), L = x([]), $e = x(null), Bt = x(null), Pt = x(null), Ae = x(null), e = x(ze());
49
+ function Ot(l = 100, s = 0.8, t = {}) {
50
+ const { meanX: a = 0, sdX: o = 1, meanY: r = 0, sdY: h = 1, seed: C } = t;
51
+ let S = (C ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
52
+ const B = () => (S = S * 1664525 + 1013904223 >>> 0, S / 2 ** 32), E = () => {
53
+ let y = 0, $ = 0;
54
+ for (; y === 0; ) y = B();
55
+ for (; $ === 0; ) $ = B();
56
+ return Math.sqrt(-2 * Math.log(y)) * Math.cos(2 * Math.PI * $);
57
+ }, d = l / 2, b = Array.from({ length: d }, E), W = Array.from({ length: d }, E), w = (y) => y.reduce(($, me) => $ + me, 0) / y.length, F = w(b), J = w(W);
58
+ for (let y = 0; y < d; y += 1)
59
+ b[y] -= F, W[y] -= J;
60
+ const _ = (y, $) => y.reduce((me, we, Ne) => me + we * $[Ne], 0), p = (y) => _(y, y), v = _(W, b) / p(b), m = W.map((y, $) => y - v * b[$]), I = p(b) / d, U = p(m) / d, le = Math.sqrt((1 - s * s) * I / U), P = b.map((y, $) => s * y + le * m[$]), ne = b.concat(b.map((y) => -y)), Oe = P.concat(P.map((y) => -y)), pe = (y) => Math.sqrt(p(y) / y.length), ye = (y, $, me) => {
61
+ const we = pe(y);
62
+ return y.map((Ne) => me + (we ? Ne / we * $ : 0));
63
+ }, ce = ye(ne, o, a), ge = ye(Oe, h, r);
64
+ for (let y = ce.length - 1; y > 0; y -= 1) {
65
+ const $ = Math.floor(B() * (y + 1));
66
+ [ce[y], ce[$]] = [ce[$], ce[y]], [ge[y], ge[$]] = [ge[$], ge[y]];
67
+ }
68
+ return ce.map((y, $) => ({ x: y, y: ge[$] }));
69
+ }
70
+ const { loading: Ze, FINAL_DATASET: Ce, manualLoading: Se } = vl({
71
+ ...Yt(Z),
72
+ FINAL_CONFIG: e,
73
+ prepareConfig: ze,
74
+ skeletonDataset: [
75
+ {
76
+ name: "",
77
+ color: "#999999",
78
+ values: Ot(100, 0.5, { seed: 42 })
79
+ }
80
+ ],
81
+ skeletonConfig: Ht({
82
+ defaultConfig: e.value,
83
+ userConfig: {
84
+ userOptions: { show: !1 },
85
+ table: { show: !1 },
86
+ useCssAnimation: !1,
87
+ style: {
88
+ backgroundColor: "#99999930",
89
+ layout: {
90
+ axis: {
91
+ stroke: "#6A6A6A"
92
+ },
93
+ correlation: {
94
+ label: { show: !1 }
95
+ },
96
+ dataLabels: {
97
+ xAxis: { show: !1 },
98
+ yAxis: { show: !1 }
99
+ },
100
+ marginalBars: {
101
+ fill: "#99999960"
102
+ },
103
+ padding: { top: 12, right: 12, bottom: 12, left: 12 },
104
+ plots: {
105
+ stroke: "#6A6A6A"
106
+ }
107
+ },
108
+ legend: {
109
+ backgroundColor: "transparent"
110
+ }
111
+ }
112
+ }
113
+ })
114
+ }), { userOptionsVisible: Le, setUserOptionsVisibility: Je, keepUserOptionState: Ke } = dl({ config: e.value }), { svgRef: Qe } = hl({ config: e.value.style.title });
115
+ function ze() {
116
+ const l = bt({
117
+ userConfig: Z.config,
118
+ defaultConfig: zt
119
+ });
120
+ return l.theme ? {
121
+ ...bt({
122
+ userConfig: Jt.vue_ui_scatter[l.theme] || Z.config,
123
+ defaultConfig: l
124
+ }),
125
+ customPalette: Zt[l.theme] || ie
126
+ } : l;
127
+ }
128
+ Ee(() => Z.config, (l) => {
129
+ Ze.value || (e.value = ze()), Le.value = !e.value.userOptions.showOnChartHover, et(), Ge.value += 1, qe.value += 1, He.value += 1, R.value.showTable = e.value.table.show, R.value.showTooltip = e.value.style.tooltip.show;
130
+ }, { deep: !0 }), Ee(() => Z.dataset, (l) => {
131
+ Array.isArray(l) && l.length > 0 && (Se.value = !1);
132
+ }, { deep: !0 });
133
+ const ee = pt(null), re = pt(null);
134
+ Dt(() => {
135
+ et();
136
+ });
137
+ const Nt = T(() => !!e.value.debug);
138
+ function et() {
139
+ if (mt(Z.dataset) && (Ie({
140
+ componentName: "VueUiScatter",
141
+ type: "dataset",
142
+ debug: Nt.value
143
+ }), Se.value = !0), mt(Z.dataset) || (Se.value = e.value.loading), e.value.responsive) {
144
+ const l = il(() => {
145
+ const { width: s, height: t } = rl({
146
+ chart: Q.value,
147
+ title: e.value.style.title.text ? Re.value : null,
148
+ legend: e.value.style.legend.show ? je.value : null,
149
+ source: Ve.value,
150
+ noTitle: Ue.value
151
+ });
152
+ requestAnimationFrame(() => {
153
+ z.value.width = s, z.value.height = t;
154
+ });
155
+ });
156
+ ee.value && (re.value && ee.value.unobserve(re.value), ee.value.disconnect()), ee.value = new ResizeObserver(l), re.value = Q.value.parentNode, ee.value.observe(re.value);
157
+ }
158
+ }
159
+ Rt(() => {
160
+ ee.value && (re.value && ee.value.unobserve(re.value), ee.value.disconnect());
161
+ });
162
+ const { isPrinting: tt, isImaging: lt, generatePdf: at, generateImage: ot } = cl({
163
+ elementId: `vue-ui-scatter_${D.value}`,
164
+ fileName: e.value.style.title.text || "vue-ui-scatter",
165
+ options: e.value.userOptions.print
166
+ }), Et = T(() => e.value.userOptions.show && !e.value.style.title.text), st = T(() => Kt(e.value.customPalette)), R = x({
167
+ showTable: e.value.table.show,
168
+ showTooltip: e.value.style.tooltip.show
169
+ });
170
+ Ee(e, () => {
171
+ R.value = {
172
+ showTable: e.value.table.show,
173
+ showTooltip: e.value.style.tooltip.show
174
+ };
175
+ }, { immediate: !0 });
176
+ const z = x({
177
+ height: e.value.style.layout.height,
178
+ width: e.value.style.layout.width
179
+ }), xe = T(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), c = T(() => {
180
+ let l = 0, s = 0;
181
+ return $e.value && (l = $e.value.getBBox().width + 6), Ae.value && (s = Ae.value.getBBox().height + 6), {
182
+ top: e.value.style.layout.padding.top + xe.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
183
+ right: z.value.width - e.value.style.layout.padding.right - xe.value - 6,
184
+ bottom: z.value.height - e.value.style.layout.padding.bottom - s,
185
+ left: e.value.style.layout.padding.left + l,
186
+ height: z.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - xe.value - s - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
187
+ width: z.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - xe.value - l - 6
188
+ };
189
+ }), M = T(() => {
190
+ Ce.value.forEach((o, r) => {
191
+ xt({
192
+ datasetObject: o,
193
+ requiredAttributes: ["values"]
194
+ }).forEach((h) => {
195
+ Ie({
196
+ componentName: "VueUiScatter",
197
+ type: "datasetSerieAttribute",
198
+ property: h,
199
+ index: r
200
+ });
201
+ }), o.values && o.values.forEach((h, C) => {
202
+ xt({
203
+ datasetObject: h,
204
+ requiredAttributes: ["x", "y"]
205
+ }).forEach((S) => {
206
+ Ie({
207
+ componentName: "VueUiScatter",
208
+ type: "datasetSerieAttribute",
209
+ property: `values.${S}`,
210
+ index: `${r} - ${C}`
211
+ });
212
+ });
213
+ });
214
+ });
215
+ const l = Math.min(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.x))), s = Math.max(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.x))), t = Math.min(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.y))), a = Math.max(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.y)));
216
+ return { xMin: l >= 0 ? 0 : l, xMax: s, yMin: t >= 0 ? 0 : t, yMax: a };
217
+ }), A = T(() => ({
218
+ x: c.value.left + Math.abs(M.value.xMin) / (M.value.xMax + Math.abs(M.value.xMin)) * c.value.width,
219
+ y: c.value.bottom - Math.abs(M.value.yMin) / (M.value.yMax + Math.abs(M.value.yMin)) * c.value.height
220
+ })), ue = T(() => Ce.value.map((l, s) => {
221
+ const t = `cluster_${D.value}_${s}`;
222
+ return {
223
+ ...l,
224
+ values: Qt({
225
+ data: l.values,
226
+ threshold: e.value.downsample.threshold
227
+ }),
228
+ id: t,
229
+ color: l.color ? l.color : st.value[s] || ie[s] || ie[s % ie.length],
230
+ opacity: L.value.includes(t) ? 0.5 : 1,
231
+ shape: l.shape ?? "circle",
232
+ segregate: () => yt(t),
233
+ isSegregated: L.value.includes(t)
234
+ };
235
+ })), Ft = T(() => ({
236
+ cy: "scatter-div-legend",
237
+ backgroundColor: e.value.style.legend.backgroundColor,
238
+ color: e.value.style.legend.color,
239
+ fontSize: e.value.style.legend.fontSize,
240
+ paddingBottom: 12,
241
+ fontWeight: e.value.style.legend.bold ? "bold" : ""
242
+ })), Te = T(() => ue.value.map((l, s) => ({
243
+ ...l,
244
+ plots: l.values.map((t) => ({
245
+ x: c.value.left + (t.x + Math.abs(M.value.xMin)) / (M.value.xMax + Math.abs(M.value.xMin)) * c.value.width,
246
+ y: c.value.bottom - (t.y + Math.abs(M.value.yMin)) / (M.value.yMax + Math.abs(M.value.yMin)) * c.value.height,
247
+ v: {
248
+ ...t,
249
+ name: t.name || ""
250
+ },
251
+ clusterName: l.name,
252
+ color: l.color ? l.color : st.value[s] || ie[s] || ie[s % ie.length],
253
+ id: `plot_${D.value}_${Math.random()}`,
254
+ weight: t.weight ?? e.value.style.layout.plots.radius
255
+ }))
256
+ })).filter((l) => !L.value.includes(l.id))), j = T(() => {
257
+ const s = ({ m: t, b: a, rect: o, verticalX: r = null }) => {
258
+ const { left: h, right: C, top: S, bottom: B } = o, E = [], d = (p, v) => {
259
+ Number.isFinite(p) && Number.isFinite(v) && E.push({ x: p, y: v });
260
+ }, b = ({ x: p, y: v }) => p >= h - 1e-9 && p <= C + 1e-9 && v >= S - 1e-9 && v <= B + 1e-9;
261
+ r !== null ? r >= h - 1e-9 && r <= C + 1e-9 && (d(r, S), d(r, B)) : Number.isFinite(t) && (d(h, t * h + a), d(C, t * C + a), Math.abs(t) > 1e-9 ? (d((S - a) / t, S), d((B - a) / t, B)) : a >= S - 1e-9 && a <= B + 1e-9 && (d(h, a), d(C, a)));
262
+ const W = E.filter(b), w = [];
263
+ for (const p of W)
264
+ w.some((v) => Math.abs(v.x - p.x) < 1e-6 && Math.abs(v.y - p.y) < 1e-6) || w.push(p);
265
+ if (w.length < 2) return null;
266
+ let F = w[0], J = w[1], _ = 0;
267
+ for (let p = 0; p < w.length; p += 1)
268
+ for (let v = p + 1; v < w.length; v += 1) {
269
+ const m = w[p].x - w[v].x, I = w[p].y - w[v].y, U = m * m + I * I;
270
+ U > _ && (_ = U, F = w[p], J = w[v]);
271
+ }
272
+ return { x1: F.x, y1: F.y, x2: J.x, y2: J.y };
273
+ };
274
+ return Te.value.map((t) => {
275
+ const a = t.plots.length, o = t.plots.reduce((v, m) => v + m.x, 0) / a, r = t.plots.reduce((v, m) => v + m.y, 0) / a;
276
+ let h = 0, C = 0;
277
+ for (const v of t.plots) {
278
+ const m = v.x - o, I = v.y - r;
279
+ h += m * I, C += m * m;
280
+ }
281
+ let S, B, E = null;
282
+ C < 1e-9 ? (E = o, S = 1 / 0, B = null) : (S = h / C, B = r - S * o);
283
+ let d, b;
284
+ E !== null ? (d = 1 / 0, b = null) : (d = S, b = B);
285
+ const W = t.plots.every((v) => v.v && typeof v.v.x == "number" && typeof v.v.y == "number");
286
+ let w = NaN;
287
+ if (a >= 2) {
288
+ let v = 0, m = 0;
289
+ W ? (v = t.plots.reduce((P, ne) => P + ne.v.x, 0) / a, m = t.plots.reduce((P, ne) => P + ne.v.y, 0) / a) : (v = o, m = -r);
290
+ let I = 0, U = 0, le = 0;
291
+ for (const P of t.plots) {
292
+ const ne = W ? P.v.x : P.x, Oe = W ? P.v.y : -P.y, pe = ne - v, ye = Oe - m;
293
+ I += pe * ye, U += pe * pe, le += ye * ye;
294
+ }
295
+ if (U >= 1e-9 && le >= 1e-9) {
296
+ const P = I / Math.sqrt(U * le);
297
+ w = Math.max(-1, Math.min(1, P));
298
+ }
299
+ }
300
+ const F = s({ m: d, b, rect: c.value, verticalX: E });
301
+ if (!F)
302
+ return {
303
+ ...t,
304
+ correlation: null,
305
+ label: null,
306
+ plots: t.plots.map((v) => ({
307
+ ...v,
308
+ deviation: 0,
309
+ shape: t.shape,
310
+ color: We(t.color)
311
+ }))
312
+ };
313
+ const J = (F.x1 + F.x2) / 2, _ = (F.y1 + F.y2) / 2, p = { x: J, y: _ };
314
+ return {
315
+ ...t,
316
+ color: We(t.color),
317
+ correlation: {
318
+ ...F,
319
+ coefficient: w
320
+ },
321
+ label: p,
322
+ plots: t.plots.map((v) => {
323
+ let m, I;
324
+ E !== null ? (m = E, I = v.y) : Math.abs(d) < 1e-9 ? (m = v.x, I = b) : (m = (v.x + d * v.y - d * b) / (1 + d * d), I = (d * v.x + d * d * v.y + b) / (1 + d * d));
325
+ const U = v.x - m, le = v.y - I, P = Math.sqrt(U * U + le * le);
326
+ return {
327
+ ...v,
328
+ deviation: P,
329
+ shape: t.shape,
330
+ color: We(t.color)
331
+ };
332
+ })
333
+ };
334
+ });
335
+ }), ut = T(() => Math.max(...j.value.flatMap((l) => l.plots.map((s) => Math.abs(s.deviation)))));
336
+ function It() {
337
+ return j.value;
338
+ }
339
+ function nt(l, s) {
340
+ const t = Array.isArray(l) ? l.flatMap((_) => _.plots.map((p) => ({
341
+ x: p.x,
342
+ y: p.y
343
+ }))) : l.plots.map((_) => ({
344
+ x: _.x,
345
+ y: _.y
346
+ }));
347
+ let a = 1 / 0, o = -1 / 0, r = 1 / 0, h = -1 / 0;
348
+ t.forEach(({ x: _, y: p }) => {
349
+ a = Math.min(a, _), o = Math.max(o, _), r = Math.min(r, p), h = Math.max(h, p);
350
+ });
351
+ const C = o - a, S = h - r, B = C / s, E = S / s, d = Array(s).fill(0), b = Array(s).fill(0);
352
+ t.forEach(({ x: _, y: p }) => {
353
+ const v = Math.floor((_ - a) / B), m = Math.floor((p - r) / E);
354
+ d[v] || (d[v] = 0), b[m] || (b[m] = 0), d[v] += 1, b[m] += 1;
355
+ });
356
+ const W = [], w = [];
357
+ for (let _ = 0; _ < s; _ += 1)
358
+ W.push(a + (_ + 0.5) * B), w.push(r + (_ + 0.5) * E);
359
+ const F = Math.max(...d), J = Math.max(...b);
360
+ return { x: d, y: b, avgX: W, avgY: w, maxX: F, maxY: J };
361
+ }
362
+ const te = T(() => e.value.style.layout.marginalBars.tranches), V = T(() => nt(Te.value, te.value)), Wt = T(() => {
363
+ const l = c.value.top - e.value.style.layout.marginalBars.offset, s = c.value.right + e.value.style.layout.marginalBars.offset;
364
+ return Te.value.map((t) => {
365
+ const a = nt(t, te.value);
366
+ return {
367
+ coords: a,
368
+ dX: tl(a.avgX.map((o, r) => ({
369
+ x: o,
370
+ y: l - a.x[r] / a.maxX * e.value.style.layout.marginalBars.size
371
+ }))),
372
+ dY: el(a.avgY.map((o, r) => ({
373
+ y: o,
374
+ x: s + e.value.style.layout.marginalBars.size * a.y[r] / a.maxY
375
+ }))),
376
+ color: t.color,
377
+ id: t.id
378
+ };
379
+ });
380
+ }), G = x(void 0), f = x(null), Be = x(null);
381
+ function it(l, s) {
382
+ G.value = l.id, f.value = l;
383
+ let t = "";
384
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s }), Be.value = {
385
+ datapoint: l,
386
+ seriesIndex: s,
387
+ series: j.value,
388
+ config: e.value
389
+ };
390
+ const a = e.value.style.tooltip.customFormat;
391
+ ul(a) && nl(() => a({
392
+ datapoint: l,
393
+ seriesIndex: s,
394
+ series: j.value,
395
+ config: e.value
396
+ })) ? Me.value = a({
397
+ datapoint: l,
398
+ seriesIndex: s,
399
+ series: j.value,
400
+ config: e.value
401
+ }) : (l.clusterName && (t += `<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`), l.v.name && (t += `<div>${l.v.name}</div>`), t += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, t += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x) ? "-" : se(
402
+ e.value.style.layout.plots.selectors.labels.x.formatter,
403
+ l.v.x,
404
+ H({
405
+ p: e.value.style.tooltip.prefix,
406
+ v: l.v.x,
407
+ s: e.value.style.tooltip.suffix,
408
+ r: e.value.style.tooltip.roundingValue
409
+ }),
410
+ { datapoint: l, seriesIndex: s }
411
+ )}</b></div>`, t += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y) ? "-" : se(
412
+ e.value.style.layout.plots.selectors.labels.y.formatter,
413
+ l.v.y,
414
+ H({
415
+ p: e.value.style.tooltip.prefix,
416
+ v: l.v.y,
417
+ s: e.value.style.tooltip.suffix,
418
+ r: e.value.style.tooltip.roundingValue
419
+ }),
420
+ { datapoint: l, seriesIndex: s }
421
+ )}</b></div>`, t += `${e.value.style.layout.plots.deviation.translation}: <b>${H({
422
+ v: l.deviation,
423
+ r: e.value.style.layout.plots.deviation.roundingValue
424
+ })}</b>`, t += "</div>", Me.value = `<div>${t}</div>`), _e.value = !0;
425
+ }
426
+ function rt(l, s) {
427
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), _e.value = !1, G.value = void 0, f.value = null;
428
+ }
429
+ function vt(l, s) {
430
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
431
+ }
432
+ function yt(l) {
433
+ L.value.includes(l) ? L.value = L.value.filter((s) => s !== l) : L.value.length < Ce.value.length - 1 && L.value.push(l);
434
+ }
435
+ function ct(l = null) {
436
+ Ut(() => {
437
+ const s = ["", e.value.table.translations.correlationCoefficient, e.value.table.translations.nbrPlots, `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`, `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`], t = j.value.map((r) => [
438
+ r.name,
439
+ r.correlation.coefficient,
440
+ r.plots.length,
441
+ r.plots.map((h) => h.v.x).reduce((h, C) => h + C, 0) / r.plots.length,
442
+ r.plots.map((h) => h.v.y).reduce((h, C) => h + C, 0) / r.plots.length
443
+ ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), o = ol(a);
444
+ l ? l(o) : sl({ csvContent: o, title: e.value.style.title.text || "vue-ui-heatmap" });
445
+ });
446
+ }
447
+ const be = T(() => {
448
+ const l = [
449
+ e.value.table.translations.series,
450
+ e.value.table.translations.correlationCoefficient,
451
+ e.value.table.translations.nbrPlots,
452
+ `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`,
453
+ `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`
454
+ ], s = j.value.map((a) => [
455
+ {
456
+ shape: a.shape,
457
+ content: a.name,
458
+ color: a.color
459
+ },
460
+ Number((a.correlation.coefficient ?? 0).toFixed(e.value.table.td.roundingValue)).toLocaleString(),
461
+ a.plots.length.toLocaleString(),
462
+ Number((a.plots.map((o) => o.v.x ?? 0).reduce((o, r) => o + r, 0) / a.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString(),
463
+ Number((a.plots.map((o) => o.v.y ?? 0).reduce((o, r) => o + r, 0) / a.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString()
464
+ ]), t = {
465
+ th: {
466
+ backgroundColor: e.value.table.th.backgroundColor,
467
+ color: e.value.table.th.color,
468
+ outline: e.value.table.th.outline
469
+ },
470
+ td: {
471
+ backgroundColor: e.value.table.td.backgroundColor,
472
+ color: e.value.table.td.color,
473
+ outline: e.value.table.td.outline
474
+ },
475
+ breakpoint: e.value.table.responsiveBreakpoint
476
+ };
477
+ return { head: l, body: s, config: t, colNames: l };
478
+ }), ve = x(!1);
479
+ function dt(l) {
480
+ ve.value = l, De.value += 1;
481
+ }
482
+ function ht() {
483
+ R.value.showTable = !R.value.showTable;
484
+ }
485
+ function ft() {
486
+ R.value.showTooltip = !R.value.showTooltip;
487
+ }
488
+ const ke = x(!1);
489
+ function Pe() {
490
+ ke.value = !ke.value;
491
+ }
492
+ async function Xt({ scale: l = 2 } = {}) {
493
+ if (!Q.value) return;
494
+ const { width: s, height: t } = Q.value.getBoundingClientRect(), a = s / t, { imageUri: o, base64: r } = await gl({ domElement: Q.value, base64: !0, img: !0, scale: l });
495
+ return {
496
+ imageUri: o,
497
+ base64: r,
498
+ title: e.value.style.title.text,
499
+ width: s,
500
+ height: t,
501
+ aspectRatio: a
502
+ };
503
+ }
504
+ return _t({
505
+ getData: It,
506
+ getImage: Xt,
507
+ generatePdf: at,
508
+ generateCsv: ct,
509
+ generateImage: ot,
510
+ toggleTable: ht,
511
+ toggleTooltip: ft,
512
+ toggleAnnotator: Pe,
513
+ toggleFullscreen: dt
514
+ }), (l, s) => (u(), i("div", {
515
+ class: gt(`vue-ui-scatter ${ve.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
516
+ ref_key: "scatterChart",
517
+ ref: Q,
518
+ id: `vue-ui-scatter_${D.value}`,
519
+ style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
520
+ onMouseenter: s[2] || (s[2] = () => n(Je)(!0)),
521
+ onMouseleave: s[3] || (s[3] = () => n(Je)(!1))
522
+ }, [
523
+ e.value.userOptions.buttons.annotator ? (u(), oe(n(Ct), {
524
+ key: 0,
525
+ svgRef: n(Qe),
526
+ backgroundColor: e.value.style.backgroundColor,
527
+ color: e.value.style.color,
528
+ active: ke.value,
529
+ onClose: Pe
530
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
531
+ Et.value ? (u(), i("div", {
532
+ key: 1,
533
+ ref_key: "noTitle",
534
+ ref: Ue,
535
+ class: "vue-data-ui-no-title-space",
536
+ style: "height:36px; width: 100%;background:transparent"
537
+ }, null, 512)) : g("", !0),
538
+ e.value.style.title.text ? (u(), i("div", {
539
+ key: 2,
540
+ ref_key: "chartTitle",
541
+ ref: Re,
542
+ style: "width:100%;background:transparent"
543
+ }, [
544
+ (u(), oe(pl, {
545
+ key: `title_${Ge.value}`,
546
+ config: {
547
+ title: {
548
+ cy: "scatter-div-title",
549
+ ...e.value.style.title
550
+ },
551
+ subtitle: {
552
+ cy: "scatter-div-subtitle",
553
+ ...e.value.style.title.subtitle
554
+ }
555
+ }
556
+ }, null, 8, ["config"]))
557
+ ], 512)) : g("", !0),
558
+ e.value.userOptions.show && Ye.value && (n(Ke) || n(Le)) ? (u(), oe(n(Lt), {
559
+ ref_key: "details",
560
+ ref: Tt,
561
+ key: `user_options_${De.value}`,
562
+ backgroundColor: e.value.style.backgroundColor,
563
+ color: e.value.style.color,
564
+ isImaging: n(lt),
565
+ isPrinting: n(tt),
566
+ uid: D.value,
567
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
568
+ hasPdf: e.value.userOptions.buttons.pdf,
569
+ hasImg: e.value.userOptions.buttons.img,
570
+ hasXls: e.value.userOptions.buttons.csv,
571
+ hasTable: e.value.userOptions.buttons.table,
572
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
573
+ isTooltip: R.value.showTooltip,
574
+ isFullscreen: ve.value,
575
+ titles: { ...e.value.userOptions.buttonTitles },
576
+ chartElement: Q.value,
577
+ position: e.value.userOptions.position,
578
+ hasAnnotator: e.value.userOptions.buttons.annotator,
579
+ isAnnotation: ke.value,
580
+ callbacks: e.value.userOptions.callbacks,
581
+ printScale: e.value.userOptions.print.scale,
582
+ onToggleFullscreen: dt,
583
+ onGeneratePdf: n(at),
584
+ onGenerateCsv: ct,
585
+ onGenerateImage: n(ot),
586
+ onToggleTable: ht,
587
+ onToggleTooltip: ft,
588
+ onToggleAnnotator: Pe,
589
+ style: ae({
590
+ visibility: n(Ke) ? n(Le) ? "visible" : "hidden" : "visible"
591
+ })
592
+ }, jt({ _: 2 }, [
593
+ l.$slots.menuIcon ? {
594
+ name: "menuIcon",
595
+ fn: O(({ isOpen: t, color: a }) => [
596
+ N(l.$slots, "menuIcon", he(fe({ isOpen: t, color: a })), void 0, !0)
597
+ ]),
598
+ key: "0"
599
+ } : void 0,
600
+ l.$slots.optionTooltip ? {
601
+ name: "optionTooltip",
602
+ fn: O(() => [
603
+ N(l.$slots, "optionTooltip", {}, void 0, !0)
604
+ ]),
605
+ key: "1"
606
+ } : void 0,
607
+ l.$slots.optionPdf ? {
608
+ name: "optionPdf",
609
+ fn: O(() => [
610
+ N(l.$slots, "optionPdf", {}, void 0, !0)
611
+ ]),
612
+ key: "2"
613
+ } : void 0,
614
+ l.$slots.optionCsv ? {
615
+ name: "optionCsv",
616
+ fn: O(() => [
617
+ N(l.$slots, "optionCsv", {}, void 0, !0)
618
+ ]),
619
+ key: "3"
620
+ } : void 0,
621
+ l.$slots.optionImg ? {
622
+ name: "optionImg",
623
+ fn: O(() => [
624
+ N(l.$slots, "optionImg", {}, void 0, !0)
625
+ ]),
626
+ key: "4"
627
+ } : void 0,
628
+ l.$slots.optionTable ? {
629
+ name: "optionTable",
630
+ fn: O(() => [
631
+ N(l.$slots, "optionTable", {}, void 0, !0)
632
+ ]),
633
+ key: "5"
634
+ } : void 0,
635
+ l.$slots.optionFullscreen ? {
636
+ name: "optionFullscreen",
637
+ fn: O(({ toggleFullscreen: t, isFullscreen: a }) => [
638
+ N(l.$slots, "optionFullscreen", he(fe({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
639
+ ]),
640
+ key: "6"
641
+ } : void 0,
642
+ l.$slots.optionAnnotator ? {
643
+ name: "optionAnnotator",
644
+ fn: O(({ toggleAnnotator: t, isAnnotator: a }) => [
645
+ N(l.$slots, "optionAnnotator", he(fe({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
646
+ ]),
647
+ key: "7"
648
+ } : void 0
649
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
650
+ (u(), i("svg", {
651
+ ref_key: "svgRef",
652
+ ref: Qe,
653
+ xmlns: n(ll),
654
+ class: gt({ "vue-data-ui-fullscreen--on": ve.value, "vue-data-ui-fulscreen--off": !ve.value, animated: e.value.useCssAnimation }),
655
+ viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
656
+ style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
657
+ }, [
658
+ Fe(n(At)),
659
+ l.$slots["chart-background"] ? (u(), i("foreignObject", {
660
+ key: 0,
661
+ x: 0,
662
+ y: 0,
663
+ width: z.value.width <= 0 ? 10 : z.value.width,
664
+ height: z.value.height <= 0 ? 10 : z.value.height,
665
+ style: {
666
+ pointerEvents: "none"
667
+ }
668
+ }, [
669
+ N(l.$slots, "chart-background", {}, void 0, !0)
670
+ ], 8, kl)) : g("", !0),
671
+ e.value.style.layout.axis.show ? (u(), i("g", wl, [
672
+ k("line", {
673
+ x1: A.value.x,
674
+ x2: A.value.x,
675
+ y1: c.value.top,
676
+ y2: c.value.bottom,
677
+ stroke: e.value.style.layout.axis.stroke,
678
+ "stroke-width": e.value.style.layout.axis.strokeWidth,
679
+ "stroke-linecap": "round"
680
+ }, null, 8, _l),
681
+ k("line", {
682
+ x1: c.value.left,
683
+ x2: c.value.right,
684
+ y1: A.value.y,
685
+ y2: A.value.y,
686
+ stroke: e.value.style.layout.axis.stroke,
687
+ "stroke-width": e.value.style.layout.axis.strokeWidth,
688
+ "stroke-linecap": "round"
689
+ }, null, 8, Ml)
690
+ ])) : g("", !0),
691
+ e.value.style.layout.plots.giftWrap.show ? (u(), i("g", $l, [
692
+ (u(!0), i(q, null, K(j.value, (t, a) => (u(), i("g", null, [
693
+ t.plots.length > 2 ? (u(), i("polygon", {
694
+ key: 0,
695
+ points: n(al)({ series: t.plots }),
696
+ fill: n(Xe)(t.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
697
+ "stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
698
+ "stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
699
+ stroke: t.color,
700
+ "stroke-linejoin": "round",
701
+ "stroke-linecap": "round"
702
+ }, null, 8, Al)) : g("", !0)
703
+ ]))), 256))
704
+ ])) : g("", !0),
705
+ (u(!0), i(q, null, K(j.value, (t, a) => (u(), i("g", null, [
706
+ !t.shape || t.shape === "circle" ? (u(), i("g", Cl, [
707
+ (u(!0), i(q, null, K(t.plots, (o, r) => (u(), i("circle", {
708
+ cx: o.x,
709
+ cy: o.y,
710
+ r: G.value && G.value === o.id ? o.weight * 2 : o.weight,
711
+ fill: n(Xe)(t.color, e.value.style.layout.plots.opacity * 100),
712
+ stroke: e.value.style.layout.plots.stroke,
713
+ "stroke-width": e.value.style.layout.plots.strokeWidth,
714
+ style: ae(`opacity:${G.value && G.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / ut.value : e.value.style.layout.plots.significance.show && Math.abs(o.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
715
+ onMouseover: (h) => it(o, a),
716
+ onMouseleave: (h) => rt(o, a),
717
+ onClick: (h) => vt(o, a)
718
+ }, null, 44, Sl))), 256))
719
+ ])) : (u(), i("g", Ll, [
720
+ (u(!0), i(q, null, K(t.plots, (o, r) => (u(), oe(kt, {
721
+ plot: { x: o.x, y: o.y },
722
+ radius: G.value && G.value === o.id ? o.weight * 2 : o.weight,
723
+ shape: t.shape,
724
+ color: n(Xe)(t.color, e.value.style.layout.plots.opacity * 100),
725
+ stroke: e.value.style.layout.plots.stroke,
726
+ strokeWidth: e.value.style.layout.plots.strokeWidth,
727
+ style: ae(`opacity:${G.value && G.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / ut.value : e.value.style.layout.plots.significance.show && Math.abs(o.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
728
+ onMouseover: (h) => it(o, a),
729
+ onMouseleave: (h) => rt(o, a),
730
+ onClick: (h) => vt(o, a)
731
+ }, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
732
+ ]))
733
+ ]))), 256)),
734
+ e.value.style.layout.marginalBars.show ? (u(), i("g", zl, [
735
+ k("defs", null, [
736
+ k("linearGradient", {
737
+ id: `marginal_x_${D.value}`,
738
+ x1: "0%",
739
+ y1: "0%",
740
+ x2: "0%",
741
+ y2: "100%"
742
+ }, [
743
+ k("stop", {
744
+ offset: "0%",
745
+ "stop-color": e.value.style.layout.marginalBars.fill
746
+ }, null, 8, Bl),
747
+ k("stop", {
748
+ offset: "100%",
749
+ "stop-color": e.value.style.backgroundColor
750
+ }, null, 8, Pl)
751
+ ], 8, Tl),
752
+ k("linearGradient", {
753
+ id: `marginal_y_${D.value}`,
754
+ x1: "0%",
755
+ x2: "100%",
756
+ y1: "0%",
757
+ y2: "0%"
758
+ }, [
759
+ k("stop", {
760
+ offset: "0%",
761
+ "stop-color": e.value.style.backgroundColor
762
+ }, null, 8, Nl),
763
+ k("stop", {
764
+ offset: "100%",
765
+ "stop-color": e.value.style.layout.marginalBars.fill
766
+ }, null, 8, El)
767
+ ], 8, Ol)
768
+ ]),
769
+ (u(!0), i(q, null, K(V.value.x, (t, a) => (u(), i("g", null, [
770
+ t && V.value.avgX[a] ? (u(), i("rect", {
771
+ key: 0,
772
+ x: V.value.avgX[a] - c.value.width / te.value / 2,
773
+ y: c.value.top - e.value.style.layout.marginalBars.offset - t / V.value.maxX * e.value.style.layout.marginalBars.size,
774
+ width: c.value.width / te.value <= 0 ? 1e-4 : c.value.width / te.value,
775
+ height: t / V.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / V.value.maxX * e.value.style.layout.marginalBars.size,
776
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${D.value})` : e.value.style.layout.marginalBars.fill,
777
+ style: ae(`opacity:${e.value.style.layout.marginalBars.opacity}`),
778
+ stroke: e.value.style.backgroundColor,
779
+ "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
780
+ rx: e.value.style.layout.marginalBars.borderRadius
781
+ }, null, 12, Fl)) : g("", !0)
782
+ ]))), 256)),
783
+ (u(!0), i(q, null, K(V.value.y, (t, a) => (u(), i("g", null, [
784
+ t && V.value.avgY[a] ? (u(), i("rect", {
785
+ key: 0,
786
+ x: c.value.right + e.value.style.layout.marginalBars.offset,
787
+ y: V.value.avgY[a] - c.value.height / te.value / 2,
788
+ height: c.value.height / te.value <= 0 ? 1e-4 : c.value.height / te.value,
789
+ width: t / V.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / V.value.maxY * e.value.style.layout.marginalBars.size,
790
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${D.value})` : e.value.style.layout.marginalBars.fill,
791
+ style: ae(`opacity:${e.value.style.layout.marginalBars.opacity}`),
792
+ stroke: e.value.style.backgroundColor,
793
+ "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
794
+ rx: e.value.style.layout.marginalBars.borderRadius
795
+ }, null, 12, Il)) : g("", !0)
796
+ ]))), 256)),
797
+ e.value.style.layout.marginalBars.showLines ? (u(), i("g", Wl, [
798
+ (u(!0), i(q, null, K(Wt.value, (t) => (u(), i(q, null, [
799
+ L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
800
+ key: 0,
801
+ d: `M ${t.dX}`,
802
+ stroke: e.value.style.backgroundColor,
803
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth + 1,
804
+ "stroke-linecap": "round",
805
+ "stroke-linejoin": "round",
806
+ fill: "none"
807
+ }, null, 8, Xl)),
808
+ L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
809
+ key: 1,
810
+ d: `M ${t.dX}`,
811
+ stroke: t.color,
812
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth,
813
+ "stroke-linecap": "round",
814
+ "stroke-linejoin": "round",
815
+ fill: "none"
816
+ }, null, 8, Yl)),
817
+ L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
818
+ key: 2,
819
+ d: `M ${t.dY}`,
820
+ stroke: e.value.style.backgroundColor,
821
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth + 1,
822
+ "stroke-linecap": "round",
823
+ "stroke-linejoin": "round",
824
+ fill: "none"
825
+ }, null, 8, Dl)),
826
+ L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
827
+ key: 3,
828
+ d: `M ${t.dY}`,
829
+ stroke: t.color,
830
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth,
831
+ "stroke-linecap": "round",
832
+ "stroke-linejoin": "round",
833
+ fill: "none"
834
+ }, null, 8, Rl))
835
+ ], 64))), 256))
836
+ ])) : g("", !0)
837
+ ])) : g("", !0),
838
+ f.value && e.value.style.layout.plots.selectors.show ? (u(), i("g", jl, [
839
+ k("line", {
840
+ x1: A.value.x,
841
+ x2: f.value.x,
842
+ y1: f.value.y,
843
+ y2: f.value.y,
844
+ stroke: e.value.style.layout.plots.selectors.stroke,
845
+ "stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
846
+ "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
847
+ "stroke-linecap": "round",
848
+ class: "line-pointer"
849
+ }, null, 8, Vl),
850
+ k("line", {
851
+ x1: f.value.x,
852
+ x2: f.value.x,
853
+ y1: A.value.y,
854
+ y2: f.value.y,
855
+ stroke: e.value.style.layout.plots.selectors.stroke,
856
+ "stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
857
+ "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
858
+ "stroke-linecap": "round",
859
+ class: "line-pointer"
860
+ }, null, 8, Ul),
861
+ k("text", {
862
+ x: A.value.x + (f.value.x > A.value.x ? -6 : 6),
863
+ y: f.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
864
+ "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
865
+ fill: e.value.style.layout.plots.selectors.labels.color,
866
+ "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
867
+ "text-anchor": f.value.x > A.value.x ? "end" : "start"
868
+ }, X(n(se)(
869
+ e.value.style.layout.plots.selectors.labels.y.formatter,
870
+ n(Y)(f.value.v.y),
871
+ n(H)({
872
+ p: e.value.style.layout.plots.selectors.labels.prefix,
873
+ v: n(Y)(f.value.v.y),
874
+ s: e.value.style.layout.plots.selectors.labels.suffix,
875
+ r: e.value.style.layout.plots.selectors.labels.rounding
876
+ }),
877
+ { datapoint: f.value }
878
+ )), 9, Gl),
879
+ k("text", {
880
+ x: f.value.x,
881
+ y: A.value.y + (f.value.y > A.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
882
+ "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
883
+ fill: e.value.style.layout.plots.selectors.labels.color,
884
+ "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
885
+ "text-anchor": "middle"
886
+ }, X(n(se)(
887
+ e.value.style.layout.plots.selectors.labels.y.formatter,
888
+ n(Y)(f.value.v.x),
889
+ n(H)({
890
+ p: e.value.style.layout.plots.selectors.labels.prefix,
891
+ v: n(Y)(f.value.v.x),
892
+ s: e.value.style.layout.plots.selectors.labels.suffix,
893
+ r: e.value.style.layout.plots.selectors.labels.rounding
894
+ }),
895
+ { datapoint: f.value }
896
+ )), 9, ql),
897
+ k("circle", {
898
+ cx: A.value.x,
899
+ cy: f.value.y,
900
+ r: e.value.style.layout.plots.selectors.markers.radius,
901
+ fill: e.value.style.layout.plots.selectors.markers.fill,
902
+ stroke: e.value.style.layout.plots.selectors.markers.stroke,
903
+ "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
904
+ class: "line-pointer"
905
+ }, null, 8, Hl),
906
+ k("circle", {
907
+ cx: f.value.x,
908
+ cy: A.value.y,
909
+ r: e.value.style.layout.plots.selectors.markers.radius,
910
+ fill: e.value.style.layout.plots.selectors.markers.fill,
911
+ stroke: e.value.style.layout.plots.selectors.markers.stroke,
912
+ "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
913
+ class: "line-pointer"
914
+ }, null, 8, Zl),
915
+ e.value.style.layout.plots.selectors.labels.showName ? (u(), i("text", {
916
+ key: 0,
917
+ x: f.value.x,
918
+ y: f.value.y + (f.value.y < A.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
919
+ "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
920
+ fill: e.value.style.layout.plots.selectors.labels.color,
921
+ "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
922
+ "text-anchor": f.value.x < c.value.left + 100 ? "start" : f.value.x > c.value.right - 100 ? "end" : f.value.x > A.value.x ? "start" : "end"
923
+ }, X(f.value.v.name), 9, Jl)) : g("", !0)
924
+ ])) : g("", !0),
925
+ e.value.style.layout.dataLabels.xAxis.show ? (u(), i("g", {
926
+ key: 5,
927
+ ref_key: "xAxisLabelLeft",
928
+ ref: $e
929
+ }, [
930
+ k("text", {
931
+ id: `vue-ui-scatter-xAxis-label-${D.value}`,
932
+ transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize}, ${c.value.top + c.value.height / 2}), rotate(-90)`,
933
+ "text-anchor": "middle",
934
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
935
+ "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
936
+ fill: e.value.style.layout.dataLabels.xAxis.color
937
+ }, X(e.value.style.layout.dataLabels.xAxis.name), 9, Kl),
938
+ k("text", {
939
+ "text-anchor": "middle",
940
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
941
+ fill: e.value.style.layout.dataLabels.xAxis.color,
942
+ transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${A.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
943
+ }, X(n(se)(
944
+ e.value.style.layout.plots.selectors.labels.x.formatter,
945
+ n(Y)(M.value.xMin),
946
+ n(H)({
947
+ p: e.value.style.layout.plots.selectors.labels.prefix,
948
+ v: n(Y)(M.value.xMin),
949
+ s: e.value.style.layout.plots.selectors.labels.suffix,
950
+ r: e.value.style.layout.dataLabels.xAxis.rounding
951
+ })
952
+ )), 9, Ql)
953
+ ], 512)) : g("", !0),
954
+ e.value.style.layout.dataLabels.xAxis.show ? (u(), i("text", {
955
+ key: 6,
956
+ ref_key: "xAxisLabelRight",
957
+ ref: Bt,
958
+ "text-anchor": "middle",
959
+ transform: `translate(${c.value.right + e.value.style.layout.padding.right + 6}, ${A.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
960
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
961
+ fill: e.value.style.layout.dataLabels.xAxis.color
962
+ }, X(n(se)(
963
+ e.value.style.layout.plots.selectors.labels.x.formatter,
964
+ n(Y)(M.value.xMax),
965
+ n(H)({
966
+ p: e.value.style.layout.plots.selectors.labels.prefix,
967
+ v: n(Y)(M.value.xMax),
968
+ s: e.value.style.layout.plots.selectors.labels.suffix,
969
+ r: e.value.style.layout.dataLabels.xAxis.rounding
970
+ })
971
+ )), 9, ea)) : g("", !0),
972
+ e.value.style.layout.dataLabels.yAxis.show ? (u(), i("text", {
973
+ key: 7,
974
+ ref_key: "yAxisLabelTop",
975
+ ref: Pt,
976
+ x: A.value.x,
977
+ y: c.value.top - e.value.style.layout.dataLabels.yAxis.fontSize,
978
+ "text-anchor": "middle",
979
+ "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
980
+ fill: e.value.style.layout.dataLabels.yAxis.color
981
+ }, X(n(se)(
982
+ e.value.style.layout.plots.selectors.labels.y.formatter,
983
+ n(Y)(M.value.yMax),
984
+ n(H)({
985
+ p: e.value.style.layout.plots.selectors.labels.prefix,
986
+ v: n(Y)(M.value.yMax),
987
+ s: e.value.style.layout.plots.selectors.labels.suffix,
988
+ r: e.value.style.layout.dataLabels.yAxis.rounding
989
+ })
990
+ )), 9, ta)) : g("", !0),
991
+ e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", {
992
+ key: 8,
993
+ ref_key: "yAxisLabelBottom",
994
+ ref: Ae
995
+ }, [
996
+ k("text", {
997
+ x: A.value.x,
998
+ y: z.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
999
+ "text-anchor": "middle",
1000
+ "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1001
+ fill: e.value.style.layout.dataLabels.yAxis.color
1002
+ }, X(n(se)(
1003
+ e.value.style.layout.plots.selectors.labels.y.formatter,
1004
+ n(Y)(M.value.yMin),
1005
+ n(H)({
1006
+ p: e.value.style.layout.plots.selectors.labels.prefix,
1007
+ v: n(Y)(M.value.yMin),
1008
+ s: e.value.style.layout.plots.selectors.labels.suffix,
1009
+ r: e.value.style.layout.dataLabels.yAxis.rounding
1010
+ })
1011
+ )), 9, la),
1012
+ k("text", {
1013
+ "text-anchor": "middle",
1014
+ "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1015
+ "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
1016
+ fill: e.value.style.layout.dataLabels.yAxis.color,
1017
+ x: c.value.left + c.value.width / 2,
1018
+ y: z.value.height
1019
+ }, X(e.value.style.layout.dataLabels.yAxis.name), 9, aa)
1020
+ ], 512)) : g("", !0),
1021
+ k("clipPath", {
1022
+ id: `clip_path_${D.value}`
1023
+ }, [
1024
+ k("rect", {
1025
+ x: c.value.left,
1026
+ y: c.value.top,
1027
+ width: c.value.width <= 0 ? 1e-4 : c.value.width,
1028
+ height: c.value.height <= 0 ? 1e-4 : c.value.height
1029
+ }, null, 8, sa)
1030
+ ], 8, oa),
1031
+ e.value.style.layout.correlation.show ? (u(), i("g", ua, [
1032
+ (u(!0), i(q, null, K(j.value, (t, a) => (u(), i("line", {
1033
+ x1: t.correlation.x1,
1034
+ x2: t.correlation.x2,
1035
+ y1: t.correlation.y1,
1036
+ y2: t.correlation.y2,
1037
+ "stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
1038
+ stroke: t.color,
1039
+ "stroke-width": e.value.style.layout.correlation.strokeWidth,
1040
+ "clip-path": `url(#clip_path_${D.value})`
1041
+ }, null, 8, na))), 256)),
1042
+ (u(!0), i(q, null, K(j.value, (t, a) => (u(), i("g", null, [
1043
+ e.value.style.layout.correlation.label.show ? (u(), i("text", {
1044
+ key: 0,
1045
+ x: t.correlation.x2,
1046
+ y: t.correlation.y2,
1047
+ fill: e.value.style.layout.correlation.label.useSerieColor ? t.color : e.value.style.layout.correlation.label.color,
1048
+ "text-anchor": "end",
1049
+ "font-size": e.value.style.layout.correlation.label.fontSize,
1050
+ "font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
1051
+ }, X(n(H)({
1052
+ v: n(Y)(t.correlation.coefficient),
1053
+ r: e.value.style.layout.correlation.label.roundingValue
1054
+ })), 9, ia)) : g("", !0)
1055
+ ]))), 256))
1056
+ ])) : g("", !0),
1057
+ N(l.$slots, "svg", { svg: z.value }, void 0, !0)
1058
+ ], 14, bl)),
1059
+ l.$slots.watermark ? (u(), i("div", ra, [
1060
+ N(l.$slots, "watermark", he(fe({ isPrinting: n(tt) || n(lt) })), void 0, !0)
1061
+ ])) : g("", !0),
1062
+ k("div", {
1063
+ ref_key: "chartLegend",
1064
+ ref: je
1065
+ }, [
1066
+ e.value.style.legend.show ? (u(), oe(fl, {
1067
+ key: `legend_${He.value}`,
1068
+ legendSet: ue.value,
1069
+ config: Ft.value,
1070
+ onClickMarker: s[0] || (s[0] = ({ legend: t }) => yt(t.id))
1071
+ }, {
1072
+ item: O(({ legend: t }) => [
1073
+ k("div", {
1074
+ onClick: (a) => t.segregate(),
1075
+ style: ae(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1076
+ }, X(t.name), 13, va)
1077
+ ]),
1078
+ _: 1
1079
+ }, 8, ["legendSet", "config"])) : N(l.$slots, "legend", {
1080
+ key: 1,
1081
+ legend: ue.value
1082
+ }, void 0, !0)
1083
+ ], 512),
1084
+ l.$slots.source ? (u(), i("div", {
1085
+ key: 5,
1086
+ ref_key: "source",
1087
+ ref: Ve,
1088
+ dir: "auto"
1089
+ }, [
1090
+ N(l.$slots, "source", {}, void 0, !0)
1091
+ ], 512)) : g("", !0),
1092
+ Fe(n(St), {
1093
+ show: R.value.showTooltip && _e.value,
1094
+ backgroundColor: e.value.style.tooltip.backgroundColor,
1095
+ color: e.value.style.tooltip.color,
1096
+ borderRadius: e.value.style.tooltip.borderRadius,
1097
+ borderColor: e.value.style.tooltip.borderColor,
1098
+ borderWidth: e.value.style.tooltip.borderWidth,
1099
+ fontSize: e.value.style.tooltip.fontSize,
1100
+ backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
1101
+ position: e.value.style.tooltip.position,
1102
+ offsetY: e.value.style.tooltip.offsetY,
1103
+ parent: Q.value,
1104
+ content: Me.value,
1105
+ isFullscreen: ve.value,
1106
+ isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
1107
+ smooth: e.value.style.tooltip.smooth,
1108
+ backdropFilter: e.value.style.tooltip.backdropFilter
1109
+ }, {
1110
+ "tooltip-before": O(() => [
1111
+ N(l.$slots, "tooltip-before", he(fe({ ...Be.value })), void 0, !0)
1112
+ ]),
1113
+ "tooltip-after": O(() => [
1114
+ N(l.$slots, "tooltip-after", he(fe({ ...Be.value })), void 0, !0)
1115
+ ]),
1116
+ default: O(() => [
1117
+ e.value.style.tooltip.showShape ? (u(), i("div", ya, [
1118
+ (u(), i("svg", ca, [
1119
+ Fe(kt, {
1120
+ shape: f.value.shape,
1121
+ color: f.value.color,
1122
+ plot: { x: 10, y: 10 },
1123
+ radius: 7
1124
+ }, null, 8, ["shape", "color"])
1125
+ ]))
1126
+ ])) : g("", !0)
1127
+ ]),
1128
+ _: 3
1129
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1130
+ Ye.value ? (u(), oe(n(Mt), {
1131
+ key: 6,
1132
+ hideDetails: "",
1133
+ config: {
1134
+ open: R.value.showTable,
1135
+ maxHeight: 1e4,
1136
+ body: {
1137
+ backgroundColor: e.value.style.backgroundColor,
1138
+ color: e.value.style.color
1139
+ },
1140
+ head: {
1141
+ backgroundColor: e.value.style.backgroundColor,
1142
+ color: e.value.style.color
1143
+ }
1144
+ }
1145
+ }, {
1146
+ content: O(() => [
1147
+ (u(), oe(n($t), {
1148
+ key: `table_${qe.value}`,
1149
+ colNames: be.value.colNames,
1150
+ head: be.value.head,
1151
+ body: be.value.body,
1152
+ config: be.value.config,
1153
+ title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
1154
+ onClose: s[1] || (s[1] = (t) => R.value.showTable = !1)
1155
+ }, {
1156
+ th: O(({ th: t }) => [
1157
+ Vt(X(t), 1)
1158
+ ]),
1159
+ td: O(({ td: t }) => [
1160
+ t.shape ? (u(), i("div", da, [
1161
+ k("span", null, X(t.content), 1)
1162
+ ])) : (u(), i("div", {
1163
+ key: 1,
1164
+ innerHTML: t
1165
+ }, null, 8, ha))
1166
+ ]),
1167
+ _: 1
1168
+ }, 8, ["colNames", "head", "body", "config", "title"]))
1169
+ ]),
1170
+ _: 1
1171
+ }, 8, ["config"])) : g("", !0),
1172
+ n(Ze) ? (u(), oe(yl, { key: 7 })) : g("", !0)
1173
+ ], 46, xl));
1174
+ }
1175
+ }, La = /* @__PURE__ */ ml(fa, [["__scopeId", "data-v-1fb1905d"]]);
1176
+ export {
1177
+ La as default
1178
+ };