vue-wiring-diagram 1.0.12 → 1.0.14
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,
|
|
@@ -11202,8 +11202,9 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11202
11202
|
stencilGraphHeight: 0,
|
|
11203
11203
|
layoutOptions: {
|
|
11204
11204
|
columns: 3,
|
|
11205
|
-
columnWidth:
|
|
11206
|
-
resizeToFit: !0
|
|
11205
|
+
columnWidth: 74,
|
|
11206
|
+
resizeToFit: !0,
|
|
11207
|
+
center: !0
|
|
11207
11208
|
}
|
|
11208
11209
|
}, Yl = {
|
|
11209
11210
|
position: "absolute",
|
|
@@ -11300,10 +11301,10 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11300
11301
|
payload: Object
|
|
11301
11302
|
},
|
|
11302
11303
|
setup(n) {
|
|
11303
|
-
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;
|
|
11304
11305
|
const e = n;
|
|
11305
11306
|
console.log(e.payload.value.options.grid);
|
|
11306
|
-
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 = ($) => {
|
|
11307
11308
|
e.payload.value.drawBackground({
|
|
11308
11309
|
color: $
|
|
11309
11310
|
});
|
|
@@ -11324,12 +11325,12 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11324
11325
|
]
|
|
11325
11326
|
});
|
|
11326
11327
|
};
|
|
11327
|
-
return ($,
|
|
11328
|
+
return ($, F) => {
|
|
11328
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");
|
|
11329
11330
|
return H(), le("div", WD, [
|
|
11330
11331
|
E(ue, {
|
|
11331
11332
|
modelValue: c.value,
|
|
11332
|
-
"onUpdate:modelValue":
|
|
11333
|
+
"onUpdate:modelValue": F[7] || (F[7] = (de) => c.value = de),
|
|
11333
11334
|
accordion: ""
|
|
11334
11335
|
}, {
|
|
11335
11336
|
default: N(() => [
|
|
@@ -11342,7 +11343,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11342
11343
|
E(W, { gutter: 20 }, {
|
|
11343
11344
|
default: N(() => [
|
|
11344
11345
|
E(Q, { span: 12 }, {
|
|
11345
|
-
default: N(() =>
|
|
11346
|
+
default: N(() => F[8] || (F[8] = [
|
|
11346
11347
|
X("div", { class: "row-label" }, "背景色", -1)
|
|
11347
11348
|
])),
|
|
11348
11349
|
_: 1
|
|
@@ -11351,7 +11352,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11351
11352
|
default: N(() => [
|
|
11352
11353
|
E(me, {
|
|
11353
11354
|
modelValue: t.value,
|
|
11354
|
-
"onUpdate:modelValue":
|
|
11355
|
+
"onUpdate:modelValue": F[0] || (F[0] = (de) => t.value = de),
|
|
11355
11356
|
size: "small",
|
|
11356
11357
|
"show-alpha": "",
|
|
11357
11358
|
onChange: u
|
|
@@ -11365,7 +11366,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11365
11366
|
E(W, { gutter: 20 }, {
|
|
11366
11367
|
default: N(() => [
|
|
11367
11368
|
E(Q, { span: 12 }, {
|
|
11368
|
-
default: N(() =>
|
|
11369
|
+
default: N(() => F[9] || (F[9] = [
|
|
11369
11370
|
X("div", { class: "row-label" }, "网格", -1)
|
|
11370
11371
|
])),
|
|
11371
11372
|
_: 1
|
|
@@ -11374,7 +11375,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11374
11375
|
default: N(() => [
|
|
11375
11376
|
E(q, {
|
|
11376
11377
|
modelValue: s.value,
|
|
11377
|
-
"onUpdate:modelValue":
|
|
11378
|
+
"onUpdate:modelValue": F[1] || (F[1] = (de) => s.value = de),
|
|
11378
11379
|
"active-value": !0,
|
|
11379
11380
|
"inactive-value": !1,
|
|
11380
11381
|
size: "small",
|
|
@@ -11389,7 +11390,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11389
11390
|
E(W, { gutter: 20 }, {
|
|
11390
11391
|
default: N(() => [
|
|
11391
11392
|
E(Q, { span: 12 }, {
|
|
11392
|
-
default: N(() =>
|
|
11393
|
+
default: N(() => F[10] || (F[10] = [
|
|
11393
11394
|
X("div", { class: "row-label" }, "网格大小", -1)
|
|
11394
11395
|
])),
|
|
11395
11396
|
_: 1
|
|
@@ -11398,7 +11399,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11398
11399
|
default: N(() => [
|
|
11399
11400
|
E(B, {
|
|
11400
11401
|
modelValue: i.value,
|
|
11401
|
-
"onUpdate:modelValue":
|
|
11402
|
+
"onUpdate:modelValue": F[2] || (F[2] = (de) => i.value = de),
|
|
11402
11403
|
min: 1,
|
|
11403
11404
|
max: 20,
|
|
11404
11405
|
size: "small",
|
|
@@ -11414,7 +11415,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11414
11415
|
E(W, { gutter: 20 }, {
|
|
11415
11416
|
default: N(() => [
|
|
11416
11417
|
E(Q, { span: 12 }, {
|
|
11417
|
-
default: N(() =>
|
|
11418
|
+
default: N(() => F[11] || (F[11] = [
|
|
11418
11419
|
X("div", { class: "row-label" }, "主网格颜色", -1)
|
|
11419
11420
|
])),
|
|
11420
11421
|
_: 1
|
|
@@ -11423,7 +11424,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11423
11424
|
default: N(() => [
|
|
11424
11425
|
E(me, {
|
|
11425
11426
|
modelValue: r.value,
|
|
11426
|
-
"onUpdate:modelValue":
|
|
11427
|
+
"onUpdate:modelValue": F[3] || (F[3] = (de) => r.value = de),
|
|
11427
11428
|
size: "small",
|
|
11428
11429
|
"show-alpha": "",
|
|
11429
11430
|
onChange: d
|
|
@@ -11437,7 +11438,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11437
11438
|
E(W, { gutter: 20 }, {
|
|
11438
11439
|
default: N(() => [
|
|
11439
11440
|
E(Q, { span: 12 }, {
|
|
11440
|
-
default: N(() =>
|
|
11441
|
+
default: N(() => F[12] || (F[12] = [
|
|
11441
11442
|
X("div", { class: "row-label" }, "次网格颜色", -1)
|
|
11442
11443
|
])),
|
|
11443
11444
|
_: 1
|
|
@@ -11446,7 +11447,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11446
11447
|
default: N(() => [
|
|
11447
11448
|
E(me, {
|
|
11448
11449
|
modelValue: a.value,
|
|
11449
|
-
"onUpdate:modelValue":
|
|
11450
|
+
"onUpdate:modelValue": F[4] || (F[4] = (de) => a.value = de),
|
|
11450
11451
|
size: "small",
|
|
11451
11452
|
"show-alpha": "",
|
|
11452
11453
|
onChange: d
|
|
@@ -11460,7 +11461,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11460
11461
|
E(W, { gutter: 20 }, {
|
|
11461
11462
|
default: N(() => [
|
|
11462
11463
|
E(Q, { span: 12 }, {
|
|
11463
|
-
default: N(() =>
|
|
11464
|
+
default: N(() => F[13] || (F[13] = [
|
|
11464
11465
|
X("div", { class: "row-label" }, "主网格粗细", -1)
|
|
11465
11466
|
])),
|
|
11466
11467
|
_: 1
|
|
@@ -11469,7 +11470,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11469
11470
|
default: N(() => [
|
|
11470
11471
|
E(B, {
|
|
11471
11472
|
modelValue: o.value,
|
|
11472
|
-
"onUpdate:modelValue":
|
|
11473
|
+
"onUpdate:modelValue": F[5] || (F[5] = (de) => o.value = de),
|
|
11473
11474
|
min: 0.5,
|
|
11474
11475
|
max: 10,
|
|
11475
11476
|
size: "small",
|
|
@@ -11485,7 +11486,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11485
11486
|
E(W, { gutter: 20 }, {
|
|
11486
11487
|
default: N(() => [
|
|
11487
11488
|
E(Q, { span: 12 }, {
|
|
11488
|
-
default: N(() =>
|
|
11489
|
+
default: N(() => F[14] || (F[14] = [
|
|
11489
11490
|
X("div", { class: "row-label" }, "次网格粗细", -1)
|
|
11490
11491
|
])),
|
|
11491
11492
|
_: 1
|
|
@@ -11494,7 +11495,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11494
11495
|
default: N(() => [
|
|
11495
11496
|
E(B, {
|
|
11496
11497
|
modelValue: l.value,
|
|
11497
|
-
"onUpdate:modelValue":
|
|
11498
|
+
"onUpdate:modelValue": F[6] || (F[6] = (de) => l.value = de),
|
|
11498
11499
|
min: 0.5,
|
|
11499
11500
|
max: 10,
|
|
11500
11501
|
size: "small",
|
|
@@ -11525,8 +11526,8 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11525
11526
|
payload: Object
|
|
11526
11527
|
},
|
|
11527
11528
|
setup(n) {
|
|
11528
|
-
var
|
|
11529
|
-
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 = () => {
|
|
11530
11531
|
Co("/cny/custom/deviceList").then((q) => {
|
|
11531
11532
|
s.value = q.data;
|
|
11532
11533
|
});
|
|
@@ -11585,7 +11586,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11585
11586
|
y: Number(q.args.y.replace("%", ""))
|
|
11586
11587
|
}
|
|
11587
11588
|
}))));
|
|
11588
|
-
},
|
|
11589
|
+
}, V = () => {
|
|
11589
11590
|
const q = Yl;
|
|
11590
11591
|
q.attrs.text.text = `${e.payload.getPorts().length + 1}`, q.args.x = "50%", q.args.y = "50%", e.payload.addPorts([
|
|
11591
11592
|
{
|
|
@@ -11973,7 +11974,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11973
11974
|
default: N(() => [
|
|
11974
11975
|
E(Os, {
|
|
11975
11976
|
type: "primary",
|
|
11976
|
-
onClick:
|
|
11977
|
+
onClick: V,
|
|
11977
11978
|
size: "small"
|
|
11978
11979
|
}, {
|
|
11979
11980
|
default: N(() => B[23] || (B[23] = [
|
|
@@ -13736,11 +13737,11 @@ function Sb(n, e, t = {}) {
|
|
|
13736
13737
|
let L, k = S[_];
|
|
13737
13738
|
if (k)
|
|
13738
13739
|
if (c) {
|
|
13739
|
-
const
|
|
13740
|
+
const V = AL(k, c, {
|
|
13740
13741
|
offset: -v,
|
|
13741
13742
|
includeAnnotationIndices: l
|
|
13742
13743
|
});
|
|
13743
|
-
L = FL(R,
|
|
13744
|
+
L = FL(R, V, {
|
|
13744
13745
|
eol: _ !== x && s,
|
|
13745
13746
|
baseSize: m,
|
|
13746
13747
|
lineHeight: d ? null : h,
|
|
@@ -13752,8 +13753,8 @@ function Sb(n, e, t = {}) {
|
|
|
13752
13753
|
s && _ !== x && (k += s), R.textContent = k;
|
|
13753
13754
|
else {
|
|
13754
13755
|
R.textContent = "-", D += " v-empty-line";
|
|
13755
|
-
const
|
|
13756
|
-
|
|
13756
|
+
const V = R.style;
|
|
13757
|
+
V.fillOpacity = 0, V.strokeOpacity = 0, c && (L = {});
|
|
13757
13758
|
}
|
|
13758
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;
|
|
13759
13760
|
}
|
|
@@ -15006,23 +15007,23 @@ class ls {
|
|
|
15006
15007
|
n.makeGrey = a;
|
|
15007
15008
|
function l(v, w, S, C) {
|
|
15008
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;
|
|
15009
|
-
let
|
|
15010
|
+
let V = 0, T = 0;
|
|
15010
15011
|
if (L !== R) {
|
|
15011
15012
|
const P = R - L;
|
|
15012
15013
|
switch (T = k > 0.5 ? P / (2 - R - L) : P / (R + L), R) {
|
|
15013
15014
|
case x:
|
|
15014
|
-
|
|
15015
|
+
V = (M - _) / P + (M < _ ? 6 : 0);
|
|
15015
15016
|
break;
|
|
15016
15017
|
case M:
|
|
15017
|
-
|
|
15018
|
+
V = (_ - x) / P + 2;
|
|
15018
15019
|
break;
|
|
15019
15020
|
case _:
|
|
15020
|
-
|
|
15021
|
+
V = (x - M) / P + 4;
|
|
15021
15022
|
break;
|
|
15022
15023
|
}
|
|
15023
|
-
|
|
15024
|
+
V /= 6;
|
|
15024
15025
|
}
|
|
15025
|
-
return [
|
|
15026
|
+
return [V, T, k, D ?? 1];
|
|
15026
15027
|
}
|
|
15027
15028
|
n.rgba2hsla = l;
|
|
15028
15029
|
function c(v, w, S, C) {
|
|
@@ -15450,33 +15451,33 @@ var Ci;
|
|
|
15450
15451
|
}
|
|
15451
15452
|
n.easeOutBack = x;
|
|
15452
15453
|
function M(T, P = 1.70158) {
|
|
15453
|
-
const $ = T * 2,
|
|
15454
|
-
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);
|
|
15455
15456
|
}
|
|
15456
15457
|
n.easeInOutBack = M;
|
|
15457
15458
|
function _(T, P = 0.7) {
|
|
15458
15459
|
if (T === 0 || T === 1)
|
|
15459
15460
|
return T;
|
|
15460
|
-
const
|
|
15461
|
-
return -(Math.pow(2, 10 *
|
|
15462
|
-
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));
|
|
15463
15464
|
}
|
|
15464
15465
|
n.easeInElastic = _;
|
|
15465
15466
|
function D(T, P = 0.7) {
|
|
15466
|
-
const $ = 1 - P,
|
|
15467
|
+
const $ = 1 - P, F = T * 2;
|
|
15467
15468
|
if (T === 0 || T === 1)
|
|
15468
15469
|
return T;
|
|
15469
15470
|
const Q = $ / (2 * Math.PI) * Math.asin(1);
|
|
15470
|
-
return Math.pow(2, -10 *
|
|
15471
|
-
Math.sin((
|
|
15471
|
+
return Math.pow(2, -10 * F) * // eslint-disable-line
|
|
15472
|
+
Math.sin((F - Q) * (2 * Math.PI) / $) + 1;
|
|
15472
15473
|
}
|
|
15473
15474
|
n.easeOutElastic = D;
|
|
15474
15475
|
function R(T, P = 0.65) {
|
|
15475
15476
|
const $ = 1 - P;
|
|
15476
15477
|
if (T === 0 || T === 1)
|
|
15477
15478
|
return T;
|
|
15478
|
-
const
|
|
15479
|
-
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
|
|
15480
15481
|
Math.sin((Q - me) * (2 * Math.PI) / $)) : Math.pow(2, -10 * Q) * // eslint-disable-line
|
|
15481
15482
|
Math.sin((Q - me) * (2 * Math.PI) / $) * 0.5 + 1;
|
|
15482
15483
|
}
|
|
@@ -15503,10 +15504,10 @@ var Ci;
|
|
|
15503
15504
|
return 1 - L(1 - T);
|
|
15504
15505
|
}
|
|
15505
15506
|
n.easeInBounce = k;
|
|
15506
|
-
function
|
|
15507
|
+
function V(T) {
|
|
15507
15508
|
return T < 0.5 ? k(T * 2) * 0.5 : L(T * 2 - 1) * 0.5 + 0.5;
|
|
15508
15509
|
}
|
|
15509
|
-
n.easeInOutBounce =
|
|
15510
|
+
n.easeInOutBounce = V;
|
|
15510
15511
|
})(Ci || (Ci = {}));
|
|
15511
15512
|
var fi;
|
|
15512
15513
|
(function(n) {
|
|
@@ -16743,12 +16744,12 @@ function tl(n, e, t, s, i = 0, r = 0, o = 0, a, l) {
|
|
|
16743
16744
|
_ = Math.atan2((-g - C) / s, (-f - S) / t) - Math.atan2((g - C) / s, (f - S) / t);
|
|
16744
16745
|
let R = _ >= 0 ? _ : 2 * Math.PI + _;
|
|
16745
16746
|
o === 0 && R > 0 ? R -= 2 * Math.PI : o !== 0 && R < 0 && (R += 2 * Math.PI);
|
|
16746
|
-
const L = R * 2 / Math.PI, k = Math.ceil(L < 0 ? -1 * L : L),
|
|
16747
|
-
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;
|
|
16748
16749
|
const de = [];
|
|
16749
16750
|
for (let ce = 0; ce < k; ce += 1) {
|
|
16750
|
-
D +=
|
|
16751
|
-
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;
|
|
16752
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;
|
|
16753
16754
|
}
|
|
16754
16755
|
return de.map((ce) => +ce.toFixed(2));
|
|
@@ -17047,8 +17048,8 @@ class Xe extends ti {
|
|
|
17047
17048
|
for (; D; )
|
|
17048
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;
|
|
17049
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;
|
|
17050
|
-
const L = Math.min.apply(null, g[0]), k = Math.min.apply(null, g[1]),
|
|
17051
|
-
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);
|
|
17052
17053
|
}
|
|
17053
17054
|
closestPoint(e, t = {}) {
|
|
17054
17055
|
return this.pointAtT(this.closestPointT(e, t));
|
|
@@ -17845,18 +17846,18 @@ function Nb(n, e, t, s, i, r, o, a, l, c) {
|
|
|
17845
17846
|
g = c[0], p = c[1], m = c[2], y = c[3];
|
|
17846
17847
|
else {
|
|
17847
17848
|
f = ha(n, e, -d), n = f.x, e = f.y, f = ha(a, l, -d), a = f.x, l = f.y;
|
|
17848
|
-
const
|
|
17849
|
-
let P =
|
|
17849
|
+
const V = (n - a) / 2, T = (e - l) / 2;
|
|
17850
|
+
let P = V * V / (t * t) + T * T / (s * s);
|
|
17850
17851
|
P > 1 && (P = Math.sqrt(P), t = P * t, s = P * s);
|
|
17851
|
-
const $ = t * t,
|
|
17852
|
-
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);
|
|
17853
17854
|
}
|
|
17854
17855
|
let b = p - g;
|
|
17855
17856
|
if (Math.abs(b) > u) {
|
|
17856
|
-
const
|
|
17857
|
+
const V = p, T = a, P = l;
|
|
17857
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, [
|
|
17858
17859
|
p,
|
|
17859
|
-
|
|
17860
|
+
V,
|
|
17860
17861
|
m,
|
|
17861
17862
|
y
|
|
17862
17863
|
]);
|
|
@@ -17867,10 +17868,10 @@ function Nb(n, e, t, s, i, r, o, a, l, c) {
|
|
|
17867
17868
|
return [R, L, k].concat(h);
|
|
17868
17869
|
{
|
|
17869
17870
|
h = [R, L, k].concat(h).join().split(",");
|
|
17870
|
-
const
|
|
17871
|
+
const V = [], T = h.length;
|
|
17871
17872
|
for (let P = 0; P < T; P += 1)
|
|
17872
|
-
|
|
17873
|
-
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;
|
|
17874
17875
|
}
|
|
17875
17876
|
}
|
|
17876
17877
|
function mI(n) {
|
|
@@ -23016,14 +23017,14 @@ function S$(n, e, t, s, i) {
|
|
|
23016
23017
|
}, []), M = O.equalPoints(d, h);
|
|
23017
23018
|
let _ = i.maxLoopCount;
|
|
23018
23019
|
for (; !f.isEmpty() && _ > 0; ) {
|
|
23019
|
-
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;
|
|
23020
23021
|
let P;
|
|
23021
|
-
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)
|
|
23022
23023
|
return i.previousDirectionAngle = P, x$(p, g, R, c, u);
|
|
23023
|
-
for (let
|
|
23024
|
-
v = S[
|
|
23024
|
+
for (let F = 0; F < C; F += 1) {
|
|
23025
|
+
v = S[F];
|
|
23025
23026
|
const Q = v.angle;
|
|
23026
|
-
if (w = og(P, Q), !(b &&
|
|
23027
|
+
if (w = og(P, Q), !(b && V) && w > i.maxDirectionChange)
|
|
23027
23028
|
continue;
|
|
23028
23029
|
const me = Ea(R.clone().translate(v.gridOffsetX || 0, v.gridOffsetY || 0), l, r), W = ao(me);
|
|
23029
23030
|
if (f.isClose(W) || !s.isAccessible(me))
|
|
@@ -23033,7 +23034,7 @@ function S$(n, e, t, s, i) {
|
|
|
23033
23034
|
if (og(Q, de) > i.maxDirectionChange)
|
|
23034
23035
|
continue;
|
|
23035
23036
|
}
|
|
23036
|
-
const q = v.cost, B =
|
|
23037
|
+
const q = v.cost, B = V ? 0 : i.penalties[w], ie = k + q + B;
|
|
23037
23038
|
(!f.isOpen(W) || ie < m[W]) && (g[W] = me, p[W] = R, m[W] = ie, f.add(W, ie + lg(me, h)));
|
|
23038
23039
|
}
|
|
23039
23040
|
_ -= 1;
|
|
@@ -30833,8 +30834,8 @@ function wB(n, e = {}) {
|
|
|
30833
30834
|
let M = 0, _ = 0, D = b.getSize();
|
|
30834
30835
|
if (c) {
|
|
30835
30836
|
let R = C - 2 * o, L = x - 2 * a;
|
|
30836
|
-
const k = D.height * (D.width ? R / D.width : 1),
|
|
30837
|
-
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 = {
|
|
30838
30839
|
width: R,
|
|
30839
30840
|
height: L
|
|
30840
30841
|
}, b.setSize(D, e);
|
|
@@ -31967,12 +31968,12 @@ class _0 extends Pe {
|
|
|
31967
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) => {
|
|
31968
31969
|
if (this.isIgnored(e, L))
|
|
31969
31970
|
return !1;
|
|
31970
|
-
const k = L.getBBox().bbox(L.getAngle()),
|
|
31971
|
-
vertical: [
|
|
31972
|
-
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]
|
|
31973
31974
|
}, $ = {};
|
|
31974
|
-
return Object.keys(P).forEach((
|
|
31975
|
-
const Q =
|
|
31975
|
+
return Object.keys(P).forEach((F) => {
|
|
31976
|
+
const Q = F, me = P[Q].map((W) => ({
|
|
31976
31977
|
position: W,
|
|
31977
31978
|
distance: Math.abs(W - m[Q])
|
|
31978
31979
|
})).filter((W) => W.distance <= c);
|
|
@@ -31989,15 +31990,15 @@ class _0 extends Pe {
|
|
|
31989
31990
|
f != null && u != null && (w < S ? (S = 0, f = void 0) : (w = 0, u = void 0));
|
|
31990
31991
|
const k = Me.toRad(l % 90);
|
|
31991
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));
|
|
31992
|
-
const
|
|
31993
|
+
const V = L === 1 || L === 3;
|
|
31993
31994
|
switch (v) {
|
|
31994
31995
|
case "top":
|
|
31995
31996
|
case "bottom":
|
|
31996
|
-
x = S ? S / (
|
|
31997
|
+
x = S ? S / (V ? Math.cos(k) : Math.sin(k)) : w / (V ? Math.sin(k) : Math.cos(k));
|
|
31997
31998
|
break;
|
|
31998
31999
|
case "left":
|
|
31999
32000
|
case "right":
|
|
32000
|
-
C = w ? w / (
|
|
32001
|
+
C = w ? w / (V ? Math.cos(k) : Math.sin(k)) : S / (V ? Math.sin(k) : Math.cos(k));
|
|
32001
32002
|
break;
|
|
32002
32003
|
}
|
|
32003
32004
|
}
|
|
@@ -32598,7 +32599,7 @@ var R0 = { exports: {} };
|
|
|
32598
32599
|
return new C(x);
|
|
32599
32600
|
M.target = x, M._callbacks = {}, M._directMap = {};
|
|
32600
32601
|
var _ = {}, D, R = !1, L = !1, k = !1;
|
|
32601
|
-
function
|
|
32602
|
+
function V(W) {
|
|
32602
32603
|
W = W || {};
|
|
32603
32604
|
var q = !1, B;
|
|
32604
32605
|
for (B in _) {
|
|
@@ -32638,7 +32639,7 @@ var R0 = { exports: {} };
|
|
|
32638
32639
|
Oe || P(ie[ue].callback, B, ie[ue].combo);
|
|
32639
32640
|
}
|
|
32640
32641
|
var Mt = B.type == "keypress" && L;
|
|
32641
|
-
B.type == k && !m(W) && !Mt &&
|
|
32642
|
+
B.type == k && !m(W) && !Mt && V(de), L = Oe && B.type == "keydown";
|
|
32642
32643
|
};
|
|
32643
32644
|
function $(W) {
|
|
32644
32645
|
typeof W.which != "number" && (W.which = W.keyCode);
|
|
@@ -32651,18 +32652,18 @@ var R0 = { exports: {} };
|
|
|
32651
32652
|
M.handleKey(q, f(W), W);
|
|
32652
32653
|
}
|
|
32653
32654
|
}
|
|
32654
|
-
function
|
|
32655
|
-
clearTimeout(D), D = setTimeout(
|
|
32655
|
+
function F() {
|
|
32656
|
+
clearTimeout(D), D = setTimeout(V, 1e3);
|
|
32656
32657
|
}
|
|
32657
32658
|
function Q(W, q, B, ie) {
|
|
32658
32659
|
_[W] = 0;
|
|
32659
32660
|
function ue(Ie) {
|
|
32660
32661
|
return function() {
|
|
32661
|
-
k = Ie, ++_[W],
|
|
32662
|
+
k = Ie, ++_[W], F();
|
|
32662
32663
|
};
|
|
32663
32664
|
}
|
|
32664
32665
|
function de(Ie) {
|
|
32665
|
-
P(B, Ie, W), ie !== "keyup" && (R = d(Ie)), setTimeout(
|
|
32666
|
+
P(B, Ie, W), ie !== "keyup" && (R = d(Ie)), setTimeout(V, 10);
|
|
32666
32667
|
}
|
|
32667
32668
|
for (var ce = 0; ce < q.length; ++ce) {
|
|
32668
32669
|
var Oe = ce + 1 === q.length, Mt = Oe ? de : ue(ie || w(q[ce + 1]).action);
|
|
@@ -34665,7 +34666,7 @@ const FB = { class: "control-box" }, VB = {
|
|
|
34665
34666
|
let b = 0;
|
|
34666
34667
|
return m.replace(/\$\{.*?\}/g, () => b < y.length ? y[b++] : "--");
|
|
34667
34668
|
}, f = () => {
|
|
34668
|
-
s.value.zoomToFit({ maxScale:
|
|
34669
|
+
s.value.zoomToFit({ maxScale: 10, padding: 20 });
|
|
34669
34670
|
}, g = cs(), p = () => {
|
|
34670
34671
|
new ResizeObserver(() => {
|
|
34671
34672
|
f();
|
|
@@ -35297,11 +35298,11 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35297
35298
|
s.value.cleanSelection(), s.value.select(k), Ke.success("粘贴成功");
|
|
35298
35299
|
}
|
|
35299
35300
|
return !1;
|
|
35300
|
-
}), 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:
|
|
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: V, y: T }) => {
|
|
35301
35302
|
o.value = s, i.component = XD, i.label = "画布属性", r.value = K().valueOf();
|
|
35302
35303
|
}), s.value.on("cell:click", ({ cell: k }) => {
|
|
35303
|
-
var
|
|
35304
|
-
if (console.log("cell:click", k, ((
|
|
35304
|
+
var V, T, P;
|
|
35305
|
+
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") {
|
|
35305
35306
|
i.component = zf, i.label = "文本属性";
|
|
35306
35307
|
return;
|
|
35307
35308
|
}
|
|
@@ -35351,36 +35352,35 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35351
35352
|
graphPadding: 30
|
|
35352
35353
|
}
|
|
35353
35354
|
],
|
|
35354
|
-
search(
|
|
35355
|
+
search(V, T) {
|
|
35355
35356
|
var P;
|
|
35356
|
-
return ((P =
|
|
35357
|
+
return ((P = V.label) == null ? void 0 : P.indexOf(T)) !== -1;
|
|
35357
35358
|
},
|
|
35358
35359
|
placeholder: "搜索",
|
|
35359
35360
|
notFoundText: "未找到匹配项",
|
|
35360
|
-
getDragNode: (
|
|
35361
|
-
const T =
|
|
35361
|
+
getDragNode: (V) => {
|
|
35362
|
+
const T = V.clone({ keepId: !0 });
|
|
35362
35363
|
return T.label !== "文本" && (T.label = ""), T;
|
|
35363
|
-
}
|
|
35364
|
-
getDropNode: (F) => F.clone({ keepId: !0 })
|
|
35364
|
+
}
|
|
35365
35365
|
});
|
|
35366
35366
|
const L = s.value.createNode({
|
|
35367
35367
|
...YD
|
|
35368
|
-
}), k = pa.map((
|
|
35369
|
-
l.value.load([L, ...k], "基础组件"), Co("/cny/custom/groupList").then((
|
|
35370
|
-
const T = (
|
|
35368
|
+
}), k = pa.map((V) => (V.ports = gg, s.value.createNode(V)));
|
|
35369
|
+
l.value.load([L, ...k], "基础组件"), Co("/cny/custom/groupList").then((V) => {
|
|
35370
|
+
const T = (V == null ? void 0 : V.data) || [];
|
|
35371
35371
|
T == null || T.forEach((P) => {
|
|
35372
35372
|
l.value.addGroup({
|
|
35373
35373
|
name: P == null ? void 0 : P.groupName,
|
|
35374
35374
|
graphPadding: 30
|
|
35375
35375
|
});
|
|
35376
|
-
const $ = P == null ? void 0 : P.pictureList.map((
|
|
35376
|
+
const $ = P == null ? void 0 : P.pictureList.map((F) => {
|
|
35377
35377
|
const Q = {
|
|
35378
35378
|
shape: "image",
|
|
35379
|
-
imageUrl:
|
|
35379
|
+
imageUrl: F == null ? void 0 : F.imageUrl,
|
|
35380
35380
|
ports: gg,
|
|
35381
35381
|
width: 64,
|
|
35382
35382
|
height: 64,
|
|
35383
|
-
label:
|
|
35383
|
+
label: F.imageName
|
|
35384
35384
|
};
|
|
35385
35385
|
return s.value.createNode(Q);
|
|
35386
35386
|
});
|
|
@@ -35391,17 +35391,17 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35391
35391
|
l.value.container.querySelectorAll(".x6-node").forEach((T, P) => {
|
|
35392
35392
|
if (P > pa.length) {
|
|
35393
35393
|
const $ = T.querySelector("text");
|
|
35394
|
-
T.style.position = "relative", $ && ($.style.display = "none", $.setAttribute("x", "0%"), $.setAttribute("y", "
|
|
35394
|
+
T.style.position = "relative", $ && ($.style.display = "none", $.setAttribute("x", "0%"), $.setAttribute("y", "40"), $.style.fontSize = "12px", $.style.fill = "#ffffff");
|
|
35395
35395
|
}
|
|
35396
35396
|
T.addEventListener("mouseenter", ($) => {
|
|
35397
35397
|
if (P > pa.length) {
|
|
35398
|
-
const
|
|
35399
|
-
|
|
35398
|
+
const F = T.querySelector("text");
|
|
35399
|
+
F && (F.style.display = "block");
|
|
35400
35400
|
}
|
|
35401
35401
|
}), T.addEventListener("mouseleave", ($) => {
|
|
35402
35402
|
if (P > pa.length) {
|
|
35403
|
-
const
|
|
35404
|
-
|
|
35403
|
+
const F = T.querySelector("text");
|
|
35404
|
+
F && (F.style.display = "none");
|
|
35405
35405
|
}
|
|
35406
35406
|
});
|
|
35407
35407
|
});
|
|
@@ -35437,10 +35437,10 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35437
35437
|
}, d = U(!1), h = U(null), f = () => {
|
|
35438
35438
|
d.value = !0;
|
|
35439
35439
|
const L = /* @__PURE__ */ new Date();
|
|
35440
|
-
s.value.startBatch(L), s.value.disablePanning(), s.value.once("blank:mousedown", ({ e: k, x:
|
|
35440
|
+
s.value.startBatch(L), s.value.disablePanning(), s.value.once("blank:mousedown", ({ e: k, x: V, y: T }) => {
|
|
35441
35441
|
d.value && (h.value = s.value.addEdge({
|
|
35442
|
-
source: { x:
|
|
35443
|
-
target: { x:
|
|
35442
|
+
source: { x: V, y: T },
|
|
35443
|
+
target: { x: V, y: T },
|
|
35444
35444
|
attrs: su,
|
|
35445
35445
|
data: {
|
|
35446
35446
|
type: "edge",
|
|
@@ -35448,9 +35448,9 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35448
35448
|
},
|
|
35449
35449
|
zIndex: 0
|
|
35450
35450
|
}));
|
|
35451
|
-
}), s.value.on("blank:mousemove", ({ e: k, x:
|
|
35452
|
-
d.value && h.value.setTarget({ x:
|
|
35453
|
-
}), s.value.on("blank:mouseup", ({ e: k, x:
|
|
35451
|
+
}), s.value.on("blank:mousemove", ({ e: k, x: V, y: T }) => {
|
|
35452
|
+
d.value && h.value.setTarget({ x: V, y: T });
|
|
35453
|
+
}), s.value.on("blank:mouseup", ({ e: k, x: V, y: T }) => {
|
|
35454
35454
|
d.value = !1, s.value.enablePanning(), s.value.stopBatch(L);
|
|
35455
35455
|
});
|
|
35456
35456
|
}, g = () => {
|
|
@@ -35484,8 +35484,8 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35484
35484
|
s.value.drawBackground($f), s.value.drawGrid(Bf), s.value.fromJSON({ cells: [] });
|
|
35485
35485
|
return;
|
|
35486
35486
|
}
|
|
35487
|
-
const { background: L, grid: k, data:
|
|
35488
|
-
s.value.drawBackground(L), s.value.drawGrid(k), s.value.fromJSON(
|
|
35487
|
+
const { background: L, grid: k, data: V } = await Xy(t.id);
|
|
35488
|
+
s.value.drawBackground(L), s.value.drawGrid(k), s.value.fromJSON(V), g();
|
|
35489
35489
|
}, D = cs(null), R = () => {
|
|
35490
35490
|
new ResizeObserver(() => {
|
|
35491
35491
|
g();
|
|
@@ -35494,11 +35494,11 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35494
35494
|
return ot(() => {
|
|
35495
35495
|
a(), c(), _(), R();
|
|
35496
35496
|
}), (L, k) => {
|
|
35497
|
-
const
|
|
35497
|
+
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");
|
|
35498
35498
|
return H(), le("div", s6, [
|
|
35499
35499
|
X("div", i6, [
|
|
35500
35500
|
X("div", r6, [
|
|
35501
|
-
E(
|
|
35501
|
+
E(F, { onCommand: u }, {
|
|
35502
35502
|
dropdown: N(() => [
|
|
35503
35503
|
E($, null, {
|
|
35504
35504
|
default: N(() => [
|
|
@@ -35562,7 +35562,7 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35562
35562
|
}, {
|
|
35563
35563
|
default: N(() => [
|
|
35564
35564
|
k[3] || (k[3] = De("工具 ")),
|
|
35565
|
-
E(
|
|
35565
|
+
E(V, null, {
|
|
35566
35566
|
default: N(() => [
|
|
35567
35567
|
E(A(jA))
|
|
35568
35568
|
]),
|
|
@@ -35677,7 +35677,7 @@ const FB = { class: "control-box" }, VB = {
|
|
|
35677
35677
|
]);
|
|
35678
35678
|
};
|
|
35679
35679
|
}
|
|
35680
|
-
}), g6 = /* @__PURE__ */ Ss(f6, [["__scopeId", "data-v-
|
|
35680
|
+
}), g6 = /* @__PURE__ */ Ss(f6, [["__scopeId", "data-v-24c3e5a5"]]), p6 = [
|
|
35681
35681
|
g6,
|
|
35682
35682
|
$0
|
|
35683
35683
|
], B0 = (n, e) => {
|