vue-data-ui 3.0.0-next.0 → 3.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +92 -66
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-BKKETqRi.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-Duz4Bd3A.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BAHAKjob.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-oPTO1J9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-vByThHdN.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CIElSUHU.js} +11 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CsY6Bf4e.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-B0wGS6pw.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-7o0xS-d4.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-Blrp5ZfP.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-CcM8hzCn.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-iaouYun8.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-CWxjC3bE.js} +1 -1
  15. package/dist/{Tooltip-hVZUY_s5.js → Tooltip-Cq9HywcX.js} +1 -1
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-BEBaPSlU.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-CrAOuxmd.js} +1 -1
  18. package/dist/img-D3JvqNF8.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BSa4GlHG.js} +30 -8
  20. package/dist/pdf-DROWzopj.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1018 -166
  23. package/dist/types/vue-data-ui.d.ts +1018 -166
  24. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-uR74_CFG.js} +1 -1
  25. package/dist/{usePrinter-COkTjv6C.js → usePrinter-j3g1L2nh.js} +2 -2
  26. package/dist/vue-data-ui-BzMRz9Un.js +314 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-BAOGEe-m.js} +261 -245
  29. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DzF-SPaZ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-BRdQ44O4.js} +233 -217
  31. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-mjIKrhYa.js} +2 -2
  32. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-CLYmLvSB.js} +172 -156
  33. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-BFLmoEEN.js} +271 -254
  34. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-V89TMa5p.js} +17 -16
  35. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-C7eNjkFo.js} +418 -402
  36. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-BuYDLE7K.js} +256 -240
  37. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CCMbsOpk.js} +234 -218
  38. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-BrKIImfp.js} +2 -2
  39. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-WMKjx3iE.js} +62 -62
  40. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-BoYPIuXn.js} +2 -2
  41. package/dist/vue-ui-donut-DJVqqXEb.js +1338 -0
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-DSG8NUG0.js} +370 -357
  43. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-BMveoLd_.js} +216 -200
  44. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-Dnsik-8f.js} +217 -201
  45. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-CQ0nHCvy.js} +213 -197
  46. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-D5L31IXm.js} +215 -202
  47. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-BnuDe4Wj.js} +220 -204
  48. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DYYw-JEs.js} +3 -3
  49. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-9KJYiKzE.js} +244 -224
  50. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-QOaVWh5L.js} +268 -252
  51. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-EtTBwHGS.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CRnUCpsm.js} +2 -2
  53. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-Bfk3Vhbi.js} +204 -188
  54. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-BfRkWvgp.js} +206 -190
  55. package/dist/vue-ui-nested-donuts-Ck9Zm1UU.js +1177 -0
  56. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-DF7Z21x-.js} +196 -180
  57. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-JVogg7k5.js} +194 -178
  58. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-DpFjMZoK.js} +321 -305
  59. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-NfXEFkoL.js} +347 -331
  60. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-Dg8UovnR.js} +193 -177
  61. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-D3cpdLRt.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-BZTTPLCi.js} +188 -172
  63. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-CtY_J3hk.js} +212 -196
  64. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BiA-bRgU.js} +223 -210
  65. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-C3sCChYD.js} +288 -273
  66. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-DY48gQ96.js} +3 -3
  67. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DopwmgcY.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-DO7P-2x8.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-mqLbTvAg.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-CdfZYUAZ.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DAy--kFA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-KkG0FnmI.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-LDRannBB.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-Bys4yWs_.js} +497 -474
  75. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DUBqioS2.js} +241 -225
  76. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-CPWgP-71.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DfrMVDEE.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-CNC7Lp0t.js} +8 -7
  79. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-Bby5nWIi.js} +170 -154
  80. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-ym9etXUy.js} +5 -5
  81. package/dist/vue-ui-tiremarks-C0V_XedF.js +358 -0
  82. package/dist/vue-ui-treemap-B5k0NEO3.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DRmHFEMu.js} +335 -319
  84. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-DrEQsTIO.js} +234 -221
  85. package/dist/vue-ui-wheel-BOTBLBOr.js +352 -0
  86. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Btay9XOs.js} +249 -233
  87. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-zBvIXrWH.js} +239 -223
  88. package/dist/{vue-ui-xy-C_OUyzTC.js → vue-ui-xy-C7uPPKm9.js} +700 -686
  89. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-CDjYeEkq.js} +447 -431
  90. package/package.json +1 -1
  91. package/dist/img-BeMVTwmF.js +0 -20
  92. package/dist/pdf-DPxOdzfi.js +0 -51
  93. package/dist/vue-data-ui-nceqWRts.js +0 -301
  94. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  95. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  96. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  97. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  98. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
@@ -1,29 +1,30 @@
1
- import { defineAsyncComponent as H, computed as b, ref as h, watch as dt, shallowRef as Ge, onMounted as ht, onBeforeUnmount as pt, createElementBlock as i, openBlock as o, unref as u, normalizeStyle as j, normalizeClass as Ue, createBlock as R, createCommentVNode as c, createElementVNode as d, createVNode as ge, createSlots as ft, withCtx as _, renderSlot as M, normalizeProps as ee, guardReactiveProps as te, Fragment as W, renderList as Y, toDisplayString as C, createTextVNode as gt, nextTick as mt } from "vue";
2
- import { u as xt, c as bt, t as kt, p as Z, a as wt, o as _t, e as me, b as Mt, g as qe, Y as $t, a1 as Ct, V as At, X as zt, s as xe, Z as St, i as E, v as A, f as F, q as Tt, r as Lt, x as Bt, y as Ot } from "./index-DMqAxz7R.js";
3
- import { t as Nt, u as Pt } from "./useResponsive-DfdjqQps.js";
4
- import { u as He } from "./useNestedProp-YgN3FV_8.js";
5
- import { u as Wt } from "./usePrinter-COkTjv6C.js";
6
- import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as It } from "./useChartAccessibility-9icAAmYg.js";
8
- import Xt from "./Legend-Q4bOb-Nf.js";
9
- import Yt from "./Title-D29apS4l.js";
10
- import { _ as Ze } from "./Shape-DbsLJ-SE.js";
11
- import { _ as Dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { key: 1 }, Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], qt = { key: 2 }, Ht = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Zt = { key: 0 }, Jt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Kt = { key: 1 }, Qt = { key: 3 }, el = ["id"], tl = ["stop-color"], ll = ["stop-color"], al = ["id"], ol = ["stop-color"], sl = ["stop-color"], ul = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], rl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], il = { key: 0 }, nl = ["d", "stroke", "stroke-width"], vl = ["d", "stroke", "stroke-width"], yl = ["d", "stroke", "stroke-width"], cl = ["d", "stroke", "stroke-width"], dl = {
1
+ import { defineAsyncComponent as Z, computed as b, ref as h, watch as ht, shallowRef as Ge, onMounted as pt, onBeforeUnmount as ft, createElementBlock as r, openBlock as s, unref as u, normalizeStyle as j, normalizeClass as qe, createBlock as E, createCommentVNode as c, createElementVNode as d, createVNode as ge, createSlots as gt, withCtx as _, renderSlot as M, normalizeProps as te, guardReactiveProps as le, Fragment as W, renderList as Y, toDisplayString as C, createTextVNode as mt, nextTick as xt } from "vue";
2
+ import { u as bt, c as kt, t as wt, p as J, a as _t, o as Mt, e as me, b as $t, g as He, Y as Ct, a1 as At, V as St, X as zt, s as xe, Z as Tt, i as U, v as A, f as F, q as Lt, r as Bt, x as Ot, y as Nt } from "./index-BSa4GlHG.js";
3
+ import { t as Pt, u as Wt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ze } from "./useNestedProp-uR74_CFG.js";
5
+ import { u as Ft } from "./usePrinter-j3g1L2nh.js";
6
+ import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Yt from "./Legend-CIElSUHU.js";
9
+ import Dt from "./Title-CWxjC3bE.js";
10
+ import { _ as Je } from "./Shape-Blrp5ZfP.js";
11
+ import Rt from "./img-D3JvqNF8.js";
12
+ import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { key: 1 }, qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = { key: 2 }, Jt = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Kt = { key: 0 }, Qt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], el = { key: 1 }, tl = { key: 3 }, ll = ["id"], al = ["stop-color"], ol = ["stop-color"], sl = ["id"], ul = ["stop-color"], il = ["stop-color"], rl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], nl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], vl = { key: 0 }, yl = ["d", "stroke", "stroke-width"], cl = ["d", "stroke", "stroke-width"], dl = ["d", "stroke", "stroke-width"], hl = ["d", "stroke", "stroke-width"], pl = {
13
14
  key: 4,
14
15
  style: { "pointer-events": "none !important" }
15
- }, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], gl = ["x", "y", "font-size", "fill", "font-weight"], ml = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], xl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], bl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], kl = { key: 5 }, wl = ["x", "y", "font-size", "fill"], _l = ["x", "y", "font-size", "fill"], Ml = ["id", "transform", "font-size", "font-weight", "fill"], $l = { key: 6 }, Cl = ["x", "y", "font-size", "fill"], Al = ["x", "y", "font-size", "fill"], zl = ["font-size", "font-weight", "fill", "x", "y"], Sl = ["id"], Tl = ["x", "y", "width", "height"], Ll = { key: 7 }, Bl = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Ol = ["x", "y", "fill", "font-size", "font-weight"], Nl = {
16
+ }, fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ml = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], xl = ["x", "y", "font-size", "fill", "font-weight"], bl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], kl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], wl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], _l = { key: 5 }, Ml = ["x", "y", "font-size", "fill"], $l = ["x", "y", "font-size", "fill"], Cl = ["id", "transform", "font-size", "font-weight", "fill"], Al = { key: 6 }, Sl = ["x", "y", "font-size", "fill"], zl = ["x", "y", "font-size", "fill"], Tl = ["font-size", "font-weight", "fill", "x", "y"], Ll = ["id"], Bl = ["x", "y", "width", "height"], Ol = { key: 7 }, Nl = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Pl = ["x", "y", "fill", "font-size", "font-weight"], Wl = {
16
17
  key: 5,
17
18
  class: "vue-data-ui-watermark"
18
- }, Pl = ["onClick"], Wl = {
19
+ }, Fl = ["onClick"], Il = {
19
20
  key: 0,
20
21
  style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
21
- }, Fl = {
22
+ }, Xl = {
22
23
  viewBox: "0 0 20 20",
23
24
  height: "20",
24
25
  width: "20",
25
26
  style: { overflow: "hidden", background: "transparent" }
26
- }, Il = { key: 0 }, Xl = ["innerHTML"], Yl = {
27
+ }, Yl = { key: 0 }, Dl = ["innerHTML"], Rl = {
27
28
  __name: "vue-ui-scatter",
28
29
  props: {
29
30
  config: {
@@ -39,59 +40,59 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
39
40
  }
40
41
  }
41
42
  },
42
- setup(Je, { expose: Ke }) {
43
- const Qe = H(() => import("./vue-ui-accordion-P6eFHGQp.js")), et = H(() => import("./DataTable-BBbOgI-a.js")), tt = H(() => import("./PackageVersion-D0VPY8-5.js")), lt = H(() => import("./PenAndPaper-DhBJsnob.js")), at = H(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), ot = H(() => import("./Tooltip-hVZUY_s5.js")), st = H(() => import("./UserOptions-Bdit7AWO.js")), { vue_ui_scatter: ut } = xt(), I = Je, ae = b(() => !!I.dataset && I.dataset.length), z = h(bt()), rt = h(null), ie = h(!1), ne = h(""), be = h(0), le = h(null), ke = h(null), we = h(null), _e = h(null), Me = h(null), $e = h(0), Ce = h(0), Ae = h(0), e = b({
43
+ setup(Ke, { expose: Qe }) {
44
+ const et = Z(() => import("./vue-ui-accordion-DzF-SPaZ.js")), tt = Z(() => import("./DataTable-vByThHdN.js")), lt = Z(() => import("./PackageVersion-B0wGS6pw.js")), at = Z(() => import("./PenAndPaper-7o0xS-d4.js")), ot = Z(() => import("./vue-ui-skeleton-DY48gQ96.js")), st = Z(() => import("./Tooltip-Cq9HywcX.js")), ut = Z(() => import("./UserOptions-BEBaPSlU.js")), { vue_ui_scatter: it } = bt(), I = Ke, ae = b(() => !!I.dataset && I.dataset.length), S = h(kt()), rt = h(null), re = h(!1), ne = h(""), be = h(0), D = h(null), ke = h(null), we = h(null), _e = h(null), Me = h(null), $e = h(0), Ce = h(0), Ae = h(0), x = h([]), e = b({
44
45
  get: () => Le(),
45
46
  set: (t) => t
46
- }), { userOptionsVisible: ve, setUserOptionsVisibility: ze, keepUserOptionState: Se } = Ft({ config: e.value }), { svgRef: Te } = It({ config: e.value.style.title });
47
+ }), { userOptionsVisible: ve, setUserOptionsVisibility: Se, keepUserOptionState: ze } = It({ config: e.value }), { svgRef: Te } = Xt({ config: e.value.style.title });
47
48
  function Le() {
48
- const t = He({
49
+ const t = Ze({
49
50
  userConfig: I.config,
50
- defaultConfig: ut
51
+ defaultConfig: it
51
52
  });
52
53
  return t.theme ? {
53
- ...He({
54
- userConfig: wt.vue_ui_scatter[t.theme] || I.config,
54
+ ...Ze({
55
+ userConfig: _t.vue_ui_scatter[t.theme] || I.config,
55
56
  defaultConfig: t
56
57
  }),
57
- customPalette: kt[t.theme] || Z
58
+ customPalette: wt[t.theme] || J
58
59
  } : t;
59
60
  }
60
- dt(() => I.config, (t) => {
61
+ ht(() => I.config, (t) => {
61
62
  e.value = Le(), ve.value = !e.value.userOptions.showOnChartHover, Be(), $e.value += 1, Ce.value += 1, Ae.value += 1, O.value.showTable = e.value.table.show, O.value.showTooltip = e.value.style.tooltip.show;
62
63
  }, { deep: !0 });
63
- const D = Ge(null), J = Ge(null);
64
- ht(() => {
64
+ const R = Ge(null), K = Ge(null);
65
+ pt(() => {
65
66
  Be();
66
67
  });
67
68
  function Be() {
68
- if (_t(I.dataset) && me({
69
+ if (Mt(I.dataset) && me({
69
70
  componentName: "VueUiScatter",
70
71
  type: "dataset"
71
72
  }), e.value.responsive) {
72
- const t = Nt(() => {
73
- const { width: r, height: l } = Pt({
74
- chart: le.value,
73
+ const t = Pt(() => {
74
+ const { width: i, height: l } = Wt({
75
+ chart: D.value,
75
76
  title: e.value.style.title.text ? ke.value : null,
76
77
  legend: e.value.style.legend.show ? we.value : null,
77
78
  source: _e.value,
78
79
  noTitle: Me.value
79
80
  });
80
81
  requestAnimationFrame(() => {
81
- k.value.width = r, k.value.height = l;
82
+ k.value.width = i, k.value.height = l;
82
83
  });
83
84
  });
84
- D.value && (J.value && D.value.unobserve(J.value), D.value.disconnect()), D.value = new ResizeObserver(t), J.value = le.value.parentNode, D.value.observe(J.value);
85
+ R.value && (K.value && R.value.unobserve(K.value), R.value.disconnect()), R.value = new ResizeObserver(t), K.value = D.value.parentNode, R.value.observe(K.value);
85
86
  }
86
87
  }
87
- pt(() => {
88
- D.value && (J.value && D.value.unobserve(J.value), D.value.disconnect());
88
+ ft(() => {
89
+ R.value && (K.value && R.value.unobserve(K.value), R.value.disconnect());
89
90
  });
90
- const { isPrinting: Oe, isImaging: Ne, generatePdf: Pe, generateImage: We } = Wt({
91
- elementId: `vue-ui-scatter_${z.value}`,
91
+ const { isPrinting: Oe, isImaging: Ne, generatePdf: Pe, generateImage: We } = Ft({
92
+ elementId: `vue-ui-scatter_${S.value}`,
92
93
  fileName: e.value.style.title.text || "vue-ui-scatter",
93
94
  options: e.value.userOptions.print
94
- }), it = b(() => e.value.userOptions.show && !e.value.style.title.text), Fe = b(() => Mt(e.value.customPalette)), O = h({
95
+ }), nt = b(() => e.value.userOptions.show && !e.value.style.title.text), Fe = b(() => $t(e.value.customPalette)), O = h({
95
96
  showTable: e.value.table.show,
96
97
  showTooltip: e.value.style.tooltip.show
97
98
  }), k = h({
@@ -106,7 +107,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
106
107
  width: k.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - oe.value
107
108
  })), p = b(() => {
108
109
  I.dataset.forEach((a, v) => {
109
- qe({
110
+ He({
110
111
  datasetObject: a,
111
112
  requiredAttributes: ["values"]
112
113
  }).forEach((f) => {
@@ -117,47 +118,47 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
117
118
  index: v
118
119
  });
119
120
  }), a.values && a.values.forEach((f, L) => {
120
- qe({
121
+ He({
121
122
  datasetObject: f,
122
123
  requiredAttributes: ["x", "y"]
123
- }).forEach((Q) => {
124
+ }).forEach((ee) => {
124
125
  me({
125
126
  componentName: "VueUiScatter",
126
127
  type: "datasetSerieAttribute",
127
- property: `values.${Q}`,
128
+ property: `values.${ee}`,
128
129
  index: `${v} - ${L}`
129
130
  });
130
131
  });
131
132
  });
132
133
  });
133
- const t = Math.min(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.x))), r = Math.max(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.x))), l = Math.min(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.y))), s = Math.max(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.y)));
134
- return { xMin: t >= 0 ? 0 : t, xMax: r, yMin: l >= 0 ? 0 : l, yMax: s };
134
+ const t = Math.min(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.x))), i = Math.max(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.x))), l = Math.min(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.y))), o = Math.max(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.y)));
135
+ return { xMin: t >= 0 ? 0 : t, xMax: i, yMin: l >= 0 ? 0 : l, yMax: o };
135
136
  }), g = b(() => ({
136
137
  x: n.value.left + Math.abs(p.value.xMin) / (p.value.xMax + Math.abs(p.value.xMin)) * n.value.width,
137
138
  y: n.value.bottom - Math.abs(p.value.yMin) / (p.value.yMax + Math.abs(p.value.yMin)) * n.value.height
138
- })), G = b(() => I.dataset.map((t, r) => {
139
- const l = `cluster_${z.value}_${r}`;
139
+ })), G = b(() => I.dataset.map((t, i) => {
140
+ const l = `cluster_${S.value}_${i}`;
140
141
  return {
141
142
  ...t,
142
- values: $t({
143
+ values: Ct({
143
144
  data: t.values,
144
145
  threshold: e.value.downsample.threshold
145
146
  }),
146
147
  id: l,
147
- color: t.color ? t.color : Fe.value[r] || Z[r] || Z[r % Z.length],
148
+ color: t.color ? t.color : Fe.value[i] || J[i] || J[i % J.length],
148
149
  opacity: x.value.includes(l) ? 0.5 : 1,
149
150
  shape: t.shape ?? "circle",
150
- segregate: () => Ve(l),
151
+ segregate: () => Re(l),
151
152
  isSegregated: x.value.includes(l)
152
153
  };
153
- })), nt = b(() => ({
154
+ })), vt = b(() => ({
154
155
  cy: "scatter-div-legend",
155
156
  backgroundColor: e.value.style.legend.backgroundColor,
156
157
  color: e.value.style.legend.color,
157
158
  fontSize: e.value.style.legend.fontSize,
158
159
  paddingBottom: 12,
159
160
  fontWeight: e.value.style.legend.bold ? "bold" : ""
160
- })), ye = b(() => G.value.map((t, r) => ({
161
+ })), ye = b(() => G.value.map((t, i) => ({
161
162
  ...t,
162
163
  plots: t.values.map((l) => ({
163
164
  x: n.value.left + (l.x + Math.abs(p.value.xMin)) / (p.value.xMax + Math.abs(p.value.xMin)) * n.value.width,
@@ -167,31 +168,31 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
167
168
  name: l.name || ""
168
169
  },
169
170
  clusterName: t.name,
170
- color: t.color ? t.color : Fe.value[r] || Z[r] || Z[r % Z.length],
171
- id: `plot_${z.value}_${Math.random()}`,
171
+ color: t.color ? t.color : Fe.value[i] || J[i] || J[i % J.length],
172
+ id: `plot_${S.value}_${Math.random()}`,
172
173
  weight: l.weight ?? e.value.style.layout.plots.radius
173
174
  }))
174
- })).filter((t) => !x.value.includes(t.id))), S = b(() => ye.value.map((t) => {
175
- const r = t.plots.reduce((m, U) => m + U.x, 0) / t.plots.length, l = t.plots.reduce((m, U) => m + U.y, 0) / t.plots.length;
176
- let s = 0, a = 0, v = 0;
175
+ })).filter((t) => !x.value.includes(t.id))), z = b(() => ye.value.map((t) => {
176
+ const i = t.plots.reduce((m, q) => m + q.x, 0) / t.plots.length, l = t.plots.reduce((m, q) => m + q.y, 0) / t.plots.length;
177
+ let o = 0, a = 0, v = 0;
177
178
  for (const m of t.plots)
178
- s += (m.x - r) * (m.y - l), a += (m.x - r) ** 2, v += (m.y - l) ** 2;
179
- const f = s / Math.sqrt(a * v), L = f * (Math.sqrt(v) / Math.sqrt(a)), Q = l - L * r, P = {
179
+ o += (m.x - i) * (m.y - l), a += (m.x - i) ** 2, v += (m.y - l) ** 2;
180
+ const f = o / Math.sqrt(a * v), L = f * (Math.sqrt(v) / Math.sqrt(a)), ee = l - L * i, P = {
180
181
  x1: n.value.left,
181
182
  x2: n.value.right,
182
- y1: L * n.value.left + Q,
183
- y2: L * n.value.right + Q,
183
+ y1: L * n.value.left + ee,
184
+ y2: L * n.value.right + ee,
184
185
  coefficient: f
185
- }, $ = (P.y2 - P.y1) / (P.x2 - P.x1), B = P.y1 - $ * P.x1, X = Math.min(k.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (n.value.top - B) / $)), re = {
186
+ }, $ = (P.y2 - P.y1) / (P.x2 - P.x1), B = P.y1 - $ * P.x1, X = Math.min(k.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (n.value.top - B) / $)), ie = {
186
187
  x: X,
187
188
  y: $ * X + B <= e.value.style.layout.padding.top ? n.value.top : $ * X + B
188
189
  };
189
190
  return {
190
191
  ...t,
191
192
  correlation: P,
192
- label: re,
193
+ label: ie,
193
194
  plots: t.plots.map((m) => {
194
- const U = (m.x + $ * m.y - $ * B) / (1 + Math.pow($, 2)), he = ($ * m.x + Math.pow($, 2) * m.y + B) / (1 + Math.pow($, 2)), w = Math.sqrt(Math.pow(m.x - U, 2) + Math.pow(m.y - he, 2));
195
+ const q = (m.x + $ * m.y - $ * B) / (1 + Math.pow($, 2)), he = ($ * m.x + Math.pow($, 2) * m.y + B) / (1 + Math.pow($, 2)), w = Math.sqrt(Math.pow(m.x - q, 2) + Math.pow(m.y - he, 2));
195
196
  return {
196
197
  ...m,
197
198
  deviation: w,
@@ -200,73 +201,73 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
200
201
  };
201
202
  })
202
203
  };
203
- })), Ie = b(() => Math.max(...S.value.flatMap((t) => t.plots.map((r) => Math.abs(r.deviation)))));
204
- function vt() {
205
- return S.value;
204
+ })), Ie = b(() => Math.max(...z.value.flatMap((t) => t.plots.map((i) => Math.abs(i.deviation)))));
205
+ function yt() {
206
+ return z.value;
206
207
  }
207
- function Xe(t, r) {
208
- const l = Array.isArray(t) ? t.flatMap((w) => w.plots.map((q) => ({
209
- x: q.x,
210
- y: q.y
208
+ function Xe(t, i) {
209
+ const l = Array.isArray(t) ? t.flatMap((w) => w.plots.map((H) => ({
210
+ x: H.x,
211
+ y: H.y
211
212
  }))) : t.plots.map((w) => ({
212
213
  x: w.x,
213
214
  y: w.y
214
215
  }));
215
- let s = 1 / 0, a = -1 / 0, v = 1 / 0, f = -1 / 0;
216
- l.forEach(({ x: w, y: q }) => {
217
- s = Math.min(s, w), a = Math.max(a, w), v = Math.min(v, q), f = Math.max(f, q);
216
+ let o = 1 / 0, a = -1 / 0, v = 1 / 0, f = -1 / 0;
217
+ l.forEach(({ x: w, y: H }) => {
218
+ o = Math.min(o, w), a = Math.max(a, w), v = Math.min(v, H), f = Math.max(f, H);
218
219
  });
219
- const L = a - s, Q = f - v, P = L / r, $ = Q / r, B = Array(r).fill(0), X = Array(r).fill(0);
220
- l.forEach(({ x: w, y: q }) => {
221
- const pe = Math.floor((w - s) / P), fe = Math.floor((q - v) / $);
220
+ const L = a - o, ee = f - v, P = L / i, $ = ee / i, B = Array(i).fill(0), X = Array(i).fill(0);
221
+ l.forEach(({ x: w, y: H }) => {
222
+ const pe = Math.floor((w - o) / P), fe = Math.floor((H - v) / $);
222
223
  B[pe] || (B[pe] = 0), X[fe] || (X[fe] = 0), B[pe] += 1, X[fe] += 1;
223
224
  });
224
- const re = [], m = [];
225
- for (let w = 0; w < r; w += 1)
226
- re.push(s + (w + 0.5) * P), m.push(v + (w + 0.5) * $);
227
- const U = Math.max(...B), he = Math.max(...X);
228
- return { x: B, y: X, avgX: re, avgY: m, maxX: U, maxY: he };
225
+ const ie = [], m = [];
226
+ for (let w = 0; w < i; w += 1)
227
+ ie.push(o + (w + 0.5) * P), m.push(v + (w + 0.5) * $);
228
+ const q = Math.max(...B), he = Math.max(...X);
229
+ return { x: B, y: X, avgX: ie, avgY: m, maxX: q, maxY: he };
229
230
  }
230
- const V = b(() => e.value.style.layout.marginalBars.tranches), T = b(() => Xe(ye.value, V.value)), yt = b(() => {
231
- const t = n.value.top - e.value.style.layout.marginalBars.offset, r = n.value.right + e.value.style.layout.marginalBars.offset;
231
+ const V = b(() => e.value.style.layout.marginalBars.tranches), T = b(() => Xe(ye.value, V.value)), ct = b(() => {
232
+ const t = n.value.top - e.value.style.layout.marginalBars.offset, i = n.value.right + e.value.style.layout.marginalBars.offset;
232
233
  return ye.value.map((l) => {
233
- const s = Xe(l, V.value);
234
+ const o = Xe(l, V.value);
234
235
  return {
235
- coords: s,
236
- dX: At(s.avgX.map((a, v) => ({
236
+ coords: o,
237
+ dX: St(o.avgX.map((a, v) => ({
237
238
  x: a,
238
- y: t - s.x[v] / s.maxX * e.value.style.layout.marginalBars.size
239
+ y: t - o.x[v] / o.maxX * e.value.style.layout.marginalBars.size
239
240
  }))),
240
- dY: Ct(s.avgY.map((a, v) => ({
241
+ dY: At(o.avgY.map((a, v) => ({
241
242
  y: a,
242
- x: r + e.value.style.layout.marginalBars.size * s.y[v] / s.maxY
243
+ x: i + e.value.style.layout.marginalBars.size * o.y[v] / o.maxY
243
244
  }))),
244
245
  color: l.color,
245
246
  id: l.id
246
247
  };
247
248
  });
248
249
  }), N = h(void 0), y = h(null), ce = h(null);
249
- function Ye(t, r) {
250
+ function Ye(t, i) {
250
251
  N.value = t.id, y.value = t;
251
252
  let l = "";
252
253
  ce.value = {
253
254
  datapoint: t,
254
- seriesIndex: r,
255
- series: S.value,
255
+ seriesIndex: i,
256
+ series: z.value,
256
257
  config: e.value
257
258
  };
258
- const s = e.value.style.tooltip.customFormat;
259
- Bt(s) && Ot(() => s({
259
+ const o = e.value.style.tooltip.customFormat;
260
+ Ot(o) && Nt(() => o({
260
261
  datapoint: t,
261
- seriesIndex: r,
262
- series: S.value,
262
+ seriesIndex: i,
263
+ series: z.value,
263
264
  config: e.value
264
- })) ? ne.value = s({
265
+ })) ? ne.value = o({
265
266
  datapoint: t,
266
- seriesIndex: r,
267
- series: S.value,
267
+ seriesIndex: i,
268
+ series: z.value,
268
269
  config: e.value
269
- }) : (t.clusterName && (l += `<div style="display:flex;gap:3px;align-items:center">${t.clusterName}</div>`), t.v.name && (l += `<div>${t.v.name}</div>`), l += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, l += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(t.v.x) ? "-" : E(
270
+ }) : (t.clusterName && (l += `<div style="display:flex;gap:3px;align-items:center">${t.clusterName}</div>`), t.v.name && (l += `<div>${t.v.name}</div>`), l += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, l += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(t.v.x) ? "-" : U(
270
271
  e.value.style.layout.plots.selectors.labels.x.formatter,
271
272
  t.v.x,
272
273
  F({
@@ -275,8 +276,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
275
276
  s: e.value.style.tooltip.suffix,
276
277
  r: e.value.style.tooltip.roundingValue
277
278
  }),
278
- { datapoint: t, seriesIndex: r }
279
- )}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" : E(
279
+ { datapoint: t, seriesIndex: i }
280
+ )}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" : U(
280
281
  e.value.style.layout.plots.selectors.labels.y.formatter,
281
282
  t.v.y,
282
283
  F({
@@ -285,29 +286,28 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
285
286
  s: e.value.style.tooltip.suffix,
286
287
  r: e.value.style.tooltip.roundingValue
287
288
  }),
288
- { datapoint: t, seriesIndex: r }
289
+ { datapoint: t, seriesIndex: i }
289
290
  )}</b></div>`, l += `${e.value.style.layout.plots.deviation.translation}: <b>${F({
290
291
  v: t.deviation,
291
292
  r: e.value.style.layout.plots.deviation.roundingValue
292
- })}</b>`, l += "</div>", ne.value = `<div>${l}</div>`), ie.value = !0;
293
+ })}</b>`, l += "</div>", ne.value = `<div>${l}</div>`), re.value = !0;
293
294
  }
294
295
  function De() {
295
- ie.value = !1, N.value = void 0, y.value = null;
296
+ re.value = !1, N.value = void 0, y.value = null;
296
297
  }
297
- const x = h([]);
298
- function Ve(t) {
299
- x.value.includes(t) ? x.value = x.value.filter((r) => r !== t) : x.value.length < I.dataset.length - 1 && x.value.push(t);
298
+ function Re(t) {
299
+ x.value.includes(t) ? x.value = x.value.filter((i) => i !== t) : x.value.length < I.dataset.length - 1 && x.value.push(t);
300
300
  }
301
- function je(t = null) {
302
- mt(() => {
303
- const r = ["", 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}`], l = S.value.map((v) => [
301
+ function Ve(t = null) {
302
+ xt(() => {
303
+ const i = ["", 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}`], l = z.value.map((v) => [
304
304
  v.name,
305
305
  v.correlation.coefficient,
306
306
  v.plots.length,
307
307
  v.plots.map((f) => f.v.x).reduce((f, L) => f + L, 0) / v.plots.length,
308
308
  v.plots.map((f) => f.v.y).reduce((f, L) => f + L, 0) / v.plots.length
309
- ]), s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([r]).concat(l), a = Tt(s);
310
- t ? t(a) : Lt({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
309
+ ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([i]).concat(l), a = Lt(o);
310
+ t ? t(a) : Bt({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
311
311
  });
312
312
  }
313
313
  const se = b(() => {
@@ -317,16 +317,16 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
317
317
  e.value.table.translations.nbrPlots,
318
318
  `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`,
319
319
  `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`
320
- ], r = S.value.map((s) => [
320
+ ], i = z.value.map((o) => [
321
321
  {
322
- shape: s.shape,
323
- content: s.name,
324
- color: s.color
322
+ shape: o.shape,
323
+ content: o.name,
324
+ color: o.color
325
325
  },
326
- Number((s.correlation.coefficient ?? 0).toFixed(e.value.table.td.roundingValue)).toLocaleString(),
327
- s.plots.length.toLocaleString(),
328
- Number((s.plots.map((a) => a.v.x ?? 0).reduce((a, v) => a + v, 0) / s.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString(),
329
- Number((s.plots.map((a) => a.v.y ?? 0).reduce((a, v) => a + v, 0) / s.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString()
326
+ Number((o.correlation.coefficient ?? 0).toFixed(e.value.table.td.roundingValue)).toLocaleString(),
327
+ o.plots.length.toLocaleString(),
328
+ Number((o.plots.map((a) => a.v.x ?? 0).reduce((a, v) => a + v, 0) / o.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString(),
329
+ Number((o.plots.map((a) => a.v.y ?? 0).reduce((a, v) => a + v, 0) / o.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString()
330
330
  ]), l = {
331
331
  th: {
332
332
  backgroundColor: e.value.table.th.backgroundColor,
@@ -340,39 +340,53 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
340
340
  },
341
341
  breakpoint: e.value.table.responsiveBreakpoint
342
342
  };
343
- return { head: t, body: r, config: l, colNames: t };
344
- }), K = h(!1);
345
- function ct(t) {
346
- K.value = t, be.value += 1;
343
+ return { head: t, body: i, config: l, colNames: t };
344
+ }), Q = h(!1);
345
+ function je(t) {
346
+ Q.value = t, be.value += 1;
347
347
  }
348
- function Re() {
348
+ function Ee() {
349
349
  O.value.showTable = !O.value.showTable;
350
350
  }
351
- function Ee() {
351
+ function Ue() {
352
352
  O.value.showTooltip = !O.value.showTooltip;
353
353
  }
354
354
  const ue = h(!1);
355
355
  function de() {
356
356
  ue.value = !ue.value;
357
357
  }
358
- return Ke({
359
- getData: vt,
358
+ async function dt({ scale: t = 2 } = {}) {
359
+ if (!D.value) return;
360
+ const { width: i, height: l } = D.value.getBoundingClientRect(), o = i / l, { imageUri: a, base64: v } = await Rt({ domElement: D.value, base64: !0, img: !0, scale: t });
361
+ return {
362
+ imageUri: a,
363
+ base64: v,
364
+ title: e.value.style.title.text,
365
+ width: i,
366
+ height: l,
367
+ aspectRatio: o
368
+ };
369
+ }
370
+ return Qe({
371
+ getData: yt,
372
+ getImage: dt,
360
373
  generatePdf: Pe,
361
- generateCsv: je,
374
+ generateCsv: Ve,
362
375
  generateImage: We,
363
- toggleTable: Re,
364
- toggleTooltip: Ee,
365
- toggleAnnotator: de
366
- }), (t, r) => (o(), i("div", {
367
- class: Ue(`vue-ui-scatter ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
376
+ toggleTable: Ee,
377
+ toggleTooltip: Ue,
378
+ toggleAnnotator: de,
379
+ toggleFullscreen: je
380
+ }), (t, i) => (s(), r("div", {
381
+ class: qe(`vue-ui-scatter ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
368
382
  ref_key: "scatterChart",
369
- ref: le,
370
- id: `vue-ui-scatter_${z.value}`,
383
+ ref: D,
384
+ id: `vue-ui-scatter_${S.value}`,
371
385
  style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
372
- onMouseenter: r[2] || (r[2] = () => u(ze)(!0)),
373
- onMouseleave: r[3] || (r[3] = () => u(ze)(!1))
386
+ onMouseenter: i[2] || (i[2] = () => u(Se)(!0)),
387
+ onMouseleave: i[3] || (i[3] = () => u(Se)(!1))
374
388
  }, [
375
- e.value.userOptions.buttons.annotator ? (o(), R(u(lt), {
389
+ e.value.userOptions.buttons.annotator ? (s(), E(u(at), {
376
390
  key: 0,
377
391
  svgRef: u(Te),
378
392
  backgroundColor: e.value.style.backgroundColor,
@@ -380,20 +394,20 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
380
394
  active: ue.value,
381
395
  onClose: de
382
396
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
383
- it.value ? (o(), i("div", {
397
+ nt.value ? (s(), r("div", {
384
398
  key: 1,
385
399
  ref_key: "noTitle",
386
400
  ref: Me,
387
401
  class: "vue-data-ui-no-title-space",
388
402
  style: "height:36px; width: 100%;background:transparent"
389
403
  }, null, 512)) : c("", !0),
390
- e.value.style.title.text ? (o(), i("div", {
404
+ e.value.style.title.text ? (s(), r("div", {
391
405
  key: 2,
392
406
  ref_key: "chartTitle",
393
407
  ref: ke,
394
408
  style: "width:100%;background:transparent"
395
409
  }, [
396
- (o(), R(Yt, {
410
+ (s(), E(Dt, {
397
411
  key: `title_${$e.value}`,
398
412
  config: {
399
413
  title: {
@@ -407,7 +421,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
407
421
  }
408
422
  }, null, 8, ["config"]))
409
423
  ], 512)) : c("", !0),
410
- e.value.userOptions.show && ae.value && (u(Se) || u(ve)) ? (o(), R(u(st), {
424
+ e.value.userOptions.show && ae.value && (u(ze) || u(ve)) ? (s(), E(u(ut), {
411
425
  ref_key: "details",
412
426
  ref: rt,
413
427
  key: `user_options_${be.value}`,
@@ -415,7 +429,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
415
429
  color: e.value.style.color,
416
430
  isImaging: u(Ne),
417
431
  isPrinting: u(Oe),
418
- uid: z.value,
432
+ uid: S.value,
419
433
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
420
434
  hasPdf: e.value.userOptions.buttons.pdf,
421
435
  hasImg: e.value.userOptions.buttons.img,
@@ -423,28 +437,29 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
423
437
  hasTable: e.value.userOptions.buttons.table,
424
438
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
425
439
  isTooltip: O.value.showTooltip,
426
- isFullscreen: K.value,
440
+ isFullscreen: Q.value,
427
441
  titles: { ...e.value.userOptions.buttonTitles },
428
- chartElement: le.value,
442
+ chartElement: D.value,
429
443
  position: e.value.userOptions.position,
430
444
  hasAnnotator: e.value.userOptions.buttons.annotator,
431
445
  isAnnotation: ue.value,
432
446
  callbacks: e.value.userOptions.callbacks,
433
- onToggleFullscreen: ct,
447
+ printScale: e.value.userOptions.print.scale,
448
+ onToggleFullscreen: je,
434
449
  onGeneratePdf: u(Pe),
435
- onGenerateCsv: je,
450
+ onGenerateCsv: Ve,
436
451
  onGenerateImage: u(We),
437
- onToggleTable: Re,
438
- onToggleTooltip: Ee,
452
+ onToggleTable: Ee,
453
+ onToggleTooltip: Ue,
439
454
  onToggleAnnotator: de,
440
455
  style: j({
441
- visibility: u(Se) ? u(ve) ? "visible" : "hidden" : "visible"
456
+ visibility: u(ze) ? u(ve) ? "visible" : "hidden" : "visible"
442
457
  })
443
- }, ft({ _: 2 }, [
458
+ }, gt({ _: 2 }, [
444
459
  t.$slots.menuIcon ? {
445
460
  name: "menuIcon",
446
- fn: _(({ isOpen: l, color: s }) => [
447
- M(t.$slots, "menuIcon", ee(te({ isOpen: l, color: s })), void 0, !0)
461
+ fn: _(({ isOpen: l, color: o }) => [
462
+ M(t.$slots, "menuIcon", te(le({ isOpen: l, color: o })), void 0, !0)
448
463
  ]),
449
464
  key: "0"
450
465
  } : void 0,
@@ -485,30 +500,30 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
485
500
  } : void 0,
486
501
  t.$slots.optionFullscreen ? {
487
502
  name: "optionFullscreen",
488
- fn: _(({ toggleFullscreen: l, isFullscreen: s }) => [
489
- M(t.$slots, "optionFullscreen", ee(te({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
503
+ fn: _(({ toggleFullscreen: l, isFullscreen: o }) => [
504
+ M(t.$slots, "optionFullscreen", te(le({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
490
505
  ]),
491
506
  key: "6"
492
507
  } : void 0,
493
508
  t.$slots.optionAnnotator ? {
494
509
  name: "optionAnnotator",
495
- fn: _(({ toggleAnnotator: l, isAnnotator: s }) => [
496
- M(t.$slots, "optionAnnotator", ee(te({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
510
+ fn: _(({ toggleAnnotator: l, isAnnotator: o }) => [
511
+ M(t.$slots, "optionAnnotator", te(le({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
497
512
  ]),
498
513
  key: "7"
499
514
  } : void 0
500
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
501
- ae.value ? (o(), i("svg", {
515
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
516
+ ae.value ? (s(), r("svg", {
502
517
  key: 4,
503
518
  ref_key: "svgRef",
504
519
  ref: Te,
505
520
  xmlns: u(zt),
506
- class: Ue({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
521
+ class: qe({ "vue-data-ui-fullscreen--on": Q.value, "vue-data-ui-fulscreen--off": !Q.value }),
507
522
  viewBox: `0 0 ${k.value.width <= 0 ? 10 : k.value.width} ${k.value.height <= 0 ? 10 : k.value.height}`,
508
523
  style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
509
524
  }, [
510
- ge(u(tt)),
511
- t.$slots["chart-background"] ? (o(), i("foreignObject", {
525
+ ge(u(lt)),
526
+ t.$slots["chart-background"] ? (s(), r("foreignObject", {
512
527
  key: 0,
513
528
  x: 0,
514
529
  y: 0,
@@ -519,8 +534,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
519
534
  }
520
535
  }, [
521
536
  M(t.$slots, "chart-background", {}, void 0, !0)
522
- ], 8, Rt)) : c("", !0),
523
- e.value.style.layout.axis.show ? (o(), i("g", Et, [
537
+ ], 8, Ut)) : c("", !0),
538
+ e.value.style.layout.axis.show ? (s(), r("g", Gt, [
524
539
  d("line", {
525
540
  x1: g.value.x,
526
541
  x2: g.value.x,
@@ -529,7 +544,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
529
544
  stroke: e.value.style.layout.axis.stroke,
530
545
  "stroke-width": e.value.style.layout.axis.strokeWidth,
531
546
  "stroke-linecap": "round"
532
- }, null, 8, Gt),
547
+ }, null, 8, qt),
533
548
  d("line", {
534
549
  x1: n.value.left,
535
550
  x2: n.value.right,
@@ -538,53 +553,53 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
538
553
  stroke: e.value.style.layout.axis.stroke,
539
554
  "stroke-width": e.value.style.layout.axis.strokeWidth,
540
555
  "stroke-linecap": "round"
541
- }, null, 8, Ut)
556
+ }, null, 8, Ht)
542
557
  ])) : c("", !0),
543
- e.value.style.layout.plots.giftWrap.show ? (o(), i("g", qt, [
544
- (o(!0), i(W, null, Y(S.value, (l, s) => (o(), i("g", null, [
545
- l.plots.length > 2 ? (o(), i("polygon", {
558
+ e.value.style.layout.plots.giftWrap.show ? (s(), r("g", Zt, [
559
+ (s(!0), r(W, null, Y(z.value, (l, o) => (s(), r("g", null, [
560
+ l.plots.length > 2 ? (s(), r("polygon", {
546
561
  key: 0,
547
- points: u(St)({ series: l.plots }),
562
+ points: u(Tt)({ series: l.plots }),
548
563
  fill: u(xe)(l.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
549
564
  "stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
550
565
  "stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
551
566
  stroke: l.color,
552
567
  "stroke-linejoin": "round",
553
568
  "stroke-linecap": "round"
554
- }, null, 8, Ht)) : c("", !0)
569
+ }, null, 8, Jt)) : c("", !0)
555
570
  ]))), 256))
556
571
  ])) : c("", !0),
557
- (o(!0), i(W, null, Y(S.value, (l, s) => (o(), i("g", null, [
558
- !l.shape || l.shape === "circle" ? (o(), i("g", Zt, [
559
- (o(!0), i(W, null, Y(l.plots, (a, v) => (o(), i("circle", {
572
+ (s(!0), r(W, null, Y(z.value, (l, o) => (s(), r("g", null, [
573
+ !l.shape || l.shape === "circle" ? (s(), r("g", Kt, [
574
+ (s(!0), r(W, null, Y(l.plots, (a, v) => (s(), r("circle", {
560
575
  cx: a.x,
561
576
  cy: a.y,
562
577
  r: N.value && N.value === a.id ? a.weight * 2 : a.weight,
563
578
  fill: u(xe)(l.color, e.value.style.layout.plots.opacity * 100),
564
579
  stroke: e.value.style.layout.plots.stroke,
565
580
  "stroke-width": e.value.style.layout.plots.strokeWidth,
566
- onMouseover: (f) => Ye(a, s),
581
+ onMouseover: (f) => Ye(a, o),
567
582
  onMouseleave: De,
568
583
  style: j(`opacity:${N.value && N.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Ie.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
569
- }, null, 44, Jt))), 256))
570
- ])) : (o(), i("g", Kt, [
571
- (o(!0), i(W, null, Y(l.plots, (a, v) => (o(), R(Ze, {
584
+ }, null, 44, Qt))), 256))
585
+ ])) : (s(), r("g", el, [
586
+ (s(!0), r(W, null, Y(l.plots, (a, v) => (s(), E(Je, {
572
587
  plot: { x: a.x, y: a.y },
573
588
  radius: N.value && N.value === a.id ? a.weight * 2 : a.weight,
574
589
  shape: l.shape,
575
590
  color: u(xe)(l.color, e.value.style.layout.plots.opacity * 100),
576
591
  stroke: e.value.style.layout.plots.stroke,
577
592
  strokeWidth: e.value.style.layout.plots.strokeWidth,
578
- onMouseover: (f) => Ye(a, s),
593
+ onMouseover: (f) => Ye(a, o),
579
594
  onMouseleave: De,
580
595
  style: j(`opacity:${N.value && N.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Ie.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
581
596
  }, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
582
597
  ]))
583
598
  ]))), 256)),
584
- e.value.style.layout.marginalBars.show ? (o(), i("g", Qt, [
599
+ e.value.style.layout.marginalBars.show ? (s(), r("g", tl, [
585
600
  d("defs", null, [
586
601
  d("linearGradient", {
587
- id: `marginal_x_${z.value}`,
602
+ id: `marginal_x_${S.value}`,
588
603
  x1: "0%",
589
604
  y1: "0%",
590
605
  x2: "0%",
@@ -593,14 +608,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
593
608
  d("stop", {
594
609
  offset: "0%",
595
610
  "stop-color": e.value.style.layout.marginalBars.fill
596
- }, null, 8, tl),
611
+ }, null, 8, al),
597
612
  d("stop", {
598
613
  offset: "100%",
599
614
  "stop-color": e.value.style.backgroundColor
600
- }, null, 8, ll)
601
- ], 8, el),
615
+ }, null, 8, ol)
616
+ ], 8, ll),
602
617
  d("linearGradient", {
603
- id: `marginal_y_${z.value}`,
618
+ id: `marginal_y_${S.value}`,
604
619
  x1: "0%",
605
620
  x2: "100%",
606
621
  y1: "0%",
@@ -609,44 +624,44 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
609
624
  d("stop", {
610
625
  offset: "0%",
611
626
  "stop-color": e.value.style.backgroundColor
612
- }, null, 8, ol),
627
+ }, null, 8, ul),
613
628
  d("stop", {
614
629
  offset: "100%",
615
630
  "stop-color": e.value.style.layout.marginalBars.fill
616
- }, null, 8, sl)
617
- ], 8, al)
631
+ }, null, 8, il)
632
+ ], 8, sl)
618
633
  ]),
619
- (o(!0), i(W, null, Y(T.value.x, (l, s) => (o(), i("g", null, [
620
- l && T.value.avgX[s] ? (o(), i("rect", {
634
+ (s(!0), r(W, null, Y(T.value.x, (l, o) => (s(), r("g", null, [
635
+ l && T.value.avgX[o] ? (s(), r("rect", {
621
636
  key: 0,
622
- x: T.value.avgX[s] - n.value.width / V.value / 2,
637
+ x: T.value.avgX[o] - n.value.width / V.value / 2,
623
638
  y: n.value.top - e.value.style.layout.marginalBars.offset - l / T.value.maxX * e.value.style.layout.marginalBars.size,
624
639
  width: n.value.width / V.value <= 0 ? 1e-4 : n.value.width / V.value,
625
640
  height: l / T.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxX * e.value.style.layout.marginalBars.size,
626
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${z.value})` : e.value.style.layout.marginalBars.fill,
641
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${S.value})` : e.value.style.layout.marginalBars.fill,
627
642
  style: j(`opacity:${e.value.style.layout.marginalBars.opacity}`),
628
643
  stroke: e.value.style.backgroundColor,
629
644
  "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
630
645
  rx: e.value.style.layout.marginalBars.borderRadius
631
- }, null, 12, ul)) : c("", !0)
646
+ }, null, 12, rl)) : c("", !0)
632
647
  ]))), 256)),
633
- (o(!0), i(W, null, Y(T.value.y, (l, s) => (o(), i("g", null, [
634
- l && T.value.avgY[s] ? (o(), i("rect", {
648
+ (s(!0), r(W, null, Y(T.value.y, (l, o) => (s(), r("g", null, [
649
+ l && T.value.avgY[o] ? (s(), r("rect", {
635
650
  key: 0,
636
651
  x: n.value.right + e.value.style.layout.marginalBars.offset,
637
- y: T.value.avgY[s] - n.value.height / V.value / 2,
652
+ y: T.value.avgY[o] - n.value.height / V.value / 2,
638
653
  height: n.value.height / V.value <= 0 ? 1e-4 : n.value.height / V.value,
639
654
  width: l / T.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxY * e.value.style.layout.marginalBars.size,
640
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${z.value})` : e.value.style.layout.marginalBars.fill,
655
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${S.value})` : e.value.style.layout.marginalBars.fill,
641
656
  style: j(`opacity:${e.value.style.layout.marginalBars.opacity}`),
642
657
  stroke: e.value.style.backgroundColor,
643
658
  "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
644
659
  rx: e.value.style.layout.marginalBars.borderRadius
645
- }, null, 12, rl)) : c("", !0)
660
+ }, null, 12, nl)) : c("", !0)
646
661
  ]))), 256)),
647
- e.value.style.layout.marginalBars.showLines ? (o(), i("g", il, [
648
- (o(!0), i(W, null, Y(yt.value, (l) => (o(), i(W, null, [
649
- x.value.includes(l.id) ? c("", !0) : (o(), i("path", {
662
+ e.value.style.layout.marginalBars.showLines ? (s(), r("g", vl, [
663
+ (s(!0), r(W, null, Y(ct.value, (l) => (s(), r(W, null, [
664
+ x.value.includes(l.id) ? c("", !0) : (s(), r("path", {
650
665
  key: 0,
651
666
  d: `M ${l.dX}`,
652
667
  stroke: e.value.style.backgroundColor,
@@ -654,8 +669,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
654
669
  "stroke-linecap": "round",
655
670
  "stroke-linejoin": "round",
656
671
  fill: "none"
657
- }, null, 8, nl)),
658
- x.value.includes(l.id) ? c("", !0) : (o(), i("path", {
672
+ }, null, 8, yl)),
673
+ x.value.includes(l.id) ? c("", !0) : (s(), r("path", {
659
674
  key: 1,
660
675
  d: `M ${l.dX}`,
661
676
  stroke: l.color,
@@ -663,8 +678,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
663
678
  "stroke-linecap": "round",
664
679
  "stroke-linejoin": "round",
665
680
  fill: "none"
666
- }, null, 8, vl)),
667
- x.value.includes(l.id) ? c("", !0) : (o(), i("path", {
681
+ }, null, 8, cl)),
682
+ x.value.includes(l.id) ? c("", !0) : (s(), r("path", {
668
683
  key: 2,
669
684
  d: `M ${l.dY}`,
670
685
  stroke: e.value.style.backgroundColor,
@@ -672,8 +687,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
672
687
  "stroke-linecap": "round",
673
688
  "stroke-linejoin": "round",
674
689
  fill: "none"
675
- }, null, 8, yl)),
676
- x.value.includes(l.id) ? c("", !0) : (o(), i("path", {
690
+ }, null, 8, dl)),
691
+ x.value.includes(l.id) ? c("", !0) : (s(), r("path", {
677
692
  key: 3,
678
693
  d: `M ${l.dY}`,
679
694
  stroke: l.color,
@@ -681,11 +696,11 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
681
696
  "stroke-linecap": "round",
682
697
  "stroke-linejoin": "round",
683
698
  fill: "none"
684
- }, null, 8, cl))
699
+ }, null, 8, hl))
685
700
  ], 64))), 256))
686
701
  ])) : c("", !0)
687
702
  ])) : c("", !0),
688
- y.value && e.value.style.layout.plots.selectors.show ? (o(), i("g", dl, [
703
+ y.value && e.value.style.layout.plots.selectors.show ? (s(), r("g", pl, [
689
704
  d("line", {
690
705
  x1: g.value.x,
691
706
  x2: y.value.x,
@@ -696,7 +711,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
696
711
  "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
697
712
  "stroke-linecap": "round",
698
713
  class: "line-pointer"
699
- }, null, 8, hl),
714
+ }, null, 8, fl),
700
715
  d("line", {
701
716
  x1: y.value.x,
702
717
  x2: y.value.x,
@@ -707,7 +722,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
707
722
  "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
708
723
  "stroke-linecap": "round",
709
724
  class: "line-pointer"
710
- }, null, 8, pl),
725
+ }, null, 8, gl),
711
726
  d("text", {
712
727
  x: g.value.x + (y.value.x > g.value.x ? -6 : 6),
713
728
  y: y.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
@@ -715,7 +730,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
715
730
  fill: e.value.style.layout.plots.selectors.labels.color,
716
731
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
717
732
  "text-anchor": y.value.x > g.value.x ? "end" : "start"
718
- }, C(u(E)(
733
+ }, C(u(U)(
719
734
  e.value.style.layout.plots.selectors.labels.y.formatter,
720
735
  u(A)(y.value.v.y),
721
736
  u(F)({
@@ -725,7 +740,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
725
740
  r: e.value.style.layout.plots.selectors.labels.rounding
726
741
  }),
727
742
  { datapoint: y.value }
728
- )), 9, fl),
743
+ )), 9, ml),
729
744
  d("text", {
730
745
  x: y.value.x,
731
746
  y: g.value.y + (y.value.y > g.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
@@ -733,7 +748,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
733
748
  fill: e.value.style.layout.plots.selectors.labels.color,
734
749
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
735
750
  "text-anchor": "middle"
736
- }, C(u(E)(
751
+ }, C(u(U)(
737
752
  e.value.style.layout.plots.selectors.labels.y.formatter,
738
753
  u(A)(y.value.v.x),
739
754
  u(F)({
@@ -743,7 +758,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
743
758
  r: e.value.style.layout.plots.selectors.labels.rounding
744
759
  }),
745
760
  { datapoint: y.value }
746
- )), 9, gl),
761
+ )), 9, xl),
747
762
  d("circle", {
748
763
  cx: g.value.x,
749
764
  cy: y.value.y,
@@ -752,7 +767,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
752
767
  stroke: e.value.style.layout.plots.selectors.markers.stroke,
753
768
  "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
754
769
  class: "line-pointer"
755
- }, null, 8, ml),
770
+ }, null, 8, bl),
756
771
  d("circle", {
757
772
  cx: y.value.x,
758
773
  cy: g.value.y,
@@ -761,8 +776,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
761
776
  stroke: e.value.style.layout.plots.selectors.markers.stroke,
762
777
  "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
763
778
  class: "line-pointer"
764
- }, null, 8, xl),
765
- e.value.style.layout.plots.selectors.labels.showName ? (o(), i("text", {
779
+ }, null, 8, kl),
780
+ e.value.style.layout.plots.selectors.labels.showName ? (s(), r("text", {
766
781
  key: 0,
767
782
  x: y.value.x,
768
783
  y: y.value.y + (y.value.y < g.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
@@ -770,16 +785,16 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
770
785
  fill: e.value.style.layout.plots.selectors.labels.color,
771
786
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
772
787
  "text-anchor": y.value.x < n.value.left + 100 ? "start" : y.value.x > n.value.right - 100 ? "end" : y.value.x > g.value.x ? "start" : "end"
773
- }, C(y.value.v.name), 9, bl)) : c("", !0)
788
+ }, C(y.value.v.name), 9, wl)) : c("", !0)
774
789
  ])) : c("", !0),
775
- e.value.style.layout.dataLabels.xAxis.show ? (o(), i("g", kl, [
790
+ e.value.style.layout.dataLabels.xAxis.show ? (s(), r("g", _l, [
776
791
  d("text", {
777
792
  x: n.value.left - 5,
778
793
  y: g.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3,
779
794
  "text-anchor": "end",
780
795
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
781
796
  fill: e.value.style.layout.dataLabels.xAxis.color
782
- }, C(u(E)(
797
+ }, C(u(U)(
783
798
  e.value.style.layout.plots.selectors.labels.x.formatter,
784
799
  u(A)(p.value.xMin),
785
800
  u(F)({
@@ -788,14 +803,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
788
803
  s: e.value.style.layout.plots.selectors.labels.suffix,
789
804
  r: e.value.style.layout.dataLabels.xAxis.rounding
790
805
  })
791
- )), 9, wl),
806
+ )), 9, Ml),
792
807
  d("text", {
793
808
  x: n.value.right + 3,
794
809
  y: g.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3,
795
810
  "text-anchor": "start",
796
811
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
797
812
  fill: e.value.style.layout.dataLabels.xAxis.color
798
- }, C(u(E)(
813
+ }, C(u(U)(
799
814
  e.value.style.layout.plots.selectors.labels.x.formatter,
800
815
  u(A)(p.value.xMax),
801
816
  u(F)({
@@ -804,24 +819,24 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
804
819
  s: e.value.style.layout.plots.selectors.labels.suffix,
805
820
  r: e.value.style.layout.dataLabels.xAxis.rounding
806
821
  })
807
- )), 9, _l),
822
+ )), 9, $l),
808
823
  d("text", {
809
- id: `vue-ui-scatter-xAxis-label-${z.value}`,
824
+ id: `vue-ui-scatter-xAxis-label-${S.value}`,
810
825
  transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize * 2}, ${n.value.top + n.value.height / 2}), rotate(-90)`,
811
826
  "text-anchor": "middle",
812
827
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
813
828
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
814
829
  fill: e.value.style.layout.dataLabels.xAxis.color
815
- }, C(e.value.style.layout.dataLabels.xAxis.name), 9, Ml)
830
+ }, C(e.value.style.layout.dataLabels.xAxis.name), 9, Cl)
816
831
  ])) : c("", !0),
817
- e.value.style.layout.dataLabels.yAxis.show ? (o(), i("g", $l, [
832
+ e.value.style.layout.dataLabels.yAxis.show ? (s(), r("g", Al, [
818
833
  d("text", {
819
834
  x: g.value.x,
820
835
  y: n.value.bottom + e.value.style.layout.dataLabels.yAxis.fontSize + 3,
821
836
  "text-anchor": "middle",
822
837
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
823
838
  fill: e.value.style.layout.dataLabels.yAxis.color
824
- }, C(u(E)(
839
+ }, C(u(U)(
825
840
  e.value.style.layout.plots.selectors.labels.y.formatter,
826
841
  u(A)(p.value.yMin),
827
842
  u(F)({
@@ -830,14 +845,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
830
845
  s: e.value.style.layout.plots.selectors.labels.suffix,
831
846
  r: e.value.style.layout.dataLabels.yAxis.rounding
832
847
  })
833
- )), 9, Cl),
848
+ )), 9, Sl),
834
849
  d("text", {
835
850
  x: g.value.x,
836
851
  y: n.value.top - e.value.style.layout.dataLabels.yAxis.fontSize / 2,
837
852
  "text-anchor": "middle",
838
853
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
839
854
  fill: e.value.style.layout.dataLabels.yAxis.color
840
- }, C(u(E)(
855
+ }, C(u(U)(
841
856
  e.value.style.layout.plots.selectors.labels.y.formatter,
842
857
  u(A)(p.value.yMax),
843
858
  u(F)({
@@ -846,7 +861,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
846
861
  s: e.value.style.layout.plots.selectors.labels.suffix,
847
862
  r: e.value.style.layout.dataLabels.yAxis.rounding
848
863
  })
849
- )), 9, Al),
864
+ )), 9, zl),
850
865
  d("text", {
851
866
  "text-anchor": "middle",
852
867
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
@@ -854,20 +869,20 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
854
869
  fill: e.value.style.layout.dataLabels.yAxis.color,
855
870
  x: n.value.left + n.value.width / 2,
856
871
  y: n.value.bottom + 8 + e.value.style.layout.dataLabels.yAxis.fontSize * 2
857
- }, C(e.value.style.layout.dataLabels.yAxis.name), 9, zl)
872
+ }, C(e.value.style.layout.dataLabels.yAxis.name), 9, Tl)
858
873
  ])) : c("", !0),
859
874
  d("clipPath", {
860
- id: `clip_path_${z.value}`
875
+ id: `clip_path_${S.value}`
861
876
  }, [
862
877
  d("rect", {
863
878
  x: n.value.left,
864
879
  y: n.value.top,
865
880
  width: n.value.width <= 0 ? 1e-4 : n.value.width,
866
881
  height: n.value.height <= 0 ? 1e-4 : n.value.height
867
- }, null, 8, Tl)
868
- ], 8, Sl),
869
- e.value.style.layout.correlation.show ? (o(), i("g", Ll, [
870
- (o(!0), i(W, null, Y(S.value, (l, s) => (o(), i("line", {
882
+ }, null, 8, Bl)
883
+ ], 8, Ll),
884
+ e.value.style.layout.correlation.show ? (s(), r("g", Ol, [
885
+ (s(!0), r(W, null, Y(z.value, (l, o) => (s(), r("line", {
871
886
  x1: l.correlation.x1,
872
887
  x2: l.correlation.x2,
873
888
  y1: l.correlation.y1,
@@ -875,10 +890,10 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
875
890
  "stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
876
891
  stroke: l.color,
877
892
  "stroke-width": e.value.style.layout.correlation.strokeWidth,
878
- "clip-path": `url(#clip_path_${z.value})`
879
- }, null, 8, Bl))), 256)),
880
- (o(!0), i(W, null, Y(S.value, (l, s) => (o(), i("g", null, [
881
- e.value.style.layout.correlation.label.show ? (o(), i("text", {
893
+ "clip-path": `url(#clip_path_${S.value})`
894
+ }, null, 8, Nl))), 256)),
895
+ (s(!0), r(W, null, Y(z.value, (l, o) => (s(), r("g", null, [
896
+ e.value.style.layout.correlation.label.show ? (s(), r("text", {
882
897
  key: 0,
883
898
  x: l.label.x,
884
899
  y: l.label.y,
@@ -888,15 +903,15 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
888
903
  }, C(u(F)({
889
904
  v: u(A)(l.correlation.coefficient),
890
905
  r: e.value.style.layout.correlation.label.roundingValue
891
- })), 9, Ol)) : c("", !0)
906
+ })), 9, Pl)) : c("", !0)
892
907
  ]))), 256))
893
908
  ])) : c("", !0),
894
909
  M(t.$slots, "svg", { svg: k.value }, void 0, !0)
895
- ], 14, jt)) : c("", !0),
896
- t.$slots.watermark ? (o(), i("div", Nl, [
897
- M(t.$slots, "watermark", ee(te({ isPrinting: u(Oe) || u(Ne) })), void 0, !0)
910
+ ], 14, Et)) : c("", !0),
911
+ t.$slots.watermark ? (s(), r("div", Wl, [
912
+ M(t.$slots, "watermark", te(le({ isPrinting: u(Oe) || u(Ne) })), void 0, !0)
898
913
  ])) : c("", !0),
899
- ae.value ? c("", !0) : (o(), R(u(at), {
914
+ ae.value ? c("", !0) : (s(), E(u(ot), {
900
915
  key: 6,
901
916
  config: {
902
917
  type: "quadrant",
@@ -918,17 +933,17 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
918
933
  ref_key: "chartLegend",
919
934
  ref: we
920
935
  }, [
921
- e.value.style.legend.show ? (o(), R(Xt, {
936
+ e.value.style.legend.show ? (s(), E(Yt, {
922
937
  key: `legend_${Ae.value}`,
923
938
  legendSet: G.value,
924
- config: nt.value,
925
- onClickMarker: r[0] || (r[0] = ({ legend: l }) => Ve(l.id))
939
+ config: vt.value,
940
+ onClickMarker: i[0] || (i[0] = ({ legend: l }) => Re(l.id))
926
941
  }, {
927
942
  item: _(({ legend: l }) => [
928
943
  d("div", {
929
- onClick: (s) => l.segregate(),
944
+ onClick: (o) => l.segregate(),
930
945
  style: j(`opacity:${x.value.includes(l.id) ? 0.5 : 1}`)
931
- }, C(l.name), 13, Pl)
946
+ }, C(l.name), 13, Fl)
932
947
  ]),
933
948
  _: 1
934
949
  }, 8, ["legendSet", "config"])) : M(t.$slots, "legend", {
@@ -936,7 +951,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
936
951
  legend: G.value
937
952
  }, void 0, !0)
938
953
  ], 512),
939
- t.$slots.source ? (o(), i("div", {
954
+ t.$slots.source ? (s(), r("div", {
940
955
  key: 7,
941
956
  ref_key: "source",
942
957
  ref: _e,
@@ -944,8 +959,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
944
959
  }, [
945
960
  M(t.$slots, "source", {}, void 0, !0)
946
961
  ], 512)) : c("", !0),
947
- ge(u(ot), {
948
- show: O.value.showTooltip && ie.value,
962
+ ge(u(st), {
963
+ show: O.value.showTooltip && re.value,
949
964
  backgroundColor: e.value.style.tooltip.backgroundColor,
950
965
  color: e.value.style.tooltip.color,
951
966
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -955,21 +970,21 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
955
970
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
956
971
  position: e.value.style.tooltip.position,
957
972
  offsetY: e.value.style.tooltip.offsetY,
958
- parent: le.value,
973
+ parent: D.value,
959
974
  content: ne.value,
960
- isFullscreen: K.value,
975
+ isFullscreen: Q.value,
961
976
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
962
977
  }, {
963
978
  "tooltip-before": _(() => [
964
- M(t.$slots, "tooltip-before", ee(te({ ...ce.value })), void 0, !0)
979
+ M(t.$slots, "tooltip-before", te(le({ ...ce.value })), void 0, !0)
965
980
  ]),
966
981
  "tooltip-after": _(() => [
967
- M(t.$slots, "tooltip-after", ee(te({ ...ce.value })), void 0, !0)
982
+ M(t.$slots, "tooltip-after", te(le({ ...ce.value })), void 0, !0)
968
983
  ]),
969
984
  default: _(() => [
970
- e.value.style.tooltip.showShape ? (o(), i("div", Wl, [
971
- (o(), i("svg", Fl, [
972
- ge(Ze, {
985
+ e.value.style.tooltip.showShape ? (s(), r("div", Il, [
986
+ (s(), r("svg", Xl, [
987
+ ge(Je, {
973
988
  shape: y.value.shape,
974
989
  color: y.value.color,
975
990
  plot: { x: 10, y: 10 },
@@ -980,7 +995,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
980
995
  ]),
981
996
  _: 3
982
997
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
983
- ae.value ? (o(), R(u(Qe), {
998
+ ae.value ? (s(), E(u(et), {
984
999
  key: 8,
985
1000
  hideDetails: "",
986
1001
  config: {
@@ -997,34 +1012,34 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
997
1012
  }
998
1013
  }, {
999
1014
  content: _(() => [
1000
- (o(), R(u(et), {
1015
+ (s(), E(u(tt), {
1001
1016
  key: `table_${Ce.value}`,
1002
1017
  colNames: se.value.colNames,
1003
1018
  head: se.value.head,
1004
1019
  body: se.value.body,
1005
1020
  config: se.value.config,
1006
1021
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
1007
- onClose: r[1] || (r[1] = (l) => O.value.showTable = !1)
1022
+ onClose: i[1] || (i[1] = (l) => O.value.showTable = !1)
1008
1023
  }, {
1009
1024
  th: _(({ th: l }) => [
1010
- gt(C(l), 1)
1025
+ mt(C(l), 1)
1011
1026
  ]),
1012
1027
  td: _(({ td: l }) => [
1013
- l.shape ? (o(), i("div", Il, [
1028
+ l.shape ? (s(), r("div", Yl, [
1014
1029
  d("span", null, C(l.content), 1)
1015
- ])) : (o(), i("div", {
1030
+ ])) : (s(), r("div", {
1016
1031
  key: 1,
1017
1032
  innerHTML: l
1018
- }, null, 8, Xl))
1033
+ }, null, 8, Dl))
1019
1034
  ]),
1020
1035
  _: 1
1021
1036
  }, 8, ["colNames", "head", "body", "config", "title"]))
1022
1037
  ]),
1023
1038
  _: 1
1024
1039
  }, 8, ["config"])) : c("", !0)
1025
- ], 46, Vt));
1040
+ ], 46, jt));
1026
1041
  }
1027
- }, Kl = /* @__PURE__ */ Dt(Yl, [["__scopeId", "data-v-ea504313"]]);
1042
+ }, ta = /* @__PURE__ */ Vt(Rl, [["__scopeId", "data-v-3b36f62b"]]);
1028
1043
  export {
1029
- Kl as default
1044
+ ta as default
1030
1045
  };