vue-wiring-diagram 1.0.13 → 1.0.15
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.
|
@@ -5529,10 +5529,10 @@ function s_(n) {
|
|
|
5529
5529
|
for (var i = t.mainAxis, r = i === void 0 ? !0 : i, o = t.altAxis, a = o === void 0 ? !0 : o, l = t.fallbackPlacements, c = t.padding, u = t.boundary, d = t.rootBoundary, h = t.altBoundary, f = t.flipVariations, g = f === void 0 ? !0 : f, p = t.allowedAutoPlacements, m = e.options.placement, y = Fn(m), b = y === m, v = l || (b || !g ? [Sa(m)] : n_(m)), w = [m].concat(v).reduce(function(ie, ue) {
|
|
5530
5530
|
return ie.concat(Fn(ue) === th ? t_(e, { placement: ue, boundary: u, rootBoundary: d, padding: c, flipVariations: g, allowedAutoPlacements: p }) : ue);
|
|
5531
5531
|
}, []), S = e.rects.reference, C = e.rects.popper, x = /* @__PURE__ */ new Map(), M = !0, _ = w[0], D = 0; D < w.length; D++) {
|
|
5532
|
-
var R = w[D], L = Fn(R), k = ir(R) === er,
|
|
5532
|
+
var R = w[D], L = Fn(R), k = ir(R) === er, V = [Ft, ln].indexOf(L) >= 0, T = V ? "width" : "height", P = wo(e, { placement: R, boundary: u, rootBoundary: d, altBoundary: h, padding: c }), $ = V ? k ? cn : Vt : k ? ln : Ft;
|
|
5533
5533
|
S[T] > C[T] && ($ = Sa($));
|
|
5534
|
-
var
|
|
5535
|
-
if (r && Q.push(P[L] <= 0), a && Q.push(P[$] <= 0, P[
|
|
5534
|
+
var F = Sa($), Q = [];
|
|
5535
|
+
if (r && Q.push(P[L] <= 0), a && Q.push(P[$] <= 0, P[F] <= 0), Q.every(function(ie) {
|
|
5536
5536
|
return ie;
|
|
5537
5537
|
})) {
|
|
5538
5538
|
_ = R, M = !1;
|
|
@@ -5592,7 +5592,7 @@ function d_(n) {
|
|
|
5592
5592
|
var e = n.state, t = n.options, s = n.name, i = t.mainAxis, r = i === void 0 ? !0 : i, o = t.altAxis, a = o === void 0 ? !1 : o, l = t.boundary, c = t.rootBoundary, u = t.altBoundary, d = t.padding, h = t.tether, f = h === void 0 ? !0 : h, g = t.tetherOffset, p = g === void 0 ? 0 : g, m = wo(e, { boundary: l, rootBoundary: c, padding: d, altBoundary: u }), y = Fn(e.placement), b = ir(e.placement), v = !b, w = rh(y), S = h_(w), C = e.modifiersData.popperOffsets, x = e.rects.reference, M = e.rects.popper, _ = typeof p == "function" ? p(Object.assign({}, e.rects, { placement: e.placement })) : p, D = typeof _ == "number" ? { mainAxis: _, altAxis: _ } : Object.assign({ mainAxis: 0, altAxis: 0 }, _), R = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, L = { x: 0, y: 0 };
|
|
5593
5593
|
if (C) {
|
|
5594
5594
|
if (r) {
|
|
5595
|
-
var k,
|
|
5595
|
+
var k, V = w === "y" ? Ft : Vt, T = w === "y" ? ln : cn, P = w === "y" ? "height" : "width", $ = C[w], F = $ + m[V], Q = $ - m[T], me = f ? -M[P] / 2 : 0, W = b === er ? x[P] : M[P], q = b === er ? -M[P] : -x[P], B = e.elements.arrow, ie = f && B ? ih(B) : { width: 0, height: 0 }, ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Um(), de = ue[V], ce = ue[T], Oe = to(0, x[P], ie[P]), Mt = v ? x[P] / 2 - me - Oe - de - D.mainAxis : W - Oe - de - D.mainAxis, Ie = v ? -x[P] / 2 + me + Oe + ce + D.mainAxis : q + Oe + ce + D.mainAxis, Re = e.elements.arrow && Uo(e.elements.arrow), Dn = Re ? w === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, Pt = (k = R == null ? void 0 : R[w]) != null ? k : 0, fn = $ + Mt - Pt - Dn, Os = $ + Ie - Pt, Es = to(f ? Ha(F, fn) : F, $, f ? mi(Q, Os) : Q);
|
|
5596
5596
|
C[w] = Es, L[w] = Es - $;
|
|
5597
5597
|
}
|
|
5598
5598
|
if (a) {
|
|
@@ -6393,13 +6393,13 @@ const Z_ = mt({
|
|
|
6393
6393
|
}), L = z(() => {
|
|
6394
6394
|
var J;
|
|
6395
6395
|
return (J = u == null ? void 0 : u.statusIcon) != null ? J : !1;
|
|
6396
|
-
}), k = z(() => (d == null ? void 0 : d.validateState) || ""),
|
|
6396
|
+
}), k = z(() => (d == null ? void 0 : d.validateState) || ""), V = z(() => k.value && sT[k.value]), T = z(() => w.value ? km : qA), P = z(() => [
|
|
6397
6397
|
i.style
|
|
6398
6398
|
]), $ = z(() => [
|
|
6399
6399
|
s.inputStyle,
|
|
6400
6400
|
C.value,
|
|
6401
6401
|
{ resize: s.resize }
|
|
6402
|
-
]),
|
|
6402
|
+
]), F = z(() => jl(s.modelValue) ? "" : String(s.modelValue)), Q = z(() => s.clearable && !g.value && !s.readonly && !!F.value && (_.value || v.value)), me = z(() => s.showPassword && !g.value && !!F.value && (!!F.value || _.value)), W = z(() => s.showWordLimit && !!s.maxlength && (s.type === "text" || s.type === "textarea") && !g.value && !s.readonly && !s.showPassword), q = z(() => F.value.length), B = z(() => !!W.value && q.value > Number(s.maxlength)), ie = z(() => !!r.suffix || !!s.suffixIcon || Q.value || s.showPassword || W.value || !!k.value && L.value), [ue, de] = L_(y);
|
|
6403
6403
|
fp(b, (J) => {
|
|
6404
6404
|
if (Mt(), !W.value || s.resize !== "both")
|
|
6405
6405
|
return;
|
|
@@ -6432,13 +6432,13 @@ const Z_ = mt({
|
|
|
6432
6432
|
((Zn = b.value) == null ? void 0 : Zn.offsetParent) === null || (J(), je = !0);
|
|
6433
6433
|
};
|
|
6434
6434
|
})(ce), Ie = () => {
|
|
6435
|
-
const J = x.value, je = s.formatter ? s.formatter(
|
|
6435
|
+
const J = x.value, je = s.formatter ? s.formatter(F.value) : F.value;
|
|
6436
6436
|
!J || J.value === je || (J.value = je);
|
|
6437
6437
|
}, Re = async (J) => {
|
|
6438
6438
|
ue();
|
|
6439
6439
|
let { value: je } = J.target;
|
|
6440
6440
|
if (s.formatter && (je = s.parser ? s.parser(je) : je), !Pt.value) {
|
|
6441
|
-
if (je ===
|
|
6441
|
+
if (je === F.value) {
|
|
6442
6442
|
Ie();
|
|
6443
6443
|
return;
|
|
6444
6444
|
}
|
|
@@ -6474,7 +6474,7 @@ const Z_ = mt({
|
|
|
6474
6474
|
return _e(() => s.modelValue, () => {
|
|
6475
6475
|
var J;
|
|
6476
6476
|
Rt(() => ce()), s.validateEvent && ((J = d == null ? void 0 : d.validate) == null || J.call(d, "change").catch((je) => qt(je)));
|
|
6477
|
-
}), _e(
|
|
6477
|
+
}), _e(F, () => Ie()), _e(() => s.type, async () => {
|
|
6478
6478
|
await Rt(), Ie(), ce();
|
|
6479
6479
|
}), ot(() => {
|
|
6480
6480
|
!s.formatter && s.parser && qt("ElInput", "If you set the parser, you also need to set the formatter."), Ie(), Rt(ce);
|
|
@@ -6611,7 +6611,7 @@ const Z_ = mt({
|
|
|
6611
6611
|
class: ge(A(p).e("count-inner"))
|
|
6612
6612
|
}, Ot(A(q)) + " / " + Ot(J.maxlength), 3)
|
|
6613
6613
|
], 2)) : we("v-if", !0),
|
|
6614
|
-
A(k) && A(
|
|
6614
|
+
A(k) && A(V) && A(L) ? (H(), ye(A(jn), {
|
|
6615
6615
|
key: 4,
|
|
6616
6616
|
class: ge([
|
|
6617
6617
|
A(p).e("icon"),
|
|
@@ -6620,7 +6620,7 @@ const Z_ = mt({
|
|
|
6620
6620
|
])
|
|
6621
6621
|
}, {
|
|
6622
6622
|
default: N(() => [
|
|
6623
|
-
(H(), ye(Wt(A(
|
|
6623
|
+
(H(), ye(Wt(A(V))))
|
|
6624
6624
|
]),
|
|
6625
6625
|
_: 1
|
|
6626
6626
|
}, 8, ["class"])) : we("v-if", !0)
|
|
@@ -7372,12 +7372,12 @@ const DN = 0, LN = (n) => {
|
|
|
7372
7372
|
R(!1), s.visible && s.focusOnShow ? r.value = !0 : s.visible === !1 && (r.value = !1);
|
|
7373
7373
|
};
|
|
7374
7374
|
return ot(() => {
|
|
7375
|
-
_e(() => s.triggerTargetEl, (k,
|
|
7375
|
+
_e(() => s.triggerTargetEl, (k, V) => {
|
|
7376
7376
|
D == null || D(), D = void 0;
|
|
7377
|
-
const T = A(k || f.value), P = A(
|
|
7377
|
+
const T = A(k || f.value), P = A(V || f.value);
|
|
7378
7378
|
ds(T) && (D = _e([m, () => s.ariaLabel, b, () => s.id], ($) => {
|
|
7379
|
-
["role", "aria-label", "aria-modal", "id"].forEach((
|
|
7380
|
-
jl($[Q]) ? T.removeAttribute(
|
|
7379
|
+
["role", "aria-label", "aria-modal", "id"].forEach((F, Q) => {
|
|
7380
|
+
jl($[Q]) ? T.removeAttribute(F) : T.setAttribute(F, $[Q]);
|
|
7381
7381
|
});
|
|
7382
7382
|
}, { immediate: !0 })), P !== T && ds(P) && ["role", "aria-label", "aria-modal", "id"].forEach(($) => {
|
|
7383
7383
|
P.removeAttribute($);
|
|
@@ -7390,7 +7390,7 @@ const DN = 0, LN = (n) => {
|
|
|
7390
7390
|
popperInstanceRef: p,
|
|
7391
7391
|
updatePopper: R,
|
|
7392
7392
|
contentStyle: C
|
|
7393
|
-
}), (k,
|
|
7393
|
+
}), (k, V) => (H(), le("div", $s({
|
|
7394
7394
|
ref_key: "contentRef",
|
|
7395
7395
|
ref: f
|
|
7396
7396
|
}, A(w), {
|
|
@@ -7579,7 +7579,7 @@ const ek = Ti(QN), tk = fe({
|
|
|
7579
7579
|
($ = (P = r.value) == null ? void 0 : P.updatePopper) == null || $.call(P), p == null || p();
|
|
7580
7580
|
}, k = () => {
|
|
7581
7581
|
m == null || m();
|
|
7582
|
-
},
|
|
7582
|
+
}, V = () => {
|
|
7583
7583
|
f(), o = oS(z(() => {
|
|
7584
7584
|
var P;
|
|
7585
7585
|
return (P = r.value) == null ? void 0 : P.popperContentRef;
|
|
@@ -7609,7 +7609,7 @@ const ek = Ti(QN), tk = fe({
|
|
|
7609
7609
|
name: A(y),
|
|
7610
7610
|
onAfterLeave: M,
|
|
7611
7611
|
onBeforeEnter: L,
|
|
7612
|
-
onAfterEnter:
|
|
7612
|
+
onAfterEnter: V,
|
|
7613
7613
|
onBeforeLeave: k
|
|
7614
7614
|
}, {
|
|
7615
7615
|
default: N(() => [
|
|
@@ -9075,8 +9075,8 @@ const Ke = iT(rr, "$message"), nR = fe({
|
|
|
9075
9075
|
_e(() => c.inputValue, async (P) => {
|
|
9076
9076
|
await Rt(), n.boxType === "prompt" && P !== null && L();
|
|
9077
9077
|
}, { immediate: !0 }), _e(() => l.value, (P) => {
|
|
9078
|
-
var $,
|
|
9079
|
-
P && (n.boxType !== "prompt" && (c.autofocus ? y.value = (
|
|
9078
|
+
var $, F;
|
|
9079
|
+
P && (n.boxType !== "prompt" && (c.autofocus ? y.value = (F = ($ = v.value) == null ? void 0 : $.$el) != null ? F : p.value : y.value = p.value), c.zIndex = a()), n.boxType === "prompt" && (P ? Rt().then(() => {
|
|
9080
9080
|
var Q;
|
|
9081
9081
|
b.value && b.value.$el && (c.autofocus ? y.value = (Q = k()) != null ? Q : p.value : y.value = p.value);
|
|
9082
9082
|
}) : (c.editorErrorMessage = "", c.validateError = !1));
|
|
@@ -9107,21 +9107,21 @@ const Ke = iT(rr, "$message"), nR = fe({
|
|
|
9107
9107
|
return c.editorErrorMessage = c.inputErrorMessage || o("el.messagebox.error"), c.validateError = !0, !1;
|
|
9108
9108
|
const $ = c.inputValidator;
|
|
9109
9109
|
if (typeof $ == "function") {
|
|
9110
|
-
const
|
|
9111
|
-
if (
|
|
9110
|
+
const F = $(c.inputValue);
|
|
9111
|
+
if (F === !1)
|
|
9112
9112
|
return c.editorErrorMessage = c.inputErrorMessage || o("el.messagebox.error"), c.validateError = !0, !1;
|
|
9113
|
-
if (typeof
|
|
9114
|
-
return c.editorErrorMessage =
|
|
9113
|
+
if (typeof F == "string")
|
|
9114
|
+
return c.editorErrorMessage = F, c.validateError = !0, !1;
|
|
9115
9115
|
}
|
|
9116
9116
|
}
|
|
9117
9117
|
return c.editorErrorMessage = "", c.validateError = !1, !0;
|
|
9118
9118
|
}, k = () => {
|
|
9119
9119
|
const P = b.value.$refs;
|
|
9120
9120
|
return P.input || P.textarea;
|
|
9121
|
-
},
|
|
9121
|
+
}, V = () => {
|
|
9122
9122
|
R("close");
|
|
9123
9123
|
}, T = () => {
|
|
9124
|
-
n.closeOnPressEscape &&
|
|
9124
|
+
n.closeOnPressEscape && V();
|
|
9125
9125
|
};
|
|
9126
9126
|
return n.lockScroll && vT(l), {
|
|
9127
9127
|
...K0(c),
|
|
@@ -9141,7 +9141,7 @@ const Ke = iT(rr, "$message"), nR = fe({
|
|
|
9141
9141
|
inputRef: b,
|
|
9142
9142
|
confirmRef: v,
|
|
9143
9143
|
doClose: x,
|
|
9144
|
-
handleClose:
|
|
9144
|
+
handleClose: V,
|
|
9145
9145
|
onCloseRequested: T,
|
|
9146
9146
|
handleWrapperClick: M,
|
|
9147
9147
|
handleInputEnter: D,
|
|
@@ -11301,10 +11301,10 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11301
11301
|
payload: Object
|
|
11302
11302
|
},
|
|
11303
11303
|
setup(n) {
|
|
11304
|
-
var h, f, g, p, m, y, b, v, w, S, C, x, M, _, D, R, L, k,
|
|
11304
|
+
var h, f, g, p, m, y, b, v, w, S, C, x, M, _, D, R, L, k, V, T, P;
|
|
11305
11305
|
const e = n;
|
|
11306
11306
|
console.log(e.payload.value.options.grid);
|
|
11307
|
-
const t = U(((h = e.payload.value.options.background) == null ? void 0 : h.color) || null), s = U(((g = (f = e.payload.value.options) == null ? void 0 : f.grid) == null ? void 0 : g.visible) || null), i = U(((m = (p = e.payload.value.options) == null ? void 0 : p.grid) == null ? void 0 : m.size) || 10), r = U(((w = (v = (b = (y = e.payload.value.options) == null ? void 0 : y.grid) == null ? void 0 : b.args) == null ? void 0 : v[0]) == null ? void 0 : w.color) || null), o = U(((M = (x = (C = (S = e.payload.value.options) == null ? void 0 : S.grid) == null ? void 0 : C.args) == null ? void 0 : x[0]) == null ? void 0 : M.thickness) || 1), a = U(((L = (R = (D = (_ = e.payload.value.options) == null ? void 0 : _.grid) == null ? void 0 : D.args) == null ? void 0 : R[1]) == null ? void 0 : L.color) || null), l = U(((P = (T = (
|
|
11307
|
+
const t = U(((h = e.payload.value.options.background) == null ? void 0 : h.color) || null), s = U(((g = (f = e.payload.value.options) == null ? void 0 : f.grid) == null ? void 0 : g.visible) || null), i = U(((m = (p = e.payload.value.options) == null ? void 0 : p.grid) == null ? void 0 : m.size) || 10), r = U(((w = (v = (b = (y = e.payload.value.options) == null ? void 0 : y.grid) == null ? void 0 : b.args) == null ? void 0 : v[0]) == null ? void 0 : w.color) || null), o = U(((M = (x = (C = (S = e.payload.value.options) == null ? void 0 : S.grid) == null ? void 0 : C.args) == null ? void 0 : x[0]) == null ? void 0 : M.thickness) || 1), a = U(((L = (R = (D = (_ = e.payload.value.options) == null ? void 0 : _.grid) == null ? void 0 : D.args) == null ? void 0 : R[1]) == null ? void 0 : L.color) || null), l = U(((P = (T = (V = (k = e.payload.value.options) == null ? void 0 : k.grid) == null ? void 0 : V.args) == null ? void 0 : T[1]) == null ? void 0 : P.thickness) || 1), c = U("1"), u = ($) => {
|
|
11308
11308
|
e.payload.value.drawBackground({
|
|
11309
11309
|
color: $
|
|
11310
11310
|
});
|
|
@@ -11325,12 +11325,12 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11325
11325
|
]
|
|
11326
11326
|
});
|
|
11327
11327
|
};
|
|
11328
|
-
return ($,
|
|
11328
|
+
return ($, F) => {
|
|
11329
11329
|
const Q = Z("el-col"), me = Z("el-color-picker"), W = Z("el-row"), q = Z("el-switch"), B = Z("el-input-number"), ie = Z("el-collapse-item"), ue = Z("el-collapse");
|
|
11330
11330
|
return H(), le("div", WD, [
|
|
11331
11331
|
E(ue, {
|
|
11332
11332
|
modelValue: c.value,
|
|
11333
|
-
"onUpdate:modelValue":
|
|
11333
|
+
"onUpdate:modelValue": F[7] || (F[7] = (de) => c.value = de),
|
|
11334
11334
|
accordion: ""
|
|
11335
11335
|
}, {
|
|
11336
11336
|
default: N(() => [
|
|
@@ -11343,7 +11343,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11343
11343
|
E(W, { gutter: 20 }, {
|
|
11344
11344
|
default: N(() => [
|
|
11345
11345
|
E(Q, { span: 12 }, {
|
|
11346
|
-
default: N(() =>
|
|
11346
|
+
default: N(() => F[8] || (F[8] = [
|
|
11347
11347
|
X("div", { class: "row-label" }, "背景色", -1)
|
|
11348
11348
|
])),
|
|
11349
11349
|
_: 1
|
|
@@ -11352,7 +11352,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11352
11352
|
default: N(() => [
|
|
11353
11353
|
E(me, {
|
|
11354
11354
|
modelValue: t.value,
|
|
11355
|
-
"onUpdate:modelValue":
|
|
11355
|
+
"onUpdate:modelValue": F[0] || (F[0] = (de) => t.value = de),
|
|
11356
11356
|
size: "small",
|
|
11357
11357
|
"show-alpha": "",
|
|
11358
11358
|
onChange: u
|
|
@@ -11366,7 +11366,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11366
11366
|
E(W, { gutter: 20 }, {
|
|
11367
11367
|
default: N(() => [
|
|
11368
11368
|
E(Q, { span: 12 }, {
|
|
11369
|
-
default: N(() =>
|
|
11369
|
+
default: N(() => F[9] || (F[9] = [
|
|
11370
11370
|
X("div", { class: "row-label" }, "网格", -1)
|
|
11371
11371
|
])),
|
|
11372
11372
|
_: 1
|
|
@@ -11375,7 +11375,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11375
11375
|
default: N(() => [
|
|
11376
11376
|
E(q, {
|
|
11377
11377
|
modelValue: s.value,
|
|
11378
|
-
"onUpdate:modelValue":
|
|
11378
|
+
"onUpdate:modelValue": F[1] || (F[1] = (de) => s.value = de),
|
|
11379
11379
|
"active-value": !0,
|
|
11380
11380
|
"inactive-value": !1,
|
|
11381
11381
|
size: "small",
|
|
@@ -11390,7 +11390,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11390
11390
|
E(W, { gutter: 20 }, {
|
|
11391
11391
|
default: N(() => [
|
|
11392
11392
|
E(Q, { span: 12 }, {
|
|
11393
|
-
default: N(() =>
|
|
11393
|
+
default: N(() => F[10] || (F[10] = [
|
|
11394
11394
|
X("div", { class: "row-label" }, "网格大小", -1)
|
|
11395
11395
|
])),
|
|
11396
11396
|
_: 1
|
|
@@ -11399,7 +11399,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11399
11399
|
default: N(() => [
|
|
11400
11400
|
E(B, {
|
|
11401
11401
|
modelValue: i.value,
|
|
11402
|
-
"onUpdate:modelValue":
|
|
11402
|
+
"onUpdate:modelValue": F[2] || (F[2] = (de) => i.value = de),
|
|
11403
11403
|
min: 1,
|
|
11404
11404
|
max: 20,
|
|
11405
11405
|
size: "small",
|
|
@@ -11415,7 +11415,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11415
11415
|
E(W, { gutter: 20 }, {
|
|
11416
11416
|
default: N(() => [
|
|
11417
11417
|
E(Q, { span: 12 }, {
|
|
11418
|
-
default: N(() =>
|
|
11418
|
+
default: N(() => F[11] || (F[11] = [
|
|
11419
11419
|
X("div", { class: "row-label" }, "主网格颜色", -1)
|
|
11420
11420
|
])),
|
|
11421
11421
|
_: 1
|
|
@@ -11424,7 +11424,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11424
11424
|
default: N(() => [
|
|
11425
11425
|
E(me, {
|
|
11426
11426
|
modelValue: r.value,
|
|
11427
|
-
"onUpdate:modelValue":
|
|
11427
|
+
"onUpdate:modelValue": F[3] || (F[3] = (de) => r.value = de),
|
|
11428
11428
|
size: "small",
|
|
11429
11429
|
"show-alpha": "",
|
|
11430
11430
|
onChange: d
|
|
@@ -11438,7 +11438,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11438
11438
|
E(W, { gutter: 20 }, {
|
|
11439
11439
|
default: N(() => [
|
|
11440
11440
|
E(Q, { span: 12 }, {
|
|
11441
|
-
default: N(() =>
|
|
11441
|
+
default: N(() => F[12] || (F[12] = [
|
|
11442
11442
|
X("div", { class: "row-label" }, "次网格颜色", -1)
|
|
11443
11443
|
])),
|
|
11444
11444
|
_: 1
|
|
@@ -11447,7 +11447,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11447
11447
|
default: N(() => [
|
|
11448
11448
|
E(me, {
|
|
11449
11449
|
modelValue: a.value,
|
|
11450
|
-
"onUpdate:modelValue":
|
|
11450
|
+
"onUpdate:modelValue": F[4] || (F[4] = (de) => a.value = de),
|
|
11451
11451
|
size: "small",
|
|
11452
11452
|
"show-alpha": "",
|
|
11453
11453
|
onChange: d
|
|
@@ -11461,7 +11461,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11461
11461
|
E(W, { gutter: 20 }, {
|
|
11462
11462
|
default: N(() => [
|
|
11463
11463
|
E(Q, { span: 12 }, {
|
|
11464
|
-
default: N(() =>
|
|
11464
|
+
default: N(() => F[13] || (F[13] = [
|
|
11465
11465
|
X("div", { class: "row-label" }, "主网格粗细", -1)
|
|
11466
11466
|
])),
|
|
11467
11467
|
_: 1
|
|
@@ -11470,7 +11470,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11470
11470
|
default: N(() => [
|
|
11471
11471
|
E(B, {
|
|
11472
11472
|
modelValue: o.value,
|
|
11473
|
-
"onUpdate:modelValue":
|
|
11473
|
+
"onUpdate:modelValue": F[5] || (F[5] = (de) => o.value = de),
|
|
11474
11474
|
min: 0.5,
|
|
11475
11475
|
max: 10,
|
|
11476
11476
|
size: "small",
|
|
@@ -11486,7 +11486,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11486
11486
|
E(W, { gutter: 20 }, {
|
|
11487
11487
|
default: N(() => [
|
|
11488
11488
|
E(Q, { span: 12 }, {
|
|
11489
|
-
default: N(() =>
|
|
11489
|
+
default: N(() => F[14] || (F[14] = [
|
|
11490
11490
|
X("div", { class: "row-label" }, "次网格粗细", -1)
|
|
11491
11491
|
])),
|
|
11492
11492
|
_: 1
|
|
@@ -11495,7 +11495,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11495
11495
|
default: N(() => [
|
|
11496
11496
|
E(B, {
|
|
11497
11497
|
modelValue: l.value,
|
|
11498
|
-
"onUpdate:modelValue":
|
|
11498
|
+
"onUpdate:modelValue": F[6] || (F[6] = (de) => l.value = de),
|
|
11499
11499
|
min: 0.5,
|
|
11500
11500
|
max: 10,
|
|
11501
11501
|
size: "small",
|
|
@@ -11526,8 +11526,8 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11526
11526
|
payload: Object
|
|
11527
11527
|
},
|
|
11528
11528
|
setup(n) {
|
|
11529
|
-
var
|
|
11530
|
-
const e = n, t = U((
|
|
11529
|
+
var F, Q, me, W;
|
|
11530
|
+
const e = n, t = U((F = e.payload.attrs.label) != null && F.textAnchor ? "0" : "1"), s = U([]), i = U([]), r = () => {
|
|
11531
11531
|
Co("/cny/custom/deviceList").then((q) => {
|
|
11532
11532
|
s.value = q.data;
|
|
11533
11533
|
});
|
|
@@ -11586,7 +11586,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11586
11586
|
y: Number(q.args.y.replace("%", ""))
|
|
11587
11587
|
}
|
|
11588
11588
|
}))));
|
|
11589
|
-
},
|
|
11589
|
+
}, V = () => {
|
|
11590
11590
|
const q = Yl;
|
|
11591
11591
|
q.attrs.text.text = `${e.payload.getPorts().length + 1}`, q.args.x = "50%", q.args.y = "50%", e.payload.addPorts([
|
|
11592
11592
|
{
|
|
@@ -11974,7 +11974,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11974
11974
|
default: N(() => [
|
|
11975
11975
|
E(Os, {
|
|
11976
11976
|
type: "primary",
|
|
11977
|
-
onClick:
|
|
11977
|
+
onClick: V,
|
|
11978
11978
|
size: "small"
|
|
11979
11979
|
}, {
|
|
11980
11980
|
default: N(() => B[23] || (B[23] = [
|
|
@@ -13737,11 +13737,11 @@ function Sb(n, e, t = {}) {
|
|
|
13737
13737
|
let L, k = S[_];
|
|
13738
13738
|
if (k)
|
|
13739
13739
|
if (c) {
|
|
13740
|
-
const
|
|
13740
|
+
const V = AL(k, c, {
|
|
13741
13741
|
offset: -v,
|
|
13742
13742
|
includeAnnotationIndices: l
|
|
13743
13743
|
});
|
|
13744
|
-
L = FL(R,
|
|
13744
|
+
L = FL(R, V, {
|
|
13745
13745
|
eol: _ !== x && s,
|
|
13746
13746
|
baseSize: m,
|
|
13747
13747
|
lineHeight: d ? null : h,
|
|
@@ -13753,8 +13753,8 @@ function Sb(n, e, t = {}) {
|
|
|
13753
13753
|
s && _ !== x && (k += s), R.textContent = k;
|
|
13754
13754
|
else {
|
|
13755
13755
|
R.textContent = "-", D += " v-empty-line";
|
|
13756
|
-
const
|
|
13757
|
-
|
|
13756
|
+
const V = R.style;
|
|
13757
|
+
V.fillOpacity = 0, V.strokeOpacity = 0, c && (L = {});
|
|
13758
13758
|
}
|
|
13759
13759
|
L && C.push(L), _ > 0 && R.setAttribute("dy", b), (_ > 0 || i) && R.setAttribute("x", a), R.className.baseVal = D, y.appendChild(R), v += k.length + 1;
|
|
13760
13760
|
}
|
|
@@ -15007,23 +15007,23 @@ class ls {
|
|
|
15007
15007
|
n.makeGrey = a;
|
|
15008
15008
|
function l(v, w, S, C) {
|
|
15009
15009
|
const x = Array.isArray(v) ? v[0] : v, M = Array.isArray(v) ? v[1] : w, _ = Array.isArray(v) ? v[2] : S, D = Array.isArray(v) ? v[3] : C, R = Math.max(x, M, _), L = Math.min(x, M, _), k = (R + L) / 2;
|
|
15010
|
-
let
|
|
15010
|
+
let V = 0, T = 0;
|
|
15011
15011
|
if (L !== R) {
|
|
15012
15012
|
const P = R - L;
|
|
15013
15013
|
switch (T = k > 0.5 ? P / (2 - R - L) : P / (R + L), R) {
|
|
15014
15014
|
case x:
|
|
15015
|
-
|
|
15015
|
+
V = (M - _) / P + (M < _ ? 6 : 0);
|
|
15016
15016
|
break;
|
|
15017
15017
|
case M:
|
|
15018
|
-
|
|
15018
|
+
V = (_ - x) / P + 2;
|
|
15019
15019
|
break;
|
|
15020
15020
|
case _:
|
|
15021
|
-
|
|
15021
|
+
V = (x - M) / P + 4;
|
|
15022
15022
|
break;
|
|
15023
15023
|
}
|
|
15024
|
-
|
|
15024
|
+
V /= 6;
|
|
15025
15025
|
}
|
|
15026
|
-
return [
|
|
15026
|
+
return [V, T, k, D ?? 1];
|
|
15027
15027
|
}
|
|
15028
15028
|
n.rgba2hsla = l;
|
|
15029
15029
|
function c(v, w, S, C) {
|
|
@@ -15451,33 +15451,33 @@ var Ci;
|
|
|
15451
15451
|
}
|
|
15452
15452
|
n.easeOutBack = x;
|
|
15453
15453
|
function M(T, P = 1.70158) {
|
|
15454
|
-
const $ = T * 2,
|
|
15455
|
-
return $ < 1 ? 0.5 * $ * $ * ((Q + 1) * $ - Q) : 0.5 * (
|
|
15454
|
+
const $ = T * 2, F = $ - 2, Q = P * 1.525;
|
|
15455
|
+
return $ < 1 ? 0.5 * $ * $ * ((Q + 1) * $ - Q) : 0.5 * (F * F * ((Q + 1) * F + Q) + 2);
|
|
15456
15456
|
}
|
|
15457
15457
|
n.easeInOutBack = M;
|
|
15458
15458
|
function _(T, P = 0.7) {
|
|
15459
15459
|
if (T === 0 || T === 1)
|
|
15460
15460
|
return T;
|
|
15461
|
-
const
|
|
15462
|
-
return -(Math.pow(2, 10 *
|
|
15463
|
-
Math.sin((
|
|
15461
|
+
const F = T / 1 - 1, Q = 1 - P, me = Q / (2 * Math.PI) * Math.asin(1);
|
|
15462
|
+
return -(Math.pow(2, 10 * F) * // eslint-disable-line
|
|
15463
|
+
Math.sin((F - me) * (2 * Math.PI) / Q));
|
|
15464
15464
|
}
|
|
15465
15465
|
n.easeInElastic = _;
|
|
15466
15466
|
function D(T, P = 0.7) {
|
|
15467
|
-
const $ = 1 - P,
|
|
15467
|
+
const $ = 1 - P, F = T * 2;
|
|
15468
15468
|
if (T === 0 || T === 1)
|
|
15469
15469
|
return T;
|
|
15470
15470
|
const Q = $ / (2 * Math.PI) * Math.asin(1);
|
|
15471
|
-
return Math.pow(2, -10 *
|
|
15472
|
-
Math.sin((
|
|
15471
|
+
return Math.pow(2, -10 * F) * // eslint-disable-line
|
|
15472
|
+
Math.sin((F - Q) * (2 * Math.PI) / $) + 1;
|
|
15473
15473
|
}
|
|
15474
15474
|
n.easeOutElastic = D;
|
|
15475
15475
|
function R(T, P = 0.65) {
|
|
15476
15476
|
const $ = 1 - P;
|
|
15477
15477
|
if (T === 0 || T === 1)
|
|
15478
15478
|
return T;
|
|
15479
|
-
const
|
|
15480
|
-
return
|
|
15479
|
+
const F = T * 2, Q = F - 1, me = $ / (2 * Math.PI) * Math.asin(1);
|
|
15480
|
+
return F < 1 ? -0.5 * (Math.pow(2, 10 * Q) * // eslint-disable-line
|
|
15481
15481
|
Math.sin((Q - me) * (2 * Math.PI) / $)) : Math.pow(2, -10 * Q) * // eslint-disable-line
|
|
15482
15482
|
Math.sin((Q - me) * (2 * Math.PI) / $) * 0.5 + 1;
|
|
15483
15483
|
}
|
|
@@ -15504,10 +15504,10 @@ var Ci;
|
|
|
15504
15504
|
return 1 - L(1 - T);
|
|
15505
15505
|
}
|
|
15506
15506
|
n.easeInBounce = k;
|
|
15507
|
-
function
|
|
15507
|
+
function V(T) {
|
|
15508
15508
|
return T < 0.5 ? k(T * 2) * 0.5 : L(T * 2 - 1) * 0.5 + 0.5;
|
|
15509
15509
|
}
|
|
15510
|
-
n.easeInOutBounce =
|
|
15510
|
+
n.easeInOutBounce = V;
|
|
15511
15511
|
})(Ci || (Ci = {}));
|
|
15512
15512
|
var fi;
|
|
15513
15513
|
(function(n) {
|
|
@@ -16744,12 +16744,12 @@ function tl(n, e, t, s, i = 0, r = 0, o = 0, a, l) {
|
|
|
16744
16744
|
_ = Math.atan2((-g - C) / s, (-f - S) / t) - Math.atan2((g - C) / s, (f - S) / t);
|
|
16745
16745
|
let R = _ >= 0 ? _ : 2 * Math.PI + _;
|
|
16746
16746
|
o === 0 && R > 0 ? R -= 2 * Math.PI : o !== 0 && R < 0 && (R += 2 * Math.PI);
|
|
16747
|
-
const L = R * 2 / Math.PI, k = Math.ceil(L < 0 ? -1 * L : L),
|
|
16748
|
-
let me = Math.cos(D), W = Math.sin(D), q = -T * (P * W + Q * me), B = -T * (
|
|
16747
|
+
const L = R * 2 / Math.PI, k = Math.ceil(L < 0 ? -1 * L : L), V = R / k, T = 8 / 3 * Math.sin(V / 4) * Math.sin(V / 4) / Math.sin(V / 2), P = d * t, $ = d * s, F = h * t, Q = h * s;
|
|
16748
|
+
let me = Math.cos(D), W = Math.sin(D), q = -T * (P * W + Q * me), B = -T * (F * W - $ * me), ie = 0, ue = 0;
|
|
16749
16749
|
const de = [];
|
|
16750
16750
|
for (let ce = 0; ce < k; ce += 1) {
|
|
16751
|
-
D +=
|
|
16752
|
-
const Oe = -T * (P * W + Q * me), Mt = -T * (
|
|
16751
|
+
D += V, me = Math.cos(D), W = Math.sin(D), ie = P * me - Q * W + x, ue = F * me + $ * W + M;
|
|
16752
|
+
const Oe = -T * (P * W + Q * me), Mt = -T * (F * W - $ * me), Ie = ce * 6;
|
|
16753
16753
|
de[Ie] = Number(q + n), de[Ie + 1] = Number(B + e), de[Ie + 2] = Number(ie - Oe + n), de[Ie + 3] = Number(ue - Mt + e), de[Ie + 4] = Number(ie + n), de[Ie + 5] = Number(ue + e), q = ie + Oe, B = ue + Mt;
|
|
16754
16754
|
}
|
|
16755
16755
|
return de.map((ce) => +ce.toFixed(2));
|
|
@@ -17048,8 +17048,8 @@ class Xe extends ti {
|
|
|
17048
17048
|
for (; D; )
|
|
17049
17049
|
D -= 1, b = f[D], _ = 1 - b, x = _ * _ * _ * r + 3 * _ * _ * b * a + 3 * _ * b * b * c + b * b * b * d, g[0][D] = x, M = _ * _ * _ * o + 3 * _ * _ * b * l + 3 * _ * b * b * u + b * b * b * h, g[1][D] = M;
|
|
17050
17050
|
f[R] = 0, f[R + 1] = 1, g[0][R] = r, g[1][R] = o, g[0][R + 1] = d, g[1][R + 1] = h, f.length = R + 2, g[0].length = R + 2, g[1].length = R + 2;
|
|
17051
|
-
const L = Math.min.apply(null, g[0]), k = Math.min.apply(null, g[1]),
|
|
17052
|
-
return new Y(L, k,
|
|
17051
|
+
const L = Math.min.apply(null, g[0]), k = Math.min.apply(null, g[1]), V = Math.max.apply(null, g[0]), T = Math.max.apply(null, g[1]);
|
|
17052
|
+
return new Y(L, k, V - L, T - k);
|
|
17053
17053
|
}
|
|
17054
17054
|
closestPoint(e, t = {}) {
|
|
17055
17055
|
return this.pointAtT(this.closestPointT(e, t));
|
|
@@ -17846,18 +17846,18 @@ function Nb(n, e, t, s, i, r, o, a, l, c) {
|
|
|
17846
17846
|
g = c[0], p = c[1], m = c[2], y = c[3];
|
|
17847
17847
|
else {
|
|
17848
17848
|
f = ha(n, e, -d), n = f.x, e = f.y, f = ha(a, l, -d), a = f.x, l = f.y;
|
|
17849
|
-
const
|
|
17850
|
-
let P =
|
|
17849
|
+
const V = (n - a) / 2, T = (e - l) / 2;
|
|
17850
|
+
let P = V * V / (t * t) + T * T / (s * s);
|
|
17851
17851
|
P > 1 && (P = Math.sqrt(P), t = P * t, s = P * s);
|
|
17852
|
-
const $ = t * t,
|
|
17853
|
-
m = Q * t * T / s + (n + a) / 2, y = Q * -s *
|
|
17852
|
+
const $ = t * t, F = s * s, Q = (r === o ? -1 : 1) * Math.sqrt(Math.abs(($ * F - $ * T * T - F * V * V) / ($ * T * T + F * V * V)));
|
|
17853
|
+
m = Q * t * T / s + (n + a) / 2, y = Q * -s * V / t + (e + l) / 2, g = Math.asin((e - y) / s), p = Math.asin((l - y) / s), g = n < m ? Math.PI - g : g, p = a < m ? Math.PI - p : p, g < 0 && (g = Math.PI * 2 + g), p < 0 && (p = Math.PI * 2 + p), o && g > p && (g -= Math.PI * 2), !o && p > g && (p -= Math.PI * 2);
|
|
17854
17854
|
}
|
|
17855
17855
|
let b = p - g;
|
|
17856
17856
|
if (Math.abs(b) > u) {
|
|
17857
|
-
const
|
|
17857
|
+
const V = p, T = a, P = l;
|
|
17858
17858
|
p = g + u * (o && p > g ? 1 : -1), a = m + t * Math.cos(p), l = y + s * Math.sin(p), h = Nb(a, l, t, s, i, 0, o, T, P, [
|
|
17859
17859
|
p,
|
|
17860
|
-
|
|
17860
|
+
V,
|
|
17861
17861
|
m,
|
|
17862
17862
|
y
|
|
17863
17863
|
]);
|
|
@@ -17868,10 +17868,10 @@ function Nb(n, e, t, s, i, r, o, a, l, c) {
|
|
|
17868
17868
|
return [R, L, k].concat(h);
|
|
17869
17869
|
{
|
|
17870
17870
|
h = [R, L, k].concat(h).join().split(",");
|
|
17871
|
-
const
|
|
17871
|
+
const V = [], T = h.length;
|
|
17872
17872
|
for (let P = 0; P < T; P += 1)
|
|
17873
|
-
|
|
17874
|
-
return
|
|
17873
|
+
V[P] = P % 2 ? ha(+h[P - 1], +h[P], d).y : ha(+h[P], +h[P + 1], d).x;
|
|
17874
|
+
return V;
|
|
17875
17875
|
}
|
|
17876
17876
|
}
|
|
17877
17877
|
function mI(n) {
|
|
@@ -23017,14 +23017,14 @@ function S$(n, e, t, s, i) {
|
|
|
23017
23017
|
}, []), M = O.equalPoints(d, h);
|
|
23018
23018
|
let _ = i.maxLoopCount;
|
|
23019
23019
|
for (; !f.isEmpty() && _ > 0; ) {
|
|
23020
|
-
const D = f.pop(), R = g[D], L = p[D], k = m[D],
|
|
23020
|
+
const D = f.pop(), R = g[D], L = p[D], k = m[D], V = R.equals(c), T = L == null;
|
|
23021
23021
|
let P;
|
|
23022
|
-
if (T ? b ?
|
|
23022
|
+
if (T ? b ? V ? P = null : P = Cc(c, R, C, l, i) : P = y : P = Cc(L, R, C, l, i), !(T && M) && x.indexOf(D) >= 0)
|
|
23023
23023
|
return i.previousDirectionAngle = P, x$(p, g, R, c, u);
|
|
23024
|
-
for (let
|
|
23025
|
-
v = S[
|
|
23024
|
+
for (let F = 0; F < C; F += 1) {
|
|
23025
|
+
v = S[F];
|
|
23026
23026
|
const Q = v.angle;
|
|
23027
|
-
if (w = og(P, Q), !(b &&
|
|
23027
|
+
if (w = og(P, Q), !(b && V) && w > i.maxDirectionChange)
|
|
23028
23028
|
continue;
|
|
23029
23029
|
const me = Ea(R.clone().translate(v.gridOffsetX || 0, v.gridOffsetY || 0), l, r), W = ao(me);
|
|
23030
23030
|
if (f.isClose(W) || !s.isAccessible(me))
|
|
@@ -23034,7 +23034,7 @@ function S$(n, e, t, s, i) {
|
|
|
23034
23034
|
if (og(Q, de) > i.maxDirectionChange)
|
|
23035
23035
|
continue;
|
|
23036
23036
|
}
|
|
23037
|
-
const q = v.cost, B =
|
|
23037
|
+
const q = v.cost, B = V ? 0 : i.penalties[w], ie = k + q + B;
|
|
23038
23038
|
(!f.isOpen(W) || ie < m[W]) && (g[W] = me, p[W] = R, m[W] = ie, f.add(W, ie + lg(me, h)));
|
|
23039
23039
|
}
|
|
23040
23040
|
_ -= 1;
|
|
@@ -30834,8 +30834,8 @@ function wB(n, e = {}) {
|
|
|
30834
30834
|
let M = 0, _ = 0, D = b.getSize();
|
|
30835
30835
|
if (c) {
|
|
30836
30836
|
let R = C - 2 * o, L = x - 2 * a;
|
|
30837
|
-
const k = D.height * (D.width ? R / D.width : 1),
|
|
30838
|
-
x < k ? R =
|
|
30837
|
+
const k = D.height * (D.width ? R / D.width : 1), V = D.width * (D.height ? L / D.height : 1);
|
|
30838
|
+
x < k ? R = V : L = k, D = {
|
|
30839
30839
|
width: R,
|
|
30840
30840
|
height: L
|
|
30841
30841
|
}, b.setSize(D, e);
|
|
@@ -31968,12 +31968,12 @@ class _0 extends Pe {
|
|
|
31968
31968
|
b.indexOf("right") !== -1 ? m.vertical = a.x : m.vertical = o.x, b.indexOf("bottom") !== -1 ? m.horizontal = a.y : m.horizontal = o.y, this.model.getNodes().some((L) => {
|
|
31969
31969
|
if (this.isIgnored(e, L))
|
|
31970
31970
|
return !1;
|
|
31971
|
-
const k = L.getBBox().bbox(L.getAngle()),
|
|
31972
|
-
vertical: [
|
|
31973
|
-
horizontal: [
|
|
31971
|
+
const k = L.getBBox().bbox(L.getAngle()), V = k.getTopLeft(), T = k.getBottomRight(), P = {
|
|
31972
|
+
vertical: [V.x, T.x],
|
|
31973
|
+
horizontal: [V.y, T.y]
|
|
31974
31974
|
}, $ = {};
|
|
31975
|
-
return Object.keys(P).forEach((
|
|
31976
|
-
const Q =
|
|
31975
|
+
return Object.keys(P).forEach((F) => {
|
|
31976
|
+
const Q = F, me = P[Q].map((W) => ({
|
|
31977
31977
|
position: W,
|
|
31978
31978
|
distance: Math.abs(W - m[Q])
|
|
31979
31979
|
})).filter((W) => W.distance <= c);
|
|
@@ -31990,15 +31990,15 @@ class _0 extends Pe {
|
|
|
31990
31990
|
f != null && u != null && (w < S ? (S = 0, f = void 0) : (w = 0, u = void 0));
|
|
31991
31991
|
const k = Me.toRad(l % 90);
|
|
31992
31992
|
w && (C = L === 3 ? w / Math.cos(k) : w / Math.sin(k)), S && (x = L === 3 ? S / Math.cos(k) : S / Math.sin(k));
|
|
31993
|
-
const
|
|
31993
|
+
const V = L === 1 || L === 3;
|
|
31994
31994
|
switch (v) {
|
|
31995
31995
|
case "top":
|
|
31996
31996
|
case "bottom":
|
|
31997
|
-
x = S ? S / (
|
|
31997
|
+
x = S ? S / (V ? Math.cos(k) : Math.sin(k)) : w / (V ? Math.sin(k) : Math.cos(k));
|
|
31998
31998
|
break;
|
|
31999
31999
|
case "left":
|
|
32000
32000
|
case "right":
|
|
32001
|
-
C = w ? w / (
|
|
32001
|
+
C = w ? w / (V ? Math.cos(k) : Math.sin(k)) : S / (V ? Math.sin(k) : Math.cos(k));
|
|
32002
32002
|
break;
|
|
32003
32003
|
}
|
|
32004
32004
|
}
|
|
@@ -32599,7 +32599,7 @@ var R0 = { exports: {} };
|
|
|
32599
32599
|
return new C(x);
|
|
32600
32600
|
M.target = x, M._callbacks = {}, M._directMap = {};
|
|
32601
32601
|
var _ = {}, D, R = !1, L = !1, k = !1;
|
|
32602
|
-
function
|
|
32602
|
+
function V(W) {
|
|
32603
32603
|
W = W || {};
|
|
32604
32604
|
var q = !1, B;
|
|
32605
32605
|
for (B in _) {
|
|
@@ -32639,7 +32639,7 @@ var R0 = { exports: {} };
|
|
|
32639
32639
|
Oe || P(ie[ue].callback, B, ie[ue].combo);
|
|
32640
32640
|
}
|
|
32641
32641
|
var Mt = B.type == "keypress" && L;
|
|
32642
|
-
B.type == k && !m(W) && !Mt &&
|
|
32642
|
+
B.type == k && !m(W) && !Mt && V(de), L = Oe && B.type == "keydown";
|
|
32643
32643
|
};
|
|
32644
32644
|
function $(W) {
|
|
32645
32645
|
typeof W.which != "number" && (W.which = W.keyCode);
|
|
@@ -32652,18 +32652,18 @@ var R0 = { exports: {} };
|
|
|
32652
32652
|
M.handleKey(q, f(W), W);
|
|
32653
32653
|
}
|
|
32654
32654
|
}
|
|
32655
|
-
function
|
|
32656
|
-
clearTimeout(D), D = setTimeout(
|
|
32655
|
+
function F() {
|
|
32656
|
+
clearTimeout(D), D = setTimeout(V, 1e3);
|
|
32657
32657
|
}
|
|
32658
32658
|
function Q(W, q, B, ie) {
|
|
32659
32659
|
_[W] = 0;
|
|
32660
32660
|
function ue(Ie) {
|
|
32661
32661
|
return function() {
|
|
32662
|
-
k = Ie, ++_[W],
|
|
32662
|
+
k = Ie, ++_[W], F();
|
|
32663
32663
|
};
|
|
32664
32664
|
}
|
|
32665
32665
|
function de(Ie) {
|
|
32666
|
-
P(B, Ie, W), ie !== "keyup" && (R = d(Ie)), setTimeout(
|
|
32666
|
+
P(B, Ie, W), ie !== "keyup" && (R = d(Ie)), setTimeout(V, 10);
|
|
32667
32667
|
}
|
|
32668
32668
|
for (var ce = 0; ce < q.length; ++ce) {
|
|
32669
32669
|
var Oe = ce + 1 === q.length, Mt = Oe ? de : ue(ie || w(q[ce + 1]).action);
|
|
@@ -35251,6 +35251,7 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35251
35251
|
panning: !0,
|
|
35252
35252
|
mousewheel: !0,
|
|
35253
35253
|
connecting: {
|
|
35254
|
+
allowEdge: !0,
|
|
35254
35255
|
router: "orth",
|
|
35255
35256
|
connectionPoint: {
|
|
35256
35257
|
name: "anchor"
|
|
@@ -35298,11 +35299,11 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35298
35299
|
s.value.cleanSelection(), s.value.select(k), Ke.success("粘贴成功");
|
|
35299
35300
|
}
|
|
35300
35301
|
return !1;
|
|
35301
|
-
}), s.value.bindKey(["ctrl+z", "cmd + z"], () => (s.value.canUndo() && s.value.undo(), !1)), s.value.bindKey(["ctrl+y", "cmd + y"], () => (s.value.canRedo() && s.value.redo(), !1)), s.value.on("blank:click", ({ e: k, x:
|
|
35302
|
+
}), s.value.bindKey(["ctrl+z", "cmd + z"], () => (s.value.canUndo() && s.value.undo(), !1)), s.value.bindKey(["ctrl+y", "cmd + y"], () => (s.value.canRedo() && s.value.redo(), !1)), s.value.on("blank:click", ({ e: k, x: V, y: T }) => {
|
|
35302
35303
|
o.value = s, i.component = XD, i.label = "画布属性", r.value = K().valueOf();
|
|
35303
35304
|
}), s.value.on("cell:click", ({ cell: k }) => {
|
|
35304
|
-
var
|
|
35305
|
-
if (console.log("cell:click", k, ((
|
|
35305
|
+
var V, T, P;
|
|
35306
|
+
if (console.log("cell:click", k, ((V = k == null ? void 0 : k.data) == null ? void 0 : V.type) ?? (k == null ? void 0 : k.shape)), o.value = k, r.value = K().valueOf(), ((T = k.data) == null ? void 0 : T.type) === "text") {
|
|
35306
35307
|
i.component = zf, i.label = "文本属性";
|
|
35307
35308
|
return;
|
|
35308
35309
|
}
|
|
@@ -35352,36 +35353,35 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35352
35353
|
graphPadding: 30
|
|
35353
35354
|
}
|
|
35354
35355
|
],
|
|
35355
|
-
search(
|
|
35356
|
+
search(V, T) {
|
|
35356
35357
|
var P;
|
|
35357
|
-
return ((P =
|
|
35358
|
+
return ((P = V.label) == null ? void 0 : P.indexOf(T)) !== -1;
|
|
35358
35359
|
},
|
|
35359
35360
|
placeholder: "搜索",
|
|
35360
35361
|
notFoundText: "未找到匹配项",
|
|
35361
|
-
getDragNode: (
|
|
35362
|
-
const T =
|
|
35362
|
+
getDragNode: (V) => {
|
|
35363
|
+
const T = V.clone({ keepId: !0 });
|
|
35363
35364
|
return T.label !== "文本" && (T.label = ""), T;
|
|
35364
|
-
}
|
|
35365
|
-
getDropNode: (F) => F.clone({ keepId: !0 })
|
|
35365
|
+
}
|
|
35366
35366
|
});
|
|
35367
35367
|
const L = s.value.createNode({
|
|
35368
35368
|
...YD
|
|
35369
|
-
}), k = pa.map((
|
|
35370
|
-
l.value.load([L, ...k], "基础组件"), Co("/cny/custom/groupList").then((
|
|
35371
|
-
const T = (
|
|
35369
|
+
}), k = pa.map((V) => (V.ports = gg, s.value.createNode(V)));
|
|
35370
|
+
l.value.load([L, ...k], "基础组件"), Co("/cny/custom/groupList").then((V) => {
|
|
35371
|
+
const T = (V == null ? void 0 : V.data) || [];
|
|
35372
35372
|
T == null || T.forEach((P) => {
|
|
35373
35373
|
l.value.addGroup({
|
|
35374
35374
|
name: P == null ? void 0 : P.groupName,
|
|
35375
35375
|
graphPadding: 30
|
|
35376
35376
|
});
|
|
35377
|
-
const $ = P == null ? void 0 : P.pictureList.map((
|
|
35377
|
+
const $ = P == null ? void 0 : P.pictureList.map((F) => {
|
|
35378
35378
|
const Q = {
|
|
35379
35379
|
shape: "image",
|
|
35380
|
-
imageUrl:
|
|
35380
|
+
imageUrl: F == null ? void 0 : F.imageUrl,
|
|
35381
35381
|
ports: gg,
|
|
35382
35382
|
width: 64,
|
|
35383
35383
|
height: 64,
|
|
35384
|
-
label:
|
|
35384
|
+
label: F.imageName
|
|
35385
35385
|
};
|
|
35386
35386
|
return s.value.createNode(Q);
|
|
35387
35387
|
});
|
|
@@ -35396,13 +35396,13 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35396
35396
|
}
|
|
35397
35397
|
T.addEventListener("mouseenter", ($) => {
|
|
35398
35398
|
if (P > pa.length) {
|
|
35399
|
-
const
|
|
35400
|
-
|
|
35399
|
+
const F = T.querySelector("text");
|
|
35400
|
+
F && (F.style.display = "block");
|
|
35401
35401
|
}
|
|
35402
35402
|
}), T.addEventListener("mouseleave", ($) => {
|
|
35403
35403
|
if (P > pa.length) {
|
|
35404
|
-
const
|
|
35405
|
-
|
|
35404
|
+
const F = T.querySelector("text");
|
|
35405
|
+
F && (F.style.display = "none");
|
|
35406
35406
|
}
|
|
35407
35407
|
});
|
|
35408
35408
|
});
|
|
@@ -35438,10 +35438,10 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35438
35438
|
}, d = U(!1), h = U(null), f = () => {
|
|
35439
35439
|
d.value = !0;
|
|
35440
35440
|
const L = /* @__PURE__ */ new Date();
|
|
35441
|
-
s.value.startBatch(L), s.value.disablePanning(), s.value.once("blank:mousedown", ({ e: k, x:
|
|
35441
|
+
s.value.startBatch(L), s.value.disablePanning(), s.value.once("blank:mousedown", ({ e: k, x: V, y: T }) => {
|
|
35442
35442
|
d.value && (h.value = s.value.addEdge({
|
|
35443
|
-
source: { x:
|
|
35444
|
-
target: { x:
|
|
35443
|
+
source: { x: V, y: T },
|
|
35444
|
+
target: { x: V, y: T },
|
|
35445
35445
|
attrs: su,
|
|
35446
35446
|
data: {
|
|
35447
35447
|
type: "edge",
|
|
@@ -35449,9 +35449,9 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35449
35449
|
},
|
|
35450
35450
|
zIndex: 0
|
|
35451
35451
|
}));
|
|
35452
|
-
}), s.value.on("blank:mousemove", ({ e: k, x:
|
|
35453
|
-
d.value && h.value.setTarget({ x:
|
|
35454
|
-
}), s.value.on("blank:mouseup", ({ e: k, x:
|
|
35452
|
+
}), s.value.on("blank:mousemove", ({ e: k, x: V, y: T }) => {
|
|
35453
|
+
d.value && h.value.setTarget({ x: V, y: T });
|
|
35454
|
+
}), s.value.on("blank:mouseup", ({ e: k, x: V, y: T }) => {
|
|
35455
35455
|
d.value = !1, s.value.enablePanning(), s.value.stopBatch(L);
|
|
35456
35456
|
});
|
|
35457
35457
|
}, g = () => {
|
|
@@ -35485,8 +35485,8 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35485
35485
|
s.value.drawBackground($f), s.value.drawGrid(Bf), s.value.fromJSON({ cells: [] });
|
|
35486
35486
|
return;
|
|
35487
35487
|
}
|
|
35488
|
-
const { background: L, grid: k, data:
|
|
35489
|
-
s.value.drawBackground(L), s.value.drawGrid(k), s.value.fromJSON(
|
|
35488
|
+
const { background: L, grid: k, data: V } = await Xy(t.id);
|
|
35489
|
+
s.value.drawBackground(L), s.value.drawGrid(k), s.value.fromJSON(V), g();
|
|
35490
35490
|
}, D = cs(null), R = () => {
|
|
35491
35491
|
new ResizeObserver(() => {
|
|
35492
35492
|
g();
|
|
@@ -35495,11 +35495,11 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35495
35495
|
return ot(() => {
|
|
35496
35496
|
a(), c(), _(), R();
|
|
35497
35497
|
}), (L, k) => {
|
|
35498
|
-
const
|
|
35498
|
+
const V = Z("el-icon"), T = Z("el-button"), P = Z("el-dropdown-item"), $ = Z("el-dropdown-menu"), F = Z("el-dropdown"), Q = Z("el-scrollbar"), me = Z("el-dialog"), W = Z("el-drawer");
|
|
35499
35499
|
return H(), le("div", s6, [
|
|
35500
35500
|
X("div", i6, [
|
|
35501
35501
|
X("div", r6, [
|
|
35502
|
-
E(
|
|
35502
|
+
E(F, { onCommand: u }, {
|
|
35503
35503
|
dropdown: N(() => [
|
|
35504
35504
|
E($, null, {
|
|
35505
35505
|
default: N(() => [
|
|
@@ -35563,7 +35563,7 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35563
35563
|
}, {
|
|
35564
35564
|
default: N(() => [
|
|
35565
35565
|
k[3] || (k[3] = De("工具 ")),
|
|
35566
|
-
E(
|
|
35566
|
+
E(V, null, {
|
|
35567
35567
|
default: N(() => [
|
|
35568
35568
|
E(A(jA))
|
|
35569
35569
|
]),
|
|
@@ -35678,7 +35678,7 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35678
35678
|
]);
|
|
35679
35679
|
};
|
|
35680
35680
|
}
|
|
35681
|
-
}), g6 = /* @__PURE__ */ Ss(f6, [["__scopeId", "data-v-
|
|
35681
|
+
}), g6 = /* @__PURE__ */ Ss(f6, [["__scopeId", "data-v-3ec8dc06"]]), p6 = [
|
|
35682
35682
|
g6,
|
|
35683
35683
|
$0
|
|
35684
35684
|
], B0 = (n, e) => {
|