vue-wiring-diagram 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5529,10 +5529,10 @@ function i_(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)] : s_(m)), w = [m].concat(v).reduce(function(ie, ue) {
5530
5530
  return ie.concat(Fn(ue) === nh ? n_(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, V = [Ft, ln].indexOf(L) >= 0, T = V ? "width" : "height", P = wo(e, { placement: R, boundary: u, rootBoundary: d, altBoundary: h, padding: c }), B = V ? k ? cn : Vt : k ? ln : Ft;
5532
+ var R = w[D], L = Fn(R), k = ir(R) === er, F = [Ft, ln].indexOf(L) >= 0, T = F ? "width" : "height", P = wo(e, { placement: R, boundary: u, rootBoundary: d, altBoundary: h, padding: c }), B = F ? k ? cn : Vt : k ? ln : Ft;
5533
5533
  S[T] > C[T] && (B = Sa(B));
5534
- var F = Sa(B), Q = [];
5535
- if (r && Q.push(P[L] <= 0), a && Q.push(P[B] <= 0, P[F] <= 0), Q.every(function(ie) {
5534
+ var V = Sa(B), Q = [];
5535
+ if (r && Q.push(P[L] <= 0), a && Q.push(P[B] <= 0, P[V] <= 0), Q.every(function(ie) {
5536
5536
  return ie;
5537
5537
  })) {
5538
5538
  _ = R, M = !1;
@@ -5592,7 +5592,7 @@ function f_(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 = oh(y), S = d_(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, V = w === "y" ? Ft : Vt, T = w === "y" ? ln : cn, P = w === "y" ? "height" : "width", B = C[w], F = B + m[V], Q = B - m[T], me = f ? -M[P] / 2 : 0, W = b === er ? x[P] : M[P], q = b === er ? -M[P] : -x[P], $ = e.elements.arrow, ie = f && $ ? rh($) : { width: 0, height: 0 }, ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Gm(), 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 = B + Mt - Pt - Dn, Os = B + Ie - Pt, Es = to(f ? Ha(F, fn) : F, B, f ? mi(Q, Os) : Q);
5595
+ var k, F = w === "y" ? Ft : Vt, T = w === "y" ? ln : cn, P = w === "y" ? "height" : "width", B = C[w], V = B + m[F], Q = B - m[T], me = f ? -M[P] / 2 : 0, W = b === er ? x[P] : M[P], q = b === er ? -M[P] : -x[P], $ = e.elements.arrow, ie = f && $ ? rh($) : { width: 0, height: 0 }, ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Gm(), de = ue[F], 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 = B + Mt - Pt - Dn, Os = B + Ie - Pt, Es = to(f ? Ha(V, fn) : V, B, f ? mi(Q, Os) : Q);
5596
5596
  C[w] = Es, L[w] = Es - B;
5597
5597
  }
5598
5598
  if (a) {
@@ -6393,13 +6393,13 @@ const Q_ = 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) || ""), V = z(() => k.value && iT[k.value]), T = z(() => w.value ? Rm : JA), P = z(() => [
6396
+ }), k = z(() => (d == null ? void 0 : d.validateState) || ""), F = z(() => k.value && iT[k.value]), T = z(() => w.value ? Rm : JA), P = z(() => [
6397
6397
  i.style
6398
6398
  ]), B = z(() => [
6399
6399
  s.inputStyle,
6400
6400
  C.value,
6401
6401
  { resize: s.resize }
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), $ = 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] = I_(y);
6402
+ ]), V = z(() => jl(s.modelValue) ? "" : String(s.modelValue)), Q = z(() => s.clearable && !g.value && !s.readonly && !!V.value && (_.value || v.value)), me = z(() => s.showPassword && !g.value && !!V.value && (!!V.value || _.value)), W = z(() => s.showWordLimit && !!s.maxlength && (s.type === "text" || s.type === "textarea") && !g.value && !s.readonly && !s.showPassword), q = z(() => V.value.length), $ = 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] = I_(y);
6403
6403
  gp(b, (J) => {
6404
6404
  if (Mt(), !W.value || s.resize !== "both")
6405
6405
  return;
@@ -6432,13 +6432,13 @@ const Q_ = 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(F.value) : F.value;
6435
+ const J = x.value, je = s.formatter ? s.formatter(V.value) : V.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 === F.value) {
6441
+ if (je === V.value) {
6442
6442
  Ie();
6443
6443
  return;
6444
6444
  }
@@ -6474,7 +6474,7 @@ const Q_ = 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(F, () => Ie()), _e(() => s.type, async () => {
6477
+ }), _e(V, () => 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 Q_ = 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(V) && A(L) ? (H(), ye(A(jn), {
6614
+ A(k) && A(F) && 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 Q_ = mt({
6620
6620
  ])
6621
6621
  }, {
6622
6622
  default: N(() => [
6623
- (H(), ye(Wt(A(V))))
6623
+ (H(), ye(Wt(A(F))))
6624
6624
  ]),
6625
6625
  _: 1
6626
6626
  }, 8, ["class"])) : we("v-if", !0)
@@ -7372,12 +7372,12 @@ const LN = 0, IN = (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, V) => {
7375
+ _e(() => s.triggerTargetEl, (k, F) => {
7376
7376
  D == null || D(), D = void 0;
7377
- const T = A(k || f.value), P = A(V || f.value);
7377
+ const T = A(k || f.value), P = A(F || f.value);
7378
7378
  ds(T) && (D = _e([m, () => s.ariaLabel, b, () => s.id], (B) => {
7379
- ["role", "aria-label", "aria-modal", "id"].forEach((F, Q) => {
7380
- jl(B[Q]) ? T.removeAttribute(F) : T.setAttribute(F, B[Q]);
7379
+ ["role", "aria-label", "aria-modal", "id"].forEach((V, Q) => {
7380
+ jl(B[Q]) ? T.removeAttribute(V) : T.setAttribute(V, B[Q]);
7381
7381
  });
7382
7382
  }, { immediate: !0 })), P !== T && ds(P) && ["role", "aria-label", "aria-modal", "id"].forEach((B) => {
7383
7383
  P.removeAttribute(B);
@@ -7390,7 +7390,7 @@ const LN = 0, IN = (n) => {
7390
7390
  popperInstanceRef: p,
7391
7391
  updatePopper: R,
7392
7392
  contentStyle: C
7393
- }), (k, V) => (H(), le("div", Bs({
7393
+ }), (k, F) => (H(), le("div", Bs({
7394
7394
  ref_key: "contentRef",
7395
7395
  ref: f
7396
7396
  }, A(w), {
@@ -7579,7 +7579,7 @@ const tk = Ti(ek), nk = fe({
7579
7579
  (B = (P = r.value) == null ? void 0 : P.updatePopper) == null || B.call(P), p == null || p();
7580
7580
  }, k = () => {
7581
7581
  m == null || m();
7582
- }, V = () => {
7582
+ }, F = () => {
7583
7583
  f(), o = aS(z(() => {
7584
7584
  var P;
7585
7585
  return (P = r.value) == null ? void 0 : P.popperContentRef;
@@ -7609,7 +7609,7 @@ const tk = Ti(ek), nk = fe({
7609
7609
  name: A(y),
7610
7610
  onAfterLeave: M,
7611
7611
  onBeforeEnter: L,
7612
- onAfterEnter: V,
7612
+ onAfterEnter: F,
7613
7613
  onBeforeLeave: k
7614
7614
  }, {
7615
7615
  default: N(() => [
@@ -9075,8 +9075,8 @@ const Ke = rT(rr, "$message"), sR = 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 B, F;
9079
- P && (n.boxType !== "prompt" && (c.autofocus ? y.value = (F = (B = v.value) == null ? void 0 : B.$el) != null ? F : p.value : y.value = p.value), c.zIndex = a()), n.boxType === "prompt" && (P ? Rt().then(() => {
9078
+ var B, V;
9079
+ P && (n.boxType !== "prompt" && (c.autofocus ? y.value = (V = (B = v.value) == null ? void 0 : B.$el) != null ? V : 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 = rT(rr, "$message"), sR = fe({
9107
9107
  return c.editorErrorMessage = c.inputErrorMessage || o("el.messagebox.error"), c.validateError = !0, !1;
9108
9108
  const B = c.inputValidator;
9109
9109
  if (typeof B == "function") {
9110
- const F = B(c.inputValue);
9111
- if (F === !1)
9110
+ const V = B(c.inputValue);
9111
+ if (V === !1)
9112
9112
  return c.editorErrorMessage = c.inputErrorMessage || o("el.messagebox.error"), c.validateError = !0, !1;
9113
- if (typeof F == "string")
9114
- return c.editorErrorMessage = F, c.validateError = !0, !1;
9113
+ if (typeof V == "string")
9114
+ return c.editorErrorMessage = V, 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
- }, V = () => {
9121
+ }, F = () => {
9122
9122
  R("close");
9123
9123
  }, T = () => {
9124
- n.closeOnPressEscape && V();
9124
+ n.closeOnPressEscape && F();
9125
9125
  };
9126
9126
  return n.lockScroll && wT(l), {
9127
9127
  ...Z0(c),
@@ -9141,7 +9141,7 @@ const Ke = rT(rr, "$message"), sR = fe({
9141
9141
  inputRef: b,
9142
9142
  confirmRef: v,
9143
9143
  doClose: x,
9144
- handleClose: V,
9144
+ handleClose: F,
9145
9145
  onCloseRequested: T,
9146
9146
  handleWrapperClick: M,
9147
9147
  handleInputEnter: D,
@@ -11300,10 +11300,10 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11300
11300
  payload: Object
11301
11301
  },
11302
11302
  setup(n) {
11303
- var h, f, g, p, m, y, b, v, w, S, C, x, M, _, D, R, L, k, V, T, P;
11303
+ var h, f, g, p, m, y, b, v, w, S, C, x, M, _, D, R, L, k, F, T, P;
11304
11304
  const e = n;
11305
11305
  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 = (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 = (B) => {
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 = (F = (k = e.payload.value.options) == null ? void 0 : k.grid) == null ? void 0 : F.args) == null ? void 0 : T[1]) == null ? void 0 : P.thickness) || 1), c = U("1"), u = (B) => {
11307
11307
  e.payload.value.drawBackground({
11308
11308
  color: B
11309
11309
  });
@@ -11324,12 +11324,12 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11324
11324
  ]
11325
11325
  });
11326
11326
  };
11327
- return (B, F) => {
11327
+ return (B, V) => {
11328
11328
  const Q = Z("el-col"), me = Z("el-color-picker"), W = Z("el-row"), q = Z("el-switch"), $ = Z("el-input-number"), ie = Z("el-collapse-item"), ue = Z("el-collapse");
11329
11329
  return H(), le("div", WD, [
11330
11330
  E(ue, {
11331
11331
  modelValue: c.value,
11332
- "onUpdate:modelValue": F[7] || (F[7] = (de) => c.value = de),
11332
+ "onUpdate:modelValue": V[7] || (V[7] = (de) => c.value = de),
11333
11333
  accordion: ""
11334
11334
  }, {
11335
11335
  default: N(() => [
@@ -11342,7 +11342,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11342
11342
  E(W, { gutter: 20 }, {
11343
11343
  default: N(() => [
11344
11344
  E(Q, { span: 12 }, {
11345
- default: N(() => F[8] || (F[8] = [
11345
+ default: N(() => V[8] || (V[8] = [
11346
11346
  X("div", { class: "row-label" }, "背景色", -1)
11347
11347
  ])),
11348
11348
  _: 1
@@ -11351,7 +11351,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11351
11351
  default: N(() => [
11352
11352
  E(me, {
11353
11353
  modelValue: t.value,
11354
- "onUpdate:modelValue": F[0] || (F[0] = (de) => t.value = de),
11354
+ "onUpdate:modelValue": V[0] || (V[0] = (de) => t.value = de),
11355
11355
  size: "small",
11356
11356
  "show-alpha": "",
11357
11357
  onChange: u
@@ -11365,7 +11365,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11365
11365
  E(W, { gutter: 20 }, {
11366
11366
  default: N(() => [
11367
11367
  E(Q, { span: 12 }, {
11368
- default: N(() => F[9] || (F[9] = [
11368
+ default: N(() => V[9] || (V[9] = [
11369
11369
  X("div", { class: "row-label" }, "网格", -1)
11370
11370
  ])),
11371
11371
  _: 1
@@ -11374,7 +11374,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11374
11374
  default: N(() => [
11375
11375
  E(q, {
11376
11376
  modelValue: s.value,
11377
- "onUpdate:modelValue": F[1] || (F[1] = (de) => s.value = de),
11377
+ "onUpdate:modelValue": V[1] || (V[1] = (de) => s.value = de),
11378
11378
  "active-value": !0,
11379
11379
  "inactive-value": !1,
11380
11380
  size: "small",
@@ -11389,7 +11389,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11389
11389
  E(W, { gutter: 20 }, {
11390
11390
  default: N(() => [
11391
11391
  E(Q, { span: 12 }, {
11392
- default: N(() => F[10] || (F[10] = [
11392
+ default: N(() => V[10] || (V[10] = [
11393
11393
  X("div", { class: "row-label" }, "网格大小", -1)
11394
11394
  ])),
11395
11395
  _: 1
@@ -11398,7 +11398,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11398
11398
  default: N(() => [
11399
11399
  E($, {
11400
11400
  modelValue: i.value,
11401
- "onUpdate:modelValue": F[2] || (F[2] = (de) => i.value = de),
11401
+ "onUpdate:modelValue": V[2] || (V[2] = (de) => i.value = de),
11402
11402
  min: 1,
11403
11403
  max: 20,
11404
11404
  size: "small",
@@ -11414,7 +11414,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11414
11414
  E(W, { gutter: 20 }, {
11415
11415
  default: N(() => [
11416
11416
  E(Q, { span: 12 }, {
11417
- default: N(() => F[11] || (F[11] = [
11417
+ default: N(() => V[11] || (V[11] = [
11418
11418
  X("div", { class: "row-label" }, "主网格颜色", -1)
11419
11419
  ])),
11420
11420
  _: 1
@@ -11423,7 +11423,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11423
11423
  default: N(() => [
11424
11424
  E(me, {
11425
11425
  modelValue: r.value,
11426
- "onUpdate:modelValue": F[3] || (F[3] = (de) => r.value = de),
11426
+ "onUpdate:modelValue": V[3] || (V[3] = (de) => r.value = de),
11427
11427
  size: "small",
11428
11428
  "show-alpha": "",
11429
11429
  onChange: d
@@ -11437,7 +11437,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11437
11437
  E(W, { gutter: 20 }, {
11438
11438
  default: N(() => [
11439
11439
  E(Q, { span: 12 }, {
11440
- default: N(() => F[12] || (F[12] = [
11440
+ default: N(() => V[12] || (V[12] = [
11441
11441
  X("div", { class: "row-label" }, "次网格颜色", -1)
11442
11442
  ])),
11443
11443
  _: 1
@@ -11446,7 +11446,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11446
11446
  default: N(() => [
11447
11447
  E(me, {
11448
11448
  modelValue: a.value,
11449
- "onUpdate:modelValue": F[4] || (F[4] = (de) => a.value = de),
11449
+ "onUpdate:modelValue": V[4] || (V[4] = (de) => a.value = de),
11450
11450
  size: "small",
11451
11451
  "show-alpha": "",
11452
11452
  onChange: d
@@ -11460,7 +11460,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11460
11460
  E(W, { gutter: 20 }, {
11461
11461
  default: N(() => [
11462
11462
  E(Q, { span: 12 }, {
11463
- default: N(() => F[13] || (F[13] = [
11463
+ default: N(() => V[13] || (V[13] = [
11464
11464
  X("div", { class: "row-label" }, "主网格粗细", -1)
11465
11465
  ])),
11466
11466
  _: 1
@@ -11469,7 +11469,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11469
11469
  default: N(() => [
11470
11470
  E($, {
11471
11471
  modelValue: o.value,
11472
- "onUpdate:modelValue": F[5] || (F[5] = (de) => o.value = de),
11472
+ "onUpdate:modelValue": V[5] || (V[5] = (de) => o.value = de),
11473
11473
  min: 0.5,
11474
11474
  max: 10,
11475
11475
  size: "small",
@@ -11485,7 +11485,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11485
11485
  E(W, { gutter: 20 }, {
11486
11486
  default: N(() => [
11487
11487
  E(Q, { span: 12 }, {
11488
- default: N(() => F[14] || (F[14] = [
11488
+ default: N(() => V[14] || (V[14] = [
11489
11489
  X("div", { class: "row-label" }, "次网格粗细", -1)
11490
11490
  ])),
11491
11491
  _: 1
@@ -11494,7 +11494,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11494
11494
  default: N(() => [
11495
11495
  E($, {
11496
11496
  modelValue: l.value,
11497
- "onUpdate:modelValue": F[6] || (F[6] = (de) => l.value = de),
11497
+ "onUpdate:modelValue": V[6] || (V[6] = (de) => l.value = de),
11498
11498
  min: 0.5,
11499
11499
  max: 10,
11500
11500
  size: "small",
@@ -11525,8 +11525,8 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11525
11525
  payload: Object
11526
11526
  },
11527
11527
  setup(n) {
11528
- var F, Q, me, W;
11529
- const e = n, t = U((F = e.payload.attrs.label) != null && F.textAnchor ? "0" : "1"), s = U([]), i = U([]), r = () => {
11528
+ var V, Q, me, W;
11529
+ const e = n, t = U((V = e.payload.attrs.label) != null && V.textAnchor ? "0" : "1"), s = U([]), i = U([]), r = () => {
11530
11530
  Co("/cny/custom/deviceList").then((q) => {
11531
11531
  s.value = q.data;
11532
11532
  });
@@ -11585,7 +11585,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11585
11585
  y: Number(q.args.y.replace("%", ""))
11586
11586
  }
11587
11587
  }))));
11588
- }, V = () => {
11588
+ }, F = () => {
11589
11589
  const q = Yl;
11590
11590
  q.attrs.text.text = `${e.payload.getPorts().length + 1}`, q.args.x = "50%", q.args.y = "50%", e.payload.addPorts([
11591
11591
  {
@@ -11973,7 +11973,7 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
11973
11973
  default: N(() => [
11974
11974
  E(Os, {
11975
11975
  type: "primary",
11976
- onClick: V,
11976
+ onClick: F,
11977
11977
  size: "small"
11978
11978
  }, {
11979
11979
  default: N(() => $[23] || ($[23] = [
@@ -13736,11 +13736,11 @@ function Cb(n, e, t = {}) {
13736
13736
  let L, k = S[_];
13737
13737
  if (k)
13738
13738
  if (c) {
13739
- const V = AL(k, c, {
13739
+ const F = AL(k, c, {
13740
13740
  offset: -v,
13741
13741
  includeAnnotationIndices: l
13742
13742
  });
13743
- L = FL(R, V, {
13743
+ L = FL(R, F, {
13744
13744
  eol: _ !== x && s,
13745
13745
  baseSize: m,
13746
13746
  lineHeight: d ? null : h,
@@ -13752,8 +13752,8 @@ function Cb(n, e, t = {}) {
13752
13752
  s && _ !== x && (k += s), R.textContent = k;
13753
13753
  else {
13754
13754
  R.textContent = "-", D += " v-empty-line";
13755
- const V = R.style;
13756
- V.fillOpacity = 0, V.strokeOpacity = 0, c && (L = {});
13755
+ const F = R.style;
13756
+ F.fillOpacity = 0, F.strokeOpacity = 0, c && (L = {});
13757
13757
  }
13758
13758
  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
13759
  }
@@ -15006,23 +15006,23 @@ class ls {
15006
15006
  n.makeGrey = a;
15007
15007
  function l(v, w, S, C) {
15008
15008
  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 V = 0, T = 0;
15009
+ let F = 0, T = 0;
15010
15010
  if (L !== R) {
15011
15011
  const P = R - L;
15012
15012
  switch (T = k > 0.5 ? P / (2 - R - L) : P / (R + L), R) {
15013
15013
  case x:
15014
- V = (M - _) / P + (M < _ ? 6 : 0);
15014
+ F = (M - _) / P + (M < _ ? 6 : 0);
15015
15015
  break;
15016
15016
  case M:
15017
- V = (_ - x) / P + 2;
15017
+ F = (_ - x) / P + 2;
15018
15018
  break;
15019
15019
  case _:
15020
- V = (x - M) / P + 4;
15020
+ F = (x - M) / P + 4;
15021
15021
  break;
15022
15022
  }
15023
- V /= 6;
15023
+ F /= 6;
15024
15024
  }
15025
- return [V, T, k, D ?? 1];
15025
+ return [F, T, k, D ?? 1];
15026
15026
  }
15027
15027
  n.rgba2hsla = l;
15028
15028
  function c(v, w, S, C) {
@@ -15450,33 +15450,33 @@ var Ci;
15450
15450
  }
15451
15451
  n.easeOutBack = x;
15452
15452
  function M(T, P = 1.70158) {
15453
- const B = T * 2, F = B - 2, Q = P * 1.525;
15454
- return B < 1 ? 0.5 * B * B * ((Q + 1) * B - Q) : 0.5 * (F * F * ((Q + 1) * F + Q) + 2);
15453
+ const B = T * 2, V = B - 2, Q = P * 1.525;
15454
+ return B < 1 ? 0.5 * B * B * ((Q + 1) * B - Q) : 0.5 * (V * V * ((Q + 1) * V + Q) + 2);
15455
15455
  }
15456
15456
  n.easeInOutBack = M;
15457
15457
  function _(T, P = 0.7) {
15458
15458
  if (T === 0 || T === 1)
15459
15459
  return T;
15460
- const F = T / 1 - 1, Q = 1 - P, me = Q / (2 * Math.PI) * Math.asin(1);
15461
- return -(Math.pow(2, 10 * F) * // eslint-disable-line
15462
- Math.sin((F - me) * (2 * Math.PI) / Q));
15460
+ const V = T / 1 - 1, Q = 1 - P, me = Q / (2 * Math.PI) * Math.asin(1);
15461
+ return -(Math.pow(2, 10 * V) * // eslint-disable-line
15462
+ Math.sin((V - me) * (2 * Math.PI) / Q));
15463
15463
  }
15464
15464
  n.easeInElastic = _;
15465
15465
  function D(T, P = 0.7) {
15466
- const B = 1 - P, F = T * 2;
15466
+ const B = 1 - P, V = T * 2;
15467
15467
  if (T === 0 || T === 1)
15468
15468
  return T;
15469
15469
  const Q = B / (2 * Math.PI) * Math.asin(1);
15470
- return Math.pow(2, -10 * F) * // eslint-disable-line
15471
- Math.sin((F - Q) * (2 * Math.PI) / B) + 1;
15470
+ return Math.pow(2, -10 * V) * // eslint-disable-line
15471
+ Math.sin((V - Q) * (2 * Math.PI) / B) + 1;
15472
15472
  }
15473
15473
  n.easeOutElastic = D;
15474
15474
  function R(T, P = 0.65) {
15475
15475
  const B = 1 - P;
15476
15476
  if (T === 0 || T === 1)
15477
15477
  return T;
15478
- const F = T * 2, Q = F - 1, me = B / (2 * Math.PI) * Math.asin(1);
15479
- return F < 1 ? -0.5 * (Math.pow(2, 10 * Q) * // eslint-disable-line
15478
+ const V = T * 2, Q = V - 1, me = B / (2 * Math.PI) * Math.asin(1);
15479
+ return V < 1 ? -0.5 * (Math.pow(2, 10 * Q) * // eslint-disable-line
15480
15480
  Math.sin((Q - me) * (2 * Math.PI) / B)) : Math.pow(2, -10 * Q) * // eslint-disable-line
15481
15481
  Math.sin((Q - me) * (2 * Math.PI) / B) * 0.5 + 1;
15482
15482
  }
@@ -15503,10 +15503,10 @@ var Ci;
15503
15503
  return 1 - L(1 - T);
15504
15504
  }
15505
15505
  n.easeInBounce = k;
15506
- function V(T) {
15506
+ function F(T) {
15507
15507
  return T < 0.5 ? k(T * 2) * 0.5 : L(T * 2 - 1) * 0.5 + 0.5;
15508
15508
  }
15509
- n.easeInOutBounce = V;
15509
+ n.easeInOutBounce = F;
15510
15510
  })(Ci || (Ci = {}));
15511
15511
  var fi;
15512
15512
  (function(n) {
@@ -16743,12 +16743,12 @@ function tl(n, e, t, s, i = 0, r = 0, o = 0, a, l) {
16743
16743
  _ = Math.atan2((-g - C) / s, (-f - S) / t) - Math.atan2((g - C) / s, (f - S) / t);
16744
16744
  let R = _ >= 0 ? _ : 2 * Math.PI + _;
16745
16745
  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), V = R / k, T = 8 / 3 * Math.sin(V / 4) * Math.sin(V / 4) / Math.sin(V / 2), P = d * t, B = d * s, F = h * t, Q = h * s;
16747
- let me = Math.cos(D), W = Math.sin(D), q = -T * (P * W + Q * me), $ = -T * (F * W - B * me), ie = 0, ue = 0;
16746
+ const L = R * 2 / Math.PI, k = Math.ceil(L < 0 ? -1 * L : L), F = R / k, T = 8 / 3 * Math.sin(F / 4) * Math.sin(F / 4) / Math.sin(F / 2), P = d * t, B = d * s, V = h * t, Q = h * s;
16747
+ let me = Math.cos(D), W = Math.sin(D), q = -T * (P * W + Q * me), $ = -T * (V * W - B * me), ie = 0, ue = 0;
16748
16748
  const de = [];
16749
16749
  for (let ce = 0; ce < k; ce += 1) {
16750
- D += V, me = Math.cos(D), W = Math.sin(D), ie = P * me - Q * W + x, ue = F * me + B * W + M;
16751
- const Oe = -T * (P * W + Q * me), Mt = -T * (F * W - B * me), Ie = ce * 6;
16750
+ D += F, me = Math.cos(D), W = Math.sin(D), ie = P * me - Q * W + x, ue = V * me + B * W + M;
16751
+ const Oe = -T * (P * W + Q * me), Mt = -T * (V * W - B * me), Ie = ce * 6;
16752
16752
  de[Ie] = Number(q + n), de[Ie + 1] = Number($ + 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, $ = ue + Mt;
16753
16753
  }
16754
16754
  return de.map((ce) => +ce.toFixed(2));
@@ -17047,8 +17047,8 @@ class Xe extends ti {
17047
17047
  for (; D; )
17048
17048
  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
17049
  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]), V = Math.max.apply(null, g[0]), T = Math.max.apply(null, g[1]);
17051
- return new Y(L, k, V - L, T - k);
17050
+ const L = Math.min.apply(null, g[0]), k = Math.min.apply(null, g[1]), F = Math.max.apply(null, g[0]), T = Math.max.apply(null, g[1]);
17051
+ return new Y(L, k, F - L, T - k);
17052
17052
  }
17053
17053
  closestPoint(e, t = {}) {
17054
17054
  return this.pointAtT(this.closestPointT(e, t));
@@ -17845,18 +17845,18 @@ function kb(n, e, t, s, i, r, o, a, l, c) {
17845
17845
  g = c[0], p = c[1], m = c[2], y = c[3];
17846
17846
  else {
17847
17847
  f = ha(n, e, -d), n = f.x, e = f.y, f = ha(a, l, -d), a = f.x, l = f.y;
17848
- const V = (n - a) / 2, T = (e - l) / 2;
17849
- let P = V * V / (t * t) + T * T / (s * s);
17848
+ const F = (n - a) / 2, T = (e - l) / 2;
17849
+ let P = F * F / (t * t) + T * T / (s * s);
17850
17850
  P > 1 && (P = Math.sqrt(P), t = P * t, s = P * s);
17851
- const B = t * t, F = s * s, Q = (r === o ? -1 : 1) * Math.sqrt(Math.abs((B * F - B * T * T - F * V * V) / (B * T * T + F * V * V)));
17852
- 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);
17851
+ const B = t * t, V = s * s, Q = (r === o ? -1 : 1) * Math.sqrt(Math.abs((B * V - B * T * T - V * F * F) / (B * T * T + V * F * F)));
17852
+ m = Q * t * T / s + (n + a) / 2, y = Q * -s * F / 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
17853
  }
17854
17854
  let b = p - g;
17855
17855
  if (Math.abs(b) > u) {
17856
- const V = p, T = a, P = l;
17856
+ const F = p, T = a, P = l;
17857
17857
  p = g + u * (o && p > g ? 1 : -1), a = m + t * Math.cos(p), l = y + s * Math.sin(p), h = kb(a, l, t, s, i, 0, o, T, P, [
17858
17858
  p,
17859
- V,
17859
+ F,
17860
17860
  m,
17861
17861
  y
17862
17862
  ]);
@@ -17867,10 +17867,10 @@ function kb(n, e, t, s, i, r, o, a, l, c) {
17867
17867
  return [R, L, k].concat(h);
17868
17868
  {
17869
17869
  h = [R, L, k].concat(h).join().split(",");
17870
- const V = [], T = h.length;
17870
+ const F = [], T = h.length;
17871
17871
  for (let P = 0; P < T; P += 1)
17872
- V[P] = P % 2 ? ha(+h[P - 1], +h[P], d).y : ha(+h[P], +h[P + 1], d).x;
17873
- return V;
17872
+ F[P] = P % 2 ? ha(+h[P - 1], +h[P], d).y : ha(+h[P], +h[P + 1], d).x;
17873
+ return F;
17874
17874
  }
17875
17875
  }
17876
17876
  function mI(n) {
@@ -23016,14 +23016,14 @@ function SB(n, e, t, s, i) {
23016
23016
  }, []), M = O.equalPoints(d, h);
23017
23017
  let _ = i.maxLoopCount;
23018
23018
  for (; !f.isEmpty() && _ > 0; ) {
23019
- const D = f.pop(), R = g[D], L = p[D], k = m[D], V = R.equals(c), T = L == null;
23019
+ const D = f.pop(), R = g[D], L = p[D], k = m[D], F = R.equals(c), T = L == null;
23020
23020
  let P;
23021
- 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)
23021
+ if (T ? b ? F ? 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
23022
  return i.previousDirectionAngle = P, xB(p, g, R, c, u);
23023
- for (let F = 0; F < C; F += 1) {
23024
- v = S[F];
23023
+ for (let V = 0; V < C; V += 1) {
23024
+ v = S[V];
23025
23025
  const Q = v.angle;
23026
- if (w = ag(P, Q), !(b && V) && w > i.maxDirectionChange)
23026
+ if (w = ag(P, Q), !(b && F) && w > i.maxDirectionChange)
23027
23027
  continue;
23028
23028
  const me = Ea(R.clone().translate(v.gridOffsetX || 0, v.gridOffsetY || 0), l, r), W = ao(me);
23029
23029
  if (f.isClose(W) || !s.isAccessible(me))
@@ -23033,7 +23033,7 @@ function SB(n, e, t, s, i) {
23033
23033
  if (ag(Q, de) > i.maxDirectionChange)
23034
23034
  continue;
23035
23035
  }
23036
- const q = v.cost, $ = V ? 0 : i.penalties[w], ie = k + q + $;
23036
+ const q = v.cost, $ = F ? 0 : i.penalties[w], ie = k + q + $;
23037
23037
  (!f.isOpen(W) || ie < m[W]) && (g[W] = me, p[W] = R, m[W] = ie, f.add(W, ie + cg(me, h)));
23038
23038
  }
23039
23039
  _ -= 1;
@@ -30833,8 +30833,8 @@ function w$(n, e = {}) {
30833
30833
  let M = 0, _ = 0, D = b.getSize();
30834
30834
  if (c) {
30835
30835
  let R = C - 2 * o, L = x - 2 * a;
30836
- const k = D.height * (D.width ? R / D.width : 1), V = D.width * (D.height ? L / D.height : 1);
30837
- x < k ? R = V : L = k, D = {
30836
+ const k = D.height * (D.width ? R / D.width : 1), F = D.width * (D.height ? L / D.height : 1);
30837
+ x < k ? R = F : L = k, D = {
30838
30838
  width: R,
30839
30839
  height: L
30840
30840
  }, b.setSize(D, e);
@@ -31967,12 +31967,12 @@ class N0 extends Pe {
31967
31967
  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
31968
  if (this.isIgnored(e, L))
31969
31969
  return !1;
31970
- const k = L.getBBox().bbox(L.getAngle()), V = k.getTopLeft(), T = k.getBottomRight(), P = {
31971
- vertical: [V.x, T.x],
31972
- horizontal: [V.y, T.y]
31970
+ const k = L.getBBox().bbox(L.getAngle()), F = k.getTopLeft(), T = k.getBottomRight(), P = {
31971
+ vertical: [F.x, T.x],
31972
+ horizontal: [F.y, T.y]
31973
31973
  }, B = {};
31974
- return Object.keys(P).forEach((F) => {
31975
- const Q = F, me = P[Q].map((W) => ({
31974
+ return Object.keys(P).forEach((V) => {
31975
+ const Q = V, me = P[Q].map((W) => ({
31976
31976
  position: W,
31977
31977
  distance: Math.abs(W - m[Q])
31978
31978
  })).filter((W) => W.distance <= c);
@@ -31989,15 +31989,15 @@ class N0 extends Pe {
31989
31989
  f != null && u != null && (w < S ? (S = 0, f = void 0) : (w = 0, u = void 0));
31990
31990
  const k = Me.toRad(l % 90);
31991
31991
  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 V = L === 1 || L === 3;
31992
+ const F = L === 1 || L === 3;
31993
31993
  switch (v) {
31994
31994
  case "top":
31995
31995
  case "bottom":
31996
- x = S ? S / (V ? Math.cos(k) : Math.sin(k)) : w / (V ? Math.sin(k) : Math.cos(k));
31996
+ x = S ? S / (F ? Math.cos(k) : Math.sin(k)) : w / (F ? Math.sin(k) : Math.cos(k));
31997
31997
  break;
31998
31998
  case "left":
31999
31999
  case "right":
32000
- C = w ? w / (V ? Math.cos(k) : Math.sin(k)) : S / (V ? Math.sin(k) : Math.cos(k));
32000
+ C = w ? w / (F ? Math.cos(k) : Math.sin(k)) : S / (F ? Math.sin(k) : Math.cos(k));
32001
32001
  break;
32002
32002
  }
32003
32003
  }
@@ -32598,7 +32598,7 @@ var D0 = { exports: {} };
32598
32598
  return new C(x);
32599
32599
  M.target = x, M._callbacks = {}, M._directMap = {};
32600
32600
  var _ = {}, D, R = !1, L = !1, k = !1;
32601
- function V(W) {
32601
+ function F(W) {
32602
32602
  W = W || {};
32603
32603
  var q = !1, $;
32604
32604
  for ($ in _) {
@@ -32638,7 +32638,7 @@ var D0 = { exports: {} };
32638
32638
  Oe || P(ie[ue].callback, $, ie[ue].combo);
32639
32639
  }
32640
32640
  var Mt = $.type == "keypress" && L;
32641
- $.type == k && !m(W) && !Mt && V(de), L = Oe && $.type == "keydown";
32641
+ $.type == k && !m(W) && !Mt && F(de), L = Oe && $.type == "keydown";
32642
32642
  };
32643
32643
  function B(W) {
32644
32644
  typeof W.which != "number" && (W.which = W.keyCode);
@@ -32651,18 +32651,18 @@ var D0 = { exports: {} };
32651
32651
  M.handleKey(q, f(W), W);
32652
32652
  }
32653
32653
  }
32654
- function F() {
32655
- clearTimeout(D), D = setTimeout(V, 1e3);
32654
+ function V() {
32655
+ clearTimeout(D), D = setTimeout(F, 1e3);
32656
32656
  }
32657
32657
  function Q(W, q, $, ie) {
32658
32658
  _[W] = 0;
32659
32659
  function ue(Ie) {
32660
32660
  return function() {
32661
- k = Ie, ++_[W], F();
32661
+ k = Ie, ++_[W], V();
32662
32662
  };
32663
32663
  }
32664
32664
  function de(Ie) {
32665
- P($, Ie, W), ie !== "keyup" && (R = d(Ie)), setTimeout(V, 10);
32665
+ P($, Ie, W), ie !== "keyup" && (R = d(Ie)), setTimeout(F, 10);
32666
32666
  }
32667
32667
  for (var ce = 0; ce < q.length; ++ce) {
32668
32668
  var Oe = ce + 1 === q.length, Mt = Oe ? de : ue(ie || w(q[ce + 1]).action);
@@ -35307,11 +35307,11 @@ const F$ = { class: "control-box" }, V$ = {
35307
35307
  s.value.cleanSelection(), s.value.select(k), Ke.success("粘贴成功");
35308
35308
  }
35309
35309
  return !1;
35310
- }), 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 }) => {
35310
+ }), 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: F, y: T }) => {
35311
35311
  o.value = s, i.component = XD, i.label = "画布属性", r.value = K().valueOf();
35312
35312
  }), s.value.on("cell:click", ({ cell: k }) => {
35313
- var V, T, P;
35314
- 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") {
35313
+ var F, T, P;
35314
+ if (console.log("cell:click", k, ((F = k == null ? void 0 : k.data) == null ? void 0 : F.type) ?? (k == null ? void 0 : k.shape)), o.value = k, r.value = K().valueOf(), ((T = k.data) == null ? void 0 : T.type) === "text") {
35315
35315
  i.component = Ff, i.label = "文本属性";
35316
35316
  return;
35317
35317
  }
@@ -35361,31 +35361,36 @@ const F$ = { class: "control-box" }, V$ = {
35361
35361
  graphPadding: 30
35362
35362
  }
35363
35363
  ],
35364
- search(V, T) {
35364
+ search(F, T) {
35365
35365
  var P;
35366
- return ((P = V.label) == null ? void 0 : P.indexOf(T)) !== -1;
35366
+ return ((P = F.label) == null ? void 0 : P.indexOf(T)) !== -1;
35367
35367
  },
35368
35368
  placeholder: "搜索",
35369
- notFoundText: "未找到匹配项"
35369
+ notFoundText: "未找到匹配项",
35370
+ getDragNode: (F) => {
35371
+ const T = F.clone({ keepId: !0 });
35372
+ return T.label = "", T;
35373
+ },
35374
+ getDropNode: (F) => F.clone({ keepId: !0 })
35370
35375
  });
35371
35376
  const L = s.value.createNode({
35372
35377
  ...YD
35373
- }), k = pa.map((V) => (V.ports = pg, s.value.createNode(V)));
35374
- l.value.load([L, ...k], "基础组件"), Co("/cny/custom/groupList").then((V) => {
35375
- const T = (V == null ? void 0 : V.data) || [];
35378
+ }), k = pa.map((F) => (F.ports = pg, s.value.createNode(F)));
35379
+ l.value.load([L, ...k], "基础组件"), Co("/cny/custom/groupList").then((F) => {
35380
+ const T = (F == null ? void 0 : F.data) || [];
35376
35381
  T == null || T.forEach((P) => {
35377
35382
  l.value.addGroup({
35378
35383
  name: P == null ? void 0 : P.groupName,
35379
35384
  graphPadding: 30
35380
35385
  });
35381
- const B = P == null ? void 0 : P.pictureList.map((F) => {
35386
+ const B = P == null ? void 0 : P.pictureList.map((V) => {
35382
35387
  const Q = {
35383
35388
  shape: "image",
35384
- imageUrl: F == null ? void 0 : F.imageUrl,
35389
+ imageUrl: V == null ? void 0 : V.imageUrl,
35385
35390
  ports: pg,
35386
35391
  width: 64,
35387
35392
  height: 64,
35388
- label: F.imageName
35393
+ label: V.imageName
35389
35394
  };
35390
35395
  return s.value.createNode(Q);
35391
35396
  });
@@ -35400,13 +35405,13 @@ const F$ = { class: "control-box" }, V$ = {
35400
35405
  }
35401
35406
  T.addEventListener("mouseenter", (B) => {
35402
35407
  if (P > pa.length) {
35403
- const F = T.querySelector("text");
35404
- F && (F.style.display = "block");
35408
+ const V = T.querySelector("text");
35409
+ V && (V.style.display = "block");
35405
35410
  }
35406
35411
  }), T.addEventListener("mouseleave", (B) => {
35407
35412
  if (P > pa.length) {
35408
- const F = T.querySelector("text");
35409
- F && (F.style.display = "none");
35413
+ const V = T.querySelector("text");
35414
+ V && (V.style.display = "none");
35410
35415
  }
35411
35416
  });
35412
35417
  });
@@ -35442,10 +35447,10 @@ const F$ = { class: "control-box" }, V$ = {
35442
35447
  }, d = U(!1), h = U(null), f = () => {
35443
35448
  d.value = !0;
35444
35449
  const L = /* @__PURE__ */ new Date();
35445
- s.value.startBatch(L), s.value.disablePanning(), s.value.once("blank:mousedown", ({ e: k, x: V, y: T }) => {
35450
+ s.value.startBatch(L), s.value.disablePanning(), s.value.once("blank:mousedown", ({ e: k, x: F, y: T }) => {
35446
35451
  d.value && (h.value = s.value.addEdge({
35447
- source: { x: V, y: T },
35448
- target: { x: V, y: T },
35452
+ source: { x: F, y: T },
35453
+ target: { x: F, y: T },
35449
35454
  attrs: iu,
35450
35455
  data: {
35451
35456
  type: "edge",
@@ -35453,9 +35458,9 @@ const F$ = { class: "control-box" }, V$ = {
35453
35458
  },
35454
35459
  zIndex: 0
35455
35460
  }));
35456
- }), s.value.on("blank:mousemove", ({ e: k, x: V, y: T }) => {
35457
- d.value && h.value.setTarget({ x: V, y: T });
35458
- }), s.value.on("blank:mouseup", ({ e: k, x: V, y: T }) => {
35461
+ }), s.value.on("blank:mousemove", ({ e: k, x: F, y: T }) => {
35462
+ d.value && h.value.setTarget({ x: F, y: T });
35463
+ }), s.value.on("blank:mouseup", ({ e: k, x: F, y: T }) => {
35459
35464
  d.value = !1, s.value.enablePanning(), s.value.stopBatch(L);
35460
35465
  });
35461
35466
  }, g = () => {
@@ -35489,8 +35494,8 @@ const F$ = { class: "control-box" }, V$ = {
35489
35494
  s.value.drawBackground($f), s.value.drawGrid(zf), s.value.fromJSON({ cells: [] });
35490
35495
  return;
35491
35496
  }
35492
- const { background: L, grid: k, data: V } = await Ky(t.id);
35493
- s.value.drawBackground(L), s.value.drawGrid(k), s.value.fromJSON(V), g();
35497
+ const { background: L, grid: k, data: F } = await Ky(t.id);
35498
+ s.value.drawBackground(L), s.value.drawGrid(k), s.value.fromJSON(F), g();
35494
35499
  }, D = cs(null), R = () => {
35495
35500
  new ResizeObserver(() => {
35496
35501
  g();
@@ -35499,11 +35504,11 @@ const F$ = { class: "control-box" }, V$ = {
35499
35504
  return ot(() => {
35500
35505
  a(), c(), _(), R();
35501
35506
  }), (L, k) => {
35502
- const V = Z("el-icon"), T = Z("el-button"), P = Z("el-dropdown-item"), B = Z("el-dropdown-menu"), F = Z("el-dropdown"), Q = Z("el-scrollbar"), me = Z("el-dialog"), W = Z("el-drawer");
35507
+ const F = Z("el-icon"), T = Z("el-button"), P = Z("el-dropdown-item"), B = Z("el-dropdown-menu"), V = Z("el-dropdown"), Q = Z("el-scrollbar"), me = Z("el-dialog"), W = Z("el-drawer");
35503
35508
  return H(), le("div", s6, [
35504
35509
  X("div", i6, [
35505
35510
  X("div", r6, [
35506
- E(F, { onCommand: u }, {
35511
+ E(V, { onCommand: u }, {
35507
35512
  dropdown: N(() => [
35508
35513
  E(B, null, {
35509
35514
  default: N(() => [
@@ -35567,7 +35572,7 @@ const F$ = { class: "control-box" }, V$ = {
35567
35572
  }, {
35568
35573
  default: N(() => [
35569
35574
  k[3] || (k[3] = De("工具 ")),
35570
- E(V, null, {
35575
+ E(F, null, {
35571
35576
  default: N(() => [
35572
35577
  E(A(BA))
35573
35578
  ]),
@@ -35682,7 +35687,7 @@ const F$ = { class: "control-box" }, V$ = {
35682
35687
  ]);
35683
35688
  };
35684
35689
  }
35685
- }), g6 = /* @__PURE__ */ Ss(f6, [["__scopeId", "data-v-5518fcf6"]]), p6 = [
35690
+ }), g6 = /* @__PURE__ */ Ss(f6, [["__scopeId", "data-v-d5c1c90e"]]), p6 = [
35686
35691
  g6,
35687
35692
  $0
35688
35693
  ], z0 = (n, e) => {