vue-data-ui 2.12.6 → 2.12.7-beta.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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
  2. package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
  8. package/dist/PackageVersion-DaWGaZxE.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
  15. package/dist/SparkTooltip-DcdMxgqn.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
  17. package/dist/Tooltip-B07vY6jm.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-C8URL2IU.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
  41. package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
  45. package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
  46. package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
  57. package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
  66. package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
  76. package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
  85. package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
  86. package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
  89. package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
  90. package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -0,0 +1,64 @@
1
+ import { toRef as k, resolveComponent as d, createElementBlock as o, openBlock as e, Fragment as r, renderList as c, createCommentVNode as s, createElementVNode as y, createBlock as h } from "vue";
2
+ const g = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], x = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], C = {
3
+ __name: "RecursiveLinks",
4
+ props: {
5
+ dataset: {
6
+ type: Array,
7
+ default: () => []
8
+ },
9
+ color: {
10
+ type: String,
11
+ default: "#DDDDDD"
12
+ },
13
+ backgroundColor: {
14
+ type: String,
15
+ default: "#FFFFFF"
16
+ }
17
+ },
18
+ setup(n) {
19
+ return k(n, "dataset").value.forEach((a) => {
20
+ a.nodes && a.nodes.length > 0 && a.nodes.forEach((u) => {
21
+ u.ancestor = a;
22
+ });
23
+ }), (a, u) => {
24
+ const i = d("RecursiveLinks", !0);
25
+ return e(), o(r, null, [
26
+ (e(!0), o(r, null, c(n.dataset, (t) => (e(), o(r, null, [
27
+ t.polygonPath && t.polygonPath.coordinates ? (e(!0), o(r, { key: 0 }, c(t.polygonPath.coordinates, (l, f) => (e(), o(r, null, [
28
+ t.ancestor && t.ancestor.polygonPath ? (e(), o(r, { key: 0 }, [
29
+ y("line", {
30
+ x1: l.x,
31
+ y1: l.y,
32
+ x2: t.ancestor.polygonPath.coordinates[0].x,
33
+ y2: t.ancestor.polygonPath.coordinates[0].y,
34
+ stroke: n.backgroundColor,
35
+ "stroke-width": t.circleRadius / 1.5
36
+ }, null, 8, g),
37
+ y("line", {
38
+ x1: l.x,
39
+ y1: l.y,
40
+ x2: t.ancestor.polygonPath.coordinates[0].x,
41
+ y2: t.ancestor.polygonPath.coordinates[0].y,
42
+ stroke: n.color,
43
+ "stroke-width": t.circleRadius / 2
44
+ }, null, 8, x)
45
+ ], 64)) : s("", !0)
46
+ ], 64))), 256)) : s("", !0)
47
+ ], 64))), 256)),
48
+ (e(!0), o(r, null, c(n.dataset, (t) => (e(), o(r, null, [
49
+ t.polygonPath && t.polygonPath.coordinates ? (e(), o(r, { key: 0 }, [
50
+ t.nodes && t.nodes.length > 0 ? (e(), h(i, {
51
+ key: 0,
52
+ dataset: t.nodes,
53
+ color: n.color,
54
+ backgroundColor: n.backgroundColor
55
+ }, null, 8, ["dataset", "color", "backgroundColor"])) : s("", !0)
56
+ ], 64)) : s("", !0)
57
+ ], 64))), 256))
58
+ ], 64);
59
+ };
60
+ }
61
+ };
62
+ export {
63
+ C as default
64
+ };
@@ -1,5 +1,5 @@
1
1
  import { computed as u, createElementBlock as r, openBlock as l, createCommentVNode as a } from "vue";
2
- import { Z as c, Q as f } from "./index-BFzQMJda.js";
2
+ import { Z as c, Q as f } from "./index-BHEd2dgu.js";
3
3
  const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], g = ["d", "fill", "stroke", "stroke-width"], x = ["points", "fill", "stroke", "stroke-width"], h = {
4
4
  __name: "Shape",
5
5
  props: {
@@ -106,5 +106,5 @@ const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], g = ["d", "fill",
106
106
  }
107
107
  };
108
108
  export {
109
- h as _
109
+ h as default
110
110
  };
@@ -1,7 +1,7 @@
1
1
  import { useCssVars as Ie, computed as s, ref as u, watch as R, onMounted as Pe, onBeforeUnmount as ze, onUpdated as Ae, nextTick as ue, createElementBlock as v, openBlock as m, createElementVNode as d, createCommentVNode as x, renderSlot as Fe, normalizeStyle as $, createVNode as He, withDirectives as oe, unref as Z, Fragment as re, renderList as se, normalizeClass as L, vModelText as de, toDisplayString as ve } from "vue";
2
- import Ve from "./BaseIcon-CNbwMh_-.js";
2
+ import Ve from "./BaseIcon-DhWmrDAn.js";
3
3
  import { t as We, u as Xe } from "./useResponsive-JZ9xq-JV.js";
4
- import { c as Ue, U as me, T as ce, X as Oe, G as he } from "./index-BFzQMJda.js";
4
+ import { c as Ue, U as me, T as ce, X as Oe, G as he } from "./index-BHEd2dgu.js";
5
5
  import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const Ge = {
7
7
  class: "vue-data-ui-slicer-labels",
@@ -0,0 +1,68 @@
1
+ import { toRef as c, ref as a, computed as v, onMounted as m, watch as y, createElementBlock as b, openBlock as g, normalizeStyle as x, renderSlot as k, nextTick as S } from "vue";
2
+ import { s as _, am as i } from "./index-BHEd2dgu.js";
3
+ import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const R = {
5
+ __name: "SparkTooltip",
6
+ props: {
7
+ svgRef: { type: Object },
8
+ x: { type: Number, required: !0 },
9
+ y: { type: Number, required: !0 },
10
+ prevX: { type: Number, required: !0 },
11
+ prevY: { type: Number, required: !0 },
12
+ offsetY: { type: Number, default: 0 },
13
+ background: { type: String },
14
+ backgroundOpacity: { type: Number, default: 100 },
15
+ borderRadius: { type: Number, default: 2 },
16
+ borderWidth: { type: Number, default: 0 },
17
+ borderColor: { type: String, default: "#FFFFFF" },
18
+ color: { type: String },
19
+ fontSize: { type: Number }
20
+ },
21
+ setup(d) {
22
+ const e = d, u = c(e.svgRef), o = a(null), n = a(0), l = a(0), s = a(!1), f = v(() => _(e.background, e.backgroundOpacity)), p = async () => {
23
+ if (!u.value || !o.value) return;
24
+ const t = i({
25
+ svgElement: u.value,
26
+ element: o.value,
27
+ x: e.x,
28
+ y: e.y,
29
+ offsetY: e.offsetY
30
+ }), r = i({
31
+ svgElement: u.value,
32
+ element: o.value,
33
+ x: e.prevX,
34
+ y: e.prevY,
35
+ offsetY: e.offsetY
36
+ });
37
+ !t || !r || (s.value = !1, n.value = r.top, l.value = r.left, await S(), setTimeout(() => {
38
+ s.value = !0, n.value = t.top, l.value = t.left;
39
+ }, 50));
40
+ };
41
+ return m(p), y(
42
+ () => [e.x, e.y, e.prevX, e.prevY],
43
+ () => p(),
44
+ { immediate: !0 }
45
+ ), (t, r) => (g(), b("div", {
46
+ ref_key: "tooltipRef",
47
+ ref: o,
48
+ class: "vue-data-ui-spark-tooltip",
49
+ style: x({
50
+ position: "fixed",
51
+ top: `${n.value}px`,
52
+ left: `${l.value}px`,
53
+ pointerEvents: "none",
54
+ background: f.value,
55
+ color: e.color,
56
+ fontSize: `${e.fontSize}px`,
57
+ borderRadius: `${e.borderRadius}px`,
58
+ border: `${e.borderWidth}px solid ${e.borderColor}`,
59
+ transition: s.value ? "top 0.3s ease-out, left 0.3s ease-out" : "none"
60
+ })
61
+ }, [
62
+ k(t.$slots, "default", {}, void 0, !0)
63
+ ], 4));
64
+ }
65
+ }, F = /* @__PURE__ */ N(R, [["__scopeId", "data-v-c8e27542"]]);
66
+ export {
67
+ F as default
68
+ };
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as l, openBlock as n, Fragment as f, createElementVNode as p, createCommentVNode as o, normalizeStyle as d, unref as e, toDisplayString as g, renderSlot as r } from "vue";
2
- import { u as c } from "./useNestedProp-v7KPpwuP.js";
2
+ import { u as c } from "./useNestedProp-CZztHZIm.js";
3
3
  const x = {
4
4
  __name: "Title",
5
5
  props: {
@@ -57,5 +57,5 @@ const x = {
57
57
  }
58
58
  };
59
59
  export {
60
- x as _
60
+ x as default
61
61
  };
@@ -0,0 +1,149 @@
1
+ import { ref as m, watch as p, nextTick as g, onUnmounted as S, computed as x, createBlock as k, openBlock as h, Teleport as $, createElementBlock as C, createCommentVNode as F, normalizeStyle as B, normalizeClass as N, renderSlot as v, createElementVNode as w } from "vue";
2
+ import { u as z } from "./useMouse-AicQS8Vf.js";
3
+ import { s as T } from "./index-BHEd2dgu.js";
4
+ function Y({ tooltip: t, chart: n, clientPosition: l, positionPreference: s = "center", defaultOffsetY: d = 24, blockShiftY: u = !1 }) {
5
+ const e = m(0), i = m(d);
6
+ if (t && n) {
7
+ const { width: a, height: c } = t.getBoundingClientRect(), { right: f, left: o, bottom: r } = n.getBoundingClientRect();
8
+ s === "center" && (l.x + a / 2 > f ? e.value = -a + (f - l.x) : l.x - a / 2 < o ? e.value = -a + (a - (l.x - o)) : e.value = -a / 2), s === "right" && (l.x + a > f ? e.value = -a + (f - l.x) : e.value = 0), s === "left" && (l.x < o + a ? e.value = -a + (a - (l.x - o)) : e.value = -a), l.y + c > r && !u && (i.value = -c - d);
9
+ }
10
+ return {
11
+ top: l.y + i.value,
12
+ left: l.x + e.value
13
+ };
14
+ }
15
+ const M = ["aria-hidden"], O = ["innerHTML"], b = 0.18, E = {
16
+ __name: "Tooltip",
17
+ props: {
18
+ backgroundColor: {
19
+ type: String,
20
+ default: "#FFFFFF"
21
+ },
22
+ color: {
23
+ type: String,
24
+ default: "#000000"
25
+ },
26
+ content: String,
27
+ maxWidth: {
28
+ type: String,
29
+ default: "300px"
30
+ },
31
+ parent: {
32
+ type: Object
33
+ },
34
+ show: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ isCustom: {
39
+ type: Boolean,
40
+ default: !1
41
+ },
42
+ fontSize: {
43
+ type: [Number, String],
44
+ default: 14
45
+ },
46
+ borderRadius: {
47
+ type: Number,
48
+ default: 4
49
+ },
50
+ borderColor: {
51
+ type: String,
52
+ default: "#e1e5e8"
53
+ },
54
+ borderWidth: {
55
+ type: Number,
56
+ default: 1
57
+ },
58
+ backgroundOpacity: {
59
+ type: Number,
60
+ default: 100
61
+ },
62
+ position: {
63
+ type: String,
64
+ default: "center"
65
+ },
66
+ offsetY: {
67
+ type: Number,
68
+ default: 24
69
+ },
70
+ blockShiftY: {
71
+ type: Boolean,
72
+ default: !1
73
+ },
74
+ isFullscreen: {
75
+ type: Boolean,
76
+ default: !1
77
+ },
78
+ disableSmoothing: {
79
+ type: Boolean,
80
+ default: !1
81
+ }
82
+ },
83
+ setup(t) {
84
+ const n = t, l = m(null), { x: s, y: d } = z(n.parent), u = m({ x: 0, y: 0 }), e = m({ x: 0, y: 0 });
85
+ let i = null;
86
+ function a() {
87
+ if (n.disableSmoothing) {
88
+ e.value.x = u.value.x, e.value.y = u.value.y;
89
+ return;
90
+ }
91
+ e.value.x += (u.value.x - e.value.x) * b, e.value.y += (u.value.y - e.value.y) * b, i = requestAnimationFrame(a);
92
+ }
93
+ p([s, d], ([o, r]) => {
94
+ u.value.x = o, u.value.y = r, n.disableSmoothing && (e.value.x = o, e.value.y = r);
95
+ }), p(() => n.show, async (o) => {
96
+ if (o) {
97
+ const r = s.value, y = d.value;
98
+ u.value.x = r, u.value.y = y, e.value.x = r, e.value.y = y, await g(), i || a();
99
+ } else
100
+ i && (cancelAnimationFrame(i), i = null);
101
+ }), S(() => {
102
+ i && cancelAnimationFrame(i);
103
+ });
104
+ const c = x(() => {
105
+ const o = Y({
106
+ tooltip: l.value,
107
+ chart: n.parent,
108
+ clientPosition: e.value,
109
+ positionPreference: n.position,
110
+ defaultOffsetY: n.offsetY,
111
+ blockShiftY: n.blockShiftY
112
+ });
113
+ return {
114
+ top: Math.round(o.top),
115
+ left: Math.round(o.left)
116
+ };
117
+ }), f = x(() => T(n.backgroundColor, n.backgroundOpacity));
118
+ return (o, r) => (h(), k($, {
119
+ to: t.isFullscreen ? t.parent : "body"
120
+ }, [
121
+ t.show ? (h(), C("div", {
122
+ key: 0,
123
+ ref_key: "tooltip",
124
+ ref: l,
125
+ role: "tooltip",
126
+ "aria-hidden": !t.show,
127
+ "aria-live": "polite",
128
+ class: N({ "vue-data-ui-custom-tooltip": t.isCustom, "vue-data-ui-tooltip": !t.isCustom }),
129
+ style: B(`
130
+ pointer-events:none;
131
+ top:${c.value.top}px;
132
+ left:${c.value.left}px;
133
+ ${t.isCustom ? "" : `background:${f.value};color:${t.color};max-width:${t.maxWidth};font-size:${t.fontSize}px`};
134
+ border-radius:${t.borderRadius}px;
135
+ border:${t.borderWidth}px solid ${t.borderColor};
136
+ z-index:2147483647;
137
+ `)
138
+ }, [
139
+ v(o.$slots, "tooltip-before"),
140
+ v(o.$slots, "default"),
141
+ w("div", { innerHTML: t.content }, null, 8, O),
142
+ v(o.$slots, "tooltip-after")
143
+ ], 14, M)) : F("", !0)
144
+ ], 8, ["to"]));
145
+ }
146
+ };
147
+ export {
148
+ E as default
149
+ };