vue-data-ui 3.0.21 → 3.0.22

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 (91) hide show
  1. package/dist/{Arrow-Dy15e-dD.js → Arrow-C3_2GkYQ.js} +1 -1
  2. package/dist/{BaseDraggableDialog-jyXg9mGS.js → BaseDraggableDialog-BhxUDwEm.js} +2 -2
  3. package/dist/{BaseIcon-BEl3aSEq.js → BaseIcon-B717hnWR.js} +1 -1
  4. package/dist/{ColorPicker-D-eozXS7.js → ColorPicker-CH5_RNaK.js} +2 -2
  5. package/dist/{DataTable-VUb4sxEy.js → DataTable-Y5T9UxMO.js} +2 -2
  6. package/dist/{Legend-wSf6FP1m.js → Legend-DkU3at-b.js} +4 -4
  7. package/dist/{NonSvgPenAndPaper-D9YjJzts.js → NonSvgPenAndPaper-DCJGSteM.js} +3 -3
  8. package/dist/{PackageVersion-SHciLNhd.js → PackageVersion-CE7HSich.js} +1 -1
  9. package/dist/{PenAndPaper-DAMRtv31.js → PenAndPaper-BMHsOtT8.js} +3 -3
  10. package/dist/{Shape-DrZ0OdhQ.js → Shape-C3J8aKNH.js} +1 -1
  11. package/dist/{Slicer-CFrDcG8e.js → Slicer-BEBDljWA.js} +2 -2
  12. package/dist/{SparkTooltip-CM99lrwi.js → SparkTooltip-CVSZQtoP.js} +1 -1
  13. package/dist/{Title-BxcifEA_.js → Title-BL-IjQmj.js} +1 -1
  14. package/dist/{Tooltip-Up71oSOQ.js → Tooltip-CCnDaboi.js} +1 -1
  15. package/dist/{UserOptions-BZSqCO6T.js → UserOptions-BWMV0_Ze.js} +2 -2
  16. package/dist/{dom-to-png-DmYxzIcS.js → dom-to-png-DwUGURhV.js} +1 -1
  17. package/dist/{img-BOLuyhii.js → img-DsVqerdt.js} +1 -1
  18. package/dist/{index-BUxsmTlt.js → index-BHb_mcWF.js} +2 -1
  19. package/dist/{pdf-Bt4b0a1v.js → pdf-Ckt8JtYf.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +1 -0
  22. package/dist/types/vue-data-ui.d.ts +1 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-CkrrSvWf.js → useAutoSizeLabelsInsideViewbox-Cy946l1e.js} +1 -1
  24. package/dist/{useNestedProp-eXSS1LSc.js → useNestedProp-aC9S6EFJ.js} +1 -1
  25. package/dist/{usePrinter-DTnCzjyR.js → usePrinter-B7rhbRrT.js} +2 -2
  26. package/dist/{vue-data-ui-SmhFdKsB.js → vue-data-ui-Bu7qDtf0.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BvXACbFw.js → vue-ui-3d-bar-CBfQ3Pcb.js} +6 -6
  29. package/dist/{vue-ui-accordion-D88pCEnD.js → vue-ui-accordion-DsnF0JuK.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-4IZXiB6W.js → vue-ui-age-pyramid-s8xyb3Gf.js} +6 -6
  31. package/dist/{vue-ui-annotator-DHtCT4aZ.js → vue-ui-annotator-DRacM62z.js} +2 -2
  32. package/dist/{vue-ui-bullet-BomS4N0d.js → vue-ui-bullet-DdDrdyOJ.js} +7 -7
  33. package/dist/{vue-ui-candlestick-DCe3k-nh.js → vue-ui-candlestick-BsNnInNt.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-CQMfZFK5.js → vue-ui-carousel-table-Ci9mrUBd.js} +4 -4
  35. package/dist/{vue-ui-chestnut-B8rMmJfG.js → vue-ui-chestnut-fHfJNK0V.js} +5 -5
  36. package/dist/{vue-ui-chord-fNE8lmdX.js → vue-ui-chord-0wf798ls.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-BmEOyisG.js → vue-ui-circle-pack-CuRHG8gr.js} +6 -6
  38. package/dist/{vue-ui-cursor-Bv9lKAZA.js → vue-ui-cursor-Bk5LHg5V.js} +2 -2
  39. package/dist/{vue-ui-dashboard-DT7wc1e2.js → vue-ui-dashboard-CjZMEYs6.js} +62 -62
  40. package/dist/{vue-ui-digits-D6UbEVnR.js → vue-ui-digits-nDIvHyRB.js} +2 -2
  41. package/dist/{vue-ui-donut-DIO3qH57.js → vue-ui-donut-CF9FdxfC.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-h3fR5uXj.js → vue-ui-donut-evolution-f5k-Yu3N.js} +8 -8
  43. package/dist/{vue-ui-dumbbell-CdRcmM_u.js → vue-ui-dumbbell-Dm3gsrzi.js} +7 -7
  44. package/dist/{vue-ui-flow-CF_msH-t.js → vue-ui-flow-K7UBguES.js} +7 -7
  45. package/dist/{vue-ui-funnel-DmcRES1g.js → vue-ui-funnel-DoDZbsTp.js} +6 -6
  46. package/dist/{vue-ui-galaxy-DZ51km_U.js → vue-ui-galaxy-BsDlHxzE.js} +5 -5
  47. package/dist/{vue-ui-gauge-DtnE5jLD.js → vue-ui-gauge-DkDpUAN7.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DSiiaVZc.js → vue-ui-gizmo-BD5fLs8r.js} +3 -3
  49. package/dist/{vue-ui-heatmap-C5RHo1Qh.js → vue-ui-heatmap-DOT2tBy_.js} +7 -7
  50. package/dist/{vue-ui-history-plot-C93GHLEV.js → vue-ui-history-plot-ICoBBO-y.js} +7 -7
  51. package/dist/{vue-ui-kpi-B_avAXzd.js → vue-ui-kpi-Dp2M2EFo.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Bmxrh6yK.js → vue-ui-mini-loader-C5672jjA.js} +2 -2
  53. package/dist/{vue-ui-molecule-roALyU1N.js → vue-ui-molecule-DgqVh2k0.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-DhmPnvHt.js → vue-ui-mood-radar-B-qhYUcB.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-Dw2dtR8x.js → vue-ui-nested-donuts-V6BvP3pF.js} +7 -7
  56. package/dist/{vue-ui-onion-GlMc77Za.js → vue-ui-onion-BKqqbWbg.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-C1k-n-I5.js → vue-ui-parallel-coordinate-plot-BZf24Zur.js} +8 -8
  58. package/dist/{vue-ui-quadrant-DgJjSrWa.js → vue-ui-quadrant-S58B2LrQ.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-DyDqFOjx.js → vue-ui-quick-chart-BVZSdQeT.js} +6 -6
  60. package/dist/{vue-ui-radar-FoPvLSAk.js → vue-ui-radar-Dh67mQ9E.js} +8 -8
  61. package/dist/{vue-ui-rating-CziY3pUC.js → vue-ui-rating-CncrxDCY.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CForAQz2.js → vue-ui-relation-circle-VYM1dclx.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BUlHZmq-.js → vue-ui-ridgeline-CsByERvm.js} +8 -8
  64. package/dist/{vue-ui-rings-CjN-AwVP.js → vue-ui-rings-CR2UfgnV.js} +8 -8
  65. package/dist/vue-ui-scatter-D2b-u5dv.js +1466 -0
  66. package/dist/{vue-ui-skeleton-I8pd1CTk.js → vue-ui-skeleton-BTuBaaE_.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHUx6D1z.js → vue-ui-smiley-D1UxJNbV.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DPuk0Nf6.js → vue-ui-spark-trend-BCP0BWMI.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-Dl756r7E.js → vue-ui-sparkbar-eBo-RSvE.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-BkD55_me.js → vue-ui-sparkgauge-DberOXWX.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-D5D8p3XY.js → vue-ui-sparkhistogram-CoKQGG5X.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Bkhl37Zb.js → vue-ui-sparkline-B_L4UNES.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CLXh0ajc.js → vue-ui-sparkstackbar-iAaRIyqb.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DydyVhUu.js → vue-ui-stackbar-B_0PJ7R2.js} +9 -9
  75. package/dist/{vue-ui-strip-plot-qxqB-i-7.js → vue-ui-strip-plot-CWkA4l9P.js} +7 -7
  76. package/dist/{vue-ui-table-C14bpo4K.js → vue-ui-table-CILVy7YP.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-sbrbQC65.js → vue-ui-table-heatmap-DL2n2Z7p.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BvDzi3zb.js → vue-ui-table-sparkline-DOt2EKpe.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Ds4IY1Hc.js → vue-ui-thermometer-BTP1ic_T.js} +7 -7
  80. package/dist/{vue-ui-timer-C_0cPSWF.js → vue-ui-timer-Bc-zJH9j.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DPKdLMMj.js → vue-ui-tiremarks-B9n528e1.js} +6 -6
  82. package/dist/{vue-ui-treemap-C47xpXO5.js → vue-ui-treemap-Cl9qo9O-.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-BjfU9QPZ.js → vue-ui-vertical-bar-CK2j09gJ.js} +9 -9
  84. package/dist/{vue-ui-waffle-ZiMyyjgI.js → vue-ui-waffle-DJkqgqlR.js} +8 -8
  85. package/dist/{vue-ui-wheel-CP_QqSYy.js → vue-ui-wheel-CcbgpIUr.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-DeWZPGpY.js → vue-ui-word-cloud-CZ_TRf4o.js} +6 -6
  87. package/dist/{vue-ui-world-C9BoO5Yy.js → vue-ui-world-DLmB_Z96.js} +6 -6
  88. package/dist/{vue-ui-xy-utURgiV0.js → vue-ui-xy-KmrNT6qh.js} +9 -9
  89. package/dist/{vue-ui-xy-canvas-DPH9pIHo.js → vue-ui-xy-canvas-6VYNyX6a.js} +8 -8
  90. package/package.json +1 -1
  91. package/dist/vue-ui-scatter-p46Oze4v.js +0 -1288
@@ -1,1288 +0,0 @@
1
- import { defineAsyncComponent as de, computed as P, ref as b, toRefs as Gt, watch as Ye, shallowRef as bt, onMounted as qt, onBeforeUnmount as Ht, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as oe, normalizeClass as kt, createBlock as Q, createCommentVNode as f, createElementVNode as p, createVNode as We, createSlots as Zt, withCtx as X, renderSlot as F, normalizeProps as he, guardReactiveProps as fe, Fragment as H, renderList as ee, toDisplayString as R, Teleport as Jt, createTextVNode as Kt, nextTick as Qt } from "vue";
2
- import { u as el, c as tl, t as ll, a as al, p as ie, b as ol, o as wt, f as Ie, d as sl, g as _t, Y as ul, e as De, a3 as nl, V as il, X as rl, s as Re, Z as vl, k as se, h as j, i as Z, v as yl, w as cl, y as dl, z as hl } from "./index-BUxsmTlt.js";
3
- import { t as fl, u as gl } from "./useResponsive-DfdjqQps.js";
4
- import { u as pl, B as ml } from "./useLoading-D7YHNtLX.js";
5
- import { u as xl } from "./usePrinter-DTnCzjyR.js";
6
- import { u as Mt } from "./useNestedProp-eXSS1LSc.js";
7
- import { u as bl } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as kl } from "./useChartAccessibility-9icAAmYg.js";
9
- import wl from "./Legend-wSf6FP1m.js";
10
- import _l from "./Title-BxcifEA_.js";
11
- import { _ as $t } from "./Shape-DrZ0OdhQ.js";
12
- import Ml from "./img-BOLuyhii.js";
13
- import { _ as $l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Al = ["id"], Cl = ["id"], Sl = ["xmlns", "viewBox"], Bl = ["width", "height"], Ll = { key: 1 }, zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pl = { key: 2 }, Ol = ["id"], Nl = ["stop-color"], El = ["stop-color"], Xl = ["id"], Fl = ["stop-color"], Yl = ["stop-color"], Wl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Il = ["x", "y", "width", "height", "onMouseenter"], Dl = {
15
- key: 2,
16
- style: { "pointer-events": "none" }
17
- }, Rl = ["x", "y", "width", "height", "fill", "fill-opacity"], jl = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], Vl = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], Ul = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Gl = ["x", "y", "width", "height", "onMouseenter"], ql = {
18
- key: 2,
19
- style: { "pointer-events": "none" }
20
- }, Hl = ["x", "y", "width", "height", "fill", "fill-opacity"], Zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Kl = {
21
- key: 0,
22
- style: { "pointer-events": "none" }
23
- }, Ql = ["d", "stroke", "stroke-width"], ea = ["d", "stroke", "stroke-width"], ta = ["d", "stroke", "stroke-width"], la = ["d", "stroke", "stroke-width"], aa = { key: 3 }, oa = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], sa = { key: 0 }, ua = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], na = { key: 1 }, ia = {
24
- key: 4,
25
- style: { "pointer-events": "none !important" }
26
- }, ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ya = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ca = ["x", "y", "font-size", "fill", "font-weight"], da = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ha = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], fa = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ga = ["id", "transform", "font-size", "font-weight", "fill"], pa = ["font-size", "fill", "transform"], ma = ["transform", "font-size", "fill"], xa = ["x", "y", "font-size", "fill"], ba = ["x", "y", "font-size", "fill"], ka = ["font-size", "font-weight", "fill", "x", "y"], wa = ["id"], _a = ["x", "y", "width", "height"], Ma = {
27
- key: 9,
28
- style: { pointerEvents: "none" }
29
- }, $a = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Aa = ["x", "y", "fill", "font-size", "font-weight"], Ca = {
30
- key: 4,
31
- class: "vue-data-ui-watermark"
32
- }, Sa = ["id"], Ba = ["onClick"], La = {
33
- key: 0,
34
- style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
35
- }, za = {
36
- viewBox: "0 0 20 20",
37
- height: "20",
38
- width: "20",
39
- style: { overflow: "hidden", background: "transparent" }
40
- }, Ta = { key: 0 }, Pa = ["innerHTML"], Oa = {
41
- __name: "vue-ui-scatter",
42
- props: {
43
- config: {
44
- type: Object,
45
- default() {
46
- return {};
47
- }
48
- },
49
- dataset: {
50
- type: Array,
51
- default() {
52
- return [];
53
- }
54
- }
55
- },
56
- setup(At, { expose: Ct }) {
57
- const St = de(() => import("./vue-ui-accordion-D88pCEnD.js")), Bt = de(() => import("./DataTable-VUb4sxEy.js")), Lt = de(() => import("./PackageVersion-SHciLNhd.js")), zt = de(() => import("./PenAndPaper-DAMRtv31.js")), Tt = de(() => import("./Tooltip-Up71oSOQ.js")), Pt = de(() => import("./UserOptions-BZSqCO6T.js")), { vue_ui_scatter: Ot } = el(), J = At, je = P(() => !!J.dataset && J.dataset.length), O = b(tl()), Nt = b(null), $e = b(!1), Ae = b(""), Ve = b(0), te = b(null), Ue = b(null), Ge = b(null), qe = b(null), He = b(null), Ze = b(0), Je = b(0), Ke = b(0), T = b([]), Qe = b(!1), ge = b(null), pe = b(null), Ce = b(null), Et = b(null), Xt = b(null), Se = b(null), e = b(Te());
58
- function Ft(l = 100, u = 0.8, t = {}) {
59
- const { meanX: a = 0, sdX: s = 1, meanY: v = 0, sdY: g = 1, seed: L } = t;
60
- let z = (L ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
61
- const N = () => (z = z * 1664525 + 1013904223 >>> 0, z / 2 ** 32), Y = () => {
62
- let c = 0, C = 0;
63
- for (; c === 0; ) c = N();
64
- for (; C === 0; ) C = N();
65
- return Math.sqrt(-2 * Math.log(c)) * Math.cos(2 * Math.PI * C);
66
- }, h = l / 2, _ = Array.from({ length: h }, Y), D = Array.from({ length: h }, Y), M = (c) => c.reduce((C, be) => C + be, 0) / c.length, W = M(_), K = M(D);
67
- for (let c = 0; c < h; c += 1)
68
- _[c] -= W, D[c] -= K;
69
- const $ = (c, C) => c.reduce((be, Me, Fe) => be + Me * C[Fe], 0), x = (c) => $(c, c), y = $(D, _) / x(_), w = D.map((c, C) => c - y * _[C]), I = x(_) / h, G = x(w) / h, ae = Math.sqrt((1 - u * u) * I / G), E = _.map((c, C) => u * c + ae * w[C]), ne = _.concat(_.map((c) => -c)), Xe = E.concat(E.map((c) => -c)), me = (c) => Math.sqrt(x(c) / c.length), ye = (c, C, be) => {
70
- const Me = me(c);
71
- return c.map((Fe) => be + (Me ? Fe / Me * C : 0));
72
- }, ce = ye(ne, s, a), xe = ye(Xe, g, v);
73
- for (let c = ce.length - 1; c > 0; c -= 1) {
74
- const C = Math.floor(N() * (c + 1));
75
- [ce[c], ce[C]] = [ce[C], ce[c]], [xe[c], xe[C]] = [xe[C], xe[c]];
76
- }
77
- return ce.map((c, C) => ({ x: c, y: xe[C] }));
78
- }
79
- const { loading: et, FINAL_DATASET: Be, manualLoading: Le } = pl({
80
- ...Gt(J),
81
- FINAL_CONFIG: e,
82
- prepareConfig: Te,
83
- skeletonDataset: [
84
- {
85
- name: "",
86
- color: "#999999",
87
- values: Ft(100, 0.5, { seed: 42 })
88
- }
89
- ],
90
- skeletonConfig: ll({
91
- defaultConfig: e.value,
92
- userConfig: {
93
- userOptions: { show: !1 },
94
- table: { show: !1 },
95
- useCssAnimation: !1,
96
- style: {
97
- backgroundColor: "#99999930",
98
- layout: {
99
- axis: {
100
- stroke: "#6A6A6A"
101
- },
102
- correlation: {
103
- label: { show: !1 }
104
- },
105
- dataLabels: {
106
- xAxis: { show: !1 },
107
- yAxis: { show: !1 }
108
- },
109
- marginalBars: {
110
- fill: "#99999960"
111
- },
112
- padding: { top: 12, right: 12, bottom: 12, left: 12 },
113
- plots: {
114
- stroke: "#6A6A6A"
115
- }
116
- },
117
- legend: {
118
- backgroundColor: "transparent"
119
- }
120
- }
121
- }
122
- })
123
- }), { userOptionsVisible: ze, setUserOptionsVisibility: tt, keepUserOptionState: lt } = bl({ config: e.value }), { svgRef: at } = kl({ config: e.value.style.title });
124
- function Te() {
125
- const l = Mt({
126
- userConfig: J.config,
127
- defaultConfig: Ot
128
- });
129
- return l.theme ? {
130
- ...Mt({
131
- userConfig: ol.vue_ui_scatter[l.theme] || J.config,
132
- defaultConfig: l
133
- }),
134
- customPalette: al[l.theme] || ie
135
- } : l;
136
- }
137
- Ye(() => J.config, (l) => {
138
- et.value || (e.value = Te()), ze.value = !e.value.userOptions.showOnChartHover, ot(), Ze.value += 1, Je.value += 1, Ke.value += 1, V.value.showTable = e.value.table.show, V.value.showTooltip = e.value.style.tooltip.show;
139
- }, { deep: !0 }), Ye(() => J.dataset, (l) => {
140
- Array.isArray(l) && l.length > 0 && (Le.value = !1);
141
- }, { deep: !0 });
142
- const le = bt(null), re = bt(null);
143
- qt(() => {
144
- Qe.value = !0, ot();
145
- });
146
- const Yt = P(() => !!e.value.debug);
147
- function ot() {
148
- if (wt(J.dataset) && (Ie({
149
- componentName: "VueUiScatter",
150
- type: "dataset",
151
- debug: Yt.value
152
- }), Le.value = !0), wt(J.dataset) || (Le.value = e.value.loading), e.value.responsive) {
153
- const l = fl(() => {
154
- const { width: u, height: t } = gl({
155
- chart: te.value,
156
- title: e.value.style.title.text ? Ue.value : null,
157
- legend: e.value.style.legend.show ? Ge.value : null,
158
- source: qe.value,
159
- noTitle: He.value
160
- });
161
- requestAnimationFrame(() => {
162
- S.value.width = u, S.value.height = t;
163
- });
164
- });
165
- le.value && (re.value && le.value.unobserve(re.value), le.value.disconnect()), le.value = new ResizeObserver(l), re.value = te.value.parentNode, le.value.observe(re.value);
166
- }
167
- }
168
- Ht(() => {
169
- le.value && (re.value && le.value.unobserve(re.value), le.value.disconnect());
170
- });
171
- const { isPrinting: st, isImaging: ut, generatePdf: nt, generateImage: it } = xl({
172
- elementId: `vue-ui-scatter_${O.value}`,
173
- fileName: e.value.style.title.text || "vue-ui-scatter",
174
- options: e.value.userOptions.print
175
- }), Wt = P(() => e.value.userOptions.show && !e.value.style.title.text), rt = P(() => sl(e.value.customPalette)), V = b({
176
- showTable: e.value.table.show,
177
- showTooltip: e.value.style.tooltip.show
178
- });
179
- Ye(e, () => {
180
- V.value = {
181
- showTable: e.value.table.show,
182
- showTooltip: e.value.style.tooltip.show
183
- };
184
- }, { immediate: !0 });
185
- const S = b({
186
- height: e.value.style.layout.height,
187
- width: e.value.style.layout.width
188
- }), ke = P(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), o = P(() => {
189
- let l = 0, u = 0;
190
- return Ce.value && (l = Ce.value.getBBox().width + 6), Se.value && (u = Se.value.getBBox().height + 6), {
191
- top: e.value.style.layout.padding.top + ke.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
192
- right: S.value.width - e.value.style.layout.padding.right - ke.value - 6,
193
- bottom: S.value.height - e.value.style.layout.padding.bottom - u,
194
- left: e.value.style.layout.padding.left + l,
195
- height: S.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - ke.value - u - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
196
- width: S.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - ke.value - l - 6
197
- };
198
- }), A = P(() => {
199
- Be.value.forEach((s, v) => {
200
- _t({
201
- datasetObject: s,
202
- requiredAttributes: ["values"]
203
- }).forEach((g) => {
204
- Ie({
205
- componentName: "VueUiScatter",
206
- type: "datasetSerieAttribute",
207
- property: g,
208
- index: v
209
- });
210
- }), s.values && s.values.forEach((g, L) => {
211
- _t({
212
- datasetObject: g,
213
- requiredAttributes: ["x", "y"]
214
- }).forEach((z) => {
215
- Ie({
216
- componentName: "VueUiScatter",
217
- type: "datasetSerieAttribute",
218
- property: `values.${z}`,
219
- index: `${v} - ${L}`
220
- });
221
- });
222
- });
223
- });
224
- const l = Math.min(...ue.value.filter((s) => !T.value.includes(s.id)).flatMap((s) => s.values.map((v) => v.x))), u = Math.max(...ue.value.filter((s) => !T.value.includes(s.id)).flatMap((s) => s.values.map((v) => v.x))), t = Math.min(...ue.value.filter((s) => !T.value.includes(s.id)).flatMap((s) => s.values.map((v) => v.y))), a = Math.max(...ue.value.filter((s) => !T.value.includes(s.id)).flatMap((s) => s.values.map((v) => v.y)));
225
- return { xMin: l >= 0 ? 0 : l, xMax: u, yMin: t >= 0 ? 0 : t, yMax: a };
226
- }), B = P(() => ({
227
- x: o.value.left + Math.abs(A.value.xMin) / (A.value.xMax + Math.abs(A.value.xMin)) * o.value.width,
228
- y: o.value.bottom - Math.abs(A.value.yMin) / (A.value.yMax + Math.abs(A.value.yMin)) * o.value.height
229
- })), ue = P(() => Be.value.map((l, u) => {
230
- const t = `cluster_${O.value}_${u}`;
231
- return {
232
- ...l,
233
- values: ul({
234
- data: l.values,
235
- threshold: e.value.downsample.threshold
236
- }),
237
- id: t,
238
- color: l.color ? l.color : rt.value[u] || ie[u] || ie[u % ie.length],
239
- opacity: T.value.includes(t) ? 0.5 : 1,
240
- shape: l.shape ?? "circle",
241
- segregate: () => ft(t),
242
- isSegregated: T.value.includes(t)
243
- };
244
- })), It = P(() => ({
245
- cy: "scatter-div-legend",
246
- backgroundColor: e.value.style.legend.backgroundColor,
247
- color: e.value.style.legend.color,
248
- fontSize: e.value.style.legend.fontSize,
249
- paddingBottom: 12,
250
- fontWeight: e.value.style.legend.bold ? "bold" : ""
251
- })), Pe = P(() => ue.value.map((l, u) => ({
252
- ...l,
253
- plots: l.values.map((t) => ({
254
- x: o.value.left + (t.x + Math.abs(A.value.xMin)) / (A.value.xMax + Math.abs(A.value.xMin)) * o.value.width,
255
- y: o.value.bottom - (t.y + Math.abs(A.value.yMin)) / (A.value.yMax + Math.abs(A.value.yMin)) * o.value.height,
256
- v: {
257
- ...t,
258
- name: t.name || ""
259
- },
260
- clusterName: l.name,
261
- color: l.color ? l.color : rt.value[u] || ie[u] || ie[u % ie.length],
262
- id: `plot_${O.value}_${Math.random()}`,
263
- weight: t.weight ?? e.value.style.layout.plots.radius
264
- }))
265
- })).filter((l) => !T.value.includes(l.id))), U = P(() => {
266
- const u = ({ m: t, b: a, rect: s, verticalX: v = null }) => {
267
- const { left: g, right: L, top: z, bottom: N } = s, Y = [], h = (x, y) => {
268
- Number.isFinite(x) && Number.isFinite(y) && Y.push({ x, y });
269
- }, _ = ({ x, y }) => x >= g - 1e-9 && x <= L + 1e-9 && y >= z - 1e-9 && y <= N + 1e-9;
270
- v !== null ? v >= g - 1e-9 && v <= L + 1e-9 && (h(v, z), h(v, N)) : Number.isFinite(t) && (h(g, t * g + a), h(L, t * L + a), Math.abs(t) > 1e-9 ? (h((z - a) / t, z), h((N - a) / t, N)) : a >= z - 1e-9 && a <= N + 1e-9 && (h(g, a), h(L, a)));
271
- const D = Y.filter(_), M = [];
272
- for (const x of D)
273
- M.some((y) => Math.abs(y.x - x.x) < 1e-6 && Math.abs(y.y - x.y) < 1e-6) || M.push(x);
274
- if (M.length < 2) return null;
275
- let W = M[0], K = M[1], $ = 0;
276
- for (let x = 0; x < M.length; x += 1)
277
- for (let y = x + 1; y < M.length; y += 1) {
278
- const w = M[x].x - M[y].x, I = M[x].y - M[y].y, G = w * w + I * I;
279
- G > $ && ($ = G, W = M[x], K = M[y]);
280
- }
281
- return { x1: W.x, y1: W.y, x2: K.x, y2: K.y };
282
- };
283
- return Pe.value.map((t) => {
284
- const a = t.plots.length, s = t.plots.reduce((y, w) => y + w.x, 0) / a, v = t.plots.reduce((y, w) => y + w.y, 0) / a;
285
- let g = 0, L = 0;
286
- for (const y of t.plots) {
287
- const w = y.x - s, I = y.y - v;
288
- g += w * I, L += w * w;
289
- }
290
- let z, N, Y = null;
291
- L < 1e-9 ? (Y = s, z = 1 / 0, N = null) : (z = g / L, N = v - z * s);
292
- let h, _;
293
- Y !== null ? (h = 1 / 0, _ = null) : (h = z, _ = N);
294
- const D = t.plots.every((y) => y.v && typeof y.v.x == "number" && typeof y.v.y == "number");
295
- let M = NaN;
296
- if (a >= 2) {
297
- let y = 0, w = 0;
298
- D ? (y = t.plots.reduce((E, ne) => E + ne.v.x, 0) / a, w = t.plots.reduce((E, ne) => E + ne.v.y, 0) / a) : (y = s, w = -v);
299
- let I = 0, G = 0, ae = 0;
300
- for (const E of t.plots) {
301
- const ne = D ? E.v.x : E.x, Xe = D ? E.v.y : -E.y, me = ne - y, ye = Xe - w;
302
- I += me * ye, G += me * me, ae += ye * ye;
303
- }
304
- if (G >= 1e-9 && ae >= 1e-9) {
305
- const E = I / Math.sqrt(G * ae);
306
- M = Math.max(-1, Math.min(1, E));
307
- }
308
- }
309
- const W = u({ m: h, b: _, rect: o.value, verticalX: Y });
310
- if (!W)
311
- return {
312
- ...t,
313
- correlation: null,
314
- label: null,
315
- plots: t.plots.map((y) => ({
316
- ...y,
317
- deviation: 0,
318
- shape: t.shape,
319
- color: De(t.color)
320
- }))
321
- };
322
- const K = (W.x1 + W.x2) / 2, $ = (W.y1 + W.y2) / 2, x = { x: K, y: $ };
323
- return {
324
- ...t,
325
- color: De(t.color),
326
- correlation: {
327
- ...W,
328
- coefficient: M
329
- },
330
- label: x,
331
- plots: t.plots.map((y) => {
332
- let w, I;
333
- Y !== null ? (w = Y, I = y.y) : Math.abs(h) < 1e-9 ? (w = y.x, I = _) : (w = (y.x + h * y.y - h * _) / (1 + h * h), I = (h * y.x + h * h * y.y + _) / (1 + h * h));
334
- const G = y.x - w, ae = y.y - I, E = Math.sqrt(G * G + ae * ae);
335
- return {
336
- ...y,
337
- deviation: E,
338
- shape: t.shape,
339
- color: De(t.color)
340
- };
341
- })
342
- };
343
- });
344
- }), vt = P(() => Math.max(...U.value.flatMap((l) => l.plots.map((u) => Math.abs(u.deviation)))));
345
- function Dt() {
346
- return U.value;
347
- }
348
- function yt(l, u) {
349
- const t = Array.isArray(l) ? l.flatMap(($) => $.plots.map((x) => ({
350
- x: x.x,
351
- y: x.y
352
- }))) : l.plots.map(($) => ({
353
- x: $.x,
354
- y: $.y
355
- }));
356
- let a = 1 / 0, s = -1 / 0, v = 1 / 0, g = -1 / 0;
357
- t.forEach(({ x: $, y: x }) => {
358
- a = Math.min(a, $), s = Math.max(s, $), v = Math.min(v, x), g = Math.max(g, x);
359
- });
360
- const L = s - a, z = g - v, N = L / u, Y = z / u, h = Array(u).fill(0), _ = Array(u).fill(0);
361
- t.forEach(({ x: $, y: x }) => {
362
- const y = Math.floor(($ - a) / N), w = Math.floor((x - v) / Y);
363
- h[y] || (h[y] = 0), _[w] || (_[w] = 0), h[y] += 1, _[w] += 1;
364
- });
365
- const D = [], M = [];
366
- for (let $ = 0; $ < u; $ += 1)
367
- D.push(a + ($ + 0.5) * N), M.push(v + ($ + 0.5) * Y);
368
- const W = Math.max(...h), K = Math.max(..._);
369
- return { x: h, y: _, avgX: D, avgY: M, maxX: W, maxY: K };
370
- }
371
- const d = P(() => e.value.style.layout.marginalBars.tranches), k = P(() => yt(Pe.value, d.value)), Rt = P(() => {
372
- const l = o.value.top - e.value.style.layout.marginalBars.offset, u = o.value.right + e.value.style.layout.marginalBars.offset;
373
- return Pe.value.map((t) => {
374
- const a = yt(t, d.value);
375
- return {
376
- coords: a,
377
- dX: il(a.avgX.map((s, v) => ({
378
- x: s,
379
- y: l - a.x[v] / a.maxX * e.value.style.layout.marginalBars.size
380
- }))),
381
- dY: nl(a.avgY.map((s, v) => ({
382
- y: s,
383
- x: u + e.value.style.layout.marginalBars.size * a.y[v] / a.maxY
384
- }))),
385
- color: t.color,
386
- id: t.id
387
- };
388
- });
389
- }), q = b(void 0), m = b(null), Oe = b(null);
390
- function ct(l, u) {
391
- q.value = l.id, m.value = l;
392
- let t = "";
393
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: u }), Oe.value = {
394
- datapoint: l,
395
- seriesIndex: u,
396
- series: U.value,
397
- config: e.value
398
- };
399
- const a = e.value.style.tooltip.customFormat;
400
- dl(a) && hl(() => a({
401
- datapoint: l,
402
- seriesIndex: u,
403
- series: U.value,
404
- config: e.value
405
- })) ? Ae.value = a({
406
- datapoint: l,
407
- seriesIndex: u,
408
- series: U.value,
409
- config: e.value
410
- }) : (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(
411
- e.value.style.layout.plots.selectors.labels.x.formatter,
412
- l.v.x,
413
- Z({
414
- p: e.value.style.tooltip.prefix,
415
- v: l.v.x,
416
- s: e.value.style.tooltip.suffix,
417
- r: e.value.style.tooltip.roundingValue
418
- }),
419
- { datapoint: l, seriesIndex: u }
420
- )}</b></div>`, t += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y) ? "-" : se(
421
- e.value.style.layout.plots.selectors.labels.y.formatter,
422
- l.v.y,
423
- Z({
424
- p: e.value.style.tooltip.prefix,
425
- v: l.v.y,
426
- s: e.value.style.tooltip.suffix,
427
- r: e.value.style.tooltip.roundingValue
428
- }),
429
- { datapoint: l, seriesIndex: u }
430
- )}</b></div>`, t += `${e.value.style.layout.plots.deviation.translation}: <b>${Z({
431
- v: l.deviation,
432
- r: e.value.style.layout.plots.deviation.roundingValue
433
- })}</b>`, t += "</div>", Ae.value = `<div>${t}</div>`), $e.value = !0;
434
- }
435
- function dt(l, u) {
436
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: u }), $e.value = !1, q.value = void 0, m.value = null;
437
- }
438
- function ht(l, u) {
439
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: u });
440
- }
441
- function ft(l) {
442
- T.value.includes(l) ? T.value = T.value.filter((u) => u !== l) : T.value.length < Be.value.length - 1 && T.value.push(l);
443
- }
444
- function gt(l = null) {
445
- Qt(() => {
446
- const u = ["", 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 = U.value.map((v) => [
447
- v.name,
448
- v.correlation.coefficient,
449
- v.plots.length,
450
- v.plots.map((g) => g.v.x).reduce((g, L) => g + L, 0) / v.plots.length,
451
- v.plots.map((g) => g.v.y).reduce((g, L) => g + L, 0) / v.plots.length
452
- ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([u]).concat(t), s = yl(a);
453
- l ? l(s) : cl({ csvContent: s, title: e.value.style.title.text || "vue-ui-heatmap" });
454
- });
455
- }
456
- const we = P(() => {
457
- const l = [
458
- e.value.table.translations.series,
459
- e.value.table.translations.correlationCoefficient,
460
- e.value.table.translations.nbrPlots,
461
- `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`,
462
- `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`
463
- ], u = U.value.map((a) => [
464
- {
465
- shape: a.shape,
466
- content: a.name,
467
- color: a.color
468
- },
469
- Number((a.correlation.coefficient ?? 0).toFixed(e.value.table.td.roundingValue)).toLocaleString(),
470
- a.plots.length.toLocaleString(),
471
- Number((a.plots.map((s) => s.v.x ?? 0).reduce((s, v) => s + v, 0) / a.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString(),
472
- Number((a.plots.map((s) => s.v.y ?? 0).reduce((s, v) => s + v, 0) / a.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString()
473
- ]), t = {
474
- th: {
475
- backgroundColor: e.value.table.th.backgroundColor,
476
- color: e.value.table.th.color,
477
- outline: e.value.table.th.outline
478
- },
479
- td: {
480
- backgroundColor: e.value.table.td.backgroundColor,
481
- color: e.value.table.td.color,
482
- outline: e.value.table.td.outline
483
- },
484
- breakpoint: e.value.table.responsiveBreakpoint
485
- };
486
- return { head: l, body: u, config: t, colNames: l };
487
- }), ve = b(!1);
488
- function pt(l) {
489
- ve.value = l, Ve.value += 1;
490
- }
491
- function mt() {
492
- V.value.showTable = !V.value.showTable;
493
- }
494
- function xt() {
495
- V.value.showTooltip = !V.value.showTooltip;
496
- }
497
- const _e = b(!1);
498
- function Ne() {
499
- _e.value = !_e.value;
500
- }
501
- async function jt({ scale: l = 2 } = {}) {
502
- if (!te.value) return;
503
- const { width: u, height: t } = te.value.getBoundingClientRect(), a = u / t, { imageUri: s, base64: v } = await Ml({ domElement: te.value, base64: !0, img: !0, scale: l });
504
- return {
505
- imageUri: s,
506
- base64: v,
507
- title: e.value.style.title.text,
508
- width: u,
509
- height: t,
510
- aspectRatio: a
511
- };
512
- }
513
- function Vt(l) {
514
- ge.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (pe.value = k.value.y.length - 2 - l);
515
- }
516
- function Ut(l) {
517
- pe.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (ge.value = l);
518
- }
519
- function Ee() {
520
- ge.value = null, pe.value = null;
521
- }
522
- return Ct({
523
- getData: Dt,
524
- getImage: jt,
525
- generatePdf: nt,
526
- generateCsv: gt,
527
- generateImage: it,
528
- toggleTable: mt,
529
- toggleTooltip: xt,
530
- toggleAnnotator: Ne,
531
- toggleFullscreen: pt
532
- }), (l, u) => (n(), i("div", {
533
- class: kt(`vue-ui-scatter ${ve.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
534
- ref_key: "scatterChart",
535
- ref: te,
536
- id: `vue-ui-scatter_${O.value}`,
537
- style: oe(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
538
- onMouseenter: u[4] || (u[4] = () => r(tt)(!0)),
539
- onMouseleave: u[5] || (u[5] = () => r(tt)(!1))
540
- }, [
541
- e.value.userOptions.buttons.annotator ? (n(), Q(r(zt), {
542
- key: 0,
543
- svgRef: r(at),
544
- backgroundColor: e.value.style.backgroundColor,
545
- color: e.value.style.color,
546
- active: _e.value,
547
- onClose: Ne
548
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
549
- Wt.value ? (n(), i("div", {
550
- key: 1,
551
- ref_key: "noTitle",
552
- ref: He,
553
- class: "vue-data-ui-no-title-space",
554
- style: "height:36px; width: 100%;background:transparent"
555
- }, null, 512)) : f("", !0),
556
- e.value.style.title.text ? (n(), i("div", {
557
- key: 2,
558
- ref_key: "chartTitle",
559
- ref: Ue,
560
- style: "width:100%;background:transparent"
561
- }, [
562
- (n(), Q(_l, {
563
- key: `title_${Ze.value}`,
564
- config: {
565
- title: {
566
- cy: "scatter-div-title",
567
- ...e.value.style.title
568
- },
569
- subtitle: {
570
- cy: "scatter-div-subtitle",
571
- ...e.value.style.title.subtitle
572
- }
573
- }
574
- }, null, 8, ["config"]))
575
- ], 512)) : f("", !0),
576
- p("div", {
577
- id: `legend-top-${O.value}`
578
- }, null, 8, Cl),
579
- e.value.userOptions.show && je.value && (r(lt) || r(ze)) ? (n(), Q(r(Pt), {
580
- ref_key: "details",
581
- ref: Nt,
582
- key: `user_options_${Ve.value}`,
583
- backgroundColor: e.value.style.backgroundColor,
584
- color: e.value.style.color,
585
- isImaging: r(ut),
586
- isPrinting: r(st),
587
- uid: O.value,
588
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
589
- hasPdf: e.value.userOptions.buttons.pdf,
590
- hasImg: e.value.userOptions.buttons.img,
591
- hasXls: e.value.userOptions.buttons.csv,
592
- hasTable: e.value.userOptions.buttons.table,
593
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
594
- isTooltip: V.value.showTooltip,
595
- isFullscreen: ve.value,
596
- titles: { ...e.value.userOptions.buttonTitles },
597
- chartElement: te.value,
598
- position: e.value.userOptions.position,
599
- hasAnnotator: e.value.userOptions.buttons.annotator,
600
- isAnnotation: _e.value,
601
- callbacks: e.value.userOptions.callbacks,
602
- printScale: e.value.userOptions.print.scale,
603
- onToggleFullscreen: pt,
604
- onGeneratePdf: r(nt),
605
- onGenerateCsv: gt,
606
- onGenerateImage: r(it),
607
- onToggleTable: mt,
608
- onToggleTooltip: xt,
609
- onToggleAnnotator: Ne,
610
- style: oe({
611
- visibility: r(lt) ? r(ze) ? "visible" : "hidden" : "visible"
612
- })
613
- }, Zt({ _: 2 }, [
614
- l.$slots.menuIcon ? {
615
- name: "menuIcon",
616
- fn: X(({ isOpen: t, color: a }) => [
617
- F(l.$slots, "menuIcon", he(fe({ isOpen: t, color: a })), void 0, !0)
618
- ]),
619
- key: "0"
620
- } : void 0,
621
- l.$slots.optionTooltip ? {
622
- name: "optionTooltip",
623
- fn: X(() => [
624
- F(l.$slots, "optionTooltip", {}, void 0, !0)
625
- ]),
626
- key: "1"
627
- } : void 0,
628
- l.$slots.optionPdf ? {
629
- name: "optionPdf",
630
- fn: X(() => [
631
- F(l.$slots, "optionPdf", {}, void 0, !0)
632
- ]),
633
- key: "2"
634
- } : void 0,
635
- l.$slots.optionCsv ? {
636
- name: "optionCsv",
637
- fn: X(() => [
638
- F(l.$slots, "optionCsv", {}, void 0, !0)
639
- ]),
640
- key: "3"
641
- } : void 0,
642
- l.$slots.optionImg ? {
643
- name: "optionImg",
644
- fn: X(() => [
645
- F(l.$slots, "optionImg", {}, void 0, !0)
646
- ]),
647
- key: "4"
648
- } : void 0,
649
- l.$slots.optionTable ? {
650
- name: "optionTable",
651
- fn: X(() => [
652
- F(l.$slots, "optionTable", {}, void 0, !0)
653
- ]),
654
- key: "5"
655
- } : void 0,
656
- l.$slots.optionFullscreen ? {
657
- name: "optionFullscreen",
658
- fn: X(({ toggleFullscreen: t, isFullscreen: a }) => [
659
- F(l.$slots, "optionFullscreen", he(fe({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
660
- ]),
661
- key: "6"
662
- } : void 0,
663
- l.$slots.optionAnnotator ? {
664
- name: "optionAnnotator",
665
- fn: X(({ toggleAnnotator: t, isAnnotator: a }) => [
666
- F(l.$slots, "optionAnnotator", he(fe({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
667
- ]),
668
- key: "7"
669
- } : void 0
670
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
671
- (n(), i("svg", {
672
- ref_key: "svgRef",
673
- ref: at,
674
- xmlns: r(rl),
675
- class: kt({ "vue-data-ui-fullscreen--on": ve.value, "vue-data-ui-fulscreen--off": !ve.value, animated: e.value.useCssAnimation }),
676
- viewBox: `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`,
677
- style: oe(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
678
- onMouseleave: Ee
679
- }, [
680
- We(r(Lt)),
681
- l.$slots["chart-background"] ? (n(), i("foreignObject", {
682
- key: 0,
683
- x: 0,
684
- y: 0,
685
- width: S.value.width <= 0 ? 10 : S.value.width,
686
- height: S.value.height <= 0 ? 10 : S.value.height,
687
- style: {
688
- pointerEvents: "none"
689
- }
690
- }, [
691
- F(l.$slots, "chart-background", {}, void 0, !0)
692
- ], 8, Bl)) : f("", !0),
693
- e.value.style.layout.axis.show ? (n(), i("g", Ll, [
694
- p("line", {
695
- x1: B.value.x,
696
- x2: B.value.x,
697
- y1: o.value.top,
698
- y2: o.value.bottom,
699
- stroke: e.value.style.layout.axis.stroke,
700
- "stroke-width": e.value.style.layout.axis.strokeWidth,
701
- "stroke-linecap": "round"
702
- }, null, 8, zl),
703
- p("line", {
704
- x1: o.value.left,
705
- x2: o.value.right,
706
- y1: B.value.y,
707
- y2: B.value.y,
708
- stroke: e.value.style.layout.axis.stroke,
709
- "stroke-width": e.value.style.layout.axis.strokeWidth,
710
- "stroke-linecap": "round"
711
- }, null, 8, Tl)
712
- ])) : f("", !0),
713
- e.value.style.layout.marginalBars.show ? (n(), i("g", Pl, [
714
- p("defs", null, [
715
- p("linearGradient", {
716
- id: `marginal_x_${O.value}`,
717
- x1: "0%",
718
- y1: "0%",
719
- x2: "0%",
720
- y2: "100%"
721
- }, [
722
- p("stop", {
723
- offset: "0%",
724
- "stop-color": e.value.style.layout.marginalBars.fill
725
- }, null, 8, Nl),
726
- p("stop", {
727
- offset: "100%",
728
- "stop-color": e.value.style.backgroundColor
729
- }, null, 8, El)
730
- ], 8, Ol),
731
- p("linearGradient", {
732
- id: `marginal_y_${O.value}`,
733
- x1: "0%",
734
- x2: "100%",
735
- y1: "0%",
736
- y2: "0%"
737
- }, [
738
- p("stop", {
739
- offset: "0%",
740
- "stop-color": e.value.style.backgroundColor
741
- }, null, 8, Fl),
742
- p("stop", {
743
- offset: "100%",
744
- "stop-color": e.value.style.layout.marginalBars.fill
745
- }, null, 8, Yl)
746
- ], 8, Xl)
747
- ]),
748
- (n(!0), i(H, null, ee(k.value.x, (t, a) => (n(), i("g", null, [
749
- t && k.value.avgX[a] ? (n(), i("rect", {
750
- key: 0,
751
- x: k.value.avgX[a] - o.value.width / d.value / 2,
752
- y: o.value.top - e.value.style.layout.marginalBars.offset - t / k.value.maxX * e.value.style.layout.marginalBars.size,
753
- width: o.value.width / d.value <= 0 ? 1e-4 : o.value.width / d.value,
754
- height: t / k.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / k.value.maxX * e.value.style.layout.marginalBars.size,
755
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${O.value})` : e.value.style.layout.marginalBars.fill,
756
- style: oe([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
757
- stroke: e.value.style.backgroundColor,
758
- "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
759
- rx: e.value.style.layout.marginalBars.borderRadius
760
- }, null, 12, Wl)) : f("", !0),
761
- k.value.avgX[a] ? (n(), i("rect", {
762
- key: 1,
763
- x: k.value.avgX[a] - o.value.width / d.value / 2,
764
- y: o.value.top - e.value.style.layout.marginalBars.offset - e.value.style.layout.marginalBars.size,
765
- width: o.value.width / d.value <= 0 ? 1e-4 : o.value.width / d.value,
766
- height: Math.max(0.1, e.value.style.layout.marginalBars.size),
767
- fill: "transparent",
768
- onMouseenter: (s) => Vt(a),
769
- onMouseleave: u[0] || (u[0] = (s) => Ee())
770
- }, null, 40, Il)) : f("", !0),
771
- k.value.avgX[a] && ge.value != null && ge.value === a ? (n(), i("g", Dl, [
772
- p("rect", {
773
- x: k.value.avgX[a] - o.value.width / d.value / 2,
774
- y: o.value.top,
775
- width: o.value.width / d.value <= 0 ? 1e-4 : o.value.width / d.value,
776
- height: o.value.height,
777
- fill: e.value.style.layout.marginalBars.highlighter.color,
778
- "fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
779
- }, null, 8, Rl),
780
- p("line", {
781
- x1: k.value.avgX[a] - o.value.width / d.value / 2,
782
- x2: k.value.avgX[a] - o.value.width / d.value / 2,
783
- y1: 0,
784
- y2: o.value.top + o.value.height,
785
- stroke: e.value.style.layout.marginalBars.highlighter.stroke,
786
- "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
787
- "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
788
- style: { transition: "none !important", animation: "none !important" }
789
- }, null, 8, jl),
790
- p("line", {
791
- x1: k.value.avgX[a] - o.value.width / d.value / 2 + (o.value.width / d.value <= 0 ? 1e-4 : o.value.width / d.value),
792
- x2: k.value.avgX[a] - o.value.width / d.value / 2 + (o.value.width / d.value <= 0 ? 1e-4 : o.value.width / d.value),
793
- y1: 0,
794
- y2: o.value.top + o.value.height,
795
- stroke: e.value.style.layout.marginalBars.highlighter.stroke,
796
- "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
797
- "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
798
- style: { transition: "none !important", animation: "none !important" }
799
- }, null, 8, Vl)
800
- ])) : f("", !0)
801
- ]))), 256)),
802
- (n(!0), i(H, null, ee(k.value.y, (t, a) => (n(), i("g", null, [
803
- t && k.value.avgY[a] ? (n(), i("rect", {
804
- key: 0,
805
- x: o.value.right + e.value.style.layout.marginalBars.offset,
806
- y: k.value.avgY[a] - o.value.height / d.value / 2,
807
- height: o.value.height / d.value <= 0 ? 1e-4 : o.value.height / d.value,
808
- width: t / k.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / k.value.maxY * e.value.style.layout.marginalBars.size,
809
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${O.value})` : e.value.style.layout.marginalBars.fill,
810
- style: oe([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
811
- stroke: e.value.style.backgroundColor,
812
- "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
813
- rx: e.value.style.layout.marginalBars.borderRadius
814
- }, null, 12, Ul)) : f("", !0),
815
- k.value.avgY[a] ? (n(), i("rect", {
816
- key: 1,
817
- x: o.value.right + e.value.style.layout.marginalBars.offset,
818
- y: k.value.avgY[a] - o.value.height / d.value / 2,
819
- width: Math.max(0.1, e.value.style.layout.marginalBars.size),
820
- height: o.value.height / d.value <= 0 ? 1e-4 : o.value.height / d.value,
821
- fill: "transparent",
822
- onMouseenter: (s) => Ut(a),
823
- onMouseleave: u[1] || (u[1] = (s) => Ee())
824
- }, null, 40, Gl)) : f("", !0),
825
- k.value.avgY[a] && pe.value != null && pe.value === a ? (n(), i("g", ql, [
826
- p("rect", {
827
- x: o.value.left,
828
- y: k.value.avgY[a] - o.value.height / d.value / 2,
829
- width: o.value.width,
830
- height: o.value.height / d.value <= 0 ? 1e-4 : o.value.height / d.value,
831
- fill: e.value.style.layout.marginalBars.highlighter.color,
832
- "fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
833
- }, null, 8, Hl),
834
- p("line", {
835
- x1: o.value.left,
836
- x2: S.value.width,
837
- y1: k.value.avgY[a] - o.value.height / d.value / 2,
838
- y2: k.value.avgY[a] - o.value.height / d.value / 2,
839
- stroke: e.value.style.layout.marginalBars.highlighter.stroke,
840
- "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
841
- "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
842
- style: { transition: "none !important", animation: "none !important" }
843
- }, null, 8, Zl),
844
- p("line", {
845
- x1: o.value.left,
846
- x2: S.value.width,
847
- y1: k.value.avgY[a] - o.value.height / d.value / 2 + (o.value.height / d.value <= 0 ? 1e-4 : o.value.height / d.value),
848
- y2: k.value.avgY[a] - o.value.height / d.value / 2 + (o.value.height / d.value <= 0 ? 1e-4 : o.value.height / d.value),
849
- stroke: e.value.style.layout.marginalBars.highlighter.stroke,
850
- "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
851
- "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
852
- style: { transition: "none !important", animation: "none !important" }
853
- }, null, 8, Jl)
854
- ])) : f("", !0)
855
- ]))), 256)),
856
- e.value.style.layout.marginalBars.showLines ? (n(), i("g", Kl, [
857
- (n(!0), i(H, null, ee(Rt.value, (t) => (n(), i(H, null, [
858
- T.value.includes(t.id) ? f("", !0) : (n(), i("path", {
859
- key: 0,
860
- d: `M ${t.dX}`,
861
- stroke: e.value.style.backgroundColor,
862
- "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth + 1,
863
- "stroke-linecap": "round",
864
- "stroke-linejoin": "round",
865
- fill: "none"
866
- }, null, 8, Ql)),
867
- T.value.includes(t.id) ? f("", !0) : (n(), i("path", {
868
- key: 1,
869
- d: `M ${t.dX}`,
870
- stroke: t.color,
871
- "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth,
872
- "stroke-linecap": "round",
873
- "stroke-linejoin": "round",
874
- fill: "none"
875
- }, null, 8, ea)),
876
- T.value.includes(t.id) ? f("", !0) : (n(), i("path", {
877
- key: 2,
878
- d: `M ${t.dY}`,
879
- stroke: e.value.style.backgroundColor,
880
- "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth + 1,
881
- "stroke-linecap": "round",
882
- "stroke-linejoin": "round",
883
- fill: "none"
884
- }, null, 8, ta)),
885
- T.value.includes(t.id) ? f("", !0) : (n(), i("path", {
886
- key: 3,
887
- d: `M ${t.dY}`,
888
- stroke: t.color,
889
- "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth,
890
- "stroke-linecap": "round",
891
- "stroke-linejoin": "round",
892
- fill: "none"
893
- }, null, 8, la))
894
- ], 64))), 256))
895
- ])) : f("", !0)
896
- ])) : f("", !0),
897
- e.value.style.layout.plots.giftWrap.show ? (n(), i("g", aa, [
898
- (n(!0), i(H, null, ee(U.value, (t, a) => (n(), i("g", null, [
899
- t.plots.length > 2 ? (n(), i("polygon", {
900
- key: 0,
901
- points: r(vl)({ series: t.plots }),
902
- fill: r(Re)(t.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
903
- "stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
904
- "stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
905
- stroke: t.color,
906
- "stroke-linejoin": "round",
907
- "stroke-linecap": "round"
908
- }, null, 8, oa)) : f("", !0)
909
- ]))), 256))
910
- ])) : f("", !0),
911
- (n(!0), i(H, null, ee(U.value, (t, a) => (n(), i("g", null, [
912
- !t.shape || t.shape === "circle" ? (n(), i("g", sa, [
913
- (n(!0), i(H, null, ee(t.plots, (s, v) => (n(), i("circle", {
914
- cx: s.x,
915
- cy: s.y,
916
- r: q.value && q.value === s.id ? s.weight * 2 : s.weight,
917
- fill: r(Re)(t.color, e.value.style.layout.plots.opacity * 100),
918
- stroke: e.value.style.layout.plots.stroke,
919
- "stroke-width": e.value.style.layout.plots.strokeWidth,
920
- style: oe(`opacity:${q.value && q.value === s.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(s.deviation) / vt.value : e.value.style.layout.plots.significance.show && Math.abs(s.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
921
- onMouseover: (g) => ct(s, a),
922
- onMouseleave: (g) => dt(s, a),
923
- onClick: (g) => ht(s, a)
924
- }, null, 44, ua))), 256))
925
- ])) : (n(), i("g", na, [
926
- (n(!0), i(H, null, ee(t.plots, (s, v) => (n(), Q($t, {
927
- plot: { x: s.x, y: s.y },
928
- radius: q.value && q.value === s.id ? s.weight * 2 : s.weight,
929
- shape: t.shape,
930
- color: r(Re)(t.color, e.value.style.layout.plots.opacity * 100),
931
- stroke: e.value.style.layout.plots.stroke,
932
- strokeWidth: e.value.style.layout.plots.strokeWidth,
933
- style: oe(`opacity:${q.value && q.value === s.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(s.deviation) / vt.value : e.value.style.layout.plots.significance.show && Math.abs(s.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
934
- onMouseover: (g) => ct(s, a),
935
- onMouseleave: (g) => dt(s, a),
936
- onClick: (g) => ht(s, a)
937
- }, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
938
- ]))
939
- ]))), 256)),
940
- m.value && e.value.style.layout.plots.selectors.show ? (n(), i("g", ia, [
941
- p("line", {
942
- x1: B.value.x,
943
- x2: m.value.x,
944
- y1: m.value.y,
945
- y2: m.value.y,
946
- stroke: e.value.style.layout.plots.selectors.stroke,
947
- "stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
948
- "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
949
- "stroke-linecap": "round",
950
- class: "line-pointer"
951
- }, null, 8, ra),
952
- p("line", {
953
- x1: m.value.x,
954
- x2: m.value.x,
955
- y1: B.value.y,
956
- y2: m.value.y,
957
- stroke: e.value.style.layout.plots.selectors.stroke,
958
- "stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
959
- "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
960
- "stroke-linecap": "round",
961
- class: "line-pointer"
962
- }, null, 8, va),
963
- p("text", {
964
- x: B.value.x + (m.value.x > B.value.x ? -6 : 6),
965
- y: m.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
966
- "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
967
- fill: e.value.style.layout.plots.selectors.labels.color,
968
- "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
969
- "text-anchor": m.value.x > B.value.x ? "end" : "start"
970
- }, R(r(se)(
971
- e.value.style.layout.plots.selectors.labels.y.formatter,
972
- r(j)(m.value.v.y),
973
- r(Z)({
974
- p: e.value.style.layout.plots.selectors.labels.prefix,
975
- v: r(j)(m.value.v.y),
976
- s: e.value.style.layout.plots.selectors.labels.suffix,
977
- r: e.value.style.layout.plots.selectors.labels.rounding
978
- }),
979
- { datapoint: m.value }
980
- )), 9, ya),
981
- p("text", {
982
- x: m.value.x,
983
- y: B.value.y + (m.value.y > B.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
984
- "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
985
- fill: e.value.style.layout.plots.selectors.labels.color,
986
- "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
987
- "text-anchor": "middle"
988
- }, R(r(se)(
989
- e.value.style.layout.plots.selectors.labels.y.formatter,
990
- r(j)(m.value.v.x),
991
- r(Z)({
992
- p: e.value.style.layout.plots.selectors.labels.prefix,
993
- v: r(j)(m.value.v.x),
994
- s: e.value.style.layout.plots.selectors.labels.suffix,
995
- r: e.value.style.layout.plots.selectors.labels.rounding
996
- }),
997
- { datapoint: m.value }
998
- )), 9, ca),
999
- p("circle", {
1000
- cx: B.value.x,
1001
- cy: m.value.y,
1002
- r: e.value.style.layout.plots.selectors.markers.radius,
1003
- fill: e.value.style.layout.plots.selectors.markers.fill,
1004
- stroke: e.value.style.layout.plots.selectors.markers.stroke,
1005
- "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
1006
- class: "line-pointer"
1007
- }, null, 8, da),
1008
- p("circle", {
1009
- cx: m.value.x,
1010
- cy: B.value.y,
1011
- r: e.value.style.layout.plots.selectors.markers.radius,
1012
- fill: e.value.style.layout.plots.selectors.markers.fill,
1013
- stroke: e.value.style.layout.plots.selectors.markers.stroke,
1014
- "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
1015
- class: "line-pointer"
1016
- }, null, 8, ha),
1017
- e.value.style.layout.plots.selectors.labels.showName ? (n(), i("text", {
1018
- key: 0,
1019
- x: m.value.x,
1020
- y: m.value.y + (m.value.y < B.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
1021
- "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
1022
- fill: e.value.style.layout.plots.selectors.labels.color,
1023
- "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
1024
- "text-anchor": m.value.x < o.value.left + 100 ? "start" : m.value.x > o.value.right - 100 ? "end" : m.value.x > B.value.x ? "start" : "end"
1025
- }, R(m.value.v.name), 9, fa)) : f("", !0)
1026
- ])) : f("", !0),
1027
- e.value.style.layout.dataLabels.xAxis.show ? (n(), i("g", {
1028
- key: 5,
1029
- ref_key: "xAxisLabelLeft",
1030
- ref: Ce
1031
- }, [
1032
- p("text", {
1033
- id: `vue-ui-scatter-xAxis-label-${O.value}`,
1034
- transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize}, ${o.value.top + o.value.height / 2}), rotate(-90)`,
1035
- "text-anchor": "middle",
1036
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
1037
- "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1038
- fill: e.value.style.layout.dataLabels.xAxis.color
1039
- }, R(e.value.style.layout.dataLabels.xAxis.name), 9, ga),
1040
- p("text", {
1041
- "text-anchor": "middle",
1042
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
1043
- fill: e.value.style.layout.dataLabels.xAxis.color,
1044
- transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${B.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
1045
- }, R(r(se)(
1046
- e.value.style.layout.plots.selectors.labels.x.formatter,
1047
- r(j)(A.value.xMin),
1048
- r(Z)({
1049
- p: e.value.style.layout.plots.selectors.labels.prefix,
1050
- v: r(j)(A.value.xMin),
1051
- s: e.value.style.layout.plots.selectors.labels.suffix,
1052
- r: e.value.style.layout.dataLabels.xAxis.rounding
1053
- })
1054
- )), 9, pa)
1055
- ], 512)) : f("", !0),
1056
- e.value.style.layout.dataLabels.xAxis.show ? (n(), i("text", {
1057
- key: 6,
1058
- ref_key: "xAxisLabelRight",
1059
- ref: Et,
1060
- "text-anchor": "middle",
1061
- transform: `translate(${o.value.right + e.value.style.layout.padding.right + 6}, ${B.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
1062
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
1063
- fill: e.value.style.layout.dataLabels.xAxis.color
1064
- }, R(r(se)(
1065
- e.value.style.layout.plots.selectors.labels.x.formatter,
1066
- r(j)(A.value.xMax),
1067
- r(Z)({
1068
- p: e.value.style.layout.plots.selectors.labels.prefix,
1069
- v: r(j)(A.value.xMax),
1070
- s: e.value.style.layout.plots.selectors.labels.suffix,
1071
- r: e.value.style.layout.dataLabels.xAxis.rounding
1072
- })
1073
- )), 9, ma)) : f("", !0),
1074
- e.value.style.layout.dataLabels.yAxis.show ? (n(), i("text", {
1075
- key: 7,
1076
- ref_key: "yAxisLabelTop",
1077
- ref: Xt,
1078
- x: B.value.x,
1079
- y: o.value.top - e.value.style.layout.dataLabels.yAxis.fontSize,
1080
- "text-anchor": "middle",
1081
- "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1082
- fill: e.value.style.layout.dataLabels.yAxis.color
1083
- }, R(r(se)(
1084
- e.value.style.layout.plots.selectors.labels.y.formatter,
1085
- r(j)(A.value.yMax),
1086
- r(Z)({
1087
- p: e.value.style.layout.plots.selectors.labels.prefix,
1088
- v: r(j)(A.value.yMax),
1089
- s: e.value.style.layout.plots.selectors.labels.suffix,
1090
- r: e.value.style.layout.dataLabels.yAxis.rounding
1091
- })
1092
- )), 9, xa)) : f("", !0),
1093
- e.value.style.layout.dataLabels.yAxis.show ? (n(), i("g", {
1094
- key: 8,
1095
- ref_key: "yAxisLabelBottom",
1096
- ref: Se
1097
- }, [
1098
- p("text", {
1099
- x: B.value.x,
1100
- y: S.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
1101
- "text-anchor": "middle",
1102
- "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1103
- fill: e.value.style.layout.dataLabels.yAxis.color
1104
- }, R(r(se)(
1105
- e.value.style.layout.plots.selectors.labels.y.formatter,
1106
- r(j)(A.value.yMin),
1107
- r(Z)({
1108
- p: e.value.style.layout.plots.selectors.labels.prefix,
1109
- v: r(j)(A.value.yMin),
1110
- s: e.value.style.layout.plots.selectors.labels.suffix,
1111
- r: e.value.style.layout.dataLabels.yAxis.rounding
1112
- })
1113
- )), 9, ba),
1114
- p("text", {
1115
- "text-anchor": "middle",
1116
- "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1117
- "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
1118
- fill: e.value.style.layout.dataLabels.yAxis.color,
1119
- x: o.value.left + o.value.width / 2,
1120
- y: S.value.height
1121
- }, R(e.value.style.layout.dataLabels.yAxis.name), 9, ka)
1122
- ], 512)) : f("", !0),
1123
- p("clipPath", {
1124
- id: `clip_path_${O.value}`
1125
- }, [
1126
- p("rect", {
1127
- x: o.value.left,
1128
- y: o.value.top,
1129
- width: o.value.width <= 0 ? 1e-4 : o.value.width,
1130
- height: o.value.height <= 0 ? 1e-4 : o.value.height
1131
- }, null, 8, _a)
1132
- ], 8, wa),
1133
- e.value.style.layout.correlation.show ? (n(), i("g", Ma, [
1134
- (n(!0), i(H, null, ee(U.value, (t, a) => (n(), i("line", {
1135
- x1: t.correlation.x1,
1136
- x2: t.correlation.x2,
1137
- y1: t.correlation.y1,
1138
- y2: t.correlation.y2,
1139
- "stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
1140
- stroke: t.color,
1141
- "stroke-width": e.value.style.layout.correlation.strokeWidth,
1142
- "clip-path": `url(#clip_path_${O.value})`
1143
- }, null, 8, $a))), 256)),
1144
- (n(!0), i(H, null, ee(U.value, (t, a) => (n(), i("g", null, [
1145
- e.value.style.layout.correlation.label.show ? (n(), i("text", {
1146
- key: 0,
1147
- x: t.correlation.x2,
1148
- y: t.correlation.y2,
1149
- fill: e.value.style.layout.correlation.label.useSerieColor ? t.color : e.value.style.layout.correlation.label.color,
1150
- "text-anchor": "end",
1151
- "font-size": e.value.style.layout.correlation.label.fontSize,
1152
- "font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
1153
- }, R(r(Z)({
1154
- v: r(j)(t.correlation.coefficient),
1155
- r: e.value.style.layout.correlation.label.roundingValue
1156
- })), 9, Aa)) : f("", !0)
1157
- ]))), 256))
1158
- ])) : f("", !0),
1159
- F(l.$slots, "svg", { svg: S.value }, void 0, !0)
1160
- ], 46, Sl)),
1161
- l.$slots.watermark ? (n(), i("div", Ca, [
1162
- F(l.$slots, "watermark", he(fe({ isPrinting: r(st) || r(ut) })), void 0, !0)
1163
- ])) : f("", !0),
1164
- p("div", {
1165
- id: `legend-bottom-${O.value}`
1166
- }, null, 8, Sa),
1167
- Qe.value ? (n(), Q(Jt, {
1168
- key: 5,
1169
- to: e.value.style.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
1170
- }, [
1171
- p("div", {
1172
- ref_key: "chartLegend",
1173
- ref: Ge
1174
- }, [
1175
- e.value.style.legend.show ? (n(), Q(wl, {
1176
- key: `legend_${Ke.value}`,
1177
- legendSet: ue.value,
1178
- config: It.value,
1179
- onClickMarker: u[2] || (u[2] = ({ legend: t }) => ft(t.id))
1180
- }, {
1181
- item: X(({ legend: t }) => [
1182
- p("div", {
1183
- onClick: (a) => t.segregate(),
1184
- style: oe(`opacity:${T.value.includes(t.id) ? 0.5 : 1}`)
1185
- }, R(t.name), 13, Ba)
1186
- ]),
1187
- _: 1
1188
- }, 8, ["legendSet", "config"])) : F(l.$slots, "legend", {
1189
- key: 1,
1190
- legend: ue.value
1191
- }, void 0, !0)
1192
- ], 512)
1193
- ], 8, ["to"])) : f("", !0),
1194
- l.$slots.source ? (n(), i("div", {
1195
- key: 6,
1196
- ref_key: "source",
1197
- ref: qe,
1198
- dir: "auto"
1199
- }, [
1200
- F(l.$slots, "source", {}, void 0, !0)
1201
- ], 512)) : f("", !0),
1202
- We(r(Tt), {
1203
- show: V.value.showTooltip && $e.value,
1204
- backgroundColor: e.value.style.tooltip.backgroundColor,
1205
- color: e.value.style.tooltip.color,
1206
- borderRadius: e.value.style.tooltip.borderRadius,
1207
- borderColor: e.value.style.tooltip.borderColor,
1208
- borderWidth: e.value.style.tooltip.borderWidth,
1209
- fontSize: e.value.style.tooltip.fontSize,
1210
- backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
1211
- position: e.value.style.tooltip.position,
1212
- offsetY: e.value.style.tooltip.offsetY,
1213
- parent: te.value,
1214
- content: Ae.value,
1215
- isFullscreen: ve.value,
1216
- isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
1217
- smooth: e.value.style.tooltip.smooth,
1218
- backdropFilter: e.value.style.tooltip.backdropFilter
1219
- }, {
1220
- "tooltip-before": X(() => [
1221
- F(l.$slots, "tooltip-before", he(fe({ ...Oe.value })), void 0, !0)
1222
- ]),
1223
- "tooltip-after": X(() => [
1224
- F(l.$slots, "tooltip-after", he(fe({ ...Oe.value })), void 0, !0)
1225
- ]),
1226
- default: X(() => [
1227
- e.value.style.tooltip.showShape ? (n(), i("div", La, [
1228
- (n(), i("svg", za, [
1229
- We($t, {
1230
- shape: m.value.shape,
1231
- color: m.value.color,
1232
- plot: { x: 10, y: 10 },
1233
- radius: 7
1234
- }, null, 8, ["shape", "color"])
1235
- ]))
1236
- ])) : f("", !0)
1237
- ]),
1238
- _: 3
1239
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1240
- je.value ? (n(), Q(r(St), {
1241
- key: 7,
1242
- hideDetails: "",
1243
- config: {
1244
- open: V.value.showTable,
1245
- maxHeight: 1e4,
1246
- body: {
1247
- backgroundColor: e.value.style.backgroundColor,
1248
- color: e.value.style.color
1249
- },
1250
- head: {
1251
- backgroundColor: e.value.style.backgroundColor,
1252
- color: e.value.style.color
1253
- }
1254
- }
1255
- }, {
1256
- content: X(() => [
1257
- (n(), Q(r(Bt), {
1258
- key: `table_${Je.value}`,
1259
- colNames: we.value.colNames,
1260
- head: we.value.head,
1261
- body: we.value.body,
1262
- config: we.value.config,
1263
- title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
1264
- onClose: u[3] || (u[3] = (t) => V.value.showTable = !1)
1265
- }, {
1266
- th: X(({ th: t }) => [
1267
- Kt(R(t), 1)
1268
- ]),
1269
- td: X(({ td: t }) => [
1270
- t.shape ? (n(), i("div", Ta, [
1271
- p("span", null, R(t.content), 1)
1272
- ])) : (n(), i("div", {
1273
- key: 1,
1274
- innerHTML: t
1275
- }, null, 8, Pa))
1276
- ]),
1277
- _: 1
1278
- }, 8, ["colNames", "head", "body", "config", "title"]))
1279
- ]),
1280
- _: 1
1281
- }, 8, ["config"])) : f("", !0),
1282
- r(et) ? (n(), Q(ml, { key: 8 })) : f("", !0)
1283
- ], 46, Al));
1284
- }
1285
- }, qa = /* @__PURE__ */ $l(Oa, [["__scopeId", "data-v-4a8dad75"]]);
1286
- export {
1287
- qa as default
1288
- };