vue-data-ui 3.16.0 → 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/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
- package/dist/components/vue-ui-3d-bar.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-kpi.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-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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DXGkXRnC.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-BaFpQnd5.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-CRM498Pc.js} +342 -341
- package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
- package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-BBiwof3c.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-Brxpu4xV.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DAnZv77-.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-BHRZBYY0.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-CbrYnRgm.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-CaX_IUVs.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-CR3h53sc.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-Cjfazw7Z.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-B9vH3c66.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-DWll05qs.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-DcM67rMx.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Be5G38P5.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-BLSesj3c.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-DIMiCY4r.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-zvZylhgr.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-CSri-oWm.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-CGykxsAI.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-D1MNB9Jq.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-DdJDGhG2.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-BZYRHGFm.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-CryOx6XK.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-C85iw9Kl.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-BoBZOybC.js} +430 -429
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-DHrolXw6.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-DJ_BQ4DK.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-CBE02TpQ.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-YTFtb4CL.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-B9l81-PS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-C1e_rs8J.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-C1qsLCRn.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DFoz3WiA.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-Cmo3p-UA.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-BqwznVwf.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CDk9eXJq.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-BRkGoQdL.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-BxDtWASQ.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-D6kTb9aO.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-D8Mf2A1w.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-BbYj56c3.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DXzOSLRb.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-DMfSx1iH.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-D-rQ9PsC.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-DK5n8IKP.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-BHthy6jf.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-C6-WNpKD.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-CHu-1ilI.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DW9JGsLq.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-CXK1dFr-.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-BN8tflOz.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-DGT0UBOF.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-BZ-osQqY.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-98KaVRyd.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-Cb7oJnIc.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-sfew1fjw.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-vq1t9JHr.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-CN0f6elD.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-BdzEiImZ.js} +956 -955
- package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
- package/package.json +1 -1
- package/dist/ColorPicker-DQ5sdRrl.js +0 -244
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as v, computed as
|
|
2
|
-
import
|
|
3
|
-
import { C as
|
|
4
|
-
import { j as
|
|
5
|
-
const
|
|
1
|
+
import { ref as v, computed as be, watch as U, nextTick as re, onMounted as Fe, onBeforeUnmount as Ie, openBlock as se, createElementBlock as ue, normalizeStyle as x, createElementVNode as B, renderSlot as M, createVNode as T, withCtx as Qe, normalizeProps as K, guardReactiveProps as X, normalizeClass as ne, toDisplayString as Ve, unref as Ue, withDirectives as we, vModelText as ye, createCommentVNode as Ke } from "vue";
|
|
2
|
+
import Y from "./BaseIcon-Cb3zzG6s.js";
|
|
3
|
+
import { C as Xe } from "./ColorPicker-B0mV4xzu.js";
|
|
4
|
+
import { j as xe, x as Ye, l as Ge, X as G } from "./lib-DBptbyyI.js";
|
|
5
|
+
const qe = ["disabled"], je = {
|
|
6
6
|
__name: "PenAndPaper",
|
|
7
7
|
props: {
|
|
8
8
|
svgRef: {
|
|
@@ -31,29 +31,27 @@ const Ge = ["disabled"], Oe = {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["close"],
|
|
34
|
-
setup(i, { emit:
|
|
35
|
-
const l = i,
|
|
36
|
-
v(null);
|
|
37
|
-
const ae = v(`arrow-${ye()}`), ue = v(`arrow-def-${ye()}`), q = v(!1), m = v(null), le = v({ x: 0, y: 0 }), I = v([""]), Q = v({ row: 0, col: 0 }), D = v(16), V = v(!1), ie = ["arrow", "text", "line", "draw"], z = v(0), g = he(() => ie[z.value]), ke = {
|
|
34
|
+
setup(i, { emit: Ce }) {
|
|
35
|
+
const l = i, ke = Ce, w = v([]), C = v([]), E = v(l.color), N = v(2), k = v(!1), q = v(""), r = v(null), y = v(null), f = v(null), F = v(null), ae = v(`arrow-${xe()}`), ie = v(`arrow-def-${xe()}`), z = v(!1), m = v(null), le = v({ x: 0, y: 0 }), I = v([""]), Q = v({ row: 0, col: 0 }), D = v(16), V = v(!1), ve = ["arrow", "text", "line", "draw"], H = v(0), g = be(() => ve[H.value]), Le = {
|
|
38
36
|
arrow: "plotArrow",
|
|
39
37
|
text: "text",
|
|
40
38
|
line: "plotLine",
|
|
41
39
|
draw: "annotator"
|
|
42
|
-
},
|
|
43
|
-
function
|
|
44
|
-
|
|
40
|
+
}, Ee = v("url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVh2YQcchQnSyIijhKFYtgobQVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnAtB020wn4lIuvyqFXhGGiAhCiMnMMpKZxSx8x9c9Any9i/Es/3N/jgG1YDEgIBHPMcO0iTeIZzZtg/M+scjKskp8Tjxu0gWJH7muePzGueSywDNFM5ueJxaJpVIXK13MyqZGPE0cVTWd8oWcxyrnLc5atc7a9+QvDBf0lQzXaY4ggSUkkYIEBXVUUIWNGK06KRbStB/38Q+7/hS5FHJVwMixgBo0yK4f/A9+d2sVpya9pHAc6H1xnI9RILQLtBqO833sOK0TIPgMXOkdf60JzH6S3uho0SNgcBu4uO5oyh5wuQMMPRmyKbtSkKZQLALvZ/RNeSByC/Sveb2193H6AGSpq+Ub4OAQGCtR9rrPu/u6e/v3TLu/H5C7crM1WjgWAAAABmJLR0QAqwB5AHWF+8OUAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5gwUExIUagzGcQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABfSURBVBjTldAxDoNQDIPhL0+q1L33P1AvAhN7xfK6WAgoLfSfrNiykpQtE+7RLzx2vgF9D3o8lWDmn1QVVMP0LZQGmNtqp1/cmou0XHdG/+sYeGZwFBqPCub8rkcvvAGvsi1VYarR8wAAAABJRU5ErkJggg==') 5 5, auto");
|
|
41
|
+
function Re() {
|
|
42
|
+
H.value + 1 >= ve.length ? H.value = 0 : H.value += 1;
|
|
45
43
|
}
|
|
46
|
-
function
|
|
47
|
-
if (!r.value || g.value !== "text" ||
|
|
44
|
+
function W(t) {
|
|
45
|
+
if (!r.value || g.value !== "text" || z.value) return;
|
|
48
46
|
const { x: e, y: a } = S(t);
|
|
49
47
|
le.value = { x: e, y: a }, I.value = [""], Q.value = { row: 0, col: 0 }, V.value = !1;
|
|
50
48
|
const n = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
51
49
|
n.setAttribute("x", e), n.setAttribute("y", a), n.setAttribute("fill", E.value), n.setAttribute("font-size", D.value * l.scale), n.setAttribute("font-family", "sans-serif"), n.setAttribute("class", "vue-data-ui-doodle"), n.setAttribute("dominant-baseline", "hanging"), n.setAttribute("pointer-events", "all");
|
|
52
50
|
const o = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
53
|
-
o.setAttribute("x", e), o.setAttribute("dy", "0"), o.textContent = "", n.appendChild(o), n.style.pointerEvents = "none", n.style.userSelect = "none", r.value.appendChild(n), m.value = n,
|
|
51
|
+
o.setAttribute("x", e), o.setAttribute("dy", "0"), o.textContent = "", n.appendChild(o), n.style.pointerEvents = "none", n.style.userSelect = "none", r.value.appendChild(n), m.value = n, z.value = !0, window.addEventListener("keydown", ce), window.addEventListener("mousedown", ge, !0), de(), fe();
|
|
54
52
|
}
|
|
55
|
-
function
|
|
56
|
-
if (!
|
|
53
|
+
function ce(t) {
|
|
54
|
+
if (!z.value) return;
|
|
57
55
|
let { row: e, col: a } = Q.value, n = I.value.slice(), o = !1;
|
|
58
56
|
if (t.key === "Enter") {
|
|
59
57
|
const s = n[e], u = s.slice(0, a), c = s.slice(a);
|
|
@@ -82,9 +80,9 @@ const Ge = ["disabled"], Oe = {
|
|
|
82
80
|
oe(!0);
|
|
83
81
|
return;
|
|
84
82
|
} else t.key === "Tab" && t.preventDefault();
|
|
85
|
-
o && (I.value = n, Q.value = { row: e, col: a }, n.some((u) => u.length > 0) && !V.value && m.value && (w.value.push(m.value), C.value = [], V.value = !0),
|
|
83
|
+
o && (I.value = n, Q.value = { row: e, col: a }, n.some((u) => u.length > 0) && !V.value && m.value && (w.value.push(m.value), C.value = [], V.value = !0), de(), fe());
|
|
86
84
|
}
|
|
87
|
-
function
|
|
85
|
+
function de() {
|
|
88
86
|
const t = m.value, { x: e } = le.value;
|
|
89
87
|
for (; t.firstChild; ) t.removeChild(t.firstChild);
|
|
90
88
|
I.value.forEach((a, n) => {
|
|
@@ -92,22 +90,22 @@ const Ge = ["disabled"], Oe = {
|
|
|
92
90
|
o.setAttribute("x", e), o.setAttribute("dy", n === 0 ? "0" : `${D.value * 1.2 * l.scale}`), o.textContent = a.length ? a : "", t.appendChild(o);
|
|
93
91
|
});
|
|
94
92
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
97
|
-
|
|
93
|
+
const O = v(null);
|
|
94
|
+
function j() {
|
|
95
|
+
O.value !== null && (clearInterval(O.value), O.value = null);
|
|
98
96
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
97
|
+
function Se(t) {
|
|
98
|
+
j();
|
|
101
99
|
let e = !0;
|
|
102
|
-
t.style.opacity = "1",
|
|
100
|
+
t.style.opacity = "1", O.value = setInterval(() => {
|
|
103
101
|
if (!r.value || !t || !r.value.contains(t)) {
|
|
104
|
-
|
|
102
|
+
j();
|
|
105
103
|
return;
|
|
106
104
|
}
|
|
107
105
|
e = !e, t.style.opacity = e ? "1" : "0";
|
|
108
106
|
}, 500);
|
|
109
107
|
}
|
|
110
|
-
function
|
|
108
|
+
function fe() {
|
|
111
109
|
const t = r.value?.querySelector(".vue-data-ui-svg-caret");
|
|
112
110
|
t && r.value && r.value.removeChild(t);
|
|
113
111
|
const e = m.value;
|
|
@@ -121,16 +119,16 @@ const Ge = ["disabled"], Oe = {
|
|
|
121
119
|
const A = d.getBBox();
|
|
122
120
|
r.value.removeChild(d);
|
|
123
121
|
const b = n + o * u * 1.2, $ = a + A.width, h = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
124
|
-
h.setAttribute("x", $), h.setAttribute("y", b), h.setAttribute("rx", 1), h.setAttribute("width", 2), h.setAttribute("height", u), h.setAttribute("fill", E.value), h.setAttribute("class", "vue-data-ui-svg-caret"), r.value.appendChild(h),
|
|
122
|
+
h.setAttribute("x", $), h.setAttribute("y", b), h.setAttribute("rx", 1), h.setAttribute("width", 2), h.setAttribute("height", u), h.setAttribute("fill", E.value), h.setAttribute("class", "vue-data-ui-svg-caret"), r.value.appendChild(h), Se(h);
|
|
125
123
|
}
|
|
126
|
-
function
|
|
124
|
+
function ge(t) {
|
|
127
125
|
if (m.value && !m.value.contains(t.target)) {
|
|
128
126
|
const e = m.value.children;
|
|
129
127
|
e.length === 1 && (e[0].textContent === "" || e[0].textContent === "") && m.value.remove(), oe(!1);
|
|
130
128
|
}
|
|
131
129
|
}
|
|
132
130
|
function oe(t = !1) {
|
|
133
|
-
window.removeEventListener("keydown",
|
|
131
|
+
window.removeEventListener("keydown", ce), window.removeEventListener("mousedown", ge, !0), j();
|
|
134
132
|
const e = r.value?.querySelector(".vue-data-ui-svg-caret");
|
|
135
133
|
e && r.value && r.value.removeChild(e);
|
|
136
134
|
const a = m.value?.children;
|
|
@@ -139,10 +137,10 @@ const Ge = ["disabled"], Oe = {
|
|
|
139
137
|
const o = a[0].textContent;
|
|
140
138
|
n = !o || o === "";
|
|
141
139
|
}
|
|
142
|
-
(t || n) && m.value && r.value && r.value.contains(m.value) && r.value.removeChild(m.value),
|
|
140
|
+
(t || n) && m.value && r.value && r.value.contains(m.value) && r.value.removeChild(m.value), z.value = !1, m.value = null, I.value = [""], Q.value = { row: 0, col: 0 }, V.value = !1;
|
|
143
141
|
}
|
|
144
|
-
const R =
|
|
145
|
-
function
|
|
142
|
+
const R = be(() => Ye(l.color, 0.6));
|
|
143
|
+
function me() {
|
|
146
144
|
if (!r.value) return;
|
|
147
145
|
const t = r.value.querySelector(".vue-data-ui-mask");
|
|
148
146
|
if (t && r.value.removeChild(t), l.active) {
|
|
@@ -158,14 +156,14 @@ const Ge = ["disabled"], Oe = {
|
|
|
158
156
|
const c = e.getScreenCTM()?.inverse();
|
|
159
157
|
return c ? a.matrixTransform(c) : { x: 0, y: 0 };
|
|
160
158
|
}
|
|
161
|
-
function
|
|
159
|
+
function $e(t) {
|
|
162
160
|
const e = t.trim().split(/\s+/);
|
|
163
161
|
if (e.length < 4)
|
|
164
162
|
return t;
|
|
165
163
|
const a = e.slice(1).map(Number);
|
|
166
164
|
if (a.length % 2 !== 0)
|
|
167
165
|
return t;
|
|
168
|
-
const n =
|
|
166
|
+
const n = Be(a), o = [`M ${n[0]} ${n[1]}`];
|
|
169
167
|
for (let c = 2; c < n.length - 2; c += 2) {
|
|
170
168
|
const p = n[c - 2], d = n[c - 1], A = n[c], b = n[c + 1], $ = (p + A) / 2, h = (d + b) / 2;
|
|
171
169
|
o.push(`Q ${p} ${d} ${$} ${h}`);
|
|
@@ -173,7 +171,7 @@ const Ge = ["disabled"], Oe = {
|
|
|
173
171
|
const s = n[n.length - 2], u = n[n.length - 1];
|
|
174
172
|
return o.push(`L ${s} ${u}`), o.join(" ");
|
|
175
173
|
}
|
|
176
|
-
function
|
|
174
|
+
function Be(t, e = 1) {
|
|
177
175
|
const a = [...t];
|
|
178
176
|
for (let n = 2; n < t.length - 2; n += 2) {
|
|
179
177
|
const o = t[n], s = t[n + 1], u = t[n - 2], c = t[n - 1], p = t[n + 2], d = t[n + 3];
|
|
@@ -181,7 +179,7 @@ const Ge = ["disabled"], Oe = {
|
|
|
181
179
|
}
|
|
182
180
|
return a;
|
|
183
181
|
}
|
|
184
|
-
function
|
|
182
|
+
function Ne(t) {
|
|
185
183
|
const e = t.trim().split(/\s+/);
|
|
186
184
|
let a = "", n = "", o = null, s = null;
|
|
187
185
|
for (let u = 0; u < e.length; u += 1) {
|
|
@@ -206,34 +204,34 @@ const Ge = ["disabled"], Oe = {
|
|
|
206
204
|
}
|
|
207
205
|
return a;
|
|
208
206
|
}
|
|
209
|
-
function
|
|
207
|
+
function J(t) {
|
|
210
208
|
if (t.cancelable && t.preventDefault(), g.value !== "draw" || !l.active || !r.value) return;
|
|
211
209
|
k.value = !0;
|
|
212
210
|
const { x: e, y: a } = S(t);
|
|
213
|
-
F.value = { x: e, y: a },
|
|
211
|
+
F.value = { x: e, y: a }, q.value = `M ${e} ${a}`, y.value = document.createElementNS(G, "path"), y.value.setAttribute("stroke", E.value), y.value.setAttribute("stroke-width", N.value * l.scale), y.value.setAttribute("fill", "none"), y.value.setAttribute("stroke-linecap", "round"), y.value.setAttribute("stroke-linejoin", "round"), y.value.setAttribute("class", "vue-data-ui-doodle"), r.value.appendChild(y.value);
|
|
214
212
|
}
|
|
215
|
-
function
|
|
213
|
+
function Z(t) {
|
|
216
214
|
if (t.cancelable && t.preventDefault(), !k.value || !r.value || !y.value) return;
|
|
217
215
|
const { x: e, y: a } = S(t);
|
|
218
|
-
|
|
216
|
+
q.value += ` ${e} ${a}`, y.value.setAttribute("d", q.value);
|
|
219
217
|
}
|
|
220
|
-
function
|
|
218
|
+
function De() {
|
|
221
219
|
const t = l.svgRef;
|
|
222
220
|
if (!t) return;
|
|
223
|
-
let e = t.querySelector(`defs#${
|
|
224
|
-
if (e || (e = document.createElementNS(
|
|
225
|
-
const a = 6, n = document.createElementNS(
|
|
221
|
+
let e = t.querySelector(`defs#${ie.value}`);
|
|
222
|
+
if (e || (e = document.createElementNS(G, "defs"), e.setAttribute("id", ie.value), t.appendChild(e)), e.querySelector(`#${ae.value}`)) return;
|
|
223
|
+
const a = 6, n = document.createElementNS(G, "marker");
|
|
226
224
|
n.setAttribute("id", ae.value), n.setAttribute("markerUnits", "strokeWidth"), n.setAttribute("markerWidth", String(a)), n.setAttribute("markerHeight", String(a)), n.setAttribute("refX", String(a - 2)), n.setAttribute("refY", String(a / 2)), n.setAttribute("orient", "auto"), n.setAttribute("viewBox", `0 0 ${a} ${a}`);
|
|
227
|
-
const o = document.createElementNS(
|
|
225
|
+
const o = document.createElementNS(G, "path");
|
|
228
226
|
o.setAttribute("d", `M 0 0 L ${a} ${a / 2} L 0 ${a} z`), o.setAttribute("fill", "context-stroke"), o.setAttribute("stroke", "none"), n.appendChild(o), e.appendChild(n);
|
|
229
227
|
}
|
|
230
|
-
function
|
|
228
|
+
function _(t) {
|
|
231
229
|
if (t.cancelable && t.preventDefault(), !["line", "arrow"].includes(g.value) || !l.active || !r.value) return;
|
|
232
|
-
g.value === "arrow" &&
|
|
230
|
+
g.value === "arrow" && De(), k.value = !0;
|
|
233
231
|
const { x: e, y: a } = S(t);
|
|
234
|
-
F.value = { x: e, y: a }, f.value = document.createElementNS(
|
|
232
|
+
F.value = { x: e, y: a }, f.value = document.createElementNS(G, "line"), f.value.setAttribute("stroke", E.value), f.value.setAttribute("stroke-width", N.value * l.scale), f.value.setAttribute("stroke-linecap", "round"), f.value.setAttribute("class", "vue-data-ui-doodle"), f.value.setAttribute("x1", e), f.value.setAttribute("y1", a), f.value.setAttribute("x2", e), f.value.setAttribute("y2", a), g.value === "arrow" && f.value.setAttribute("marker-end", `url(#${ae.value})`), r.value.appendChild(f.value);
|
|
235
233
|
}
|
|
236
|
-
function
|
|
234
|
+
function ee(t) {
|
|
237
235
|
if (t.cancelable && t.preventDefault(), !["line", "arrow"].includes(g.value) || !k.value || !r.value || !f.value) return;
|
|
238
236
|
const { x: e, y: a } = S(t);
|
|
239
237
|
f.value.setAttribute("x2", e), f.value.setAttribute("y2", a);
|
|
@@ -253,67 +251,76 @@ const Ge = ["disabled"], Oe = {
|
|
|
253
251
|
n.setAttribute("cx", e), n.setAttribute("cy", a), n.setAttribute("r", N.value * l.scale / 2), n.setAttribute("fill", E.value), n.setAttribute("class", "vue-data-ui-doodle"), r.value.appendChild(n), w.value.push(n);
|
|
254
252
|
} else {
|
|
255
253
|
const n = y.value;
|
|
256
|
-
n.setAttribute("d",
|
|
254
|
+
n.setAttribute("d", Ne($e(q.value))), w.value.push(n);
|
|
257
255
|
}
|
|
258
256
|
C.value = [], y.value = "";
|
|
259
257
|
}
|
|
260
258
|
k.value = !1;
|
|
261
259
|
}
|
|
262
|
-
function
|
|
260
|
+
function Pe() {
|
|
263
261
|
if (w.value.length > 0) {
|
|
264
262
|
const t = w.value.pop();
|
|
265
263
|
C.value.push(t), t === m.value ? oe(!0) : r.value && r.value.contains(t) && r.value.removeChild(t);
|
|
266
264
|
}
|
|
267
265
|
}
|
|
268
|
-
function
|
|
266
|
+
function Me() {
|
|
269
267
|
if (C.value.length > 0) {
|
|
270
268
|
const t = C.value.pop();
|
|
271
269
|
w.value.push(t), r.value && r.value.appendChild(t);
|
|
272
270
|
}
|
|
273
271
|
}
|
|
274
|
-
function
|
|
275
|
-
r.value && (r.value.innerHTML = ""), w.value = [], C.value = [], V.value = !1,
|
|
272
|
+
function Te() {
|
|
273
|
+
r.value && (r.value.innerHTML = ""), w.value = [], C.value = [], V.value = !1, me();
|
|
276
274
|
}
|
|
277
|
-
|
|
278
|
-
l.active && (
|
|
275
|
+
U(g, (t) => {
|
|
276
|
+
l.active && (te(), pe(), he());
|
|
279
277
|
});
|
|
280
|
-
function
|
|
281
|
-
!l.svgRef || !l.active || (g.value === "draw" ? (l.svgRef.addEventListener("mousedown",
|
|
278
|
+
function pe() {
|
|
279
|
+
!l.svgRef || !l.active || (g.value === "draw" ? (l.svgRef.addEventListener("mousedown", J), l.svgRef.addEventListener("mousemove", Z), l.svgRef.addEventListener("mouseup", L), l.svgRef.addEventListener("mouseleave", L), l.svgRef.addEventListener("touchstart", J, { passive: !1 }), l.svgRef.addEventListener("touchmove", Z, { passive: !1 }), l.svgRef.addEventListener("touchend", L), l.svgRef.addEventListener("touchcancel", L)) : ["line", "arrow"].includes(g.value) ? (l.svgRef.addEventListener("mousedown", _), l.svgRef.addEventListener("mousemove", ee), l.svgRef.addEventListener("mouseup", P), l.svgRef.addEventListener("touchstart", _, { passive: !1 }), l.svgRef.addEventListener("touchmove", ee, { passive: !1 }), l.svgRef.addEventListener("touchend", P), l.svgRef.addEventListener("touchcancel", P)) : g.value === "text" && (l.svgRef.addEventListener("mousedown", W), l.svgRef.addEventListener("touchstart", W, { passive: !1 })), r.value && (r.value.style.pointerEvents = "auto"));
|
|
282
280
|
}
|
|
283
|
-
function
|
|
284
|
-
l.svgRef && (l.svgRef.removeEventListener("mousedown",
|
|
281
|
+
function te() {
|
|
282
|
+
l.svgRef && (l.svgRef.removeEventListener("mousedown", J), l.svgRef.removeEventListener("mousemove", Z), l.svgRef.removeEventListener("mouseup", L), l.svgRef.removeEventListener("mouseleave", L), l.svgRef.removeEventListener("touchstart", J), l.svgRef.removeEventListener("touchmove", Z), l.svgRef.removeEventListener("touchend", L), l.svgRef.removeEventListener("touchcancel", L), l.svgRef.removeEventListener("mousedown", _), l.svgRef.removeEventListener("mousemove", ee), l.svgRef.removeEventListener("mouseup", P), l.svgRef.removeEventListener("touchstart", _), l.svgRef.removeEventListener("touchmove", ee), l.svgRef.removeEventListener("touchend", P), l.svgRef.removeEventListener("touchcancel", P), l.svgRef.removeEventListener("mousedown", W), l.svgRef.removeEventListener("touchstart", W), r.value && (r.value.style.pointerEvents = "none"));
|
|
285
283
|
}
|
|
286
|
-
|
|
287
|
-
t ?
|
|
288
|
-
}),
|
|
289
|
-
|
|
290
|
-
|
|
284
|
+
U(() => l.active, (t) => {
|
|
285
|
+
t ? pe() : te();
|
|
286
|
+
}), U(() => l.active, () => {
|
|
287
|
+
re(() => {
|
|
288
|
+
me();
|
|
291
289
|
});
|
|
292
|
-
}),
|
|
290
|
+
}), U(
|
|
293
291
|
() => l.active,
|
|
294
292
|
(t) => {
|
|
295
293
|
l.svgRef && (t ? l.svgRef.style.touchAction = "none" : l.svgRef.style.touchAction = "");
|
|
296
294
|
},
|
|
297
295
|
{ immediate: !0 }
|
|
298
296
|
);
|
|
299
|
-
function
|
|
300
|
-
r.value && (g.value === "text" ? r.value.style.cursor = "text" : ["line", "arrow"].includes(g.value) ? r.value.style.cursor = "crosshair" : r.value.style.cursor =
|
|
297
|
+
function he() {
|
|
298
|
+
r.value && (g.value === "text" ? r.value.style.cursor = "text" : ["line", "arrow"].includes(g.value) ? r.value.style.cursor = "crosshair" : r.value.style.cursor = Ee.value);
|
|
301
299
|
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
300
|
+
const Ae = v(null);
|
|
301
|
+
return Fe(() => {
|
|
302
|
+
re(() => {
|
|
303
|
+
l.svgRef && (r.value = document.createElementNS("http://www.w3.org/2000/svg", "g"), r.value.setAttribute("class", "vue-data-ui-doodles"), l.svgRef.appendChild(r.value), he(), te());
|
|
305
304
|
});
|
|
306
|
-
}),
|
|
307
|
-
|
|
308
|
-
|
|
305
|
+
}), U(
|
|
306
|
+
() => l.active,
|
|
307
|
+
async (t) => {
|
|
308
|
+
t && (await re(), Ae.value?.focus());
|
|
309
|
+
},
|
|
310
|
+
{ flush: "post" }
|
|
311
|
+
), Ie(() => {
|
|
312
|
+
j(), r.value && l.svgRef && (r.value.remove(), te());
|
|
313
|
+
}), (t, e) => i.active ? (se(), ue("div", {
|
|
309
314
|
key: 0,
|
|
310
315
|
"data-dom-to-png-ignore": "",
|
|
311
316
|
class: "vue-ui-pen-and-paper-actions",
|
|
312
317
|
style: x({ backgroundColor: i.backgroundColor })
|
|
313
318
|
}, [
|
|
314
319
|
B("button", {
|
|
320
|
+
ref_key: "buttonToggle",
|
|
321
|
+
ref: Ae,
|
|
315
322
|
class: "vue-ui-pen-and-paper-action",
|
|
316
|
-
onClick: e[0] || (e[0] = (a) =>
|
|
323
|
+
onClick: e[0] || (e[0] = (a) => ke("close")),
|
|
317
324
|
style: x({
|
|
318
325
|
backgroundColor: i.backgroundColor,
|
|
319
326
|
border: `1px solid ${R.value}`,
|
|
@@ -321,7 +328,7 @@ const Ge = ["disabled"], Oe = {
|
|
|
321
328
|
})
|
|
322
329
|
}, [
|
|
323
330
|
M(t.$slots, "annotator-action-close", {}, () => [
|
|
324
|
-
T(
|
|
331
|
+
T(Y, {
|
|
325
332
|
name: "close",
|
|
326
333
|
stroke: i.color
|
|
327
334
|
}, null, 8, ["stroke"])
|
|
@@ -329,33 +336,34 @@ const Ge = ["disabled"], Oe = {
|
|
|
329
336
|
], 4),
|
|
330
337
|
B("button", {
|
|
331
338
|
class: "vue-ui-pen-and-paper-action",
|
|
339
|
+
tabindex: "-1",
|
|
332
340
|
style: x(`padding: 0 !important; cursor: ${i.isCursorPointer ? "pointer" : "default"}`)
|
|
333
341
|
}, [
|
|
334
|
-
T(
|
|
342
|
+
T(Xe, {
|
|
335
343
|
value: E.value,
|
|
336
344
|
"onUpdate:value": e[1] || (e[1] = (a) => E.value = a),
|
|
337
345
|
backgroundColor: i.backgroundColor,
|
|
338
346
|
buttonBorderColor: R.value,
|
|
339
347
|
isCursorPointer: i.isCursorPointer
|
|
340
348
|
}, {
|
|
341
|
-
"annotator-action-color":
|
|
342
|
-
M(t.$slots, "annotator-action-color",
|
|
349
|
+
"annotator-action-color": Qe(({ color: a }) => [
|
|
350
|
+
M(t.$slots, "annotator-action-color", K(X({ color: a })))
|
|
343
351
|
]),
|
|
344
352
|
_: 3
|
|
345
353
|
}, 8, ["value", "backgroundColor", "buttonBorderColor", "isCursorPointer"])
|
|
346
354
|
], 4),
|
|
347
355
|
B("button", {
|
|
348
356
|
class: ne(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": g.value === "text" }]),
|
|
349
|
-
onClick: e[2] || (e[2] = (a) =>
|
|
357
|
+
onClick: e[2] || (e[2] = (a) => Re()),
|
|
350
358
|
style: x({
|
|
351
359
|
backgroundColor: i.backgroundColor,
|
|
352
360
|
border: `1px solid ${R.value}`,
|
|
353
361
|
cursor: i.isCursorPointer ? "pointer" : "default"
|
|
354
362
|
})
|
|
355
363
|
}, [
|
|
356
|
-
M(t.$slots, "annotator-action-draw",
|
|
357
|
-
T(
|
|
358
|
-
name:
|
|
364
|
+
M(t.$slots, "annotator-action-draw", K(X({ mode: g.value })), () => [
|
|
365
|
+
T(Y, {
|
|
366
|
+
name: Le[g.value],
|
|
359
367
|
stroke: i.color
|
|
360
368
|
}, null, 8, ["name", "stroke"])
|
|
361
369
|
]),
|
|
@@ -369,7 +377,7 @@ const Ge = ["disabled"], Oe = {
|
|
|
369
377
|
fontSize: "12px",
|
|
370
378
|
fontVariantNumeric: "tabular-nums"
|
|
371
379
|
})
|
|
372
|
-
},
|
|
380
|
+
}, Ve(Ue(Ge)({
|
|
373
381
|
v: g.value === "text" ? Math.round(D.value) : Math.round(N.value),
|
|
374
382
|
s: "px",
|
|
375
383
|
r: 1
|
|
@@ -378,7 +386,7 @@ const Ge = ["disabled"], Oe = {
|
|
|
378
386
|
B("button", {
|
|
379
387
|
class: ne(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !w.value.length }]),
|
|
380
388
|
disabled: !w.value.length,
|
|
381
|
-
onClick:
|
|
389
|
+
onClick: Pe,
|
|
382
390
|
style: x({
|
|
383
391
|
backgroundColor: i.backgroundColor,
|
|
384
392
|
border: `1px solid ${R.value}`,
|
|
@@ -386,24 +394,24 @@ const Ge = ["disabled"], Oe = {
|
|
|
386
394
|
cursor: i.isCursorPointer ? "pointer" : "default"
|
|
387
395
|
})
|
|
388
396
|
}, [
|
|
389
|
-
M(t.$slots, "annotator-action-undo",
|
|
390
|
-
T(
|
|
397
|
+
M(t.$slots, "annotator-action-undo", K(X({ disabled: !w.value.length })), () => [
|
|
398
|
+
T(Y, {
|
|
391
399
|
name: "refresh",
|
|
392
400
|
stroke: i.color
|
|
393
401
|
}, null, 8, ["stroke"])
|
|
394
402
|
])
|
|
395
|
-
], 14,
|
|
403
|
+
], 14, qe),
|
|
396
404
|
B("button", {
|
|
397
405
|
class: ne(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !C.value.length }]),
|
|
398
|
-
onClick:
|
|
406
|
+
onClick: Me,
|
|
399
407
|
style: x({
|
|
400
408
|
backgroundColor: i.backgroundColor,
|
|
401
409
|
border: `1px solid ${R.value}`,
|
|
402
410
|
cursor: i.isCursorPointer ? "pointer" : "default"
|
|
403
411
|
})
|
|
404
412
|
}, [
|
|
405
|
-
M(t.$slots, "annotator-action-redo",
|
|
406
|
-
T(
|
|
413
|
+
M(t.$slots, "annotator-action-redo", K(X({ disabled: !C.value.length })), () => [
|
|
414
|
+
T(Y, {
|
|
407
415
|
name: "refresh",
|
|
408
416
|
stroke: i.color,
|
|
409
417
|
style: { transform: "scaleX(-1)" }
|
|
@@ -412,21 +420,21 @@ const Ge = ["disabled"], Oe = {
|
|
|
412
420
|
], 6),
|
|
413
421
|
B("button", {
|
|
414
422
|
class: ne(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !w.value.length }]),
|
|
415
|
-
onClick:
|
|
423
|
+
onClick: Te,
|
|
416
424
|
style: x({
|
|
417
425
|
backgroundColor: i.backgroundColor,
|
|
418
426
|
border: `1px solid ${R.value}`,
|
|
419
427
|
cursor: i.isCursorPointer ? "pointer" : "default"
|
|
420
428
|
})
|
|
421
429
|
}, [
|
|
422
|
-
M(t.$slots, "annotator-action-delete",
|
|
423
|
-
T(
|
|
430
|
+
M(t.$slots, "annotator-action-delete", K(X({ disabled: !w.value.length })), () => [
|
|
431
|
+
T(Y, {
|
|
424
432
|
name: "trash",
|
|
425
433
|
stroke: i.color
|
|
426
434
|
}, null, 8, ["stroke"])
|
|
427
435
|
])
|
|
428
436
|
], 6),
|
|
429
|
-
g.value === "text" ?
|
|
437
|
+
g.value === "text" ? we((se(), ue("input", {
|
|
430
438
|
key: 0,
|
|
431
439
|
ref: "range",
|
|
432
440
|
type: "range",
|
|
@@ -437,8 +445,8 @@ const Ge = ["disabled"], Oe = {
|
|
|
437
445
|
"onUpdate:modelValue": e[3] || (e[3] = (a) => D.value = a),
|
|
438
446
|
style: x({ accentColor: i.color })
|
|
439
447
|
}, null, 4)), [
|
|
440
|
-
[
|
|
441
|
-
]) :
|
|
448
|
+
[ye, D.value]
|
|
449
|
+
]) : we((se(), ue("input", {
|
|
442
450
|
key: 1,
|
|
443
451
|
ref: "range",
|
|
444
452
|
type: "range",
|
|
@@ -449,11 +457,11 @@ const Ge = ["disabled"], Oe = {
|
|
|
449
457
|
"onUpdate:modelValue": e[4] || (e[4] = (a) => N.value = a),
|
|
450
458
|
style: x({ accentColor: i.color })
|
|
451
459
|
}, null, 4)), [
|
|
452
|
-
[
|
|
460
|
+
[ye, N.value]
|
|
453
461
|
])
|
|
454
|
-
], 4)) :
|
|
462
|
+
], 4)) : Ke("", !0);
|
|
455
463
|
}
|
|
456
464
|
};
|
|
457
465
|
export {
|
|
458
|
-
|
|
466
|
+
je as default
|
|
459
467
|
};
|
|
@@ -396,7 +396,7 @@ const Ze = {
|
|
|
396
396
|
}
|
|
397
397
|
function ve() {
|
|
398
398
|
if (!h.value || !k.value || !E.value || !m.value) return;
|
|
399
|
-
const o = E.value.getBoundingClientRect(), t = m.value.getBoundingClientRect(), u = o.top +
|
|
399
|
+
const o = E.value.getBoundingClientRect(), t = m.value.getBoundingClientRect(), u = o.top + 38;
|
|
400
400
|
if (s.position === "right") {
|
|
401
401
|
const M = s.offsetX ? s.offsetX : s.noOffset ? 0 : 4, L = o.right - M - t.width;
|
|
402
402
|
fe(m.value, u, L, t.width);
|
|
@@ -1434,7 +1434,7 @@ const Ze = {
|
|
|
1434
1434
|
[Me(De), Ee]
|
|
1435
1435
|
]);
|
|
1436
1436
|
}
|
|
1437
|
-
}, Je = /* @__PURE__ */ Xe(Ge, [["__scopeId", "data-v-
|
|
1437
|
+
}, Je = /* @__PURE__ */ Xe(Ge, [["__scopeId", "data-v-69799749"]]);
|
|
1438
1438
|
export {
|
|
1439
1439
|
Je as default
|
|
1440
1440
|
};
|