template-designer 0.4.2 → 0.4.3
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/style.css +1 -1
- package/dist/template-designer.es.js +179 -178
- package/dist/template-designer.umd.js +7 -7
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as K, ref as X, watch as wA, openBlock as M, createElementBlock as k, normalizeStyle as oA, createElementVNode as R, toDisplayString as he, createCommentVNode as dA, getCurrentInstance as lt, inject as nt, unref as H, getCurrentScope as dd, onScopeDispose as Bd, readonly as fd, onMounted as Xe, nextTick as ue, isRef as hd, warn as gd, provide as ks, defineComponent as ge, mergeProps as pd, renderSlot as vr, normalizeClass as
|
|
1
|
+
import { computed as K, ref as X, watch as wA, openBlock as M, createElementBlock as k, normalizeStyle as oA, createElementVNode as R, toDisplayString as he, createCommentVNode as dA, getCurrentInstance as lt, inject as nt, unref as H, getCurrentScope as dd, onScopeDispose as Bd, readonly as fd, onMounted as Xe, nextTick as ue, isRef as hd, warn as gd, provide as ks, defineComponent as ge, mergeProps as pd, renderSlot as vr, normalizeClass as qA, createVNode as j, Transition as Os, withCtx as rA, withDirectives as Qe, createTextVNode as Ze, vShow as Ws, shallowReactive as Ud, createBlock as NA, resolveDynamicComponent as yr, Fragment as xA, withModifiers as BA, isVNode as Ds, render as _i, onUnmounted as Qd, resolveComponent as mA, renderList as Ke, vModelSelect as wd, vModelText as pr, vModelCheckbox as Fd, vModelDynamic as Cd, toRefs as Ed, onBeforeUnmount as Mr, reactive as qi, resolveDirective as md, h as vd } from "vue";
|
|
2
2
|
const yd = (e, A) => {
|
|
3
3
|
const t = e[A];
|
|
4
4
|
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((r, n) => {
|
|
@@ -1067,7 +1067,7 @@ const X0 = re([
|
|
|
1067
1067
|
return A({
|
|
1068
1068
|
content: n
|
|
1069
1069
|
}), (o, i) => (M(), k("div", {
|
|
1070
|
-
class:
|
|
1070
|
+
class: qA(H(r).b())
|
|
1071
1071
|
}, [
|
|
1072
1072
|
vr(o.$slots, "default"),
|
|
1073
1073
|
j(Os, {
|
|
@@ -1076,7 +1076,7 @@ const X0 = re([
|
|
|
1076
1076
|
}, {
|
|
1077
1077
|
default: rA(() => [
|
|
1078
1078
|
Qe(R("sup", {
|
|
1079
|
-
class:
|
|
1079
|
+
class: qA([
|
|
1080
1080
|
H(r).e("content"),
|
|
1081
1081
|
H(r).em("content", o.type),
|
|
1082
1082
|
H(r).is("fixed", !!o.$slots.default),
|
|
@@ -1155,7 +1155,7 @@ const sc = [
|
|
|
1155
1155
|
"info",
|
|
1156
1156
|
"warning",
|
|
1157
1157
|
"error"
|
|
1158
|
-
],
|
|
1158
|
+
], KA = _0({
|
|
1159
1159
|
customClass: "",
|
|
1160
1160
|
dangerouslyUseHTMLString: !1,
|
|
1161
1161
|
duration: 3e3,
|
|
@@ -1174,23 +1174,23 @@ const sc = [
|
|
|
1174
1174
|
}), of = br({
|
|
1175
1175
|
customClass: {
|
|
1176
1176
|
type: String,
|
|
1177
|
-
default:
|
|
1177
|
+
default: KA.customClass
|
|
1178
1178
|
},
|
|
1179
1179
|
dangerouslyUseHTMLString: {
|
|
1180
1180
|
type: Boolean,
|
|
1181
|
-
default:
|
|
1181
|
+
default: KA.dangerouslyUseHTMLString
|
|
1182
1182
|
},
|
|
1183
1183
|
duration: {
|
|
1184
1184
|
type: Number,
|
|
1185
|
-
default:
|
|
1185
|
+
default: KA.duration
|
|
1186
1186
|
},
|
|
1187
1187
|
icon: {
|
|
1188
1188
|
type: X0,
|
|
1189
|
-
default:
|
|
1189
|
+
default: KA.icon
|
|
1190
1190
|
},
|
|
1191
1191
|
id: {
|
|
1192
1192
|
type: String,
|
|
1193
|
-
default:
|
|
1193
|
+
default: KA.id
|
|
1194
1194
|
},
|
|
1195
1195
|
message: {
|
|
1196
1196
|
type: re([
|
|
@@ -1198,40 +1198,40 @@ const sc = [
|
|
|
1198
1198
|
Object,
|
|
1199
1199
|
Function
|
|
1200
1200
|
]),
|
|
1201
|
-
default:
|
|
1201
|
+
default: KA.message
|
|
1202
1202
|
},
|
|
1203
1203
|
onClose: {
|
|
1204
1204
|
type: re(Function),
|
|
1205
|
-
default:
|
|
1205
|
+
default: KA.onClose
|
|
1206
1206
|
},
|
|
1207
1207
|
showClose: {
|
|
1208
1208
|
type: Boolean,
|
|
1209
|
-
default:
|
|
1209
|
+
default: KA.showClose
|
|
1210
1210
|
},
|
|
1211
1211
|
type: {
|
|
1212
1212
|
type: String,
|
|
1213
1213
|
values: sc,
|
|
1214
|
-
default:
|
|
1214
|
+
default: KA.type
|
|
1215
1215
|
},
|
|
1216
1216
|
plain: {
|
|
1217
1217
|
type: Boolean,
|
|
1218
|
-
default:
|
|
1218
|
+
default: KA.plain
|
|
1219
1219
|
},
|
|
1220
1220
|
offset: {
|
|
1221
1221
|
type: Number,
|
|
1222
|
-
default:
|
|
1222
|
+
default: KA.offset
|
|
1223
1223
|
},
|
|
1224
1224
|
zIndex: {
|
|
1225
1225
|
type: Number,
|
|
1226
|
-
default:
|
|
1226
|
+
default: KA.zIndex
|
|
1227
1227
|
},
|
|
1228
1228
|
grouping: {
|
|
1229
1229
|
type: Boolean,
|
|
1230
|
-
default:
|
|
1230
|
+
default: KA.grouping
|
|
1231
1231
|
},
|
|
1232
1232
|
repeatNum: {
|
|
1233
1233
|
type: Number,
|
|
1234
|
-
default:
|
|
1234
|
+
default: KA.repeatNum
|
|
1235
1235
|
}
|
|
1236
1236
|
}), lf = {
|
|
1237
1237
|
destroy: () => !0
|
|
@@ -1297,7 +1297,7 @@ const sc = [
|
|
|
1297
1297
|
id: F.id,
|
|
1298
1298
|
ref_key: "messageRef",
|
|
1299
1299
|
ref: c,
|
|
1300
|
-
class:
|
|
1300
|
+
class: qA([
|
|
1301
1301
|
H(o).b(),
|
|
1302
1302
|
{ [H(o).m(F.type)]: F.type },
|
|
1303
1303
|
H(o).is("closable", F.showClose),
|
|
@@ -1313,11 +1313,11 @@ const sc = [
|
|
|
1313
1313
|
key: 0,
|
|
1314
1314
|
value: F.repeatNum,
|
|
1315
1315
|
type: H(f),
|
|
1316
|
-
class:
|
|
1316
|
+
class: qA(H(o).e("badge"))
|
|
1317
1317
|
}, null, 8, ["value", "type", "class"])) : dA("v-if", !0),
|
|
1318
1318
|
H(h) ? (M(), NA(H(hl), {
|
|
1319
1319
|
key: 1,
|
|
1320
|
-
class:
|
|
1320
|
+
class: qA([H(o).e("icon"), H(B)])
|
|
1321
1321
|
}, {
|
|
1322
1322
|
default: rA(() => [
|
|
1323
1323
|
(M(), NA(yr(H(h))))
|
|
@@ -1328,17 +1328,17 @@ const sc = [
|
|
|
1328
1328
|
F.dangerouslyUseHTMLString ? (M(), k(xA, { key: 1 }, [
|
|
1329
1329
|
dA(" Caution here, message could've been compromised, never use user's input as message "),
|
|
1330
1330
|
R("p", {
|
|
1331
|
-
class:
|
|
1331
|
+
class: qA(H(o).e("content")),
|
|
1332
1332
|
innerHTML: F.message
|
|
1333
1333
|
}, null, 10, ["innerHTML"])
|
|
1334
1334
|
], 2112)) : (M(), k("p", {
|
|
1335
1335
|
key: 0,
|
|
1336
|
-
class:
|
|
1336
|
+
class: qA(H(o).e("content"))
|
|
1337
1337
|
}, he(F.message), 3))
|
|
1338
1338
|
]),
|
|
1339
1339
|
F.showClose ? (M(), NA(H(hl), {
|
|
1340
1340
|
key: 2,
|
|
1341
|
-
class:
|
|
1341
|
+
class: qA(H(o).e("closeBtn")),
|
|
1342
1342
|
onClick: BA(N, ["stop"])
|
|
1343
1343
|
}, {
|
|
1344
1344
|
default: rA(() => [
|
|
@@ -1358,7 +1358,7 @@ var ff = /* @__PURE__ */ $o(Bf, [["__file", "message.vue"]]);
|
|
|
1358
1358
|
let hf = 1;
|
|
1359
1359
|
const cc = (e) => {
|
|
1360
1360
|
const A = !e || kn(e) || Ds(e) || Zn(e) ? { message: e } : e, t = {
|
|
1361
|
-
...
|
|
1361
|
+
...KA,
|
|
1362
1362
|
...A
|
|
1363
1363
|
};
|
|
1364
1364
|
if (!t.appendTo)
|
|
@@ -1714,7 +1714,7 @@ const Vf = { class: "property-layout-container" }, Tf = {
|
|
|
1714
1714
|
return p.unshift({ label: "无", value: "" }), p;
|
|
1715
1715
|
}, u = (d) => d.layout ? d.layout : ["text", "file", "textarea"].includes(d.type) ? "full" : "half";
|
|
1716
1716
|
return ks("config", t.propsConfig), (d, p) => (M(), k("div", {
|
|
1717
|
-
class:
|
|
1717
|
+
class: qA(o.value)
|
|
1718
1718
|
}, [
|
|
1719
1719
|
R("div", Vf, [
|
|
1720
1720
|
(M(!0), k(xA, null, Ke(s.value, (f) => (M(), k(xA, {
|
|
@@ -1815,8 +1815,8 @@ function xf(e, A) {
|
|
|
1815
1815
|
]));
|
|
1816
1816
|
}
|
|
1817
1817
|
const Zf = /* @__PURE__ */ bA(bf, [["render", xf]]);
|
|
1818
|
-
var Ai = {}, ea = {},
|
|
1819
|
-
Object.defineProperty(
|
|
1818
|
+
var Ai = {}, ea = {}, YA = {};
|
|
1819
|
+
Object.defineProperty(YA, "__esModule", {
|
|
1820
1820
|
value: !0
|
|
1821
1821
|
});
|
|
1822
1822
|
function kf(e, A) {
|
|
@@ -1826,7 +1826,7 @@ function kf(e, A) {
|
|
|
1826
1826
|
var Of = function e(A, t) {
|
|
1827
1827
|
kf(this, e), this.data = A, this.text = t.text || A, this.options = t;
|
|
1828
1828
|
};
|
|
1829
|
-
|
|
1829
|
+
YA.default = Of;
|
|
1830
1830
|
Object.defineProperty(ea, "__esModule", {
|
|
1831
1831
|
value: !0
|
|
1832
1832
|
});
|
|
@@ -1841,7 +1841,7 @@ var Wf = function() {
|
|
|
1841
1841
|
return function(A, t, r) {
|
|
1842
1842
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
1843
1843
|
};
|
|
1844
|
-
}(), Df =
|
|
1844
|
+
}(), Df = YA, Lf = Jf(Df);
|
|
1845
1845
|
function Jf(e) {
|
|
1846
1846
|
return e && e.__esModule ? e : { default: e };
|
|
1847
1847
|
}
|
|
@@ -1939,7 +1939,7 @@ var eh = function() {
|
|
|
1939
1939
|
return function(A, t, r) {
|
|
1940
1940
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
1941
1941
|
};
|
|
1942
|
-
}(), th =
|
|
1942
|
+
}(), th = YA, rh = nh(th), Ae = FA;
|
|
1943
1943
|
function nh(e) {
|
|
1944
1944
|
return e && e.__esModule ? e : { default: e };
|
|
1945
1945
|
}
|
|
@@ -2257,7 +2257,7 @@ me.CODE128 = Dh.default;
|
|
|
2257
2257
|
me.CODE128A = Jh.default;
|
|
2258
2258
|
me.CODE128B = Gh.default;
|
|
2259
2259
|
me.CODE128C = zh.default;
|
|
2260
|
-
var
|
|
2260
|
+
var $A = {}, ii = {}, pe = {};
|
|
2261
2261
|
Object.defineProperty(pe, "__esModule", {
|
|
2262
2262
|
value: !0
|
|
2263
2263
|
});
|
|
@@ -2365,7 +2365,7 @@ var Ph = function() {
|
|
|
2365
2365
|
return function(A, t, r) {
|
|
2366
2366
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
2367
2367
|
};
|
|
2368
|
-
}(), wt = pe, _h = Bt, wl = Fc(_h), qh =
|
|
2368
|
+
}(), wt = pe, _h = Bt, wl = Fc(_h), qh = YA, $h = Fc(qh);
|
|
2369
2369
|
function Fc(e) {
|
|
2370
2370
|
return e && e.__esModule ? e : { default: e };
|
|
2371
2371
|
}
|
|
@@ -2637,7 +2637,7 @@ var Fg = function() {
|
|
|
2637
2637
|
return function(A, t, r) {
|
|
2638
2638
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
2639
2639
|
};
|
|
2640
|
-
}(), Cg = pe, Eg = Bt, mg = Cc(Eg), vg =
|
|
2640
|
+
}(), Cg = pe, Eg = Bt, mg = Cc(Eg), vg = YA, yg = Cc(vg);
|
|
2641
2641
|
function Cc(e) {
|
|
2642
2642
|
return e && e.__esModule ? e : { default: e };
|
|
2643
2643
|
}
|
|
@@ -2698,7 +2698,7 @@ var Sg = function() {
|
|
|
2698
2698
|
return function(A, t, r) {
|
|
2699
2699
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
2700
2700
|
};
|
|
2701
|
-
}(), Mg = pe, bg = Bt, Hg = Ec(bg), xg =
|
|
2701
|
+
}(), Mg = pe, bg = Bt, Hg = Ec(bg), xg = YA, Zg = Ec(xg);
|
|
2702
2702
|
function Ec(e) {
|
|
2703
2703
|
return e && e.__esModule ? e : { default: e };
|
|
2704
2704
|
}
|
|
@@ -2755,7 +2755,7 @@ var Lg = function() {
|
|
|
2755
2755
|
};
|
|
2756
2756
|
}();
|
|
2757
2757
|
Hr.checksum = go;
|
|
2758
|
-
var Jg = Bt, Ft = mc(Jg), Kg =
|
|
2758
|
+
var Jg = Bt, Ft = mc(Jg), Kg = YA, Gg = mc(Kg);
|
|
2759
2759
|
function mc(e) {
|
|
2760
2760
|
return e && e.__esModule ? e : { default: e };
|
|
2761
2761
|
}
|
|
@@ -2855,7 +2855,7 @@ var Pg = function() {
|
|
|
2855
2855
|
return function(A, t, r) {
|
|
2856
2856
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
2857
2857
|
};
|
|
2858
|
-
}(), _g = Bt, qg = vc(_g), $g =
|
|
2858
|
+
}(), _g = Bt, qg = vc(_g), $g = YA, Ap = vc($g), ep = Hr;
|
|
2859
2859
|
function vc(e) {
|
|
2860
2860
|
return e && e.__esModule ? e : { default: e };
|
|
2861
2861
|
}
|
|
@@ -2948,20 +2948,20 @@ function El(e, A) {
|
|
|
2948
2948
|
return n = "" + A + n, "" + n + (0, ep.checksum)(n);
|
|
2949
2949
|
}
|
|
2950
2950
|
ui.default = op;
|
|
2951
|
-
Object.defineProperty(
|
|
2951
|
+
Object.defineProperty($A, "__esModule", {
|
|
2952
2952
|
value: !0
|
|
2953
2953
|
});
|
|
2954
|
-
|
|
2954
|
+
$A.UPCE = $A.UPC = $A.EAN2 = $A.EAN5 = $A.EAN8 = $A.EAN13 = void 0;
|
|
2955
2955
|
var ip = ii, lp = zt(ip), sp = li, cp = zt(sp), up = si, dp = zt(up), Bp = ci, fp = zt(Bp), hp = Hr, gp = zt(hp), pp = ui, Up = zt(pp);
|
|
2956
2956
|
function zt(e) {
|
|
2957
2957
|
return e && e.__esModule ? e : { default: e };
|
|
2958
2958
|
}
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2959
|
+
$A.EAN13 = lp.default;
|
|
2960
|
+
$A.EAN8 = cp.default;
|
|
2961
|
+
$A.EAN5 = dp.default;
|
|
2962
|
+
$A.EAN2 = fp.default;
|
|
2963
|
+
$A.UPC = gp.default;
|
|
2964
|
+
$A.UPCE = Up.default;
|
|
2965
2965
|
var xt = {}, na = {}, xr = {};
|
|
2966
2966
|
Object.defineProperty(xr, "__esModule", {
|
|
2967
2967
|
value: !0
|
|
@@ -2982,7 +2982,7 @@ var Qp = function() {
|
|
|
2982
2982
|
return function(A, t, r) {
|
|
2983
2983
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
2984
2984
|
};
|
|
2985
|
-
}(), en = xr, wp =
|
|
2985
|
+
}(), en = xr, wp = YA, Fp = Cp(wp);
|
|
2986
2986
|
function Cp(e) {
|
|
2987
2987
|
return e && e.__esModule ? e : { default: e };
|
|
2988
2988
|
}
|
|
@@ -3109,7 +3109,7 @@ var Op = function() {
|
|
|
3109
3109
|
return function(A, t, r) {
|
|
3110
3110
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
3111
3111
|
};
|
|
3112
|
-
}(), Wp =
|
|
3112
|
+
}(), Wp = YA, Dp = Lp(Wp);
|
|
3113
3113
|
function Lp(e) {
|
|
3114
3114
|
return e && e.__esModule ? e : { default: e };
|
|
3115
3115
|
}
|
|
@@ -3326,7 +3326,7 @@ var xU = function() {
|
|
|
3326
3326
|
return function(A, t, r) {
|
|
3327
3327
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
3328
3328
|
};
|
|
3329
|
-
}(), ZU =
|
|
3329
|
+
}(), ZU = YA, kU = OU(ZU);
|
|
3330
3330
|
function OU(e) {
|
|
3331
3331
|
return e && e.__esModule ? e : { default: e };
|
|
3332
3332
|
}
|
|
@@ -3384,7 +3384,7 @@ var KU = function() {
|
|
|
3384
3384
|
return function(A, t, r) {
|
|
3385
3385
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
3386
3386
|
};
|
|
3387
|
-
}(), GU =
|
|
3387
|
+
}(), GU = YA, YU = zU(GU);
|
|
3388
3388
|
function zU(e) {
|
|
3389
3389
|
return e && e.__esModule ? e : { default: e };
|
|
3390
3390
|
}
|
|
@@ -3610,7 +3610,7 @@ var qU = function() {
|
|
|
3610
3610
|
return function(A, t, r) {
|
|
3611
3611
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
3612
3612
|
};
|
|
3613
|
-
}(), tn = kr, $U =
|
|
3613
|
+
}(), tn = kr, $U = YA, A1 = e1($U);
|
|
3614
3614
|
function e1(e) {
|
|
3615
3615
|
return e && e.__esModule ? e : { default: e };
|
|
3616
3616
|
}
|
|
@@ -3759,7 +3759,7 @@ var U1 = function() {
|
|
|
3759
3759
|
return function(A, t, r) {
|
|
3760
3760
|
return t && e(A.prototype, t), r && e(A, r), A;
|
|
3761
3761
|
};
|
|
3762
|
-
}(), Q1 =
|
|
3762
|
+
}(), Q1 = YA, w1 = F1(Q1);
|
|
3763
3763
|
function F1(e) {
|
|
3764
3764
|
return e && e.__esModule ? e : { default: e };
|
|
3765
3765
|
}
|
|
@@ -3802,7 +3802,7 @@ la.GenericBarcode = v1;
|
|
|
3802
3802
|
Object.defineProperty(Ai, "__esModule", {
|
|
3803
3803
|
value: !0
|
|
3804
3804
|
});
|
|
3805
|
-
var y1 = ea, rn = me, Ct =
|
|
3805
|
+
var y1 = ea, rn = me, Ct = $A, Rl = xt, nr = de, R1 = aa, V1 = oa, Vl = Zt, T1 = la;
|
|
3806
3806
|
Ai.default = {
|
|
3807
3807
|
CODE39: y1.CODE39,
|
|
3808
3808
|
CODE128: rn.CODE128,
|
|
@@ -7105,7 +7105,7 @@ const VF = {
|
|
|
7105
7105
|
};
|
|
7106
7106
|
};
|
|
7107
7107
|
return (a, o) => (M(), k("div", {
|
|
7108
|
-
class:
|
|
7108
|
+
class: qA(["ruler", e.direction])
|
|
7109
7109
|
}, [
|
|
7110
7110
|
(M(!0), k(xA, null, Ke(t.value, (i) => (M(), k("div", {
|
|
7111
7111
|
key: i,
|
|
@@ -7796,19 +7796,19 @@ function PF(e, A, t, r, n) {
|
|
|
7796
7796
|
const lA = (V.clientX - i.value.x) / 3.7795275591 / Z, fA = (V.clientY - i.value.y) / 3.7795275591 / Z;
|
|
7797
7797
|
let gA, sA;
|
|
7798
7798
|
I === 0 ? (gA = lA, sA = fA) : (gA = lA * tA + fA * S, sA = -lA * S + fA * tA);
|
|
7799
|
-
const kA = !!o.value.props.lockAspectRatio,
|
|
7799
|
+
const kA = !!o.value.props.lockAspectRatio, LA = q / $, Kr = Math.abs(V.clientX - i.value.x), ya = Math.abs(V.clientY - i.value.y);
|
|
7800
7800
|
if (kA && !B.value && (B.value = Kr > ya ? "x" : "y"), s.value.includes("-")) {
|
|
7801
7801
|
if (kA && B.value)
|
|
7802
|
-
B.value === "x" ? (["top-left", "bottom-left"].includes(s.value) ? O = Math.max(D, q - gA) : O = Math.max(D, q + gA), AA = O /
|
|
7802
|
+
B.value === "x" ? (["top-left", "bottom-left"].includes(s.value) ? O = Math.max(D, q - gA) : O = Math.max(D, q + gA), AA = O / LA) : (["top-left", "top-right"].includes(s.value) ? AA = Math.max(D, $ - sA) : AA = Math.max(D, $ + sA), O = AA * LA);
|
|
7803
7803
|
else if (s.value === "top-left" ? (O = Math.max(D, q - gA), AA = Math.max(D, $ - sA)) : s.value === "top-right" ? (O = Math.max(D, q + gA), AA = Math.max(D, $ - sA)) : s.value === "bottom-right" ? (O = Math.max(D, q + gA), AA = Math.max(D, $ + sA)) : s.value === "bottom-left" && (O = Math.max(D, q - gA), AA = Math.max(D, $ + sA)), kA) {
|
|
7804
7804
|
const TA = O / AA;
|
|
7805
|
-
if (Math.abs(TA -
|
|
7805
|
+
if (Math.abs(TA - LA) > 0.01) {
|
|
7806
7806
|
const le = Math.abs(O - q), qe = Math.abs(AA - $);
|
|
7807
|
-
le > qe ? AA = O /
|
|
7807
|
+
le > qe ? AA = O / LA : O = AA * LA;
|
|
7808
7808
|
}
|
|
7809
7809
|
}
|
|
7810
7810
|
} else
|
|
7811
|
-
s.value === "top" ? (AA = Math.max(D, $ - sA), kA && (O = AA *
|
|
7811
|
+
s.value === "top" ? (AA = Math.max(D, $ - sA), kA && (O = AA * LA)) : s.value === "bottom" ? (AA = Math.max(D, $ + sA), kA && (O = AA * LA)) : s.value === "left" ? (O = Math.max(D, q - gA), kA && (AA = O / LA)) : s.value === "right" && (O = Math.max(D, q + gA), kA && (AA = O / LA));
|
|
7812
7812
|
const Gr = E(
|
|
7813
7813
|
s.value,
|
|
7814
7814
|
iA,
|
|
@@ -7818,22 +7818,22 @@ function PF(e, A, t, r, n) {
|
|
|
7818
7818
|
I
|
|
7819
7819
|
), Ra = p.value.x - Gr.x, Va = p.value.y - Gr.y;
|
|
7820
7820
|
let oe = b(iA + Ra), ie = b(P + Va);
|
|
7821
|
-
const
|
|
7822
|
-
let
|
|
7821
|
+
const zA = e.value || 0, Ce = A.value || 0, Yr = oe, _t = oe + O, zr = ie, jr = ie + AA;
|
|
7822
|
+
let jA = !1;
|
|
7823
7823
|
if (I !== 0)
|
|
7824
|
-
|
|
7824
|
+
jA = !0;
|
|
7825
7825
|
else {
|
|
7826
7826
|
const TA = RA.CALCULATION.BOUNDARY_TOLERANCE;
|
|
7827
|
-
(Yr < -TA || _t >
|
|
7827
|
+
(Yr < -TA || _t > zA + TA || zr < -TA || jr > Ce + TA) && (jA = !0);
|
|
7828
7828
|
}
|
|
7829
|
-
if (
|
|
7830
|
-
const TA = C(oe, ie, O, AA, I,
|
|
7829
|
+
if (jA) {
|
|
7830
|
+
const TA = C(oe, ie, O, AA, I, zA, Ce);
|
|
7831
7831
|
if (TA.isOutOfBounds) {
|
|
7832
7832
|
const le = RA.CALCULATION.BOUNDARY_TOLERANCE;
|
|
7833
7833
|
let qe = 0, Ut = 0;
|
|
7834
|
-
TA.minX < -le ? qe = -TA.minX + le : TA.maxX >
|
|
7834
|
+
TA.minX < -le ? qe = -TA.minX + le : TA.maxX > zA + le && (qe = zA - TA.maxX + le), TA.minY < -le ? Ut = -TA.minY + le : TA.maxY > Ce + le && (Ut = Ce - TA.maxY + le);
|
|
7835
7835
|
const Xr = oe + qe, qt = ie + Ut;
|
|
7836
|
-
if (!C(Xr, qt, O, AA, I,
|
|
7836
|
+
if (!C(Xr, qt, O, AA, I, zA, Ce).isOutOfBounds)
|
|
7837
7837
|
oe = Xr, ie = qt;
|
|
7838
7838
|
else
|
|
7839
7839
|
return;
|
|
@@ -8100,10 +8100,10 @@ function tC(e = {}) {
|
|
|
8100
8100
|
{ x: I, y: L + S }
|
|
8101
8101
|
// 左下角
|
|
8102
8102
|
], O = I + tA / 2, AA = L + S / 2, lA = D.map((sA) => {
|
|
8103
|
-
const kA = sA.x - O,
|
|
8103
|
+
const kA = sA.x - O, LA = sA.y - AA;
|
|
8104
8104
|
return {
|
|
8105
|
-
x: O + kA * iA -
|
|
8106
|
-
y: AA + kA * P +
|
|
8105
|
+
x: O + kA * iA - LA * P,
|
|
8106
|
+
y: AA + kA * P + LA * iA
|
|
8107
8107
|
};
|
|
8108
8108
|
}), fA = lA.map((sA) => sA.x), gA = lA.map((sA) => sA.y);
|
|
8109
8109
|
q = {
|
|
@@ -8309,7 +8309,7 @@ var mo = function() {
|
|
|
8309
8309
|
return A;
|
|
8310
8310
|
}, mo.apply(this, arguments);
|
|
8311
8311
|
};
|
|
8312
|
-
function
|
|
8312
|
+
function GA(e, A, t, r) {
|
|
8313
8313
|
function n(a) {
|
|
8314
8314
|
return a instanceof t ? a : new t(function(o) {
|
|
8315
8315
|
o(a);
|
|
@@ -8336,7 +8336,7 @@ function KA(e, A, t, r) {
|
|
|
8336
8336
|
s((r = r.apply(e, A || [])).next());
|
|
8337
8337
|
});
|
|
8338
8338
|
}
|
|
8339
|
-
function
|
|
8339
|
+
function WA(e, A) {
|
|
8340
8340
|
var t = { label: 0, sent: function() {
|
|
8341
8341
|
if (a[0] & 1)
|
|
8342
8342
|
throw a[1];
|
|
@@ -8657,12 +8657,12 @@ var mC = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8657
8657
|
return { done: !0, value: null };
|
|
8658
8658
|
}
|
|
8659
8659
|
};
|
|
8660
|
-
}, DC = 1, LC = 2, Lr = 4, _l = 8, Jn = 10, ql = 47, wr = 92, JC = 9, KC = 32, gn = 34, ir = 61, GC = 35, YC = 36, zC = 37, pn = 39, Un = 40, lr = 41, jC = 95,
|
|
8660
|
+
}, DC = 1, LC = 2, Lr = 4, _l = 8, Jn = 10, ql = 47, wr = 92, JC = 9, KC = 32, gn = 34, ir = 61, GC = 35, YC = 36, zC = 37, pn = 39, Un = 40, lr = 41, jC = 95, _A = 45, XC = 33, PC = 60, _C = 62, qC = 64, $C = 91, AE = 93, eE = 61, tE = 123, Qn = 63, rE = 125, $l = 124, nE = 126, aE = 128, As = 65533, Pa = 42, rt = 43, oE = 44, iE = 58, lE = 59, Nr = 46, sE = 0, cE = 8, uE = 11, dE = 14, BE = 31, fE = 127, Ee = -1, du = 48, Bu = 97, fu = 101, hE = 102, gE = 117, pE = 122, hu = 65, gu = 69, pu = 70, UE = 85, QE = 90, DA = function(e) {
|
|
8661
8661
|
return e >= du && e <= 57;
|
|
8662
8662
|
}, wE = function(e) {
|
|
8663
8663
|
return e >= 55296 && e <= 57343;
|
|
8664
8664
|
}, vt = function(e) {
|
|
8665
|
-
return
|
|
8665
|
+
return DA(e) || e >= hu && e <= pu || e >= Bu && e <= hE;
|
|
8666
8666
|
}, FE = function(e) {
|
|
8667
8667
|
return e >= Bu && e <= pE;
|
|
8668
8668
|
}, CE = function(e) {
|
|
@@ -8676,29 +8676,29 @@ var mC = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8676
8676
|
}, Kn = function(e) {
|
|
8677
8677
|
return EE(e) || mE(e) || e === jC;
|
|
8678
8678
|
}, es = function(e) {
|
|
8679
|
-
return Kn(e) ||
|
|
8679
|
+
return Kn(e) || DA(e) || e === _A;
|
|
8680
8680
|
}, vE = function(e) {
|
|
8681
8681
|
return e >= sE && e <= cE || e === uE || e >= dE && e <= BE || e === fE;
|
|
8682
8682
|
}, ke = function(e, A) {
|
|
8683
8683
|
return e !== wr ? !1 : A !== Jn;
|
|
8684
8684
|
}, Fn = function(e, A, t) {
|
|
8685
|
-
return e ===
|
|
8685
|
+
return e === _A ? Kn(A) || ke(A, t) : Kn(e) ? !0 : !!(e === wr && ke(e, A));
|
|
8686
8686
|
}, _a = function(e, A, t) {
|
|
8687
|
-
return e === rt || e ===
|
|
8687
|
+
return e === rt || e === _A ? DA(A) ? !0 : A === Nr && DA(t) : DA(e === Nr ? A : e);
|
|
8688
8688
|
}, yE = function(e) {
|
|
8689
8689
|
var A = 0, t = 1;
|
|
8690
|
-
(e[A] === rt || e[A] ===
|
|
8691
|
-
for (var r = [];
|
|
8690
|
+
(e[A] === rt || e[A] === _A) && (e[A] === _A && (t = -1), A++);
|
|
8691
|
+
for (var r = []; DA(e[A]); )
|
|
8692
8692
|
r.push(e[A++]);
|
|
8693
8693
|
var n = r.length ? parseInt(yA.apply(void 0, r), 10) : 0;
|
|
8694
8694
|
e[A] === Nr && A++;
|
|
8695
|
-
for (var a = [];
|
|
8695
|
+
for (var a = []; DA(e[A]); )
|
|
8696
8696
|
a.push(e[A++]);
|
|
8697
8697
|
var o = a.length, i = o ? parseInt(yA.apply(void 0, a), 10) : 0;
|
|
8698
8698
|
(e[A] === gu || e[A] === fu) && A++;
|
|
8699
8699
|
var l = 1;
|
|
8700
|
-
(e[A] === rt || e[A] ===
|
|
8701
|
-
for (var s = [];
|
|
8700
|
+
(e[A] === rt || e[A] === _A) && (e[A] === _A && (l = -1), A++);
|
|
8701
|
+
for (var s = []; DA(e[A]); )
|
|
8702
8702
|
s.push(e[A++]);
|
|
8703
8703
|
var c = s.length ? parseInt(yA.apply(void 0, s), 10) : 0;
|
|
8704
8704
|
return t * (n + i * Math.pow(10, -o)) * Math.pow(10, l * c);
|
|
@@ -8809,13 +8809,13 @@ var mC = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8809
8809
|
break;
|
|
8810
8810
|
case oE:
|
|
8811
8811
|
return TE;
|
|
8812
|
-
case
|
|
8812
|
+
case _A:
|
|
8813
8813
|
var i = A, l = this.peekCodePoint(0), s = this.peekCodePoint(1);
|
|
8814
8814
|
if (_a(i, l, s))
|
|
8815
8815
|
return this.reconsumeCodePoint(A), this.consumeNumericToken();
|
|
8816
8816
|
if (Fn(i, l, s))
|
|
8817
8817
|
return this.reconsumeCodePoint(A), this.consumeIdentLikeToken();
|
|
8818
|
-
if (l ===
|
|
8818
|
+
if (l === _A && s === _C)
|
|
8819
8819
|
return this.consumeCodePoint(), this.consumeCodePoint(), WE;
|
|
8820
8820
|
break;
|
|
8821
8821
|
case Nr:
|
|
@@ -8837,7 +8837,7 @@ var mC = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8837
8837
|
case lE:
|
|
8838
8838
|
return LE;
|
|
8839
8839
|
case PC:
|
|
8840
|
-
if (this.peekCodePoint(0) === XC && this.peekCodePoint(1) ===
|
|
8840
|
+
if (this.peekCodePoint(0) === XC && this.peekCodePoint(1) === _A && this.peekCodePoint(2) === _A)
|
|
8841
8841
|
return this.consumeCodePoint(), this.consumeCodePoint(), OE;
|
|
8842
8842
|
break;
|
|
8843
8843
|
case qC:
|
|
@@ -8880,7 +8880,7 @@ var mC = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8880
8880
|
case Ee:
|
|
8881
8881
|
return Ho;
|
|
8882
8882
|
}
|
|
8883
|
-
return wn(A) ? (this.consumeWhiteSpace(), GE) :
|
|
8883
|
+
return wn(A) ? (this.consumeWhiteSpace(), GE) : DA(A) ? (this.reconsumeCodePoint(A), this.consumeNumericToken()) : Kn(A) ? (this.reconsumeCodePoint(A), this.consumeIdentLikeToken()) : { type: 6, value: yA(A) };
|
|
8884
8884
|
}, e.prototype.consumeCodePoint = function() {
|
|
8885
8885
|
var A = this._value.shift();
|
|
8886
8886
|
return typeof A > "u" ? -1 : A;
|
|
@@ -8902,7 +8902,7 @@ var mC = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8902
8902
|
return { type: 30, start: n, end: a };
|
|
8903
8903
|
}
|
|
8904
8904
|
var o = parseInt(yA.apply(void 0, A), 16);
|
|
8905
|
-
if (this.peekCodePoint(0) ===
|
|
8905
|
+
if (this.peekCodePoint(0) === _A && vt(this.peekCodePoint(1))) {
|
|
8906
8906
|
this.consumeCodePoint(), t = this.consumeCodePoint();
|
|
8907
8907
|
for (var i = []; vt(t) && i.length < 6; )
|
|
8908
8908
|
i.push(t), t = this.consumeCodePoint();
|
|
@@ -8970,17 +8970,17 @@ var mC = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8970
8970
|
} while (!0);
|
|
8971
8971
|
}, e.prototype.consumeNumber = function() {
|
|
8972
8972
|
var A = [], t = Lr, r = this.peekCodePoint(0);
|
|
8973
|
-
for ((r === rt || r ===
|
|
8973
|
+
for ((r === rt || r === _A) && A.push(this.consumeCodePoint()); DA(this.peekCodePoint(0)); )
|
|
8974
8974
|
A.push(this.consumeCodePoint());
|
|
8975
8975
|
r = this.peekCodePoint(0);
|
|
8976
8976
|
var n = this.peekCodePoint(1);
|
|
8977
|
-
if (r === Nr &&
|
|
8978
|
-
for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), t = _l;
|
|
8977
|
+
if (r === Nr && DA(n))
|
|
8978
|
+
for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), t = _l; DA(this.peekCodePoint(0)); )
|
|
8979
8979
|
A.push(this.consumeCodePoint());
|
|
8980
8980
|
r = this.peekCodePoint(0), n = this.peekCodePoint(1);
|
|
8981
8981
|
var a = this.peekCodePoint(2);
|
|
8982
|
-
if ((r === gu || r === fu) && ((n === rt || n ===
|
|
8983
|
-
for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), t = _l;
|
|
8982
|
+
if ((r === gu || r === fu) && ((n === rt || n === _A) && DA(a) || DA(n)))
|
|
8983
|
+
for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), t = _l; DA(this.peekCodePoint(0)); )
|
|
8984
8984
|
A.push(this.consumeCodePoint());
|
|
8985
8985
|
return [yE(A), t];
|
|
8986
8986
|
}, e.prototype.consumeNumericToken = function() {
|
|
@@ -11749,9 +11749,9 @@ var zv = 1, eo = 2, to = 3, fs = 4, hs = 5, jv = 7, gs = 8, ro = 9, no = 10, ps
|
|
|
11749
11749
|
if (!n.contentWindow)
|
|
11750
11750
|
return Promise.reject("Unable to find iframe window");
|
|
11751
11751
|
var a = A.defaultView.pageXOffset, o = A.defaultView.pageYOffset, i = n.contentWindow, l = i.document, s = Zy(n).then(function() {
|
|
11752
|
-
return
|
|
11752
|
+
return GA(r, void 0, void 0, function() {
|
|
11753
11753
|
var c, u;
|
|
11754
|
-
return
|
|
11754
|
+
return WA(this, function(d) {
|
|
11755
11755
|
switch (d.label) {
|
|
11756
11756
|
case 0:
|
|
11757
11757
|
return this.scrolledElements.forEach(Dy), i && (i.scrollTo(t.left, t.top), /(iPad|iPhone|iPod)/g.test(navigator.userAgent) && (i.scrollY !== t.top || i.scrollX !== t.left) && (this.context.logger.warn("Unable to restore scroll position for cloned document"), this.context.windowBounds = this.context.windowBounds.add(i.scrollX - t.left, i.scrollY - t.top, 0, 0))), c = this.options.onclone, u = this.clonedReferenceElement, typeof u > "u" ? [2, Promise.reject("Error finding the " + this.referenceElement.nodeName + " in the cloned document")] : l.fonts && l.fonts.ready ? [4, l.fonts.ready] : [3, 2];
|
|
@@ -12017,9 +12017,9 @@ var by = function(e, A) {
|
|
|
12017
12017
|
}, e.prototype.match = function(A) {
|
|
12018
12018
|
return this._cache[A];
|
|
12019
12019
|
}, e.prototype.loadImage = function(A) {
|
|
12020
|
-
return
|
|
12020
|
+
return GA(this, void 0, void 0, function() {
|
|
12021
12021
|
var t, r, n, a, o = this;
|
|
12022
|
-
return
|
|
12022
|
+
return WA(this, function(i) {
|
|
12023
12023
|
switch (i.label) {
|
|
12024
12024
|
case 0:
|
|
12025
12025
|
return t = ed.isSameOrigin(A), r = !so(A) && this._options.useCORS === !0 && HA.SUPPORT_CORS_IMAGES && !t, n = !so(A) && !t && !co(A) && typeof this._options.proxy == "string" && HA.SUPPORT_CORS_XHR && !r, !t && this._options.allowTaint === !1 && !so(A) && !co(A) && !n && !r ? [
|
|
@@ -12520,9 +12520,9 @@ var CA = function(e, A, t, r, n) {
|
|
|
12520
12520
|
}, A.prototype.popEffect = function() {
|
|
12521
12521
|
this._activeEffects.pop(), this.ctx.restore();
|
|
12522
12522
|
}, A.prototype.renderStack = function(t) {
|
|
12523
|
-
return
|
|
12523
|
+
return GA(this, void 0, void 0, function() {
|
|
12524
12524
|
var r;
|
|
12525
|
-
return
|
|
12525
|
+
return WA(this, function(n) {
|
|
12526
12526
|
switch (n.label) {
|
|
12527
12527
|
case 0:
|
|
12528
12528
|
return r = t.element.container.styles, r.isVisible() ? [4, this.renderStackContent(t)] : [3, 2];
|
|
@@ -12537,8 +12537,8 @@ var CA = function(e, A, t, r, n) {
|
|
|
12537
12537
|
});
|
|
12538
12538
|
});
|
|
12539
12539
|
}, A.prototype.renderNode = function(t) {
|
|
12540
|
-
return
|
|
12541
|
-
return
|
|
12540
|
+
return GA(this, void 0, void 0, function() {
|
|
12541
|
+
return WA(this, function(r) {
|
|
12542
12542
|
switch (r.label) {
|
|
12543
12543
|
case 0:
|
|
12544
12544
|
if (IA(
|
|
@@ -12580,9 +12580,9 @@ var CA = function(e, A, t, r, n) {
|
|
|
12580
12580
|
a
|
|
12581
12581
|
];
|
|
12582
12582
|
}, A.prototype.renderTextNode = function(t, r) {
|
|
12583
|
-
return
|
|
12583
|
+
return GA(this, void 0, void 0, function() {
|
|
12584
12584
|
var n, a, o, i, l, s, c, u, d = this;
|
|
12585
|
-
return
|
|
12585
|
+
return WA(this, function(p) {
|
|
12586
12586
|
return n = this.createFontStyle(r), a = n[0], o = n[1], i = n[2], this.ctx.font = a, this.ctx.direction = r.direction === 1 ? "rtl" : "ltr", this.ctx.textAlign = "left", this.ctx.textBaseline = "alphabetic", l = this.fontMetrics.getMetrics(o, i), s = l.baseline, c = l.middle, u = r.paintOrder, t.textBounds.forEach(function(f) {
|
|
12587
12587
|
u.forEach(function(B) {
|
|
12588
12588
|
switch (B) {
|
|
@@ -12622,9 +12622,9 @@ var CA = function(e, A, t, r, n) {
|
|
|
12622
12622
|
this.path(o), this.ctx.save(), this.ctx.clip(), this.ctx.drawImage(n, 0, 0, t.intrinsicWidth, t.intrinsicHeight, a.left, a.top, a.width, a.height), this.ctx.restore();
|
|
12623
12623
|
}
|
|
12624
12624
|
}, A.prototype.renderNodeContent = function(t) {
|
|
12625
|
-
return
|
|
12625
|
+
return GA(this, void 0, void 0, function() {
|
|
12626
12626
|
var r, n, a, o, i, l, U, U, s, c, u, d, Q, p, f, E, B, h, g, U, C, Q, E;
|
|
12627
|
-
return
|
|
12627
|
+
return WA(this, function(v) {
|
|
12628
12628
|
switch (v.label) {
|
|
12629
12629
|
case 0:
|
|
12630
12630
|
this.applyEffects(t.getEffects(
|
|
@@ -12723,9 +12723,9 @@ var CA = function(e, A, t, r, n) {
|
|
|
12723
12723
|
});
|
|
12724
12724
|
});
|
|
12725
12725
|
}, A.prototype.renderStackContent = function(t) {
|
|
12726
|
-
return
|
|
12726
|
+
return GA(this, void 0, void 0, function() {
|
|
12727
12727
|
var r, n, g, a, o, g, i, l, g, s, c, g, u, d, g, p, f, g, B, h, g;
|
|
12728
|
-
return
|
|
12728
|
+
return WA(this, function(U) {
|
|
12729
12729
|
switch (U.label) {
|
|
12730
12730
|
case 0:
|
|
12731
12731
|
if (IA(
|
|
@@ -12822,14 +12822,14 @@ var CA = function(e, A, t, r, n) {
|
|
|
12822
12822
|
var l = i.getContext("2d");
|
|
12823
12823
|
return l.drawImage(t, 0, 0, t.width, t.height, 0, 0, r, n), i;
|
|
12824
12824
|
}, A.prototype.renderBackgroundImage = function(t) {
|
|
12825
|
-
return
|
|
12825
|
+
return GA(this, void 0, void 0, function() {
|
|
12826
12826
|
var r, n, a, o, i, l;
|
|
12827
|
-
return
|
|
12827
|
+
return WA(this, function(s) {
|
|
12828
12828
|
switch (s.label) {
|
|
12829
12829
|
case 0:
|
|
12830
12830
|
r = t.styles.backgroundImage.length - 1, n = function(c) {
|
|
12831
12831
|
var u, d, p, V, S, q, I, L, x, f, V, S, q, I, L, B, h, g, U, C, Q, E, v, N, x, F, V, y, Z, I, L, tA, S, q, $, iA, P, D, O, AA, lA, fA;
|
|
12832
|
-
return
|
|
12832
|
+
return WA(this, function(gA) {
|
|
12833
12833
|
switch (gA.label) {
|
|
12834
12834
|
case 0:
|
|
12835
12835
|
if (c.type !== 0)
|
|
@@ -12880,8 +12880,8 @@ var CA = function(e, A, t, r, n) {
|
|
|
12880
12880
|
});
|
|
12881
12881
|
});
|
|
12882
12882
|
}, A.prototype.renderSolidBorder = function(t, r, n) {
|
|
12883
|
-
return
|
|
12884
|
-
return
|
|
12883
|
+
return GA(this, void 0, void 0, function() {
|
|
12884
|
+
return WA(this, function(a) {
|
|
12885
12885
|
return this.path(xs(n, r)), this.ctx.fillStyle = MA(t), this.ctx.fill(), [
|
|
12886
12886
|
2
|
|
12887
12887
|
/*return*/
|
|
@@ -12889,9 +12889,9 @@ var CA = function(e, A, t, r, n) {
|
|
|
12889
12889
|
});
|
|
12890
12890
|
});
|
|
12891
12891
|
}, A.prototype.renderDoubleBorder = function(t, r, n, a) {
|
|
12892
|
-
return
|
|
12892
|
+
return GA(this, void 0, void 0, function() {
|
|
12893
12893
|
var o, i;
|
|
12894
|
-
return
|
|
12894
|
+
return WA(this, function(l) {
|
|
12895
12895
|
switch (l.label) {
|
|
12896
12896
|
case 0:
|
|
12897
12897
|
return r < 3 ? [4, this.renderSolidBorder(t, n, a)] : [3, 2];
|
|
@@ -12909,9 +12909,9 @@ var CA = function(e, A, t, r, n) {
|
|
|
12909
12909
|
});
|
|
12910
12910
|
});
|
|
12911
12911
|
}, A.prototype.renderNodeBackgroundAndBorders = function(t) {
|
|
12912
|
-
return
|
|
12912
|
+
return GA(this, void 0, void 0, function() {
|
|
12913
12913
|
var r, n, a, o, i, l, s, c, u = this;
|
|
12914
|
-
return
|
|
12914
|
+
return WA(this, function(d) {
|
|
12915
12915
|
switch (d.label) {
|
|
12916
12916
|
case 0:
|
|
12917
12917
|
return this.applyEffects(t.getEffects(
|
|
@@ -12974,9 +12974,9 @@ var CA = function(e, A, t, r, n) {
|
|
|
12974
12974
|
});
|
|
12975
12975
|
});
|
|
12976
12976
|
}, A.prototype.renderDashedDottedBorder = function(t, r, n, a, o) {
|
|
12977
|
-
return
|
|
12977
|
+
return GA(this, void 0, void 0, function() {
|
|
12978
12978
|
var i, l, s, c, u, d, p, f, B, h, g, U, C, Q, E, v, E, v;
|
|
12979
|
-
return
|
|
12979
|
+
return WA(this, function(N) {
|
|
12980
12980
|
return this.ctx.save(), i = sR(a, n), l = xs(a, n), o === 2 && (this.path(l), this.ctx.clip()), ce(l[0]) ? (s = l[0].start.x, c = l[0].start.y) : (s = l[0].x, c = l[0].y), ce(l[1]) ? (u = l[1].end.x, d = l[1].end.y) : (u = l[1].x, d = l[1].y), n === 0 || n === 2 ? p = Math.abs(s - u) : p = Math.abs(c - d), this.ctx.beginPath(), o === 3 ? this.formatPath(i) : this.formatPath(l.slice(0, 2)), f = r < 3 ? r * 3 : r * 2, B = r < 3 ? r * 2 : r, o === 3 && (f = r, B = r), h = !0, p <= f * 2 ? h = !1 : p <= f * 2 + B ? (g = p / (2 * f + B), f *= g, B *= g) : (U = Math.floor((p + B) / (f + B)), C = (p - U * f) / (U - 1), Q = (p - (U + 1) * f) / U, B = Q <= 0 || Math.abs(B - C) < Math.abs(B - Q) ? C : Q), h && (o === 3 ? this.ctx.setLineDash([0, f + B]) : this.ctx.setLineDash([f, B])), o === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = MA(t), this.ctx.stroke(), this.ctx.setLineDash([]), o === 2 && (ce(l[0]) && (E = l[3], v = l[0], this.ctx.beginPath(), this.formatPath([new J(E.end.x, E.end.y), new J(v.start.x, v.start.y)]), this.ctx.stroke()), ce(l[1]) && (E = l[1], v = l[2], this.ctx.beginPath(), this.formatPath([new J(E.end.x, E.end.y), new J(v.start.x, v.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
|
|
12981
12981
|
2
|
|
12982
12982
|
/*return*/
|
|
@@ -12984,9 +12984,9 @@ var CA = function(e, A, t, r, n) {
|
|
|
12984
12984
|
});
|
|
12985
12985
|
});
|
|
12986
12986
|
}, A.prototype.render = function(t) {
|
|
12987
|
-
return
|
|
12987
|
+
return GA(this, void 0, void 0, function() {
|
|
12988
12988
|
var r;
|
|
12989
|
-
return
|
|
12989
|
+
return WA(this, function(n) {
|
|
12990
12990
|
switch (n.label) {
|
|
12991
12991
|
case 0:
|
|
12992
12992
|
return this.options.backgroundColor && (this.ctx.fillStyle = MA(this.options.backgroundColor), this.ctx.fillRect(this.options.x, this.options.y, this.options.width, this.options.height)), r = oR(t), [4, this.renderStack(r)];
|
|
@@ -13032,9 +13032,9 @@ var CA = function(e, A, t, r, n) {
|
|
|
13032
13032
|
return n.canvas = r.canvas ? r.canvas : document.createElement("canvas"), n.ctx = n.canvas.getContext("2d"), n.options = r, n.canvas.width = Math.floor(r.width * r.scale), n.canvas.height = Math.floor(r.height * r.scale), n.canvas.style.width = r.width + "px", n.canvas.style.height = r.height + "px", n.ctx.scale(n.options.scale, n.options.scale), n.ctx.translate(-r.x, -r.y), n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized (" + r.width + "x" + r.height + " at " + r.x + "," + r.y + ") with scale " + r.scale), n;
|
|
13033
13033
|
}
|
|
13034
13034
|
return A.prototype.render = function(t) {
|
|
13035
|
-
return
|
|
13035
|
+
return GA(this, void 0, void 0, function() {
|
|
13036
13036
|
var r, n;
|
|
13037
|
-
return
|
|
13037
|
+
return WA(this, function(a) {
|
|
13038
13038
|
switch (a.label) {
|
|
13039
13039
|
case 0:
|
|
13040
13040
|
return r = Oo(this.options.width * this.options.scale, this.options.height * this.options.scale, this.options.scale, this.options.scale, t), [4, mR(r)];
|
|
@@ -13093,9 +13093,9 @@ var CA = function(e, A, t, r, n) {
|
|
|
13093
13093
|
};
|
|
13094
13094
|
typeof window < "u" && ed.setContext(window);
|
|
13095
13095
|
var VR = function(e, A) {
|
|
13096
|
-
return
|
|
13096
|
+
return GA(void 0, void 0, void 0, function() {
|
|
13097
13097
|
var t, r, n, a, o, i, l, s, c, u, d, p, f, B, h, g, U, C, Q, E, N, v, N, x, F, V, y, Z, I, L, tA, S, q, $, iA, P, D, O, AA, lA;
|
|
13098
|
-
return
|
|
13098
|
+
return WA(this, function(fA) {
|
|
13099
13099
|
switch (fA.label) {
|
|
13100
13100
|
case 0:
|
|
13101
13101
|
if (!e || typeof e != "object")
|
|
@@ -13352,9 +13352,10 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13352
13352
|
if (!m || !s.value || !c.value)
|
|
13353
13353
|
return;
|
|
13354
13354
|
const w = m.getBoundingClientRect(), W = Wn(s.value), eA = Wn(c.value), cA = 16, z = 21, nA = 21, _ = 20, T = 24, G = 24, aA = w.width - cA * 2 - z - G, EA = w.height - cA - nA - _ - T;
|
|
13355
|
-
let UA = aA / W, SA = EA / eA,
|
|
13356
|
-
|
|
13357
|
-
|
|
13355
|
+
let UA = aA / W, SA = EA / eA, OA = Math.min(UA, SA);
|
|
13356
|
+
OA = OA * 0.95;
|
|
13357
|
+
const JA = Math.min(4, OA);
|
|
13358
|
+
l = Math.max(0.8, Math.min(JA, OA)), i.value = P(l, 1), setTimeout(() => {
|
|
13358
13359
|
n.value = 1, a.value = !1;
|
|
13359
13360
|
}, 500);
|
|
13360
13361
|
});
|
|
@@ -13431,7 +13432,7 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13431
13432
|
var w;
|
|
13432
13433
|
const m = U();
|
|
13433
13434
|
return !m || m.type !== "line" ? ((w = m == null ? void 0 : m.props) == null ? void 0 : w.y) || 0 : m.props.y1 || m.props.y || 0;
|
|
13434
|
-
},
|
|
13435
|
+
}, LA = (m, w) => {
|
|
13435
13436
|
const W = U();
|
|
13436
13437
|
if (!W || W.type !== "line") {
|
|
13437
13438
|
Ce(m, w);
|
|
@@ -13440,12 +13441,12 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13440
13441
|
const eA = Number(w);
|
|
13441
13442
|
if (isNaN(eA))
|
|
13442
13443
|
return;
|
|
13443
|
-
const cA = W.props.width || 15, z = W.props.rotation || 0, _ = (W.props.height || 0.5) / 2, T = cA / 2, G = _, aA = z * Math.PI / 180, EA = Math.cos(aA), UA = Math.sin(aA),
|
|
13444
|
+
const cA = W.props.width || 15, z = W.props.rotation || 0, _ = (W.props.height || 0.5) / 2, T = cA / 2, G = _, aA = z * Math.PI / 180, EA = Math.cos(aA), UA = Math.sin(aA), OA = -(cA / 2), XA = 0, JA = OA * EA - XA * UA, PA = OA * UA + XA * EA;
|
|
13444
13445
|
if (m === "x") {
|
|
13445
|
-
const Ve = eA - T -
|
|
13446
|
+
const Ve = eA - T - JA;
|
|
13446
13447
|
W.props.x = Number(Ve.toFixed(2));
|
|
13447
13448
|
} else if (m === "y") {
|
|
13448
|
-
const Ve = eA - G -
|
|
13449
|
+
const Ve = eA - G - PA;
|
|
13449
13450
|
W.props.y = Number(Ve.toFixed(2));
|
|
13450
13451
|
}
|
|
13451
13452
|
};
|
|
@@ -13472,23 +13473,23 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13472
13473
|
const w = JSON.parse(((ji = (Pr = m == null ? void 0 : m.dataTransfer) == null ? void 0 : Pr.getData) == null ? void 0 : ji.call(Pr, "comp")) || "{}") || {}, W = (w == null ? void 0 : w.type) || "";
|
|
13473
13474
|
if (!W)
|
|
13474
13475
|
return;
|
|
13475
|
-
const eA = document.querySelector("#design").getBoundingClientRect(), cA = (m.clientX - eA.left) / i.value, z = (m.clientY - eA.top) / i.value, nA =
|
|
13476
|
+
const eA = document.querySelector("#design").getBoundingClientRect(), cA = (m.clientX - eA.left) / i.value, z = (m.clientY - eA.top) / i.value, nA = jA.value[W] || {};
|
|
13476
13477
|
let _ = Sl(cA), T = Sl(z);
|
|
13477
13478
|
const G = nA.width, aA = nA.height, EA = s.value - G, UA = c.value - aA;
|
|
13478
13479
|
_ = Math.max(0, Math.min(_, EA)), T = Math.max(0, Math.min(T, UA));
|
|
13479
|
-
const { propertyPanel: SA, ...
|
|
13480
|
-
let
|
|
13481
|
-
if ((Xi =
|
|
13482
|
-
const $e = gt(
|
|
13483
|
-
if (
|
|
13484
|
-
...
|
|
13480
|
+
const { propertyPanel: SA, ...OA } = nA;
|
|
13481
|
+
let XA = { ...OA, x: b(_), y: b(T), width: b(G), height: b(aA) };
|
|
13482
|
+
if ((Xi = jA.value[W]) != null && Xi.propertyPanel) {
|
|
13483
|
+
const $e = gt(jA.value[W].propertyPanel) || {};
|
|
13484
|
+
if (XA = {
|
|
13485
|
+
...XA,
|
|
13485
13486
|
...$e
|
|
13486
13487
|
}, W === "line" && $e.LineWidth) {
|
|
13487
13488
|
const Qt = parseFloat($e.LineWidth) * 0.3528;
|
|
13488
|
-
|
|
13489
|
+
XA.height = b(Qt, 3);
|
|
13489
13490
|
}
|
|
13490
13491
|
}
|
|
13491
|
-
const
|
|
13492
|
+
const PA = (($e, Ta) => {
|
|
13492
13493
|
const { width: Qt, height: _r, lockAspectRatio: sd } = $e;
|
|
13493
13494
|
let $t = Qt, Ar = _r;
|
|
13494
13495
|
const qr = s.value - 2, $r = c.value - 2;
|
|
@@ -13501,15 +13502,15 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13501
13502
|
width: $t,
|
|
13502
13503
|
height: Ar
|
|
13503
13504
|
};
|
|
13504
|
-
})(
|
|
13505
|
-
if (
|
|
13506
|
-
const $e = s.value -
|
|
13507
|
-
_ = Math.max(0, Math.min(_, $e)), T = Math.max(0, Math.min(T, Ta)),
|
|
13505
|
+
})(XA);
|
|
13506
|
+
if (XA.width = PA.width, XA.height = PA.height, PA.width !== G || PA.height !== aA) {
|
|
13507
|
+
const $e = s.value - PA.width, Ta = c.value - PA.height;
|
|
13508
|
+
_ = Math.max(0, Math.min(_, $e)), T = Math.max(0, Math.min(T, Ta)), XA.x = b(_), XA.y = b(T);
|
|
13508
13509
|
}
|
|
13509
13510
|
const Ve = {
|
|
13510
13511
|
id: le(),
|
|
13511
13512
|
type: W,
|
|
13512
|
-
props:
|
|
13513
|
+
props: XA
|
|
13513
13514
|
};
|
|
13514
13515
|
o.value.push(Ve), g(Ve);
|
|
13515
13516
|
};
|
|
@@ -13543,7 +13544,7 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13543
13544
|
var W;
|
|
13544
13545
|
const w = document.activeElement.tagName.toLowerCase();
|
|
13545
13546
|
w === "input" || w === "textarea" || (m.key === "Delete" || m.key === "Backspace") && h.value.length > 0 && oe((W = U()) == null ? void 0 : W.id);
|
|
13546
|
-
}, { handleMouseWheel:
|
|
13547
|
+
}, { handleMouseWheel: zA, handleInputChange: Ce, adjustRotation: Yr } = AC(h, s, c), _t = () => {
|
|
13547
13548
|
setTimeout(() => {
|
|
13548
13549
|
const m = document.querySelector(".center-container");
|
|
13549
13550
|
if (!m)
|
|
@@ -13555,11 +13556,11 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13555
13556
|
wA(() => t.templateInfo, (m, w) => {
|
|
13556
13557
|
m !== w && (r.value = m || {}, o.value = (m == null ? void 0 : m.items) || []);
|
|
13557
13558
|
}, { deep: !0, immediate: !0 });
|
|
13558
|
-
const { handleCopy: zr, handlePaste: jr } = eC(o, h, s, c),
|
|
13559
|
+
const { handleCopy: zr, handlePaste: jr } = eC(o, h, s, c), jA = X({}), pt = X(!1), TA = async (m) => {
|
|
13559
13560
|
try {
|
|
13560
|
-
pt.value = !1,
|
|
13561
|
+
pt.value = !1, jA.value = await UF(m), pt.value = !0;
|
|
13561
13562
|
} catch {
|
|
13562
|
-
|
|
13563
|
+
jA.value = {}, pt.value = !0;
|
|
13563
13564
|
}
|
|
13564
13565
|
};
|
|
13565
13566
|
wA(() => t.templateType, async (m) => {
|
|
@@ -13580,9 +13581,9 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13580
13581
|
}
|
|
13581
13582
|
const qe = (m) => {
|
|
13582
13583
|
var W;
|
|
13583
|
-
if (!
|
|
13584
|
+
if (!jA.value || !jA.value[m])
|
|
13584
13585
|
return {};
|
|
13585
|
-
const w =
|
|
13586
|
+
const w = jA.value[m] || {};
|
|
13586
13587
|
return m === "image" && ((W = t.config) != null && W.image) ? {
|
|
13587
13588
|
...w,
|
|
13588
13589
|
image: {
|
|
@@ -13657,19 +13658,19 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13657
13658
|
onclone: (UA) => {
|
|
13658
13659
|
const SA = UA.querySelector(".canvas-wrapper");
|
|
13659
13660
|
if (SA) {
|
|
13660
|
-
const
|
|
13661
|
-
SA.style.transform =
|
|
13661
|
+
const PA = SA.style.transform.replace(/scale\([^)]*\)/g, "").replace(/\s+/g, " ").trim();
|
|
13662
|
+
SA.style.transform = PA || "none", SA.style.opacity = "1";
|
|
13662
13663
|
}
|
|
13663
|
-
const
|
|
13664
|
-
if (
|
|
13665
|
-
const
|
|
13666
|
-
for (let
|
|
13667
|
-
const Ve =
|
|
13668
|
-
|
|
13664
|
+
const OA = UA.querySelector("#design");
|
|
13665
|
+
if (OA) {
|
|
13666
|
+
const JA = window.getComputedStyle(G);
|
|
13667
|
+
for (let PA = 0; PA < JA.length; PA++) {
|
|
13668
|
+
const Ve = JA[PA];
|
|
13669
|
+
OA.style[Ve] = JA.getPropertyValue(Ve);
|
|
13669
13670
|
}
|
|
13670
13671
|
}
|
|
13671
|
-
UA.querySelectorAll("img").forEach((
|
|
13672
|
-
|
|
13672
|
+
UA.querySelectorAll("img").forEach((JA) => {
|
|
13673
|
+
JA.style.imageRendering = "high-quality", JA.style.webkitImageRendering = "high-quality", JA.style.mozImageRendering = "high-quality", JA.style.objectFit = "contain", JA.style.objectPosition = "center";
|
|
13673
13674
|
});
|
|
13674
13675
|
}
|
|
13675
13676
|
}).then((UA) => {
|
|
@@ -13712,7 +13713,7 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13712
13713
|
j(RF, {
|
|
13713
13714
|
onDragStart: ya,
|
|
13714
13715
|
config: e.config,
|
|
13715
|
-
propsConfig:
|
|
13716
|
+
propsConfig: jA.value
|
|
13716
13717
|
}, null, 8, ["config", "propsConfig"])
|
|
13717
13718
|
]),
|
|
13718
13719
|
R("div", SR, [
|
|
@@ -13789,7 +13790,7 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13789
13790
|
H(Z) ? (M(), k("div", LR, [
|
|
13790
13791
|
(M(!0), k(xA, null, Ke(H(y).horizontal, (T, G) => (M(), k("div", {
|
|
13791
13792
|
key: `h-${G}`,
|
|
13792
|
-
class:
|
|
13793
|
+
class: qA(["alignment-guide horizontal", `guide-${T.type}`]),
|
|
13793
13794
|
style: oA({
|
|
13794
13795
|
top: `${T.y}mm`,
|
|
13795
13796
|
left: "0",
|
|
@@ -13798,7 +13799,7 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13798
13799
|
}, null, 6))), 128)),
|
|
13799
13800
|
(M(!0), k(xA, null, Ke(H(y).vertical, (T, G) => (M(), k("div", {
|
|
13800
13801
|
key: `v-${G}`,
|
|
13801
|
-
class:
|
|
13802
|
+
class: qA(["alignment-guide vertical", `guide-${T.type}`]),
|
|
13802
13803
|
style: oA({
|
|
13803
13804
|
left: `${T.x}mm`,
|
|
13804
13805
|
top: "0",
|
|
@@ -13810,7 +13811,7 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13810
13811
|
var G;
|
|
13811
13812
|
return M(), k("div", {
|
|
13812
13813
|
key: T.id,
|
|
13813
|
-
class:
|
|
13814
|
+
class: qA(["canvas-item", AA(T)]),
|
|
13814
13815
|
style: oA(O(T)),
|
|
13815
13816
|
"data-item-id": T.id,
|
|
13816
13817
|
onMousedown: (aA) => Va(aA, T)
|
|
@@ -13896,11 +13897,11 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13896
13897
|
T.props && pt.value ? (M(), NA(yr(((G = D(T.type)) == null ? void 0 : G.component) || null), {
|
|
13897
13898
|
key: `${T.id}-${T.type}`,
|
|
13898
13899
|
modelValue: { ...T.props, __selected: H(U)() === T, options: t.options },
|
|
13899
|
-
propsConfig:
|
|
13900
|
+
propsConfig: jA.value,
|
|
13900
13901
|
"onUpdate:modelValue": (aA) => {
|
|
13901
13902
|
const { __selected: EA, options: UA, ...SA } = aA;
|
|
13902
|
-
Object.keys(SA).forEach((
|
|
13903
|
-
SA[
|
|
13903
|
+
Object.keys(SA).forEach((OA) => {
|
|
13904
|
+
SA[OA] !== void 0 && (T.props[OA] = SA[OA]);
|
|
13904
13905
|
});
|
|
13905
13906
|
}
|
|
13906
13907
|
}, null, 8, ["modelValue", "propsConfig", "onUpdate:modelValue"])) : dA("", !0)
|
|
@@ -13918,19 +13919,19 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13918
13919
|
R("label", null, he(H(U)().type === "line" ? "起点X:" : "X坐标:"), 1),
|
|
13919
13920
|
R("div", r2, [
|
|
13920
13921
|
R("button", {
|
|
13921
|
-
onClick: w[2] || (w[2] = BA((T) => H(
|
|
13922
|
+
onClick: w[2] || (w[2] = BA((T) => H(zA)(T, "x", -0.5), ["stop"]))
|
|
13922
13923
|
}, "-"),
|
|
13923
13924
|
R("input", {
|
|
13924
13925
|
type: "number",
|
|
13925
13926
|
value: sA(),
|
|
13926
|
-
onInput: w[3] || (w[3] = (T) =>
|
|
13927
|
+
onInput: w[3] || (w[3] = (T) => LA("x", T.target.value)),
|
|
13927
13928
|
onClick: w[4] || (w[4] = BA(() => {
|
|
13928
13929
|
}, ["stop"])),
|
|
13929
13930
|
onMousedown: w[5] || (w[5] = BA(() => {
|
|
13930
13931
|
}, ["stop"]))
|
|
13931
13932
|
}, null, 40, n2),
|
|
13932
13933
|
R("button", {
|
|
13933
|
-
onClick: w[6] || (w[6] = BA((T) => H(
|
|
13934
|
+
onClick: w[6] || (w[6] = BA((T) => H(zA)(T, "x", 0.5), ["stop"]))
|
|
13934
13935
|
}, "+")
|
|
13935
13936
|
])
|
|
13936
13937
|
]),
|
|
@@ -13938,19 +13939,19 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13938
13939
|
R("label", null, he(H(U)().type === "line" ? "起点Y:" : "Y坐标:"), 1),
|
|
13939
13940
|
R("div", o2, [
|
|
13940
13941
|
R("button", {
|
|
13941
|
-
onClick: w[7] || (w[7] = BA((T) => H(
|
|
13942
|
+
onClick: w[7] || (w[7] = BA((T) => H(zA)(T, "y", -0.5), ["stop"]))
|
|
13942
13943
|
}, "-"),
|
|
13943
13944
|
R("input", {
|
|
13944
13945
|
type: "number",
|
|
13945
13946
|
value: kA(),
|
|
13946
|
-
onInput: w[8] || (w[8] = (T) =>
|
|
13947
|
+
onInput: w[8] || (w[8] = (T) => LA("y", T.target.value)),
|
|
13947
13948
|
onClick: w[9] || (w[9] = BA(() => {
|
|
13948
13949
|
}, ["stop"])),
|
|
13949
13950
|
onMousedown: w[10] || (w[10] = BA(() => {
|
|
13950
13951
|
}, ["stop"]))
|
|
13951
13952
|
}, null, 40, i2),
|
|
13952
13953
|
R("button", {
|
|
13953
|
-
onClick: w[11] || (w[11] = BA((T) => H(
|
|
13954
|
+
onClick: w[11] || (w[11] = BA((T) => H(zA)(T, "y", 0.5), ["stop"]))
|
|
13954
13955
|
}, "+")
|
|
13955
13956
|
])
|
|
13956
13957
|
]),
|
|
@@ -13958,7 +13959,7 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13958
13959
|
w[34] || (w[34] = R("label", null, "宽度:", -1)),
|
|
13959
13960
|
R("div", s2, [
|
|
13960
13961
|
R("button", {
|
|
13961
|
-
onClick: w[12] || (w[12] = BA((T) => H(
|
|
13962
|
+
onClick: w[12] || (w[12] = BA((T) => H(zA)(T, "width", -0.5, 1), ["stop"]))
|
|
13962
13963
|
}, "-"),
|
|
13963
13964
|
Qe(R("input", {
|
|
13964
13965
|
type: "number",
|
|
@@ -13977,7 +13978,7 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13977
13978
|
]
|
|
13978
13979
|
]),
|
|
13979
13980
|
R("button", {
|
|
13980
|
-
onClick: w[17] || (w[17] = BA((T) => H(
|
|
13981
|
+
onClick: w[17] || (w[17] = BA((T) => H(zA)(T, "width", 0.5, 1), ["stop"]))
|
|
13981
13982
|
}, "+")
|
|
13982
13983
|
])
|
|
13983
13984
|
])) : dA("", !0),
|
|
@@ -13985,7 +13986,7 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
13985
13986
|
w[35] || (w[35] = R("label", null, "高度:", -1)),
|
|
13986
13987
|
R("div", u2, [
|
|
13987
13988
|
R("button", {
|
|
13988
|
-
onClick: w[18] || (w[18] = BA((T) => H(
|
|
13989
|
+
onClick: w[18] || (w[18] = BA((T) => H(zA)(T, "height", -0.5, 1), ["stop"]))
|
|
13989
13990
|
}, "-"),
|
|
13990
13991
|
Qe(R("input", {
|
|
13991
13992
|
type: "number",
|
|
@@ -14004,7 +14005,7 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
14004
14005
|
]
|
|
14005
14006
|
]),
|
|
14006
14007
|
R("button", {
|
|
14007
|
-
onClick: w[23] || (w[23] = BA((T) => H(
|
|
14008
|
+
onClick: w[23] || (w[23] = BA((T) => H(zA)(T, "height", 0.5, 1), ["stop"]))
|
|
14008
14009
|
}, "+")
|
|
14009
14010
|
])
|
|
14010
14011
|
])) : dA("", !0),
|
|
@@ -14058,7 +14059,7 @@ const IR = { class: "label-designer" }, NR = { class: "toolbar" }, SR = { class:
|
|
|
14058
14059
|
]);
|
|
14059
14060
|
};
|
|
14060
14061
|
}
|
|
14061
|
-
}, p2 = /* @__PURE__ */ bA(g2, [["__scopeId", "data-v-
|
|
14062
|
+
}, p2 = /* @__PURE__ */ bA(g2, [["__scopeId", "data-v-90f39283"]]);
|
|
14062
14063
|
const U2 = {
|
|
14063
14064
|
__name: "index",
|
|
14064
14065
|
props: {
|
|
@@ -14168,7 +14169,7 @@ const U2 = {
|
|
|
14168
14169
|
return Qe((M(), k("div", {
|
|
14169
14170
|
ref_key: "templateDesignerRef",
|
|
14170
14171
|
ref: a,
|
|
14171
|
-
class:
|
|
14172
|
+
class: qA(["template-designer", { "template-designer-border-top": i.value }]),
|
|
14172
14173
|
style: oA({ height: "calc(100vh - " + (o.value + 1) + "px)" })
|
|
14173
14174
|
}, [
|
|
14174
14175
|
r.value ? (M(), NA(yr(vd(p2, { ...h.$attrs, ...t, ref: B }, h.$slots)), {
|