vue-data-ui 3.15.12 → 3.16.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.
- package/README.md +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { ref as i, onMounted as
|
|
2
|
-
import { u as U } from "./lib-
|
|
3
|
-
function J({ tooltip: n, chart:
|
|
4
|
-
const l = i(0), a = i(
|
|
5
|
-
if (n &&
|
|
6
|
-
const { width: u, height: m } = n.getBoundingClientRect(), { right: f, left: p, bottom:
|
|
7
|
-
v === "center" && (t.x + u / 2 > f ? l.value = -u + (f - t.x) : t.x - u / 2 < p ? l.value = -u + (u - (t.x - p)) : l.value = -u / 2), v === "right" && (t.x + u > f ? l.value = -u + (f - t.x) : l.value = 0), v === "left" && (t.x < p + u ? l.value = -u + (u - (t.x - p)) : l.value = -u), t.y + m >
|
|
1
|
+
import { ref as i, onMounted as W, onUnmounted as R, watch as Y, nextTick as j, computed as x, openBlock as M, createBlock as P, Teleport as q, createElementBlock as H, normalizeStyle as I, normalizeClass as V, renderSlot as k, createElementVNode as D, createCommentVNode as G } from "vue";
|
|
2
|
+
import { u as U } from "./lib-DBptbyyI.js";
|
|
3
|
+
function J({ tooltip: n, chart: s, clientPosition: t, positionPreference: v = "center", defaultOffsetY: y = 24, blockShiftY: b = !1 }) {
|
|
4
|
+
const l = i(0), a = i(y);
|
|
5
|
+
if (n && s) {
|
|
6
|
+
const { width: u, height: m } = n.getBoundingClientRect(), { right: f, left: p, bottom: C } = s.getBoundingClientRect();
|
|
7
|
+
v === "center" && (t.x + u / 2 > f ? l.value = -u + (f - t.x) : t.x - u / 2 < p ? l.value = -u + (u - (t.x - p)) : l.value = -u / 2), v === "right" && (t.x + u > f ? l.value = -u + (f - t.x) : l.value = 0), v === "left" && (t.x < p + u ? l.value = -u + (u - (t.x - p)) : l.value = -u), t.y + m > C && !b && (a.value = -m - y);
|
|
8
8
|
}
|
|
9
9
|
return {
|
|
10
10
|
top: t.y + a.value,
|
|
11
11
|
left: t.x + l.value
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function K(n,
|
|
15
|
-
|
|
14
|
+
function K(n, s, t) {
|
|
15
|
+
W(() => n.addEventListener(s, t)), R(() => n.removeEventListener(s, t));
|
|
16
16
|
}
|
|
17
17
|
function Q() {
|
|
18
|
-
const n = i(0),
|
|
18
|
+
const n = i(0), s = i(0);
|
|
19
19
|
return K(window, "mousemove", (t) => {
|
|
20
|
-
n.value = t.clientX,
|
|
21
|
-
}), { x: n, y:
|
|
20
|
+
n.value = t.clientX, s.value = t.clientY;
|
|
21
|
+
}), { x: n, y: s };
|
|
22
22
|
}
|
|
23
|
-
const Z = ["aria-hidden"],
|
|
23
|
+
const Z = ["aria-hidden"], _ = ["innerHTML"], oe = {
|
|
24
24
|
__name: "Tooltip",
|
|
25
25
|
props: {
|
|
26
26
|
teleportTo: {
|
|
@@ -102,22 +102,30 @@ const Z = ["aria-hidden"], P = ["innerHTML"], te = {
|
|
|
102
102
|
smoothSnapThreshold: {
|
|
103
103
|
type: Number,
|
|
104
104
|
default: 0.25
|
|
105
|
+
},
|
|
106
|
+
isA11yMode: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: !1
|
|
109
|
+
},
|
|
110
|
+
a11yPosition: {
|
|
111
|
+
type: Object,
|
|
112
|
+
default: null
|
|
105
113
|
}
|
|
106
114
|
},
|
|
107
|
-
setup(n, { expose:
|
|
108
|
-
const t = n, v = i(null), { x:
|
|
109
|
-
function
|
|
110
|
-
const e =
|
|
115
|
+
setup(n, { expose: s }) {
|
|
116
|
+
const t = n, v = i(null), { x: y, y: b } = Q(t.parent), l = i({ x: 0, y: 0 }), a = i({ x: 0, y: 0 }), u = i(null), m = i(null), f = i({ scaleX: 1, scaleY: 1 }), p = i(null);
|
|
117
|
+
function C() {
|
|
118
|
+
const e = X(v.value);
|
|
111
119
|
if (u.value = e, !e) {
|
|
112
120
|
m.value = null, f.value = { scaleX: 1, scaleY: 1 }, p.value = null;
|
|
113
121
|
return;
|
|
114
122
|
}
|
|
115
|
-
m.value = e.getBoundingClientRect(), f.value =
|
|
123
|
+
m.value = e.getBoundingClientRect(), f.value = A(e), p.value = t.parent?.getBoundingClientRect?.() || null;
|
|
116
124
|
}
|
|
117
125
|
function T(e) {
|
|
118
126
|
return e ? !!(e.transform && e.transform !== "none" || e.perspective && e.perspective !== "none" || e.filter && e.filter !== "none" || e.backdropFilter && e.backdropFilter !== "none" || e.contain && e.contain.includes("paint") || e.willChange && (e.willChange.includes("transform") || e.willChange.includes("filter"))) : !1;
|
|
119
127
|
}
|
|
120
|
-
function
|
|
128
|
+
function X(e) {
|
|
121
129
|
let o = e?.parentElement || null;
|
|
122
130
|
for (; o && o !== document.documentElement; ) {
|
|
123
131
|
const r = getComputedStyle(o);
|
|
@@ -126,90 +134,100 @@ const Z = ["aria-hidden"], P = ["innerHTML"], te = {
|
|
|
126
134
|
}
|
|
127
135
|
return null;
|
|
128
136
|
}
|
|
129
|
-
function
|
|
137
|
+
function A(e) {
|
|
130
138
|
if (!e) return { scaleX: 1, scaleY: 1 };
|
|
131
139
|
const r = getComputedStyle(e).transform;
|
|
132
140
|
if (!r || r === "none") return { scaleX: 1, scaleY: 1 };
|
|
133
141
|
try {
|
|
134
|
-
const d = new DOMMatrixReadOnly(r),
|
|
142
|
+
const d = new DOMMatrixReadOnly(r), c = Math.hypot(d.a, d.b), L = Math.hypot(d.c, d.d);
|
|
135
143
|
return {
|
|
136
|
-
scaleX:
|
|
137
|
-
scaleY:
|
|
144
|
+
scaleX: c || 1,
|
|
145
|
+
scaleY: L || 1
|
|
138
146
|
};
|
|
139
147
|
} catch {
|
|
140
148
|
return { scaleX: 1, scaleY: 1 };
|
|
141
149
|
}
|
|
142
150
|
}
|
|
143
151
|
function E({ x: e, y: o }) {
|
|
144
|
-
|
|
152
|
+
t.isA11yMode || (y.value = e, b.value = o);
|
|
145
153
|
}
|
|
146
|
-
let
|
|
147
|
-
function
|
|
154
|
+
let h = null;
|
|
155
|
+
function F() {
|
|
148
156
|
if (!t.show) {
|
|
149
|
-
|
|
157
|
+
g();
|
|
150
158
|
return;
|
|
151
159
|
}
|
|
152
160
|
if (!t.smooth) {
|
|
153
|
-
a.value.x = l.value.x, a.value.y = l.value.y,
|
|
161
|
+
a.value.x = l.value.x, a.value.y = l.value.y, g();
|
|
154
162
|
return;
|
|
155
163
|
}
|
|
156
164
|
const e = l.value.x - a.value.x, o = l.value.y - a.value.y;
|
|
157
165
|
if (Math.abs(e) <= t.smoothSnapThreshold && Math.abs(o) <= t.smoothSnapThreshold) {
|
|
158
|
-
a.value.x = l.value.x, a.value.y = l.value.y,
|
|
166
|
+
a.value.x = l.value.x, a.value.y = l.value.y, g();
|
|
159
167
|
return;
|
|
160
168
|
}
|
|
161
|
-
a.value.x += e * t.smoothForce, a.value.y += o * t.smoothForce,
|
|
169
|
+
a.value.x += e * t.smoothForce, a.value.y += o * t.smoothForce, h = requestAnimationFrame(F);
|
|
162
170
|
}
|
|
163
|
-
function
|
|
164
|
-
|
|
171
|
+
function B() {
|
|
172
|
+
h == null && t.show && t.smooth && (h = requestAnimationFrame(F));
|
|
165
173
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
174
|
+
function g() {
|
|
175
|
+
h != null && (cancelAnimationFrame(h), h = null);
|
|
168
176
|
}
|
|
169
|
-
|
|
170
|
-
l.value.x = e, l.value.y = o, t.smooth ?
|
|
171
|
-
}),
|
|
177
|
+
Y([y, b], ([e, o]) => {
|
|
178
|
+
l.value.x = e, l.value.y = o, t.smooth ? B() : (a.value.x = e, a.value.y = o);
|
|
179
|
+
}), Y(
|
|
172
180
|
() => t.show,
|
|
173
181
|
async (e) => {
|
|
174
182
|
if (!e) {
|
|
175
|
-
|
|
183
|
+
g();
|
|
176
184
|
return;
|
|
177
185
|
}
|
|
178
|
-
const o =
|
|
179
|
-
l.value.x = o, l.value.y = r, a.value.x = o, a.value.y = r, await
|
|
186
|
+
const o = y.value, r = b.value;
|
|
187
|
+
l.value.x = o, l.value.y = r, a.value.x = o, a.value.y = r, await j(), C(), B();
|
|
180
188
|
}
|
|
181
189
|
), R(() => {
|
|
182
|
-
|
|
190
|
+
g();
|
|
183
191
|
});
|
|
184
|
-
const
|
|
192
|
+
const S = x(() => t.isA11yMode && t.a11yPosition && typeof t.a11yPosition.x == "number" && typeof t.a11yPosition.y == "number" ? {
|
|
193
|
+
x: t.a11yPosition.x,
|
|
194
|
+
y: t.a11yPosition.y
|
|
195
|
+
} : {
|
|
196
|
+
x: a.value.x,
|
|
197
|
+
y: a.value.y
|
|
198
|
+
}), N = x(() => {
|
|
185
199
|
const e = m.value;
|
|
186
|
-
if (!e)
|
|
200
|
+
if (!e)
|
|
201
|
+
return {
|
|
202
|
+
x: S.value.x,
|
|
203
|
+
y: S.value.y
|
|
204
|
+
};
|
|
187
205
|
const { scaleX: o, scaleY: r } = f.value;
|
|
188
206
|
return {
|
|
189
|
-
x: (
|
|
190
|
-
y: (
|
|
207
|
+
x: (S.value.x - e.left) / o,
|
|
208
|
+
y: (S.value.y - e.top) / r
|
|
191
209
|
};
|
|
192
|
-
}), $ =
|
|
210
|
+
}), $ = x(() => {
|
|
193
211
|
const e = m.value, o = p.value;
|
|
194
212
|
if (!e || !o) return t.parent;
|
|
195
213
|
const { scaleX: r, scaleY: d } = f.value;
|
|
196
214
|
return {
|
|
197
215
|
...t.parent,
|
|
198
216
|
getBoundingClientRect() {
|
|
199
|
-
const
|
|
217
|
+
const c = o;
|
|
200
218
|
return {
|
|
201
|
-
left: (
|
|
202
|
-
top: (
|
|
203
|
-
right: (
|
|
204
|
-
bottom: (
|
|
205
|
-
width:
|
|
206
|
-
height:
|
|
207
|
-
x: (
|
|
208
|
-
y: (
|
|
219
|
+
left: (c.left - e.left) / r,
|
|
220
|
+
top: (c.top - e.top) / d,
|
|
221
|
+
right: (c.right - e.left) / r,
|
|
222
|
+
bottom: (c.bottom - e.top) / d,
|
|
223
|
+
width: c.width / r,
|
|
224
|
+
height: c.height / d,
|
|
225
|
+
x: (c.left - e.left) / r,
|
|
226
|
+
y: (c.top - e.top) / d
|
|
209
227
|
};
|
|
210
228
|
}
|
|
211
229
|
};
|
|
212
|
-
}),
|
|
230
|
+
}), w = x(() => {
|
|
213
231
|
const e = J({
|
|
214
232
|
tooltip: v.value,
|
|
215
233
|
chart: $.value,
|
|
@@ -222,30 +240,30 @@ const Z = ["aria-hidden"], P = ["innerHTML"], te = {
|
|
|
222
240
|
top: Math.round(e.top),
|
|
223
241
|
left: Math.round(e.left)
|
|
224
242
|
};
|
|
225
|
-
}),
|
|
243
|
+
}), O = x(() => U(t.backgroundColor, t.backgroundOpacity)), z = x(() => {
|
|
226
244
|
const e = {
|
|
227
245
|
pointerEvents: "none",
|
|
228
246
|
position: "fixed",
|
|
229
247
|
top: "0px",
|
|
230
248
|
left: "0px",
|
|
231
|
-
transform: `translate3d(${
|
|
249
|
+
transform: `translate3d(${w.value.left}px, ${w.value.top}px, 0)`,
|
|
232
250
|
borderRadius: `${t.borderRadius}px`,
|
|
233
251
|
border: `${t.borderWidth}px solid ${t.borderColor}`,
|
|
234
252
|
zIndex: 2147483647
|
|
235
253
|
};
|
|
236
254
|
return t.isCustom || Object.assign(e, {
|
|
237
|
-
background:
|
|
255
|
+
background: O.value,
|
|
238
256
|
color: t.color,
|
|
239
257
|
maxWidth: t.maxWidth,
|
|
240
258
|
fontSize: `${t.fontSize}px`
|
|
241
259
|
}), e;
|
|
242
260
|
});
|
|
243
|
-
return
|
|
261
|
+
return s({
|
|
244
262
|
placeTooltip: E
|
|
245
|
-
}), (e, o) => (
|
|
263
|
+
}), (e, o) => (M(), P(q, {
|
|
246
264
|
to: n.isFullscreen ? n.parent : n.teleportTo
|
|
247
265
|
}, [
|
|
248
|
-
n.show ? (
|
|
266
|
+
n.show ? (M(), H("div", {
|
|
249
267
|
key: 0,
|
|
250
268
|
ref_key: "tooltip",
|
|
251
269
|
ref: v,
|
|
@@ -257,16 +275,16 @@ const Z = ["aria-hidden"], P = ["innerHTML"], te = {
|
|
|
257
275
|
"vue-data-ui-tooltip": !n.isCustom,
|
|
258
276
|
"vue-data-ui-tooltip-backdrop": n.backdropFilter
|
|
259
277
|
}),
|
|
260
|
-
style: I(
|
|
278
|
+
style: I(z.value)
|
|
261
279
|
}, [
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
D("div", { innerHTML: n.content }, null, 8,
|
|
265
|
-
|
|
280
|
+
k(e.$slots, "tooltip-before"),
|
|
281
|
+
k(e.$slots, "default"),
|
|
282
|
+
D("div", { innerHTML: n.content }, null, 8, _),
|
|
283
|
+
k(e.$slots, "tooltip-after")
|
|
266
284
|
], 14, Z)) : G("", !0)
|
|
267
285
|
], 8, ["to"]));
|
|
268
286
|
}
|
|
269
287
|
};
|
|
270
288
|
export {
|
|
271
|
-
|
|
289
|
+
oe as default
|
|
272
290
|
};
|