vue-data-ui 2.12.6 → 2.12.7-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
  2. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  8. package/dist/PackageVersion-CLY-udAA.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.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-D3w9qas1.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
  15. package/dist/SparkTooltip-CwThutH2.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
  17. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.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-tRqS0ZAM.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-CRCbl1WG.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.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-rtuSc8FS.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
  41. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  45. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  46. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  57. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
  66. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  76. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  85. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  86. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  89. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  90. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-DcGgQ7s4.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-BiHmNd1-.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-CZdMutjs.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-BiHmNd1-.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-BiHmNd1-.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-tRqS0ZAM.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-BiHmNd1-.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
+ };