vue-data-ui 3.23.6 → 3.23.8
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/{PackageVersion-BZs_wnK5.js → PackageVersion-C9lXG-wa.js} +1 -1
- package/dist/PenAndPaper-C0UZ74fa.js +571 -0
- 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-hill.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-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/{package-DpxpyR_I.js → package-BieOvFq9.js} +1 -1
- package/dist/{render-common-WZ4vXtlg.js → render-common-C5vqxC-e.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useConfig-u71vax4T.js → useConfig-DwdGsXTx.js} +2 -0
- package/dist/{useObjectBindings-d-C_nl0U.js → useObjectBindings-BKkmFRiI.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-CMf1mzF1.js → vue-data-ui--BufRcn0.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-BHi1QlwW.js → vue-ui-3d-bar-Dspy8rjO.js} +2 -2
- package/dist/{vue-ui-accordion-DNdBR3LQ.js → vue-ui-accordion-CLU_su1P.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CivMIHO6.js → vue-ui-age-pyramid-j6nm1rbi.js} +2 -2
- package/dist/{vue-ui-annotator-fCliMKNQ.js → vue-ui-annotator-QjHngrui.js} +2 -2
- package/dist/{vue-ui-bullet-BaRzzJfE.js → vue-ui-bullet-CKQ35-dP.js} +2 -2
- package/dist/{vue-ui-bump-DhQKyCdv.js → vue-ui-bump-BXp-EozA.js} +2 -2
- package/dist/{vue-ui-candlestick-C_QlFw1y.js → vue-ui-candlestick-DvvyheWp.js} +2 -2
- package/dist/{vue-ui-carousel-table-DER6q3au.js → vue-ui-carousel-table-D_dEXiNd.js} +2 -2
- package/dist/{vue-ui-chestnut-BWc5fSXS.js → vue-ui-chestnut-eCwEo5D9.js} +2 -2
- package/dist/{vue-ui-chord-Cbp8ULG2.js → vue-ui-chord-C6O2lzrg.js} +2 -2
- package/dist/{vue-ui-circle-pack-RDzMeb3A.js → vue-ui-circle-pack-D_nwf-RO.js} +2 -2
- package/dist/{vue-ui-cursor-MRKKLhJk.js → vue-ui-cursor-Bu9PM_P_.js} +2 -2
- package/dist/{vue-ui-dag-0Q6HiGmy.js → vue-ui-dag-DSx4o3Rk.js} +2 -2
- package/dist/{vue-ui-dashboard-CBWYnHvU.js → vue-ui-dashboard-BM747fZF.js} +66 -66
- package/dist/{vue-ui-digits-C3Q7fmPc.js → vue-ui-digits-BtvY8wIB.js} +2 -2
- package/dist/{vue-ui-donut-BMrXYTdN.js → vue-ui-donut-DQHLJR8y.js} +2 -2
- package/dist/{vue-ui-donut-B5DdD0_x.js → vue-ui-donut-DtmxMF94.js} +2 -2
- package/dist/{vue-ui-donut-evolution-CEcp64yA.js → vue-ui-donut-evolution-PSmZvtzE.js} +2 -2
- package/dist/{vue-ui-dumbbell-B6V-yVd7.js → vue-ui-dumbbell-CGquzMdY.js} +2 -2
- package/dist/{vue-ui-flow-Ccx4O4-m.js → vue-ui-flow-9el51M_Y.js} +2 -2
- package/dist/{vue-ui-funnel-CgxQJMUU.js → vue-ui-funnel-D7Gy--C2.js} +2 -2
- package/dist/{vue-ui-galaxy-CeaKn5Ld.js → vue-ui-galaxy-Dxj9UwDo.js} +2 -2
- package/dist/{vue-ui-gauge-BCs7VZxY.js → vue-ui-gauge-Cn9YVMXf.js} +2 -2
- package/dist/{vue-ui-geo-Djrp8LQ6.js → vue-ui-geo-BPOiMgSG.js} +2 -2
- package/dist/{vue-ui-gizmo-BCr3r9Z5.js → vue-ui-gizmo-DWHHzGBD.js} +2 -2
- package/dist/{vue-ui-heatmap-DIKxGiAH.js → vue-ui-heatmap-BE1K40ib.js} +3 -3
- package/dist/{vue-ui-hill-DAavuv5-.js → vue-ui-hill-Dr4UkjNJ.js} +2 -2
- package/dist/{vue-ui-history-plot-COfZMiI7.js → vue-ui-history-plot-CxCKkOf0.js} +2 -2
- package/dist/{vue-ui-horizontal-bar-B4vrK1QB.js → vue-ui-horizontal-bar-BkmnLr-i.js} +3 -3
- package/dist/{vue-ui-kpi-Dlw9Mi3b.js → vue-ui-kpi-BBWW791i.js} +2 -2
- package/dist/{vue-ui-mini-loader-DukGL2bc.js → vue-ui-mini-loader-SNMKnmMa.js} +1 -1
- package/dist/{vue-ui-molecule-ehZAzPqn.js → vue-ui-molecule-CxkcMjno.js} +2 -2
- package/dist/{vue-ui-mood-radar-CS9qIJzX.js → vue-ui-mood-radar-C4CzuVdT.js} +2 -2
- package/dist/{vue-ui-nested-donuts-CwEd9CDc.js → vue-ui-nested-donuts-DSDJQExL.js} +2 -2
- package/dist/{vue-ui-onion-BiffHj6v.js → vue-ui-onion-Cu0dBdFS.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DC9EjFYA.js → vue-ui-parallel-coordinate-plot-D_EwS2Xg.js} +2 -2
- package/dist/{vue-ui-quadrant-BIpxU65Y.js → vue-ui-quadrant-jyEV4UXd.js} +2 -2
- package/dist/{vue-ui-quick-chart-uwVsepnf.js → vue-ui-quick-chart-DiWQ1MyR.js} +2 -2
- package/dist/{vue-ui-radar-CHdxJwQ2.js → vue-ui-radar-BmgJ961A.js} +2 -2
- package/dist/{vue-ui-rating-DoUFoJvB.js → vue-ui-rating-BnXrMeGg.js} +1 -1
- package/dist/{vue-ui-relation-circle-FGG7wCYA.js → vue-ui-relation-circle-DV54YMDh.js} +2 -2
- package/dist/{vue-ui-ridgeline-ClyBRJef.js → vue-ui-ridgeline-izSLMS2A.js} +2 -2
- package/dist/{vue-ui-rings-CRDcurAB.js → vue-ui-rings-B-vqjj5N.js} +2 -2
- package/dist/{vue-ui-scatter-DYkylqTr.js → vue-ui-scatter-D_qfVTjs.js} +2 -2
- package/dist/{vue-ui-skeleton-CBtzmJiI.js → vue-ui-skeleton-ORnWxVcQ.js} +2 -2
- package/dist/{vue-ui-smiley-BTPYPZdS.js → vue-ui-smiley-BQuXRW4o.js} +1 -1
- package/dist/{vue-ui-spark-trend-Cg__gAj9.js → vue-ui-spark-trend-CnWD2enH.js} +2 -2
- package/dist/{vue-ui-sparkbar-DSqyYcSy.js → vue-ui-sparkbar-Cgbnebde.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CfW6-ExF.js → vue-ui-sparkgauge-Cvlb65Sh.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-ClN9JYQF.js → vue-ui-sparkhistogram-BiTJ8hLF.js} +2 -2
- package/dist/{vue-ui-sparkline-CzjD9seh.js → vue-ui-sparkline-D_lUtZ0M.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-nZ3tHm7l.js → vue-ui-sparkstackbar-44IKCY9x.js} +2 -2
- package/dist/{vue-ui-stackbar-CRP_j7bH.js → vue-ui-stackbar-DF3p95Bo.js} +2 -2
- package/dist/{vue-ui-stackline-CWBthsVq.js → vue-ui-stackline-DhKuZEnZ.js} +2 -2
- package/dist/{vue-ui-strip-plot-CiEIA52J.js → vue-ui-strip-plot-C-ulifjS.js} +394 -387
- package/dist/{vue-ui-table-CoGF2GWe.js → vue-ui-table-CpnarLaC.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DQ28DYwv.js → vue-ui-table-heatmap-DRABMw2H.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DVpKsZd7.js → vue-ui-table-sparkline-Du4MfWFg.js} +2 -2
- package/dist/{vue-ui-thermometer-CyIIhi3B.js → vue-ui-thermometer-CrbJmWkG.js} +2 -2
- package/dist/{vue-ui-timer-DAJmVDbB.js → vue-ui-timer-CG_cHMLa.js} +2 -2
- package/dist/{vue-ui-tiremarks-BIdIGZ3A.js → vue-ui-tiremarks-C9op3rMU.js} +2 -2
- package/dist/{vue-ui-treemap-e1dtE4yJ.js → vue-ui-treemap-X6xvCAx5.js} +2 -2
- package/dist/{vue-ui-waffle-CTvRwpKU.js → vue-ui-waffle-CC8t5ghD.js} +296 -279
- package/dist/{vue-ui-wheel-L7-X1Ezl.js → vue-ui-wheel-qsjBqrXG.js} +2 -2
- package/dist/{vue-ui-word-cloud-B6ytHITa.js → vue-ui-word-cloud-PpZeiZUt.js} +2 -2
- package/dist/{vue-ui-world-CPWP-sZ5.js → vue-ui-world-CvLyEEZQ.js} +2 -2
- package/dist/{vue-ui-xy-8NgsjKrE.js → vue-ui-xy-BJ96qlGZ.js} +5 -6
- package/dist/{vue-ui-xy-canvas-BMVdrH11.js → vue-ui-xy-canvas-B-KxaFGF.js} +2 -2
- package/dist/{vue-ui-xy-DmydKppa.js → vue-ui-xy-eKIptvTV.js} +2 -2
- package/package.json +1 -1
- package/dist/PenAndPaper-DAE-tnEQ.js +0 -461
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { t } from "./package-
|
|
2
|
+
import { t } from "./package-BieOvFq9.js";
|
|
3
3
|
import { createElementBlock as n, openBlock as r, toDisplayString as i, unref as a } from "vue";
|
|
4
4
|
//#region src/atoms/PackageVersion.vue
|
|
5
5
|
var o = /* @__PURE__ */ e({ default: () => c }), s = { "aria-hidden": "true" }, c = {
|
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Ot as t, X as n, q as r, t as i } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { t as a } from "./BaseIcon-BfndwIWE.js";
|
|
4
|
+
import { t as o } from "./ColorPicker--ayG2YHf.js";
|
|
5
|
+
import { computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, guardReactiveProps as f, nextTick as p, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as ee, onMounted as te, openBlock as ne, ref as _, renderSlot as v, toDisplayString as re, unref as ie, vModelText as ae, watch as y, withCtx as oe, withDirectives as se } from "vue";
|
|
6
|
+
//#region src/atoms/PenAndPaper.vue
|
|
7
|
+
var ce = /* @__PURE__ */ e({ default: () => b }), le = {
|
|
8
|
+
"aria-hidden": "true",
|
|
9
|
+
viewBox: "0 0 6 12",
|
|
10
|
+
style: { width: "100%" }
|
|
11
|
+
}, ue = ["fill"], de = ["fill"], fe = ["fill"], pe = ["disabled"], b = {
|
|
12
|
+
__name: "PenAndPaper",
|
|
13
|
+
props: {
|
|
14
|
+
svgRef: {
|
|
15
|
+
type: [
|
|
16
|
+
Object,
|
|
17
|
+
null,
|
|
18
|
+
void 0
|
|
19
|
+
],
|
|
20
|
+
required: !0
|
|
21
|
+
},
|
|
22
|
+
color: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "#2D353C"
|
|
25
|
+
},
|
|
26
|
+
backgroundColor: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "#FFFFFF"
|
|
29
|
+
},
|
|
30
|
+
active: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
scale: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: 1
|
|
37
|
+
},
|
|
38
|
+
isCursorPointer: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emits: ["close"],
|
|
44
|
+
setup(e, { emit: ce }) {
|
|
45
|
+
let b = e, me = ce, x = _([]), S = _([]), C = _(b.color), w = _(2), T = _(!1), he = _(""), E = _(null), D = _(null), O = _(null), k = _(null), ge = /* @__PURE__ */ new Map(), _e = _(`arrow-def-${r()}`), A = _(!1), j = _(null), ve = _({
|
|
46
|
+
x: 0,
|
|
47
|
+
y: 0
|
|
48
|
+
}), M = _([""]), N = _({
|
|
49
|
+
row: 0,
|
|
50
|
+
col: 0
|
|
51
|
+
}), P = _(16), F = _(!1), ye = [
|
|
52
|
+
"arrow",
|
|
53
|
+
"text",
|
|
54
|
+
"line",
|
|
55
|
+
"draw"
|
|
56
|
+
], I = _(0), L = s(() => ye[I.value]), be = {
|
|
57
|
+
arrow: "plotArrow",
|
|
58
|
+
text: "text",
|
|
59
|
+
line: "plotLine",
|
|
60
|
+
draw: "annotator"
|
|
61
|
+
}, xe = _("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");
|
|
62
|
+
function Se() {
|
|
63
|
+
I.value + 1 >= ye.length ? I.value = 0 : I.value += 1;
|
|
64
|
+
}
|
|
65
|
+
function R(e) {
|
|
66
|
+
if (!E.value || L.value !== "text" || A.value) return;
|
|
67
|
+
let { x: t, y: n } = H(e);
|
|
68
|
+
ve.value = {
|
|
69
|
+
x: t,
|
|
70
|
+
y: n
|
|
71
|
+
}, M.value = [""], N.value = {
|
|
72
|
+
row: 0,
|
|
73
|
+
col: 0
|
|
74
|
+
}, F.value = !1;
|
|
75
|
+
let r = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
76
|
+
r.setAttribute("x", t), r.setAttribute("y", n), r.setAttribute("fill", C.value), r.setAttribute("font-size", P.value * b.scale), r.setAttribute("font-family", "sans-serif"), r.setAttribute("class", "vue-data-ui-doodle"), r.setAttribute("dominant-baseline", "hanging"), r.setAttribute("pointer-events", "all");
|
|
77
|
+
let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
78
|
+
i.setAttribute("x", t), i.setAttribute("dy", "0"), i.setAttribute("dominant-baseline", "hanging"), i.textContent = "", r.appendChild(i), r.style.pointerEvents = "none", r.style.userSelect = "none", E.value.appendChild(r), j.value = r, A.value = !0, window.addEventListener("keydown", Ce), window.addEventListener("mousedown", De, !0), we(), Ee();
|
|
79
|
+
}
|
|
80
|
+
function Ce(e) {
|
|
81
|
+
if (!A.value) return;
|
|
82
|
+
let { row: t, col: n } = N.value, r = M.value.slice(), i = !1;
|
|
83
|
+
if (e.key === "Enter") {
|
|
84
|
+
let a = r[t], o = a.slice(0, n), s = a.slice(n);
|
|
85
|
+
r.splice(t, 1, o, s), t += 1, n = 0, i = !0, e.preventDefault();
|
|
86
|
+
} else if (e.key === "Backspace") {
|
|
87
|
+
if (n > 0) r[t] = r[t].slice(0, n - 1) + r[t].slice(n), --n, i = !0;
|
|
88
|
+
else if (t > 0) {
|
|
89
|
+
let e = r[t - 1].length;
|
|
90
|
+
r[t - 1] += r[t], r.splice(t, 1), --t, n = e, i = !0;
|
|
91
|
+
}
|
|
92
|
+
e.preventDefault();
|
|
93
|
+
} else if (e.key === "Delete") n < r[t].length ? (r[t] = r[t].slice(0, n) + r[t].slice(n + 1), i = !0) : t < r.length - 1 && (r[t] += r[t + 1], r.splice(t + 1, 1), i = !0), e.preventDefault();
|
|
94
|
+
else if (e.key === "ArrowLeft") n > 0 ? --n : t > 0 && (--t, n = r[t].length), i = !0, e.preventDefault();
|
|
95
|
+
else if (e.key === "ArrowRight") n < r[t].length ? n += 1 : t < r.length - 1 && (t += 1, n = 0), i = !0, e.preventDefault();
|
|
96
|
+
else if (e.key === "ArrowUp") t > 0 && (--t, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
|
|
97
|
+
else if (e.key === "ArrowDown") t < r.length - 1 && (t += 1, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
|
|
98
|
+
else if (e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) r[t] = r[t].slice(0, n) + e.key + r[t].slice(n), n += 1, i = !0, e.preventDefault();
|
|
99
|
+
else if (e.key === "Escape") {
|
|
100
|
+
Oe(!0);
|
|
101
|
+
return;
|
|
102
|
+
} else e.key === "Tab" && e.preventDefault();
|
|
103
|
+
i && (M.value = r, N.value = {
|
|
104
|
+
row: t,
|
|
105
|
+
col: n
|
|
106
|
+
}, r.some((e) => e.length > 0) && !F.value && j.value && (x.value.push(j.value), S.value = [], F.value = !0), we(), Ee());
|
|
107
|
+
}
|
|
108
|
+
function we() {
|
|
109
|
+
let e = j.value, { x: t } = ve.value;
|
|
110
|
+
for (; e.firstChild;) e.removeChild(e.firstChild);
|
|
111
|
+
M.value.forEach((n, r) => {
|
|
112
|
+
let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
113
|
+
i.setAttribute("x", t), i.setAttribute("dominant-baseline", "hanging"), i.setAttribute("dy", r === 0 ? "0" : `${P.value * 1.2 * b.scale}`), i.textContent = n.length ? n : "", e.appendChild(i);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
let z = _(null);
|
|
117
|
+
function B() {
|
|
118
|
+
z.value !== null && (clearInterval(z.value), z.value = null);
|
|
119
|
+
}
|
|
120
|
+
function Te(e) {
|
|
121
|
+
B();
|
|
122
|
+
let t = !0;
|
|
123
|
+
e.style.opacity = "1", z.value = setInterval(() => {
|
|
124
|
+
if (!E.value || !e || !E.value.contains(e)) {
|
|
125
|
+
B();
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
t = !t, e.style.opacity = t ? "1" : "0";
|
|
129
|
+
}, 500);
|
|
130
|
+
}
|
|
131
|
+
function Ee() {
|
|
132
|
+
let e = E.value?.querySelector(".vue-data-ui-svg-caret");
|
|
133
|
+
e && E.value && E.value.removeChild(e);
|
|
134
|
+
let t = j.value;
|
|
135
|
+
if (!t || !E.value) return;
|
|
136
|
+
let { x: n, y: r } = ve.value, { row: i, col: a } = N.value, o = P.value * b.scale, s = t.childNodes[i];
|
|
137
|
+
if (!s) return;
|
|
138
|
+
let c = s.textContent.slice(0, a);
|
|
139
|
+
c.endsWith(" ") && (c += "\xA0");
|
|
140
|
+
let l = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
141
|
+
l.setAttribute("x", n), l.setAttribute("y", r), l.setAttribute("font-size", o), l.setAttribute("font-family", "sans-serif"), l.textContent = c || "", E.value.appendChild(l);
|
|
142
|
+
let u = l.getBBox();
|
|
143
|
+
E.value.removeChild(l);
|
|
144
|
+
let d = r + i * o * 1.2, f = n + u.width, p = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
145
|
+
p.setAttribute("x", f), p.setAttribute("y", d), p.setAttribute("rx", 1), p.setAttribute("width", 2), p.setAttribute("height", o), p.setAttribute("fill", C.value), p.setAttribute("class", "vue-data-ui-svg-caret"), E.value.appendChild(p), Te(p);
|
|
146
|
+
}
|
|
147
|
+
function De(e) {
|
|
148
|
+
if (j.value && !j.value.contains(e.target)) {
|
|
149
|
+
let e = j.value.children;
|
|
150
|
+
e.length === 1 && (e[0].textContent === "" || e[0].textContent === "") && j.value.remove(), Oe(!1);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function Oe(e = !1) {
|
|
154
|
+
window.removeEventListener("keydown", Ce), window.removeEventListener("mousedown", De, !0), B();
|
|
155
|
+
let t = E.value?.querySelector(".vue-data-ui-svg-caret");
|
|
156
|
+
t && E.value && E.value.removeChild(t);
|
|
157
|
+
let n = j.value?.children, r = !1;
|
|
158
|
+
if (n && n.length === 1) {
|
|
159
|
+
let e = n[0].textContent;
|
|
160
|
+
r = !e || e === "";
|
|
161
|
+
}
|
|
162
|
+
(e || r) && j.value && E.value && E.value.contains(j.value) && E.value.removeChild(j.value), A.value = !1, j.value = null, M.value = [""], N.value = {
|
|
163
|
+
row: 0,
|
|
164
|
+
col: 0
|
|
165
|
+
}, F.value = !1;
|
|
166
|
+
}
|
|
167
|
+
let V = s(() => t(b.color, .6));
|
|
168
|
+
function ke() {
|
|
169
|
+
if (!E.value) return;
|
|
170
|
+
let e = E.value.querySelector(".vue-data-ui-mask");
|
|
171
|
+
if (e && E.value.removeChild(e), b.active) {
|
|
172
|
+
let e = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
173
|
+
e.setAttribute("class", "vue-data-ui-mask"), e.setAttribute("width", "100%"), e.setAttribute("height", "100%"), e.setAttribute("fill", "transparent"), e.setAttribute("pointer-events", "all"), E.value.insertBefore(e, E.value.firstChild);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
function H(e) {
|
|
177
|
+
let t = b.svgRef;
|
|
178
|
+
if (!t) return {
|
|
179
|
+
x: 0,
|
|
180
|
+
y: 0
|
|
181
|
+
};
|
|
182
|
+
let n = t.createSVGPoint(), r = e.touches?.length || e.changedTouches?.length ? e.touches?.[0] || e.changedTouches?.[0] : null, i = r ? r.clientX : e.clientX, a = r ? r.clientY : e.clientY;
|
|
183
|
+
n.x = i, n.y = a;
|
|
184
|
+
let o = t.getScreenCTM()?.inverse();
|
|
185
|
+
return o ? n.matrixTransform(o) : {
|
|
186
|
+
x: 0,
|
|
187
|
+
y: 0
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function Ae(e) {
|
|
191
|
+
let t = e.trim().split(/\s+/);
|
|
192
|
+
if (t.length < 4) return e;
|
|
193
|
+
let n = t.slice(1).map(Number);
|
|
194
|
+
if (n.length % 2 != 0) return e;
|
|
195
|
+
let r = je(n), i = [`M ${r[0]} ${r[1]}`];
|
|
196
|
+
for (let e = 2; e < r.length - 2; e += 2) {
|
|
197
|
+
let t = r[e - 2], n = r[e - 1], a = r[e], o = r[e + 1], s = (t + a) / 2, c = (n + o) / 2;
|
|
198
|
+
i.push(`Q ${t} ${n} ${s} ${c}`);
|
|
199
|
+
}
|
|
200
|
+
let a = r[r.length - 2], o = r[r.length - 1];
|
|
201
|
+
return i.push(`L ${a} ${o}`), i.join(" ");
|
|
202
|
+
}
|
|
203
|
+
function je(e, t = 1) {
|
|
204
|
+
let n = [...e];
|
|
205
|
+
for (let r = 2; r < e.length - 2; r += 2) {
|
|
206
|
+
let i = e[r], a = e[r + 1], o = e[r - 2], s = e[r - 1], c = e[r + 2], l = e[r + 3];
|
|
207
|
+
n[r] = i + t * ((o + c) / 2 - i), n[r + 1] = a + t * ((s + l) / 2 - a);
|
|
208
|
+
}
|
|
209
|
+
return n;
|
|
210
|
+
}
|
|
211
|
+
function Me(e) {
|
|
212
|
+
let t = e.trim().split(/\s+/), n = "", r = "", i = null, a = null;
|
|
213
|
+
for (let e = 0; e < t.length; e += 1) {
|
|
214
|
+
let o = t[e];
|
|
215
|
+
if (isNaN(o)) {
|
|
216
|
+
if (r = o, r === "M" || r === "L") i = parseFloat(t[++e]), a = parseFloat(t[++e]), n += `${r}${i} ${a}`;
|
|
217
|
+
else if (r === "Q") {
|
|
218
|
+
let r = parseFloat(t[++e]), o = parseFloat(t[++e]), s = parseFloat(t[++e]), c = parseFloat(t[++e]);
|
|
219
|
+
n += r === i && o === a ? `t${s - i} ${c - a}` : `q${r - i} ${o - a} ${s - i} ${c - a}`, i = s, a = c;
|
|
220
|
+
}
|
|
221
|
+
} else {
|
|
222
|
+
let s = parseFloat(o), c = parseFloat(t[++e]);
|
|
223
|
+
if (r === "L") {
|
|
224
|
+
let e = s - i, t = c - a;
|
|
225
|
+
n += e === 0 ? `v${t}` : t === 0 ? `h${e}` : `l${e} ${t}`, i = s, a = c;
|
|
226
|
+
} else if (r === "Q") {
|
|
227
|
+
let r = s, o = c, l = parseFloat(t[++e]), u = parseFloat(t[++e]);
|
|
228
|
+
n += r === i && o === a ? `t${l - i} ${u - a}` : `q${r - i} ${o - a} ${l - i} ${u - a}`, i = l, a = u;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
return n;
|
|
233
|
+
}
|
|
234
|
+
function U(e) {
|
|
235
|
+
if (e.cancelable && e.preventDefault(), L.value !== "draw" || !b.active || !E.value) return;
|
|
236
|
+
T.value = !0;
|
|
237
|
+
let { x: t, y: n } = H(e);
|
|
238
|
+
k.value = {
|
|
239
|
+
x: t,
|
|
240
|
+
y: n
|
|
241
|
+
}, he.value = `M ${t} ${n}`, D.value = document.createElementNS(i, "path"), D.value.setAttribute("stroke", C.value), D.value.setAttribute("stroke-width", w.value * b.scale), D.value.setAttribute("fill", "none"), D.value.setAttribute("stroke-linecap", "round"), D.value.setAttribute("stroke-linejoin", "round"), D.value.setAttribute("class", "vue-data-ui-doodle"), E.value.appendChild(D.value);
|
|
242
|
+
}
|
|
243
|
+
function W(e) {
|
|
244
|
+
if (e.cancelable && e.preventDefault(), !T.value || !E.value || !D.value) return;
|
|
245
|
+
let { x: t, y: n } = H(e);
|
|
246
|
+
he.value += ` ${t} ${n}`, D.value.setAttribute("d", he.value);
|
|
247
|
+
}
|
|
248
|
+
function Ne(e) {
|
|
249
|
+
let t = b.svgRef;
|
|
250
|
+
if (!t) return null;
|
|
251
|
+
let n = t.querySelector(`defs#${_e.value}`);
|
|
252
|
+
n || (n = document.createElementNS(i, "defs"), n.setAttribute("id", _e.value), t.appendChild(n));
|
|
253
|
+
let a = String(e).trim();
|
|
254
|
+
if (ge.has(a)) return ge.get(a);
|
|
255
|
+
let o = `arrow-${r()}`, s = document.createElementNS(i, "marker");
|
|
256
|
+
s.setAttribute("id", o), s.setAttribute("markerUnits", "strokeWidth"), s.setAttribute("markerWidth", "6"), s.setAttribute("markerHeight", "6"), s.setAttribute("refX", "4"), s.setAttribute("refY", "3"), s.setAttribute("orient", "auto"), s.setAttribute("viewBox", "0 0 6 6");
|
|
257
|
+
let c = document.createElementNS(i, "path");
|
|
258
|
+
return c.setAttribute("d", `M 0 0 L 6 ${6 / 2} L 0 6 z`), c.setAttribute("fill", e), c.setAttribute("stroke", "none"), s.appendChild(c), n.appendChild(s), ge.set(a, o), o;
|
|
259
|
+
}
|
|
260
|
+
function G(e) {
|
|
261
|
+
if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !b.active || !E.value) return;
|
|
262
|
+
T.value = !0;
|
|
263
|
+
let { x: t, y: n } = H(e);
|
|
264
|
+
if (k.value = {
|
|
265
|
+
x: t,
|
|
266
|
+
y: n
|
|
267
|
+
}, O.value = document.createElementNS(i, "line"), O.value.setAttribute("stroke", C.value), O.value.setAttribute("stroke-width", w.value * b.scale), O.value.setAttribute("stroke-linecap", "round"), O.value.setAttribute("class", "vue-data-ui-doodle"), O.value.setAttribute("x1", t), O.value.setAttribute("y1", n), O.value.setAttribute("x2", t), O.value.setAttribute("y2", n), L.value === "arrow") {
|
|
268
|
+
let e = Ne(C.value);
|
|
269
|
+
e && O.value.setAttribute("marker-end", `url(#${e})`);
|
|
270
|
+
}
|
|
271
|
+
E.value.appendChild(O.value);
|
|
272
|
+
}
|
|
273
|
+
function K(e) {
|
|
274
|
+
if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !T.value || !E.value || !O.value) return;
|
|
275
|
+
let { x: t, y: n } = H(e);
|
|
276
|
+
O.value.setAttribute("x2", t), O.value.setAttribute("y2", n);
|
|
277
|
+
}
|
|
278
|
+
function q(e) {
|
|
279
|
+
if (T.value && E.value && O.value) {
|
|
280
|
+
let { x: t, y: n } = H(e);
|
|
281
|
+
O.value.setAttribute("x2", t), O.value.setAttribute("y2", n), x.value.push(O.value), S.value = [], O.value = "";
|
|
282
|
+
}
|
|
283
|
+
T.value = !1;
|
|
284
|
+
}
|
|
285
|
+
function J(e) {
|
|
286
|
+
if (T.value && E.value && D.value) {
|
|
287
|
+
let { x: t, y: n } = H(e);
|
|
288
|
+
if (k.value && k.value.x === t && k.value.y === n) {
|
|
289
|
+
let e = document.createElementNS("http://www.w3.org/2000/svg", "circle");
|
|
290
|
+
e.setAttribute("cx", t), e.setAttribute("cy", n), e.setAttribute("r", w.value * b.scale / 2), e.setAttribute("fill", C.value), e.setAttribute("class", "vue-data-ui-doodle"), E.value.appendChild(e), x.value.push(e);
|
|
291
|
+
} else {
|
|
292
|
+
let e = D.value;
|
|
293
|
+
e.setAttribute("d", Me(Ae(he.value))), x.value.push(e);
|
|
294
|
+
}
|
|
295
|
+
S.value = [], D.value = "";
|
|
296
|
+
}
|
|
297
|
+
T.value = !1;
|
|
298
|
+
}
|
|
299
|
+
function Pe() {
|
|
300
|
+
if (x.value.length > 0) {
|
|
301
|
+
let e = x.value.pop();
|
|
302
|
+
S.value.push(e), e === j.value ? Oe(!0) : E.value && E.value.contains(e) && E.value.removeChild(e);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
function Fe() {
|
|
306
|
+
if (S.value.length > 0) {
|
|
307
|
+
let e = S.value.pop();
|
|
308
|
+
x.value.push(e), E.value && E.value.appendChild(e);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
function Ie() {
|
|
312
|
+
E.value && (E.value.innerHTML = ""), x.value = [], S.value = [], F.value = !1, ke();
|
|
313
|
+
}
|
|
314
|
+
y(L, (e) => {
|
|
315
|
+
b.active && (Re(), Le(), ze());
|
|
316
|
+
});
|
|
317
|
+
function Le() {
|
|
318
|
+
!b.svgRef || !b.active || (L.value === "draw" ? (b.svgRef.addEventListener("mousedown", U), b.svgRef.addEventListener("mousemove", W), b.svgRef.addEventListener("mouseup", J), b.svgRef.addEventListener("mouseleave", J), b.svgRef.addEventListener("touchstart", U, { passive: !1 }), b.svgRef.addEventListener("touchmove", W, { passive: !1 }), b.svgRef.addEventListener("touchend", J), b.svgRef.addEventListener("touchcancel", J)) : ["line", "arrow"].includes(L.value) ? (b.svgRef.addEventListener("mousedown", G), b.svgRef.addEventListener("mousemove", K), b.svgRef.addEventListener("mouseup", q), b.svgRef.addEventListener("touchstart", G, { passive: !1 }), b.svgRef.addEventListener("touchmove", K, { passive: !1 }), b.svgRef.addEventListener("touchend", q), b.svgRef.addEventListener("touchcancel", q)) : L.value === "text" && (b.svgRef.addEventListener("mousedown", R), b.svgRef.addEventListener("touchstart", R, { passive: !1 })), E.value && (E.value.style.pointerEvents = "auto"));
|
|
319
|
+
}
|
|
320
|
+
function Re() {
|
|
321
|
+
b.svgRef && (b.svgRef.removeEventListener("mousedown", U), b.svgRef.removeEventListener("mousemove", W), b.svgRef.removeEventListener("mouseup", J), b.svgRef.removeEventListener("mouseleave", J), b.svgRef.removeEventListener("touchstart", U), b.svgRef.removeEventListener("touchmove", W), b.svgRef.removeEventListener("touchend", J), b.svgRef.removeEventListener("touchcancel", J), b.svgRef.removeEventListener("mousedown", G), b.svgRef.removeEventListener("mousemove", K), b.svgRef.removeEventListener("mouseup", q), b.svgRef.removeEventListener("touchstart", G), b.svgRef.removeEventListener("touchmove", K), b.svgRef.removeEventListener("touchend", q), b.svgRef.removeEventListener("touchcancel", q), b.svgRef.removeEventListener("mousedown", R), b.svgRef.removeEventListener("touchstart", R), E.value && (E.value.style.pointerEvents = "none"));
|
|
322
|
+
}
|
|
323
|
+
y(() => b.active, (e) => {
|
|
324
|
+
e ? Le() : Re();
|
|
325
|
+
}), y(() => b.active, () => {
|
|
326
|
+
p(() => {
|
|
327
|
+
ke();
|
|
328
|
+
});
|
|
329
|
+
}), y(() => b.active, (e) => {
|
|
330
|
+
b.svgRef && (e ? b.svgRef.style.touchAction = "none" : b.svgRef.style.touchAction = "");
|
|
331
|
+
}, { immediate: !0 });
|
|
332
|
+
function ze() {
|
|
333
|
+
E.value && (L.value === "text" ? E.value.style.cursor = "text" : ["line", "arrow"].includes(L.value) ? E.value.style.cursor = "crosshair" : E.value.style.cursor = xe.value);
|
|
334
|
+
}
|
|
335
|
+
let Y = _(null), Be = _(null), Ve = _(!1), X = _({
|
|
336
|
+
x: 0,
|
|
337
|
+
y: 0
|
|
338
|
+
}), Z = _(null), Q = _(null), He = s(() => ({
|
|
339
|
+
backgroundColor: b.backgroundColor,
|
|
340
|
+
"--vue-ui-pen-and-paper-drag-x": `${X.value.x}px`,
|
|
341
|
+
"--vue-ui-pen-and-paper-drag-y": `${X.value.y}px`
|
|
342
|
+
}));
|
|
343
|
+
function Ue() {
|
|
344
|
+
return {
|
|
345
|
+
width: document.documentElement.clientWidth || window.innerWidth,
|
|
346
|
+
height: document.documentElement.clientHeight || window.innerHeight
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
function We() {
|
|
350
|
+
if (!Y.value) return null;
|
|
351
|
+
let e = [
|
|
352
|
+
Y.value,
|
|
353
|
+
Y.value.querySelector(".vue-ui-pen-and-paper-drag-handle"),
|
|
354
|
+
Y.value.querySelector(".vertical-range")
|
|
355
|
+
].filter(Boolean).map((e) => e.getBoundingClientRect());
|
|
356
|
+
return {
|
|
357
|
+
left: Math.min(...e.map((e) => e.left)),
|
|
358
|
+
top: Math.min(...e.map((e) => e.top)),
|
|
359
|
+
right: Math.max(...e.map((e) => e.right)),
|
|
360
|
+
bottom: Math.max(...e.map((e) => e.bottom))
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
function Ge(e) {
|
|
364
|
+
if (e.pointerType === "mouse" && e.button !== 0 || !Y.value) return;
|
|
365
|
+
e.preventDefault(), e.stopPropagation();
|
|
366
|
+
let t = We();
|
|
367
|
+
t && (Ve.value = !0, Q.value = e.pointerId, Z.value = {
|
|
368
|
+
clientX: e.clientX,
|
|
369
|
+
clientY: e.clientY,
|
|
370
|
+
offsetX: X.value.x,
|
|
371
|
+
offsetY: X.value.y,
|
|
372
|
+
rect: t
|
|
373
|
+
}, window.addEventListener("pointermove", Ke), window.addEventListener("pointerup", $), window.addEventListener("pointercancel", $));
|
|
374
|
+
}
|
|
375
|
+
function Ke(e) {
|
|
376
|
+
if (!Ve.value || !Z.value || e.pointerId !== Q.value) return;
|
|
377
|
+
e.preventDefault();
|
|
378
|
+
let t = Z.value, { width: n, height: r } = Ue(), i = e.clientX - t.clientX, a = e.clientY - t.clientY, o = Math.min(Math.max(i, -t.rect.left), n - t.rect.right), s = Math.min(Math.max(a, -t.rect.top), r - t.rect.bottom);
|
|
379
|
+
X.value = {
|
|
380
|
+
x: t.offsetX + o,
|
|
381
|
+
y: t.offsetY + s
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
function $(e) {
|
|
385
|
+
(e?.pointerId === void 0 || Q.value === null || e.pointerId === Q.value) && (Ve.value = !1, Z.value = null, Q.value = null, window.removeEventListener("pointermove", Ke), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $));
|
|
386
|
+
}
|
|
387
|
+
function qe() {
|
|
388
|
+
if (!Y.value || !b.active) return;
|
|
389
|
+
let e = We();
|
|
390
|
+
if (!e) return;
|
|
391
|
+
let { width: t, height: n } = Ue(), r = 0, i = 0;
|
|
392
|
+
e.left < 0 ? r = -e.left : e.right > t && (r = t - e.right), e.top < 0 ? i = -e.top : e.bottom > n && (i = n - e.bottom), (r || i) && (X.value = {
|
|
393
|
+
x: X.value.x + r,
|
|
394
|
+
y: X.value.y + i
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
return te(() => {
|
|
398
|
+
window.addEventListener("resize", qe), p(() => {
|
|
399
|
+
b.svgRef && (E.value = document.createElementNS("http://www.w3.org/2000/svg", "g"), E.value.setAttribute("class", "vue-data-ui-doodles"), b.svgRef.appendChild(E.value), ze(), Re());
|
|
400
|
+
});
|
|
401
|
+
}), y(() => b.active, async (e) => {
|
|
402
|
+
if (!e) {
|
|
403
|
+
$(), X.value = {
|
|
404
|
+
x: 0,
|
|
405
|
+
y: 0
|
|
406
|
+
};
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
await p(), Be.value?.focus();
|
|
410
|
+
}, { flush: "post" }), ee(() => {
|
|
411
|
+
B(), $(), window.removeEventListener("resize", qe), E.value && b.svgRef && (E.value.remove(), Re());
|
|
412
|
+
}), (t, r) => e.active ? (ne(), l("div", {
|
|
413
|
+
key: 0,
|
|
414
|
+
ref_key: "menuRef",
|
|
415
|
+
ref: Y,
|
|
416
|
+
"data-dom-to-png-ignore": "",
|
|
417
|
+
class: m(["vue-ui-pen-and-paper-actions", { "vue-ui-pen-and-paper-actions-dragging": Ve.value }]),
|
|
418
|
+
style: g(He.value)
|
|
419
|
+
}, [
|
|
420
|
+
u("button", {
|
|
421
|
+
type: "button",
|
|
422
|
+
class: "vue-ui-pen-and-paper-drag-handle",
|
|
423
|
+
"aria-label": "Move drawing toolbar",
|
|
424
|
+
style: g({
|
|
425
|
+
backgroundColor: e.backgroundColor,
|
|
426
|
+
border: `1px solid ${V.value}`,
|
|
427
|
+
color: e.color
|
|
428
|
+
}),
|
|
429
|
+
onPointerdown: Ge
|
|
430
|
+
}, [(ne(), l("svg", le, [
|
|
431
|
+
u("circle", {
|
|
432
|
+
fill: e.color,
|
|
433
|
+
cx: "3",
|
|
434
|
+
cy: "3",
|
|
435
|
+
r: "0.7"
|
|
436
|
+
}, null, 8, ue),
|
|
437
|
+
u("circle", {
|
|
438
|
+
fill: e.color,
|
|
439
|
+
cx: "3",
|
|
440
|
+
cy: "6",
|
|
441
|
+
r: "0.7"
|
|
442
|
+
}, null, 8, de),
|
|
443
|
+
u("circle", {
|
|
444
|
+
fill: e.color,
|
|
445
|
+
cx: "3",
|
|
446
|
+
cy: "9",
|
|
447
|
+
r: "0.7"
|
|
448
|
+
}, null, 8, fe)
|
|
449
|
+
]))], 36),
|
|
450
|
+
u("button", {
|
|
451
|
+
ref_key: "buttonToggle",
|
|
452
|
+
ref: Be,
|
|
453
|
+
class: "vue-ui-pen-and-paper-action",
|
|
454
|
+
onClick: r[0] ||= (e) => me("close"),
|
|
455
|
+
style: g({
|
|
456
|
+
backgroundColor: e.backgroundColor,
|
|
457
|
+
border: `1px solid ${V.value}`,
|
|
458
|
+
cursor: e.isCursorPointer ? "pointer" : "default"
|
|
459
|
+
})
|
|
460
|
+
}, [v(t.$slots, "annotator-action-close", {}, () => [d(a, {
|
|
461
|
+
name: "close",
|
|
462
|
+
stroke: e.color
|
|
463
|
+
}, null, 8, ["stroke"])])], 4),
|
|
464
|
+
u("button", {
|
|
465
|
+
class: "vue-ui-pen-and-paper-action",
|
|
466
|
+
tabindex: "-1",
|
|
467
|
+
style: g(`padding: 0 !important; cursor: ${e.isCursorPointer ? "pointer" : "default"}`)
|
|
468
|
+
}, [d(o, {
|
|
469
|
+
value: C.value,
|
|
470
|
+
"onUpdate:value": r[1] ||= (e) => C.value = e,
|
|
471
|
+
backgroundColor: e.backgroundColor,
|
|
472
|
+
buttonBorderColor: V.value,
|
|
473
|
+
isCursorPointer: e.isCursorPointer
|
|
474
|
+
}, {
|
|
475
|
+
"annotator-action-color": oe(({ color: e }) => [v(t.$slots, "annotator-action-color", h(f({ color: e })))]),
|
|
476
|
+
_: 3
|
|
477
|
+
}, 8, [
|
|
478
|
+
"value",
|
|
479
|
+
"backgroundColor",
|
|
480
|
+
"buttonBorderColor",
|
|
481
|
+
"isCursorPointer"
|
|
482
|
+
])], 4),
|
|
483
|
+
u("button", {
|
|
484
|
+
class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": L.value === "text" }]),
|
|
485
|
+
onClick: r[2] ||= (e) => Se(),
|
|
486
|
+
style: g({
|
|
487
|
+
backgroundColor: e.backgroundColor,
|
|
488
|
+
border: `1px solid ${V.value}`,
|
|
489
|
+
cursor: e.isCursorPointer ? "pointer" : "default"
|
|
490
|
+
})
|
|
491
|
+
}, [v(t.$slots, "annotator-action-draw", h(f({ mode: L.value })), () => [d(a, {
|
|
492
|
+
name: be[L.value],
|
|
493
|
+
stroke: e.color
|
|
494
|
+
}, null, 8, ["name", "stroke"])]), u("div", { style: g({
|
|
495
|
+
position: "absolute",
|
|
496
|
+
bottom: "-20px",
|
|
497
|
+
color: V.value,
|
|
498
|
+
width: "100%",
|
|
499
|
+
textAlign: "center",
|
|
500
|
+
fontSize: "12px",
|
|
501
|
+
fontVariantNumeric: "tabular-nums"
|
|
502
|
+
}) }, re(ie(n)({
|
|
503
|
+
v: L.value === "text" ? Math.round(P.value) : Math.round(w.value),
|
|
504
|
+
s: "px",
|
|
505
|
+
r: 1
|
|
506
|
+
})), 5)], 6),
|
|
507
|
+
u("button", {
|
|
508
|
+
class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !x.value.length }]),
|
|
509
|
+
disabled: !x.value.length,
|
|
510
|
+
onClick: Pe,
|
|
511
|
+
style: g({
|
|
512
|
+
backgroundColor: e.backgroundColor,
|
|
513
|
+
border: `1px solid ${V.value}`,
|
|
514
|
+
marginTop: "20px",
|
|
515
|
+
cursor: e.isCursorPointer ? "pointer" : "default"
|
|
516
|
+
})
|
|
517
|
+
}, [v(t.$slots, "annotator-action-undo", h(f({ disabled: !x.value.length })), () => [d(a, {
|
|
518
|
+
name: "refresh",
|
|
519
|
+
stroke: e.color
|
|
520
|
+
}, null, 8, ["stroke"])])], 14, pe),
|
|
521
|
+
u("button", {
|
|
522
|
+
class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !S.value.length }]),
|
|
523
|
+
onClick: Fe,
|
|
524
|
+
style: g({
|
|
525
|
+
backgroundColor: e.backgroundColor,
|
|
526
|
+
border: `1px solid ${V.value}`,
|
|
527
|
+
cursor: e.isCursorPointer ? "pointer" : "default"
|
|
528
|
+
})
|
|
529
|
+
}, [v(t.$slots, "annotator-action-redo", h(f({ disabled: !S.value.length })), () => [d(a, {
|
|
530
|
+
name: "refresh",
|
|
531
|
+
stroke: e.color,
|
|
532
|
+
style: { transform: "scaleX(-1)" }
|
|
533
|
+
}, null, 8, ["stroke"])])], 6),
|
|
534
|
+
u("button", {
|
|
535
|
+
class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !x.value.length }]),
|
|
536
|
+
onClick: Ie,
|
|
537
|
+
style: g({
|
|
538
|
+
backgroundColor: e.backgroundColor,
|
|
539
|
+
border: `1px solid ${V.value}`,
|
|
540
|
+
cursor: e.isCursorPointer ? "pointer" : "default"
|
|
541
|
+
})
|
|
542
|
+
}, [v(t.$slots, "annotator-action-delete", h(f({ disabled: !x.value.length })), () => [d(a, {
|
|
543
|
+
name: "trash",
|
|
544
|
+
stroke: e.color
|
|
545
|
+
}, null, 8, ["stroke"])])], 6),
|
|
546
|
+
L.value === "text" ? se((ne(), l("input", {
|
|
547
|
+
key: 0,
|
|
548
|
+
ref: "range",
|
|
549
|
+
type: "range",
|
|
550
|
+
class: "vertical-range",
|
|
551
|
+
min: 3,
|
|
552
|
+
max: 48,
|
|
553
|
+
step: 1,
|
|
554
|
+
"onUpdate:modelValue": r[3] ||= (e) => P.value = e,
|
|
555
|
+
style: g({ accentColor: e.color })
|
|
556
|
+
}, null, 4)), [[ae, P.value]]) : se((ne(), l("input", {
|
|
557
|
+
key: 1,
|
|
558
|
+
ref: "range",
|
|
559
|
+
type: "range",
|
|
560
|
+
class: "vertical-range",
|
|
561
|
+
min: .5,
|
|
562
|
+
max: 12,
|
|
563
|
+
step: .1,
|
|
564
|
+
"onUpdate:modelValue": r[4] ||= (e) => w.value = e,
|
|
565
|
+
style: g({ accentColor: e.color })
|
|
566
|
+
}, null, 4)), [[ae, w.value]])
|
|
567
|
+
], 6)) : c("", !0);
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
//#endregion
|
|
571
|
+
export { b as n, ce as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-3d-bar-
|
|
1
|
+
import { t as e } from "../vue-ui-3d-bar-Dspy8rjO.js";
|
|
2
2
|
export { e as VueUi3dBar, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-accordion-
|
|
1
|
+
import { t as e } from "../vue-ui-accordion-CLU_su1P.js";
|
|
2
2
|
export { e as VueUiAccordion, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-age-pyramid-
|
|
1
|
+
import { t as e } from "../vue-ui-age-pyramid-j6nm1rbi.js";
|
|
2
2
|
export { e as VueUiAgePyramid, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-annotator-
|
|
1
|
+
import { t as e } from "../vue-ui-annotator-QjHngrui.js";
|
|
2
2
|
export { e as VueUiAnnotator, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-bullet-
|
|
1
|
+
import { t as e } from "../vue-ui-bullet-CKQ35-dP.js";
|
|
2
2
|
export { e as VueUiBullet, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-bump-
|
|
1
|
+
import { t as e } from "../vue-ui-bump-BXp-EozA.js";
|
|
2
2
|
export { e as VueUiBump, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-candlestick-
|
|
1
|
+
import { t as e } from "../vue-ui-candlestick-DvvyheWp.js";
|
|
2
2
|
export { e as VueUiCandlestick, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-carousel-table-
|
|
1
|
+
import { t as e } from "../vue-ui-carousel-table-D_dEXiNd.js";
|
|
2
2
|
export { e as VueUiCarouselTable, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-chestnut-
|
|
1
|
+
import { t as e } from "../vue-ui-chestnut-eCwEo5D9.js";
|
|
2
2
|
export { e as VueUiChestnut, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-chord-
|
|
1
|
+
import { t as e } from "../vue-ui-chord-C6O2lzrg.js";
|
|
2
2
|
export { e as VueUiChord, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-circle-pack-
|
|
1
|
+
import { t as e } from "../vue-ui-circle-pack-D_nwf-RO.js";
|
|
2
2
|
export { e as VueUiCirclePack, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-cursor-
|
|
1
|
+
import { t as e } from "../vue-ui-cursor-Bu9PM_P_.js";
|
|
2
2
|
export { e as VueUiCursor, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-dag-
|
|
1
|
+
import { t as e } from "../vue-ui-dag-DSx4o3Rk.js";
|
|
2
2
|
export { e as VueUiDag, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-dashboard-
|
|
1
|
+
import { t as e } from "../vue-ui-dashboard-BM747fZF.js";
|
|
2
2
|
export { e as VueUiDashboard, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-digits-
|
|
1
|
+
import { t as e } from "../vue-ui-digits-BtvY8wIB.js";
|
|
2
2
|
export { e as VueUiDigits, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-donut-evolution-
|
|
1
|
+
import { t as e } from "../vue-ui-donut-evolution-PSmZvtzE.js";
|
|
2
2
|
export { e as VueUiDonutEvolution, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../vue-ui-donut-
|
|
1
|
+
import { t as e } from "../vue-ui-donut-DtmxMF94.js";
|
|
2
2
|
export { e as VueUiDonut, e as default };
|