mx-framework-plus 1.1.6 → 1.1.7

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.
@@ -1,4 +1,4 @@
1
- import { openBlock as L, createElementBlock as I, normalizeStyle as j, normalizeClass as J, createCommentVNode as _, toDisplayString as ee, Fragment as ge, renderList as ve, createElementVNode as le, resolveComponent as Ie, createBlock as me, ref as it, computed as Ae, createApp as rt, h as ot, inject as st, withDirectives as ut, resolveDynamicComponent as Ve, vShow as dt } from "vue";
1
+ import { openBlock as P, createElementBlock as D, normalizeStyle as j, normalizeClass as J, createCommentVNode as _, toDisplayString as ee, Fragment as ve, renderList as be, createElementVNode as le, resolveComponent as Ie, createBlock as me, ref as it, computed as Ae, createApp as rt, h as ot, inject as st, withDirectives as ut, resolveDynamicComponent as Ve, vShow as dt } from "vue";
2
2
  import ct from "element-plus";
3
3
  import "element-plus/dist/index.css";
4
4
  import mt from "yhz-ui-v3";
@@ -3930,14 +3930,14 @@ const vt = (t, e, l = {}) => {
3930
3930
  }, _e = (t, e, l = {}, s) => {
3931
3931
  let r = {}, m = We[de[t]];
3932
3932
  if (m && m.length > 0) {
3933
- let p = null, b = m.find((A) => A.key == "treeData"), x = m.find((A) => A.key == "compType"), v = [], h = [];
3933
+ let p = null, v = m.find((A) => A.key == "treeData"), x = m.find((A) => A.key == "compType"), g = [], h = [];
3934
3934
  if (l && Object.keys(l).length > 0)
3935
3935
  m.forEach((A) => {
3936
3936
  let z = l[A.key];
3937
3937
  z && (A = Object.assign(A, z)), h.push({ ...A });
3938
3938
  });
3939
3939
  else {
3940
- let A = ["RefreshButton", "BackButton", "SaveButton"], z = b && !A.includes(de[t]) && de[t] !== "ActionButton", g = {
3940
+ let A = ["RefreshButton", "BackButton", "SaveButton"], z = v && !A.includes(de[t]) && de[t] !== "ActionButton", C = {
3941
3941
  text: {
3942
3942
  animate: {
3943
3943
  isShow: !!z,
@@ -3967,14 +3967,14 @@ const vt = (t, e, l = {}) => {
3967
3967
  }
3968
3968
  }
3969
3969
  };
3970
- A.includes(de[t]) || (g.text.value = ""), m.forEach((T) => {
3971
- let D = g[T.key];
3972
- D && (T = Object.assign(T, D)), h.push({ ...T });
3970
+ A.includes(de[t]) || (C.text.value = ""), m.forEach((U) => {
3971
+ let I = C[U.key];
3972
+ I && (U = Object.assign(U, I)), h.push({ ...U });
3973
3973
  });
3974
3974
  }
3975
- if (b) {
3976
- let A = b.value || "ValueBinding";
3977
- v = [vt(A, e + 1, {
3975
+ if (v) {
3976
+ let A = v.value || "ValueBinding";
3977
+ g = [vt(A, e + 1, {
3978
3978
  ord: {
3979
3979
  value: "null",
3980
3980
  realPath: {
@@ -3989,7 +3989,7 @@ const vt = (t, e, l = {}) => {
3989
3989
  value: e,
3990
3990
  icon: Re[t],
3991
3991
  children: h,
3992
- treeData: v
3992
+ treeData: g
3993
3993
  };
3994
3994
  let k = {};
3995
3995
  return r.children.forEach((A) => {
@@ -4008,7 +4008,7 @@ function bt(t, e, l) {
4008
4008
  let m = t.getDefaultParent(), p = t.getModel();
4009
4009
  p.beginUpdate();
4010
4010
  try {
4011
- var b = t.insertEdge(
4011
+ var v = t.insertEdge(
4012
4012
  m,
4013
4013
  null,
4014
4014
  "",
@@ -4019,20 +4019,20 @@ function bt(t, e, l) {
4019
4019
  // 继承样式
4020
4020
  ), x = t.getCellGeometry(e);
4021
4021
  let h = x.getTerminalPoint(!0), k = l.x - h.x, N = l.y - h.y, A = x.getTerminalPoint(!1);
4022
- var v = new mxGeometry();
4023
- v.setTerminalPoint(
4022
+ var g = new mxGeometry();
4023
+ g.setTerminalPoint(
4024
4024
  new mxPoint(
4025
4025
  h.x + k,
4026
4026
  h.y + N
4027
4027
  ),
4028
4028
  !0
4029
- ), v.setTerminalPoint(
4029
+ ), g.setTerminalPoint(
4030
4030
  new mxPoint(
4031
4031
  A.x + k,
4032
4032
  A.y + N
4033
4033
  ),
4034
4034
  !1
4035
- ), b.setGeometry(v), b.value = e.value, b.type = e.type, b.model = "yes", b.type = "edge", b.iconName = e.iconName, s(b);
4035
+ ), v.setGeometry(g), v.value = e.value, v.type = e.type, v.model = "yes", v.type = "edge", v.iconName = e.iconName, s(v);
4036
4036
  } finally {
4037
4037
  p.endUpdate();
4038
4038
  }
@@ -4041,22 +4041,22 @@ function bt(t, e, l) {
4041
4041
  async function Ct(t, e, l, s) {
4042
4042
  if (e && e.length > 0) {
4043
4043
  let N = e[0];
4044
- var r = t.getCellGeometry(N), m = r.x, p = r.y, b = l.x, x = l.y, v = b - m, h = x - p;
4044
+ var r = t.getCellGeometry(N), m = r.x, p = r.y, v = l.x, x = l.y, g = v - m, h = x - p;
4045
4045
  t.getModel().beginUpdate();
4046
4046
  try {
4047
4047
  var k = t.getDefaultParent();
4048
4048
  let A = t.importCells(e, 0, 0, k), z = [];
4049
4049
  if (A != null) {
4050
- for (let g = 0; g < A.length; g++) {
4051
- const T = A[g];
4052
- T != null && z.push(T);
4050
+ for (let C = 0; C < A.length; C++) {
4051
+ const U = A[C];
4052
+ U != null && z.push(U);
4053
4053
  }
4054
- t.moveCells(z, v, h);
4055
- for (let g = 0; g < e.length; g++) {
4056
- let T = e[g];
4057
- if (T.type == "edge") {
4058
- let D = await bt(t, T, l);
4059
- z.push(D);
4054
+ t.moveCells(z, g, h);
4055
+ for (let C = 0; C < e.length; C++) {
4056
+ let U = e[C];
4057
+ if (U.type == "edge") {
4058
+ let I = await bt(t, U, l);
4059
+ z.push(I);
4060
4060
  }
4061
4061
  }
4062
4062
  }
@@ -4082,18 +4082,18 @@ function wt(t, e) {
4082
4082
  null,
4083
4083
  e.style
4084
4084
  // 继承样式
4085
- ), b = 10, x = 10, v = t.getCellGeometry(e);
4086
- let k = v.getTerminalPoint(!0), N = v.getTerminalPoint(!1);
4085
+ ), v = 10, x = 10, g = t.getCellGeometry(e);
4086
+ let k = g.getTerminalPoint(!0), N = g.getTerminalPoint(!1);
4087
4087
  var h = new mxGeometry();
4088
4088
  h.setTerminalPoint(
4089
4089
  new mxPoint(
4090
- k.x + b,
4090
+ k.x + v,
4091
4091
  k.y + x
4092
4092
  ),
4093
4093
  !0
4094
4094
  ), h.setTerminalPoint(
4095
4095
  new mxPoint(
4096
- N.x + b,
4096
+ N.x + v,
4097
4097
  N.y + x
4098
4098
  ),
4099
4099
  !1
@@ -4114,8 +4114,8 @@ async function kt(t, e, l) {
4114
4114
  if (r.length > 0)
4115
4115
  for (let m = 0; m < r.length; m++) {
4116
4116
  const p = r[m];
4117
- let b = await wt(t, p);
4118
- s.push(b);
4117
+ let v = await wt(t, p);
4118
+ s.push(v);
4119
4119
  }
4120
4120
  return t.addSelectionCells(s), s;
4121
4121
  }
@@ -4137,35 +4137,35 @@ function St(t) {
4137
4137
  var m = new Array();
4138
4138
  m = l.getSelectionCells();
4139
4139
  for (let p = 0; p < m.length; p++) {
4140
- const b = m[p];
4141
- s.add(r, b, 1);
4140
+ const v = m[p];
4141
+ s.add(r, v, 1);
4142
4142
  }
4143
4143
  }), t.addAction("upOne", function(e) {
4144
4144
  let l = t.graph, s = l.getModel(), r = l.getDefaultParent();
4145
4145
  var m = l.getSelectionCells();
4146
- let b = [...r.children];
4146
+ let v = [...r.children];
4147
4147
  if (m && m.length > 0)
4148
4148
  for (let x = 0; x < m.length; x++) {
4149
- const v = m[x];
4150
- let k = b.findIndex((N) => N.id == v.id) + x + 1;
4151
- b[k] && (k = k + 1), s.add(r, v, k);
4149
+ const g = m[x];
4150
+ let k = v.findIndex((N) => N.id == g.id) + x + 1;
4151
+ v[k] && (k = k + 1), s.add(r, g, k);
4152
4152
  }
4153
4153
  }), t.addAction("downOne", function(e) {
4154
4154
  let l = t.graph, s = l.getModel(), r = l.getDefaultParent();
4155
4155
  var m = l.getSelectionCells();
4156
4156
  let p = r.children;
4157
4157
  if (m && m.length > 0)
4158
- for (let b = 0; b < m.length; b++) {
4159
- const x = m[b], v = p.findIndex((k) => k.id == x.id), h = v - 1 < 1 ? 1 : v - 1;
4158
+ for (let v = 0; v < m.length; v++) {
4159
+ const x = m[v], g = p.findIndex((k) => k.id == x.id), h = g - 1 < 1 ? 1 : g - 1;
4160
4160
  s.add(r, x, h);
4161
4161
  }
4162
4162
  });
4163
4163
  }
4164
4164
  async function Be(t, e, l, s) {
4165
- let { pt: r, style: m, me: p, type: b, iconCls: x } = l, v = p.editor;
4165
+ let { pt: r, style: m, me: p, type: v, iconCls: x } = l, g = p.editor;
4166
4166
  switch (t) {
4167
4167
  case "add":
4168
- let { style: k, compType: N, data: A } = _e(b, 0, null);
4168
+ let { style: k, compType: N, data: A } = _e(v, 0, null);
4169
4169
  if (!A)
4170
4170
  return;
4171
4171
  N ? await p.createCustomComponent({
@@ -4173,12 +4173,12 @@ async function Be(t, e, l, s) {
4173
4173
  style: myedit.getBaseAttr(A, props.thisTab),
4174
4174
  data: A,
4175
4175
  pt: r,
4176
- type: b,
4176
+ type: v,
4177
4177
  tmpType: N,
4178
- realType: b,
4178
+ realType: v,
4179
4179
  iconName: x.replace("iconfont ", "")
4180
4180
  }
4181
- }) : b == "kitUI:PictureWidget" ? p.createAllVertex(
4181
+ }) : v == "kitUI:PictureWidget" ? p.createAllVertex(
4182
4182
  "img",
4183
4183
  [{
4184
4184
  iconName: x.replace("iconfont ", ""),
@@ -4187,7 +4187,7 @@ async function Be(t, e, l, s) {
4187
4187
  w: k.layout.width,
4188
4188
  h: k.layout.height,
4189
4189
  pt: r,
4190
- realType: b
4190
+ realType: v
4191
4191
  }]
4192
4192
  ) : p.addVertex({
4193
4193
  options: {
@@ -4197,7 +4197,7 @@ async function Be(t, e, l, s) {
4197
4197
  w: k.layout.width,
4198
4198
  h: k.layout.height,
4199
4199
  pt: r,
4200
- realType: b
4200
+ realType: v
4201
4201
  }
4202
4202
  });
4203
4203
  break;
@@ -4218,41 +4218,41 @@ async function Be(t, e, l, s) {
4218
4218
  h = e.getSelectionCells(), mxClipboard.copy(e, h), s.handelEvent({ key: "copy", val: h });
4219
4219
  break;
4220
4220
  case "paste":
4221
- const g = mxClipboard.cells;
4222
- Ct(e, g, r, s);
4221
+ const C = mxClipboard.cells;
4222
+ Ct(e, C, r, s);
4223
4223
  break;
4224
4224
  case "cut":
4225
4225
  mxClipboard.cut(e, h);
4226
4226
  break;
4227
4227
  case "alignLeft":
4228
- v.execute("alignCellsLeft");
4228
+ g.execute("alignCellsLeft");
4229
4229
  break;
4230
4230
  case "alignRight":
4231
- v.execute("alignCellsRight");
4231
+ g.execute("alignCellsRight");
4232
4232
  break;
4233
4233
  case "alignCenterHorizontal":
4234
- v.execute("alignCellsCenter");
4234
+ g.execute("alignCellsCenter");
4235
4235
  break;
4236
4236
  case "alignCenterVertical":
4237
- v.execute("alignCellsMiddle");
4237
+ g.execute("alignCellsMiddle");
4238
4238
  break;
4239
4239
  case "toUp":
4240
- v.execute("toFront"), s.handelEvent({ key: "toLayer", val: h });
4240
+ g.execute("toFront"), s.handelEvent({ key: "toLayer", val: h });
4241
4241
  break;
4242
4242
  case "toDown":
4243
- v.execute("toDown"), s.handelEvent({ key: "toLayer", val: h });
4243
+ g.execute("toDown"), s.handelEvent({ key: "toLayer", val: h });
4244
4244
  break;
4245
4245
  case "upOne":
4246
- v.execute("upOne"), s.handelEvent({ key: "toLayer", val: h });
4246
+ g.execute("upOne"), s.handelEvent({ key: "toLayer", val: h });
4247
4247
  break;
4248
4248
  case "downOne":
4249
- v.execute("downOne"), s.handelEvent({ key: "toLayer", val: h });
4249
+ g.execute("downOne"), s.handelEvent({ key: "toLayer", val: h });
4250
4250
  break;
4251
4251
  case "alignCellsTop":
4252
- v.execute("alignCellsTop");
4252
+ g.execute("alignCellsTop");
4253
4253
  break;
4254
4254
  case "alignCellsBottom":
4255
- v.execute("alignCellsBottom");
4255
+ g.execute("alignCellsBottom");
4256
4256
  break;
4257
4257
  }
4258
4258
  }
@@ -4275,18 +4275,18 @@ function Et(t, e, l) {
4275
4275
  undo: function() {
4276
4276
  s.beginUpdate();
4277
4277
  try {
4278
- let b = Fe(this.cell, this.oldStyle), x = t.container.querySelector("canvas");
4278
+ let v = Fe(this.cell, this.oldStyle), x = t.container.querySelector("canvas");
4279
4279
  if (x && this.cell.type == "kitUI:CanvasWidget") {
4280
- if (b && b.viewSize) {
4281
- let h = b.viewSize.split(",");
4280
+ if (v && v.viewSize) {
4281
+ let h = v.viewSize.split(",");
4282
4282
  if (h && h.length > 0) {
4283
4283
  let k = this.cell.geometry;
4284
4284
  k != null && (k = k.clone(), k.width = h[0], k.height = h[1], s.setGeometry(this.cell, k));
4285
4285
  }
4286
4286
  }
4287
- b["background-image"] ? x.style.background = `${b["background-image"]}center center no-repeat` : x.style.background = "transparent";
4287
+ v["background-image"] ? x.style.background = `${v["background-image"]}center center no-repeat` : x.style.background = "transparent";
4288
4288
  }
4289
- b && Object.keys(b).length > 0 && (this.cell.value.style = b, this.cell.value.data = Oe(b, this.cell.value.data), s.setStyle(this.cell, this.oldStyle), t.refresh(this.cell));
4289
+ v && Object.keys(v).length > 0 && (this.cell.value.style = v, this.cell.value.data = Oe(v, this.cell.value.data), s.setStyle(this.cell, this.oldStyle), t.refresh(this.cell));
4290
4290
  } finally {
4291
4291
  s.endUpdate();
4292
4292
  }
@@ -4295,18 +4295,18 @@ function Et(t, e, l) {
4295
4295
  redo: function() {
4296
4296
  s.beginUpdate();
4297
4297
  try {
4298
- let b = Fe(this.cell, this.newStyle), x = t.container.querySelector("canvas");
4298
+ let v = Fe(this.cell, this.newStyle), x = t.container.querySelector("canvas");
4299
4299
  if (x && this.cell.type == "kitUI:CanvasWidget") {
4300
- if (b && b.viewSize) {
4301
- let h = b.viewSize.split(",");
4300
+ if (v && v.viewSize) {
4301
+ let h = v.viewSize.split(",");
4302
4302
  if (h && h.length > 0) {
4303
4303
  let k = this.cell.geometry;
4304
4304
  k != null && (k = k.clone(), k.width = h[0], k.height = h[1], s.setGeometry(this.cell, k));
4305
4305
  }
4306
4306
  }
4307
- b["background-image"] ? x.style.background = `${b["background-image"]}center center no-repeat` : x.style.background = "transparent";
4307
+ v["background-image"] ? x.style.background = `${v["background-image"]}center center no-repeat` : x.style.background = "transparent";
4308
4308
  }
4309
- this.cell.value.style = b, this.cell.value.data = Oe(b, this.cell.value.data), t.refresh(this.cell);
4309
+ this.cell.value.style = v, this.cell.value.data = Oe(v, this.cell.value.data), t.refresh(this.cell);
4310
4310
  } finally {
4311
4311
  s.endUpdate();
4312
4312
  }
@@ -4327,9 +4327,9 @@ function Fe(t, e) {
4327
4327
  const l = e.trim().split(";"), s = {};
4328
4328
  l.forEach((x) => {
4329
4329
  if (!x.trim()) return;
4330
- const v = x.indexOf("=");
4331
- if (v === -1) return;
4332
- const h = x.substring(0, v).trim(), k = x.substring(v + 1).trim(), N = zt(h);
4330
+ const g = x.indexOf("=");
4331
+ if (g === -1) return;
4332
+ const h = x.substring(0, g).trim(), k = x.substring(g + 1).trim(), N = zt(h);
4333
4333
  let A = k;
4334
4334
  N === "gap" && (A = k.replace("px", "")), s[N] = A;
4335
4335
  });
@@ -4344,79 +4344,79 @@ function Oe(t, e) {
4344
4344
  function Me(t) {
4345
4345
  let e = this;
4346
4346
  e.ts = t;
4347
- function l(v, h) {
4347
+ function l(g, h) {
4348
4348
  if (document.activeElement !== h.srcElement)
4349
4349
  return;
4350
4350
  let k = 10;
4351
4351
  h.ctrlKey && (k = 1);
4352
- const N = v.getSelectionCells();
4353
- let A = v.getModel();
4352
+ const N = g.getSelectionCells();
4353
+ let A = g.getModel();
4354
4354
  A.beginUpdate();
4355
4355
  try {
4356
- let z = 0, g = 0;
4357
- h.key === "ArrowUp" ? (g = -k, z = 0) : h.key === "ArrowDown" ? (g = k, z = 0) : h.key === "ArrowLeft" ? (z = -k, g = 0) : h.key === "ArrowRight" && (z = k, g = 0), v.moveCells(N, z, g);
4356
+ let z = 0, C = 0;
4357
+ h.key === "ArrowUp" ? (C = -k, z = 0) : h.key === "ArrowDown" ? (C = k, z = 0) : h.key === "ArrowLeft" ? (z = -k, C = 0) : h.key === "ArrowRight" && (z = k, C = 0), g.moveCells(N, z, C);
4358
4358
  } finally {
4359
4359
  A.endUpdate();
4360
4360
  }
4361
4361
  }
4362
- function s(v) {
4363
- let h = v.indexOfNextAdd;
4364
- return !!(v.history && v.history.length == 1 && h == 1);
4362
+ function s(g) {
4363
+ let h = g.indexOfNextAdd;
4364
+ return !!(g.history && g.history.length == 1 && h == 1);
4365
4365
  }
4366
4366
  e.graph = null;
4367
4367
  let r = !1, m = !1;
4368
- const p = function(v, h, k) {
4368
+ const p = function(g, h, k) {
4369
4369
  let N = e.graph;
4370
4370
  if (!N) return;
4371
- const A = v.ctrlKey || v.metaKey;
4371
+ const A = g.ctrlKey || g.metaKey;
4372
4372
  let z = !1;
4373
4373
  if (!e.ts.pageShortcuts) {
4374
4374
  if (A) {
4375
- if (v.key === "z" || v.key === "Z")
4375
+ if (g.key === "z" || g.key === "Z")
4376
4376
  s(h), h.canUndo() && (h.undo(), e.ts.handelEvent({ key: "unre" }), k && k("undo"));
4377
- else if (v.key === "y" || v.key === "Y")
4377
+ else if (g.key === "y" || g.key === "Y")
4378
4378
  s(h), h.canRedo() && (h.redo(), e.ts.handelEvent({ key: "unre" }), k && k("redo"));
4379
- else if (v.key === "a" || v.key === "A")
4379
+ else if (g.key === "a" || g.key === "A")
4380
4380
  N.selectCells(!0, !1), e.ts.handelEvent({ key: "selectAll" });
4381
- else if (v.key === "c" || v.key === "C") {
4381
+ else if (g.key === "c" || g.key === "C") {
4382
4382
  if (r) return;
4383
- let g = new Array();
4384
- g = N.getSelectionCells(), g && g.length > 0 && (mxClipboard.copy(N, g), r = !0, m = !1, e.ts.handelEvent({ key: "copy", evt: v, val: g })), z = !0;
4385
- } else if (v.key === "v" || v.key === "V") {
4383
+ let C = new Array();
4384
+ C = N.getSelectionCells(), C && C.length > 0 && (mxClipboard.copy(N, C), r = !0, m = !1, e.ts.handelEvent({ key: "copy", evt: g, val: C })), z = !0;
4385
+ } else if (g.key === "v" || g.key === "V") {
4386
4386
  if (m) return;
4387
- let T = mxClipboard.cells.filter((D) => D.type === "edge");
4388
- mxClipboard.paste(N), T.length > 0 && b(N, mxClipboard.cells), r = !1, m = !0, setTimeout(() => {
4387
+ let U = mxClipboard.cells.filter((I) => I.type === "edge");
4388
+ mxClipboard.paste(N), U.length > 0 && v(N, mxClipboard.cells), r = !1, m = !0, setTimeout(() => {
4389
4389
  m = !1;
4390
- }, 10), e.ts.handelEvent({ key: "paste", evt: v }), z = !0;
4391
- } else if (v.key === "x" || v.key === "X") {
4392
- let g = N.getSelectionCells();
4393
- mxClipboard.cut(N, g), e.ts.handelEvent({ key: "cut", evt: v, val: g });
4394
- } else if (v.key === "d" || v.key === "D") {
4395
- let g = N.getSelectionCells();
4396
- mxClipboard.copy(N, g), mxClipboard.paste(N), b(N, mxClipboard.cells), e.ts.handelEvent({ key: "clone", evt: v, val: g }), z = !0;
4397
- } else if (v.key === "s" || v.key === "S") {
4398
- let g = new Array();
4399
- g = N.getSelectionCells(), e.ts.handelEvent({ key: "save", evt: v, val: g }), v.preventDefault();
4400
- } else if (v.key === "g" || v.key === "G") {
4401
- const g = N.getSelectionCells();
4402
- if (g.length > 0) {
4403
- const T = N.groupCells(null, 10, g);
4404
- N.setSelectionCell(T);
4390
+ }, 10), e.ts.handelEvent({ key: "paste", evt: g }), z = !0;
4391
+ } else if (g.key === "x" || g.key === "X") {
4392
+ let C = N.getSelectionCells();
4393
+ mxClipboard.cut(N, C), e.ts.handelEvent({ key: "cut", evt: g, val: C });
4394
+ } else if (g.key === "d" || g.key === "D") {
4395
+ let C = N.getSelectionCells();
4396
+ mxClipboard.copy(N, C), mxClipboard.paste(N), v(N, mxClipboard.cells), e.ts.handelEvent({ key: "clone", evt: g, val: C }), z = !0;
4397
+ } else if (g.key === "s" || g.key === "S") {
4398
+ let C = new Array();
4399
+ C = N.getSelectionCells(), e.ts.handelEvent({ key: "save", evt: g, val: C }), g.preventDefault();
4400
+ } else if (g.key === "g" || g.key === "G") {
4401
+ const C = N.getSelectionCells();
4402
+ if (C.length > 0) {
4403
+ const U = N.groupCells(null, 10, C);
4404
+ N.setSelectionCell(U);
4405
4405
  } else
4406
- N.ungroupCells(g);
4406
+ N.ungroupCells(C);
4407
4407
  }
4408
4408
  }
4409
- v.key === "Delete" && (N.isEnabled() && N.removeCells(), e.ts.handelEvent({ key: "delete" })), l(N, v), v.preventDefault(), v.stopPropagation();
4409
+ g.key === "Delete" && (N.isEnabled() && N.removeCells(), e.ts.handelEvent({ key: "delete" })), l(N, g), g.preventDefault(), g.stopPropagation();
4410
4410
  }
4411
- z && (v.preventDefault(), v.stopPropagation(), mxEvent.consume(v));
4411
+ z && (g.preventDefault(), g.stopPropagation(), mxEvent.consume(g));
4412
4412
  };
4413
- e.keyUpdown = function(v, h, k) {
4414
- e.graph = v, v.container.addEventListener("keydown", (A) => p(A, h, k));
4415
- }, e.removeListener = function(v) {
4416
- v.setSelectionCells([]), e.graph = null, r = !1, m = !1;
4413
+ e.keyUpdown = function(g, h, k) {
4414
+ e.graph = g, g.container.addEventListener("keydown", (A) => p(A, h, k));
4415
+ }, e.removeListener = function(g) {
4416
+ g.setSelectionCells([]), e.graph = null, r = !1, m = !1;
4417
4417
  };
4418
- async function b(v, h) {
4419
- v.getDefaultParent();
4418
+ async function v(g, h) {
4419
+ g.getDefaultParent();
4420
4420
  let k = [], N = [];
4421
4421
  if (h && h.length > 0) {
4422
4422
  for (let A = 0; A < h.length; A++) {
@@ -4426,18 +4426,18 @@ function Me(t) {
4426
4426
  if (N.length > 0)
4427
4427
  for (let A = 0; A < N.length; A++) {
4428
4428
  const z = N[A];
4429
- let g = await x(v, z);
4430
- k.push(g);
4429
+ let C = await x(g, z);
4430
+ k.push(C);
4431
4431
  }
4432
- v.addSelectionCells(k);
4432
+ g.addSelectionCells(k);
4433
4433
  }
4434
4434
  }
4435
- function x(v, h) {
4435
+ function x(g, h) {
4436
4436
  return new Promise((k, N) => {
4437
- let A = v.getDefaultParent(), z = v.getModel();
4437
+ let A = g.getDefaultParent(), z = g.getModel();
4438
4438
  z.beginUpdate();
4439
4439
  try {
4440
- var g = v.insertEdge(
4440
+ var C = g.insertEdge(
4441
4441
  A,
4442
4442
  null,
4443
4443
  "",
@@ -4446,22 +4446,22 @@ function Me(t) {
4446
4446
  null,
4447
4447
  h.style
4448
4448
  // 继承样式
4449
- ), T = 10, D = 10, R = v.getCellGeometry(h);
4450
- let $ = R.getTerminalPoint(!0), P = R.getTerminalPoint(!1);
4451
- var K = new mxGeometry();
4452
- K.setTerminalPoint(
4449
+ ), U = 10, I = 10, R = g.getCellGeometry(h);
4450
+ let G = R.getTerminalPoint(!0), T = R.getTerminalPoint(!1);
4451
+ var $ = new mxGeometry();
4452
+ $.setTerminalPoint(
4453
4453
  new mxPoint(
4454
- $.x + T,
4455
- $.y + D
4454
+ G.x + U,
4455
+ G.y + I
4456
4456
  ),
4457
4457
  !0
4458
- ), K.setTerminalPoint(
4458
+ ), $.setTerminalPoint(
4459
4459
  new mxPoint(
4460
- P.x + T,
4461
- P.y + D
4460
+ T.x + U,
4461
+ T.y + I
4462
4462
  ),
4463
4463
  !1
4464
- ), g.setGeometry(K), g.value = h.value, g.type = h.type, g.model = "yes", g.type = "edge", g.iconName = h.iconName, k(g);
4464
+ ), C.setGeometry($), C.value = h.value, C.type = h.type, C.model = "yes", C.type = "edge", C.iconName = h.iconName, k(C);
4465
4465
  } finally {
4466
4466
  z.endUpdate();
4467
4467
  }
@@ -4542,50 +4542,50 @@ function xe(t) {
4542
4542
  return typeof t != "string" && (t = String(t)), t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
4543
4543
  }
4544
4544
  function Tt(t) {
4545
- let e = this, l = 10, s = "#dddddd", r = "#ffffff00", m = 1, p = "square", b = 1, x = 0, v = 0, h = 1, k = null;
4546
- e.createGrid = function(z, g, T) {
4547
- if (k = z, g) {
4548
- var D = document.createElement("canvas");
4549
- if (!D)
4545
+ let e = this, l = 10, s = "#dddddd", r = "#ffffff00", m = 1, p = "square", v = 1, x = 0, g = 0, h = 1, k = null;
4546
+ e.createGrid = function(z, C, U) {
4547
+ if (k = z, C) {
4548
+ var I = document.createElement("canvas");
4549
+ if (!I)
4550
4550
  return;
4551
- D.style.position = "absolute";
4552
- var R = k.getCellBounds(g);
4551
+ I.style.position = "absolute";
4552
+ var R = k.getCellBounds(C);
4553
4553
  if (R) {
4554
- D.style.top = R.y + "px", D.style.left = R.x + "px", D.style.width = R.width + 1 + "px", D.style.height = R.height + 1 + "px", D.style.zIndex = -1, D.style.pointerEvents = "none", D.id = "gridCanvas_" + g.id, D.dataId = ue();
4555
- let $ = g.value.style || {};
4556
- $.background && $.background.indexOf("files/") > -1 && $["background-image"] ? D.style.background = `${$["background-image"]} center center no-repeat` : D.style.background = "";
4554
+ I.style.top = R.y + "px", I.style.left = R.x + "px", I.style.width = R.width + 1 + "px", I.style.height = R.height + 1 + "px", I.style.zIndex = -1, I.style.pointerEvents = "none", I.id = "gridCanvas_" + C.id, I.dataId = ue();
4555
+ let G = C.value.style || {};
4556
+ G.background && G.background.indexOf("files/") > -1 && G["background-image"] ? I.style.background = `${G["background-image"]} center center no-repeat` : I.style.background = "";
4557
4557
  }
4558
- let K = k.container.querySelector("#gridCanvas_" + g.id);
4559
- K && K.remove(), k.container.prepend(D), D.width = D.offsetWidth, D.height = D.offsetHeight, T ? s = "transparent" : s = "#dddddd", A(D), D.addEventListener("wheel", function($) {
4560
- $.preventDefault();
4561
- const P = D.getBoundingClientRect(), Z = $.clientX - P.left, te = $.clientY - P.top, ie = 0.1, oe = $.deltaY < 0 ? 1 : -1, ce = Math.exp(oe * ie), ye = Z / h, be = te / h;
4562
- h *= ce, h = Math.min(Math.max(0.5, h), 5), x = ye - Z / h, v = be - te / h, A(D), k && (k.view.scale = h, k.refresh());
4558
+ let $ = k.container.querySelector("#gridCanvas_" + C.id);
4559
+ $ && $.remove(), k.container.prepend(I), I.width = I.offsetWidth, I.height = I.offsetHeight, U ? s = "transparent" : s = "#dddddd", A(I), I.addEventListener("wheel", function(G) {
4560
+ G.preventDefault();
4561
+ const T = I.getBoundingClientRect(), Z = G.clientX - T.left, te = G.clientY - T.top, ie = 0.1, oe = G.deltaY < 0 ? 1 : -1, ce = Math.exp(oe * ie), ye = Z / h, fe = te / h;
4562
+ h *= ce, h = Math.min(Math.max(0.5, h), 5), x = ye - Z / h, g = fe - te / h, A(I), k && (k.view.scale = h, k.refresh());
4563
4563
  }), k && N();
4564
4564
  }
4565
4565
  };
4566
4566
  function N() {
4567
4567
  if (!k) return;
4568
- k.snapPoint = function(g, T, D) {
4569
- if (!D && this.snapToGrid && l > 0) {
4570
- const R = l / h, K = g.x - x, $ = g.y - v;
4571
- g.x = Math.round(K / R) * R + x, g.y = Math.round($ / R) * R + v;
4568
+ k.snapPoint = function(C, U, I) {
4569
+ if (!I && this.snapToGrid && l > 0) {
4570
+ const R = l / h, $ = C.x - x, G = C.y - g;
4571
+ C.x = Math.round($ / R) * R + x, C.y = Math.round(G / R) * R + g;
4572
4572
  }
4573
- return g;
4573
+ return C;
4574
4574
  };
4575
4575
  const z = k.mouseUp;
4576
- k.mouseUp = function(g, T) {
4577
- z.apply(this, arguments), this.selectedCells.length > 0 && this.snapToGrid && T.snapCellsToGrid(this.selectedCells);
4576
+ k.mouseUp = function(C, U) {
4577
+ z.apply(this, arguments), this.selectedCells.length > 0 && this.snapToGrid && U.snapCellsToGrid(this.selectedCells);
4578
4578
  };
4579
4579
  }
4580
4580
  e.snapCellsToGrid = function(z) {
4581
4581
  if (!(!z || z.length === 0)) {
4582
4582
  this.getModel().beginUpdate();
4583
4583
  try {
4584
- for (let g = 0; g < z.length; g++) {
4585
- const T = z[g], D = this.getCellGeometry(T);
4586
- if (D) {
4587
- const R = D.clone(), K = this.snapPoint({ x: R.x, y: R.y });
4588
- R.x = K.x, R.y = K.y, this.getModel().setGeometry(T, R);
4584
+ for (let C = 0; C < z.length; C++) {
4585
+ const U = z[C], I = this.getCellGeometry(U);
4586
+ if (I) {
4587
+ const R = I.clone(), $ = this.snapPoint({ x: R.x, y: R.y });
4588
+ R.x = $.x, R.y = $.y, this.getModel().setGeometry(U, R);
4589
4589
  }
4590
4590
  }
4591
4591
  } finally {
@@ -4595,56 +4595,56 @@ function Tt(t) {
4595
4595
  };
4596
4596
  function A(z) {
4597
4597
  h = k.view.scale;
4598
- let g = z.getContext("2d");
4599
- g.clearRect(0, 0, z.width, z.height), g.fillStyle = r, g.fillRect(0, 0, z.width, z.height);
4600
- const T = l * h;
4601
- if (T < 2) return;
4602
- g.strokeStyle = s, g.lineWidth = m, g.globalAlpha = b;
4603
- const D = Math.floor(-x * h / T) * T, R = Math.floor(-v * h / T) * T, K = z.width + T, $ = z.height + T;
4598
+ let C = z.getContext("2d");
4599
+ C.clearRect(0, 0, z.width, z.height), C.fillStyle = r, C.fillRect(0, 0, z.width, z.height);
4600
+ const U = l * h;
4601
+ if (U < 2) return;
4602
+ C.strokeStyle = s, C.lineWidth = m, C.globalAlpha = v;
4603
+ const I = Math.floor(-x * h / U) * U, R = Math.floor(-g * h / U) * U, $ = z.width + U, G = z.height + U;
4604
4604
  switch (p) {
4605
4605
  case "dotted":
4606
- g.fillStyle = s;
4607
- for (let P = D; P < K; P += T)
4608
- for (let Z = R; Z < $; Z += T)
4609
- g.beginPath(), g.arc(P + 0.5, Z + 0.5, m, 0, Math.PI * 2), g.fill();
4606
+ C.fillStyle = s;
4607
+ for (let T = I; T < $; T += U)
4608
+ for (let Z = R; Z < G; Z += U)
4609
+ C.beginPath(), C.arc(T + 0.5, Z + 0.5, m, 0, Math.PI * 2), C.fill();
4610
4610
  break;
4611
4611
  case "dashed":
4612
- g.setLineDash([5, 3]), g.beginPath();
4613
- for (let P = D; P < K; P += T)
4614
- g.moveTo(P + 0.5, 0), g.lineTo(P + 0.5, z.height);
4615
- for (let P = R; P < $; P += T)
4616
- g.moveTo(0, P + 0.5), g.lineTo(z.width, P + 0.5);
4617
- g.stroke(), g.setLineDash([]);
4612
+ C.setLineDash([5, 3]), C.beginPath();
4613
+ for (let T = I; T < $; T += U)
4614
+ C.moveTo(T + 0.5, 0), C.lineTo(T + 0.5, z.height);
4615
+ for (let T = R; T < G; T += U)
4616
+ C.moveTo(0, T + 0.5), C.lineTo(z.width, T + 0.5);
4617
+ C.stroke(), C.setLineDash([]);
4618
4618
  break;
4619
4619
  case "square":
4620
- g.beginPath();
4621
- for (let P = D; P < K; P += T)
4622
- g.moveTo(P + 0.5, 0), g.lineTo(P + 0.5, z.height);
4623
- for (let P = R; P < $; P += T)
4624
- g.moveTo(0, P + 0.5), g.lineTo(z.width, P + 0.5);
4625
- g.stroke();
4620
+ C.beginPath();
4621
+ for (let T = I; T < $; T += U)
4622
+ C.moveTo(T + 0.5, 0), C.lineTo(T + 0.5, z.height);
4623
+ for (let T = R; T < G; T += U)
4624
+ C.moveTo(0, T + 0.5), C.lineTo(z.width, T + 0.5);
4625
+ C.stroke();
4626
4626
  break;
4627
4627
  default:
4628
- g.beginPath();
4629
- for (let P = D; P < K; P += T)
4630
- g.moveTo(P + 0.5, 0), g.lineTo(P + 0.5, z.height);
4631
- for (let P = R; P < $; P += T)
4632
- g.moveTo(0, P + 0.5), g.lineTo(z.width, P + 0.5);
4633
- g.stroke();
4628
+ C.beginPath();
4629
+ for (let T = I; T < $; T += U)
4630
+ C.moveTo(T + 0.5, 0), C.lineTo(T + 0.5, z.height);
4631
+ for (let T = R; T < G; T += U)
4632
+ C.moveTo(0, T + 0.5), C.lineTo(z.width, T + 0.5);
4633
+ C.stroke();
4634
4634
  }
4635
- g.globalAlpha = 1;
4635
+ C.globalAlpha = 1;
4636
4636
  }
4637
4637
  e.getGridConfig = function() {
4638
4638
  return {
4639
4639
  gridSize: l,
4640
4640
  scale: h,
4641
4641
  offsetX: x,
4642
- offsetY: v
4642
+ offsetY: g
4643
4643
  };
4644
4644
  }, e.setGridSize = function(z) {
4645
4645
  l = z;
4646
- const g = document.getElementById("canvas");
4647
- g && A(g);
4646
+ const C = document.getElementById("canvas");
4647
+ C && A(C);
4648
4648
  };
4649
4649
  }
4650
4650
  const It = ["src"], Dt = {
@@ -4666,57 +4666,57 @@ const It = ["src"], Dt = {
4666
4666
  },
4667
4667
  setup(t) {
4668
4668
  const e = t;
4669
- return (l, s) => t.style.btntype == "none" ? (L(), I("div", {
4669
+ return (l, s) => t.style.btntype == "none" ? (P(), D("div", {
4670
4670
  key: 0,
4671
4671
  class: "btn-index-none",
4672
4672
  style: j(t.style)
4673
4673
  }, [
4674
- e.style.isIcon && !e.style.imgUrl ? (L(), I("i", {
4674
+ e.style.isIcon && !e.style.imgUrl ? (P(), D("i", {
4675
4675
  key: 0,
4676
4676
  class: J(["iconfont", e.style.iconName])
4677
4677
  }, null, 2)) : _("", !0),
4678
- e.style.imgUrl ? (L(), I("img", {
4678
+ e.style.imgUrl ? (P(), D("img", {
4679
4679
  key: 1,
4680
4680
  src: e.style.imgUrl,
4681
4681
  style: { "z-index": "0" },
4682
4682
  alt: " "
4683
4683
  }, null, 8, It)) : _("", !0),
4684
- e.style.text ? (L(), I("span", Dt, ee(e.style.text), 1)) : _("", !0),
4685
- !e.style.imgUrl && !e.style.text ? (L(), I("span", Bt)) : _("", !0)
4686
- ], 4)) : t.style.btntype == "sq" ? (L(), I("div", {
4684
+ e.style.text ? (P(), D("span", Dt, ee(e.style.text), 1)) : _("", !0),
4685
+ !e.style.imgUrl && !e.style.text ? (P(), D("span", Bt)) : _("", !0)
4686
+ ], 4)) : t.style.btntype == "sq" ? (P(), D("div", {
4687
4687
  key: 1,
4688
4688
  class: "btn-index",
4689
4689
  style: j(t.style)
4690
4690
  }, [
4691
- e.style.isIcon && !e.style.imgUrl ? (L(), I("i", {
4691
+ e.style.isIcon && !e.style.imgUrl ? (P(), D("i", {
4692
4692
  key: 0,
4693
4693
  class: J(["iconfont", e.style.iconName])
4694
4694
  }, null, 2)) : _("", !0),
4695
- e.style.imgUrl ? (L(), I("img", {
4695
+ e.style.imgUrl ? (P(), D("img", {
4696
4696
  key: 1,
4697
4697
  src: e.style.imgUrl,
4698
4698
  style: { "z-index": "0" },
4699
4699
  alt: " "
4700
4700
  }, null, 8, Ft)) : _("", !0),
4701
- e.style.text ? (L(), I("span", Ot, ee(e.style.text), 1)) : _("", !0),
4702
- !e.style.imgUrl && !e.style.text ? (L(), I("span", Mt)) : _("", !0)
4703
- ], 4)) : (L(), I("div", {
4701
+ e.style.text ? (P(), D("span", Ot, ee(e.style.text), 1)) : _("", !0),
4702
+ !e.style.imgUrl && !e.style.text ? (P(), D("span", Mt)) : _("", !0)
4703
+ ], 4)) : (P(), D("div", {
4704
4704
  key: 2,
4705
4705
  class: "btn-bg-jd",
4706
4706
  style: j(t.style)
4707
4707
  }, [
4708
- e.style.isIcon && !e.style.imgUrl ? (L(), I("i", {
4708
+ e.style.isIcon && !e.style.imgUrl ? (P(), D("i", {
4709
4709
  key: 0,
4710
4710
  class: J(["iconfont", e.style.iconName])
4711
4711
  }, null, 2)) : _("", !0),
4712
- e.style.imgUrl ? (L(), I("img", {
4712
+ e.style.imgUrl ? (P(), D("img", {
4713
4713
  key: 1,
4714
4714
  src: e.style.imgUrl,
4715
4715
  style: { "z-index": "0" },
4716
4716
  alt: " "
4717
4717
  }, null, 8, Vt)) : _("", !0),
4718
- e.style.text ? (L(), I("span", Rt, ee(e.style.text), 1)) : _("", !0),
4719
- !e.style.imgUrl && !e.style.text ? (L(), I("span", Wt)) : _("", !0)
4718
+ e.style.text ? (P(), D("span", Rt, ee(e.style.text), 1)) : _("", !0),
4719
+ !e.style.imgUrl && !e.style.text ? (P(), D("span", Wt)) : _("", !0)
4720
4720
  ], 4));
4721
4721
  }
4722
4722
  }, ae = (t, e) => {
@@ -4803,25 +4803,25 @@ const It = ["src"], Dt = {
4803
4803
  }
4804
4804
  }, jt = { class: "ruler-container" };
4805
4805
  function Ht(t, e, l, s, r, m) {
4806
- return L(), I("div", jt, [
4807
- l.style.scalevisible || l.style.scalevisible == 1 ? (L(), I("div", {
4806
+ return P(), D("div", jt, [
4807
+ l.style.scalevisible || l.style.scalevisible == 1 ? (P(), D("div", {
4808
4808
  key: 0,
4809
4809
  class: "vertical-ruler",
4810
4810
  style: j(m.getScalesFontStyle)
4811
4811
  }, [
4812
- (L(!0), I(ge, null, ve(m.scaleValues, (p, b) => (L(), I("div", {
4813
- key: b,
4812
+ (P(!0), D(ve, null, be(m.scaleValues, (p, v) => (P(), D("div", {
4813
+ key: v,
4814
4814
  class: "scale-mark",
4815
- style: j({ top: `${b * m.scaleInterval}px` })
4815
+ style: j({ top: `${v * m.scaleInterval}px` })
4816
4816
  }, [
4817
- b != 0 ? (L(), I("span", {
4817
+ v != 0 ? (P(), D("span", {
4818
4818
  key: 0,
4819
4819
  class: "mark-value",
4820
4820
  style: j({ color: l.style.color })
4821
4821
  }, ee(p), 5)) : _("", !0),
4822
- b != 0 ? (L(), I("div", {
4822
+ v != 0 ? (P(), D("div", {
4823
4823
  key: 1,
4824
- class: J(["mark-line", { "long-mark": b % 5 === 0 }]),
4824
+ class: J(["mark-line", { "long-mark": v % 5 === 0 }]),
4825
4825
  style: j({ background: l.style.color })
4826
4826
  }, null, 6)) : _("", !0)
4827
4827
  ], 4))), 128))
@@ -4830,7 +4830,7 @@ function Ht(t, e, l, s, r, m) {
4830
4830
  class: "chart-bottom",
4831
4831
  style: j({ height: `${m.ywvalue}px`, background: l.style.fillColor })
4832
4832
  }, [
4833
- l.style.valuevisible || l.style.valuevisible == 1 ? (L(), I("span", {
4833
+ l.style.valuevisible || l.style.valuevisible == 1 ? (P(), D("span", {
4834
4834
  key: 0,
4835
4835
  class: "value-text",
4836
4836
  style: j(m.getFontStyle)
@@ -4914,25 +4914,25 @@ const $t = /* @__PURE__ */ ae(_t, [["render", Ht], ["__scopeId", "data-v-b14d49d
4914
4914
  }
4915
4915
  }, Kt = { class: "ruler-h-container" };
4916
4916
  function Yt(t, e, l, s, r, m) {
4917
- return L(), I("div", Kt, [
4918
- l.style.scalevisible || l.style.scalevisible == 1 ? (L(), I("div", {
4917
+ return P(), D("div", Kt, [
4918
+ l.style.scalevisible || l.style.scalevisible == 1 ? (P(), D("div", {
4919
4919
  key: 0,
4920
4920
  class: "h-ruler",
4921
4921
  style: j(m.getScalesFontStyle)
4922
4922
  }, [
4923
- (L(!0), I(ge, null, ve(m.scaleValues, (p, b) => (L(), I("div", {
4924
- key: b,
4923
+ (P(!0), D(ve, null, be(m.scaleValues, (p, v) => (P(), D("div", {
4924
+ key: v,
4925
4925
  class: "scale-h-mark",
4926
- style: j({ left: `${b * m.scaleInterval}px` })
4926
+ style: j({ left: `${v * m.scaleInterval}px` })
4927
4927
  }, [
4928
- b != 0 ? (L(), I("span", {
4928
+ v != 0 ? (P(), D("span", {
4929
4929
  key: 0,
4930
4930
  class: "mark-h-value",
4931
4931
  style: j({ color: l.style.color })
4932
4932
  }, ee(p), 5)) : _("", !0),
4933
- b != 0 ? (L(), I("div", {
4933
+ v != 0 ? (P(), D("div", {
4934
4934
  key: 1,
4935
- class: J(["mark-h-line", { "long-h-mark": b % 5 === 0 }]),
4935
+ class: J(["mark-h-line", { "long-h-mark": v % 5 === 0 }]),
4936
4936
  style: j({ background: l.style.color })
4937
4937
  }, null, 6)) : _("", !0)
4938
4938
  ], 4))), 128))
@@ -4941,7 +4941,7 @@ function Yt(t, e, l, s, r, m) {
4941
4941
  class: "chart-h-bottom",
4942
4942
  style: j({ width: `${m.ywvalue}px`, background: l.style.fillColor })
4943
4943
  }, [
4944
- l.style.valuevisible || l.style.valuevisible == 1 ? (L(), I("span", {
4944
+ l.style.valuevisible || l.style.valuevisible == 1 ? (P(), D("span", {
4945
4945
  key: 0,
4946
4946
  class: "value-h-text",
4947
4947
  style: j(m.getFontStyle)
@@ -4970,15 +4970,15 @@ const qt = /* @__PURE__ */ ae(Gt, [["render", Yt], ["__scopeId", "data-v-7f6aaa3
4970
4970
  }
4971
4971
  };
4972
4972
  function Qt(t, e, l, s, r, m) {
4973
- const p = Ie("index-v"), b = Ie("index-h");
4974
- return L(), I("div", {
4973
+ const p = Ie("index-v"), v = Ie("index-h");
4974
+ return P(), D("div", {
4975
4975
  class: "chart-container",
4976
4976
  style: j(m.getStyle)
4977
4977
  }, [
4978
- l.style.orientation == "vertical" ? (L(), me(p, {
4978
+ l.style.orientation == "vertical" ? (P(), me(p, {
4979
4979
  key: 0,
4980
4980
  style: j(l.style)
4981
- }, null, 8, ["style"])) : (L(), me(b, {
4981
+ }, null, 8, ["style"])) : (P(), me(v, {
4982
4982
  key: 1,
4983
4983
  style: j(l.style)
4984
4984
  }, null, 8, ["style"]))
@@ -5041,7 +5041,7 @@ const Zt = /* @__PURE__ */ ae(Xt, [["render", Qt], ["__scopeId", "data-v-5f295dc
5041
5041
  style: { "z-index": "0" }
5042
5042
  }, al = { key: 3 };
5043
5043
  function nl(t, e, l, s, r, m) {
5044
- return L(), I("label", {
5044
+ return P(), D("label", {
5045
5045
  class: J(["switch-jd", m.switchClasses])
5046
5046
  }, [
5047
5047
  le("input", {
@@ -5055,18 +5055,18 @@ function nl(t, e, l, s, r, m) {
5055
5055
  class: "switch-jd-slider",
5056
5056
  style: j(l.style)
5057
5057
  }, [
5058
- l.style.isIcon && !l.style.imgUrl ? (L(), I("i", {
5058
+ l.style.isIcon && !l.style.imgUrl ? (P(), D("i", {
5059
5059
  key: 0,
5060
5060
  class: J(["iconfont", l.style.iconName])
5061
5061
  }, null, 2)) : _("", !0),
5062
- l.style.imgUrl ? (L(), I("img", {
5062
+ l.style.imgUrl ? (P(), D("img", {
5063
5063
  key: 1,
5064
5064
  src: l.style.imgUrl,
5065
5065
  style: { "z-index": "0" },
5066
5066
  alt: " "
5067
5067
  }, null, 8, tl)) : _("", !0),
5068
- l.style.text ? (L(), I("span", ll, ee(l.style.text), 1)) : _("", !0),
5069
- !l.style.imgUrl && !l.style.text ? (L(), I("span", al)) : _("", !0)
5068
+ l.style.text ? (P(), D("span", ll, ee(l.style.text), 1)) : _("", !0),
5069
+ !l.style.imgUrl && !l.style.text ? (P(), D("span", al)) : _("", !0)
5070
5070
  ], 4)
5071
5071
  ], 2);
5072
5072
  }
@@ -5144,7 +5144,7 @@ const il = /* @__PURE__ */ ae(Jt, [["render", nl], ["__scopeId", "data-v-3233cda
5144
5144
  }
5145
5145
  }, ol = ["checked", "disabled"];
5146
5146
  function sl(t, e, l, s, r, m) {
5147
- return L(), I("label", {
5147
+ return P(), D("label", {
5148
5148
  class: J(["switch", m.switchClasses])
5149
5149
  }, [
5150
5150
  le("input", {
@@ -5177,30 +5177,30 @@ const ul = /* @__PURE__ */ ae(rl, [["render", sl], ["__scopeId", "data-v-41ace2e
5177
5177
  },
5178
5178
  setup(t) {
5179
5179
  const e = t, l = it(e.style.realValue === "true");
5180
- return (s, r) => t.style.btntype == "none" ? (L(), I("div", {
5180
+ return (s, r) => t.style.btntype == "none" ? (P(), D("div", {
5181
5181
  key: 0,
5182
5182
  class: "switch-none",
5183
5183
  style: j(t.style)
5184
5184
  }, [
5185
- e.style.isIcon && !e.style.imgUrl ? (L(), I("i", {
5185
+ e.style.isIcon && !e.style.imgUrl ? (P(), D("i", {
5186
5186
  key: 0,
5187
5187
  class: J(["iconfont", e.style.iconName])
5188
5188
  }, null, 2)) : _("", !0),
5189
- e.style.imgUrl ? (L(), I("img", {
5189
+ e.style.imgUrl ? (P(), D("img", {
5190
5190
  key: 1,
5191
5191
  src: e.style.imgUrl,
5192
5192
  style: { "z-index": "0" },
5193
5193
  alt: " "
5194
5194
  }, null, 8, dl)) : _("", !0),
5195
- e.style.text ? (L(), I("span", cl, ee(e.style.text), 1)) : _("", !0),
5196
- !e.style.imgUrl && !e.style.text ? (L(), I("span", ml)) : _("", !0)
5197
- ], 4)) : t.style.btntype == "sq" ? (L(), me(ul, {
5195
+ e.style.text ? (P(), D("span", cl, ee(e.style.text), 1)) : _("", !0),
5196
+ !e.style.imgUrl && !e.style.text ? (P(), D("span", ml)) : _("", !0)
5197
+ ], 4)) : t.style.btntype == "sq" ? (P(), me(ul, {
5198
5198
  key: 1,
5199
5199
  modelValue: l.value,
5200
5200
  "onUpdate:modelValue": r[0] || (r[0] = (m) => l.value = m),
5201
5201
  style: j(t.style),
5202
5202
  disabled: t.disabled
5203
- }, null, 8, ["modelValue", "style", "disabled"])) : (L(), me(il, {
5203
+ }, null, 8, ["modelValue", "style", "disabled"])) : (P(), me(il, {
5204
5204
  key: 2,
5205
5205
  modelValue: l.value,
5206
5206
  "onUpdate:modelValue": r[1] || (r[1] = (m) => l.value = m),
@@ -5228,7 +5228,7 @@ const ul = /* @__PURE__ */ ae(rl, [["render", sl], ["__scopeId", "data-v-41ace2e
5228
5228
  backgroundColor: e.style.background || "#D1E7FF"
5229
5229
  };
5230
5230
  });
5231
- return (s, r) => (L(), I("div", {
5231
+ return (s, r) => (P(), D("div", {
5232
5232
  class: "gr-circle",
5233
5233
  style: j(l.value)
5234
5234
  }, [
@@ -5258,7 +5258,7 @@ const ul = /* @__PURE__ */ ae(rl, [["render", sl], ["__scopeId", "data-v-41ace2e
5258
5258
  backgroundColor: e.style.background || "#D1E7FF"
5259
5259
  };
5260
5260
  });
5261
- return (s, r) => (L(), I("div", {
5261
+ return (s, r) => (P(), D("div", {
5262
5262
  class: "gr-rectangle",
5263
5263
  style: j(l.value)
5264
5264
  }, [
@@ -5278,10 +5278,10 @@ const ul = /* @__PURE__ */ ae(rl, [["render", sl], ["__scopeId", "data-v-41ace2e
5278
5278
  },
5279
5279
  setup(t) {
5280
5280
  const e = t, l = Ae(() => {
5281
- let s = e.style.layout || {}, { x: r, y: m, width: p, height: b } = s, x = e.style.borderValue / 2, v = `${r + p / 2},${m + x}`, h = `${r + x},${m + b - x}`, k = `${r + p - x},${m + b - x}`;
5281
+ let s = e.style.layout || {}, { x: r, y: m, width: p, height: v } = s, x = e.style.borderValue / 2, g = `${r + p / 2},${m + x}`, h = `${r + x},${m + v - x}`, k = `${r + p - x},${m + v - x}`;
5282
5282
  return `
5283
- <svg width="${p}" height="${b}" xmlns="http://www.w3.org/2000/svg" viewBox="${r} ${m} ${p} ${b}">
5284
- <polygon points="${v} ${h} ${k}" fill="${e.style.fillColor || "#D1E7FF"}" stroke="${e.style.stroke || "#000000"}" stroke-width="${e.style.borderValue || 1}"/>
5283
+ <svg width="${p}" height="${v}" xmlns="http://www.w3.org/2000/svg" viewBox="${r} ${m} ${p} ${v}">
5284
+ <polygon points="${g} ${h} ${k}" fill="${e.style.fillColor || "#D1E7FF"}" stroke="${e.style.stroke || "#000000"}" stroke-width="${e.style.borderValue || 1}"/>
5285
5285
  <foreignObject x="${r}" y="${m}" width="100%" height="100%">
5286
5286
  <div xmlns="http://www.w3.org/1999/xhtml" style="word-wrap: break-word; display: flex; justify-content: center; align-items: center;width: 100%; height: 100%; padding:${p / 4}px;
5287
5287
  overflow-wrap: break-word;
@@ -5294,7 +5294,7 @@ const ul = /* @__PURE__ */ ae(rl, [["render", sl], ["__scopeId", "data-v-41ace2e
5294
5294
  </svg>
5295
5295
  `;
5296
5296
  });
5297
- return (s, r) => (L(), I("div", {
5297
+ return (s, r) => (P(), D("div", {
5298
5298
  class: "gr-triangle",
5299
5299
  innerHTML: l.value
5300
5300
  }, null, 8, vl));
@@ -5336,17 +5336,17 @@ function kl(t, e) {
5336
5336
  let s = e.children.filter((r) => r.animate && (r.animate.isShow || r.animate.isShow == 1));
5337
5337
  return s && s.length > 0 && s.forEach((r) => {
5338
5338
  if (r.key === "background" || r.key === "color" || r.key === "image") {
5339
- let m = r.animate.data, p = r.animate.mpType, b = null;
5339
+ let m = r.animate.data, p = r.animate.mpType, v = null;
5340
5340
  if (p === "NumericToSimple") {
5341
- let x = m.find((v) => xl(r, v.min, v.max));
5342
- x ? b = x : r.key === "image" ? b = {
5341
+ let x = m.find((g) => xl(r, g.min, g.max));
5342
+ x ? v = x : r.key === "image" ? v = {
5343
5343
  value: r.animate.default,
5344
5344
  valueUrl: r.animate.defaultVal
5345
- } : b = {
5345
+ } : v = {
5346
5346
  value: r.animate.default
5347
5347
  };
5348
- } else p === "BooleanToSimple" && (b = m.find((x) => x.key === r.value));
5349
- b && (t[r.key] = b.value, r.key === "image" && (t.imgUrl = `${b.valueUrl}`));
5348
+ } else p === "BooleanToSimple" && (v = m.find((x) => x.key === r.value));
5349
+ v && (t[r.key] = v.value, r.key === "image" && (t.imgUrl = `${v.valueUrl}`));
5350
5350
  } else
5351
5351
  t[r.key] = r.value;
5352
5352
  }), t;
@@ -5365,17 +5365,17 @@ function El(t) {
5365
5365
  function l() {
5366
5366
  mxActor.call(this);
5367
5367
  }
5368
- mxUtils.extend(l, mxActor), l.prototype.arrowWidth = 0.3, l.prototype.arrowSize = 0.2, l.prototype.redrawPath = function(r, m, p, b, x) {
5369
- var v = x * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, "arrowWidth", this.arrowWidth)))), h = b * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, "arrowSize", this.arrowSize)))), k = (x - v) / 2, N = k + v, A = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2;
5368
+ mxUtils.extend(l, mxActor), l.prototype.arrowWidth = 0.3, l.prototype.arrowSize = 0.2, l.prototype.redrawPath = function(r, m, p, v, x) {
5369
+ var g = x * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, "arrowWidth", this.arrowWidth)))), h = v * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, "arrowSize", this.arrowSize)))), k = (x - g) / 2, N = k + g, A = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2;
5370
5370
  this.addPoints(
5371
5371
  r,
5372
5372
  [
5373
5373
  new mxPoint(0, k),
5374
- new mxPoint(b - h, k),
5375
- new mxPoint(b - h, 0),
5376
- new mxPoint(b, x / 2),
5377
- new mxPoint(b - h, x),
5378
- new mxPoint(b - h, N),
5374
+ new mxPoint(v - h, k),
5375
+ new mxPoint(v - h, 0),
5376
+ new mxPoint(v, x / 2),
5377
+ new mxPoint(v - h, x),
5378
+ new mxPoint(v - h, N),
5379
5379
  new mxPoint(0, N)
5380
5380
  ],
5381
5381
  this.isRounded,
@@ -5386,19 +5386,19 @@ function El(t) {
5386
5386
  function s() {
5387
5387
  mxActor.call(this);
5388
5388
  }
5389
- mxUtils.extend(s, mxActor), s.prototype.redrawPath = function(r, m, p, b, x) {
5390
- var v = x * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, "arrowWidth", l.prototype.arrowWidth)))), h = b * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, "arrowSize", l.prototype.arrowSize)))), k = (x - v) / 2, N = k + v, A = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2;
5389
+ mxUtils.extend(s, mxActor), s.prototype.redrawPath = function(r, m, p, v, x) {
5390
+ var g = x * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, "arrowWidth", l.prototype.arrowWidth)))), h = v * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, "arrowSize", l.prototype.arrowSize)))), k = (x - g) / 2, N = k + g, A = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2;
5391
5391
  this.addPoints(
5392
5392
  r,
5393
5393
  [
5394
5394
  new mxPoint(0, x / 2),
5395
5395
  new mxPoint(h, 0),
5396
5396
  new mxPoint(h, k),
5397
- new mxPoint(b - h, k),
5398
- new mxPoint(b - h, 0),
5399
- new mxPoint(b, x / 2),
5400
- new mxPoint(b - h, x),
5401
- new mxPoint(b - h, N),
5397
+ new mxPoint(v - h, k),
5398
+ new mxPoint(v - h, 0),
5399
+ new mxPoint(v, x / 2),
5400
+ new mxPoint(v - h, x),
5401
+ new mxPoint(v - h, N),
5402
5402
  new mxPoint(h, N),
5403
5403
  new mxPoint(h, x)
5404
5404
  ],
@@ -5502,15 +5502,15 @@ function je(t) {
5502
5502
  qe(i, f), e.undoMng = f, A(i), Ye(i), Ne(i), Qe(i, n), Je(t.menus, i), Xe(i), e.graph = i, p(i), i.autoSize = !1, i.model.validateGraph = !1, i.model.validateEdge = () => !0, i.model.validateNode = () => !0, i.removeListener(i.listeners), i.view.animate = !1, e.clearUndo(), new El().initShapes(), h(), mxConstants.INVALID_COLOR = "transparent", mxConstants.DEFAULT_INVALID_COLOR = "transparent", mxConstants.INVALID_CONNECT_TARGET_COLOR = "transparent", e.keyUpdownEvt = new Me(t), mxWindow.prototype.closeImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAw0lEQVR4AZyS3RHCIBCEEyuxFO1E36EGsQZ419LsBHd3IHP8jTNmWH4u+x0HyWn78xEYY3xQv3LQk1J60SeQEyjwBcZpK0DIOX9oEOi9f2IRqBlMCMBt3/d38W4CAWwlMMAWcs7d6aUOkIseXkH0NiADFq7l2Z3ooQaQQZzlzJECrMvg3GoAbXkwDmdGTK0BLcTybNn9bR9gDyktuhUskNlwFn0n7gR/02awQLguUJhBiKtVuF6cQASvEP8emVYdPTX5FwAA//+rmaLTAAAABklEQVQDAD/igh3e/xFHAAAAAElFTkSuQmCC ", mxWindow.prototype.normalizeImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAwElEQVR4AcRSwRHCIBAUKkknQidaALSgtgD8tRNIJ1YC7mYSRhgn5Gfmdg7udnNwhzytn/deASWE8FxD1THGHKC2YBVugaNe8i8EBGdg10opE7kEK0awiTv8rgkheA1yI4UJ7Iqc84x9Y6j0RqByuJbGGP0Na+0LicaQfwANjxUb0tHNH4Robexw64/rnLt0nKWrfA0VaPnUC6WUnHHlIK94R42FRsuv8CPjrBc+x5HQ6oRKnNVIOJNLsOKI/DP/AQAA///YhGxbAAAABklEQVQDANQlZDV28KsrAAAAAElFTkSuQmCC", mxWindow.prototype.minimizeImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAwElEQVR4AcRSwRHCIBAUKkknQidaALSgtgD8tRNIJ1YC7mYSRhgn5Gfmdg7udnNwhzytn/deASWE8FxD1THGHKC2YBVugaNe8i8EBGdg10opE7kEK0awiTv8rgkheA1yI4UJ7Iqc84x9Y6j0RqByuJbGGP0Na+0LicaQfwANjxUb0tHNH4Robexw64/rnLt0nKWrfA0VaPnUC6WUnHHlIK94R42FRsuv8CPjrBc+x5HQ6oRKnNVIOJNLsOKI/DP/AQAA///YhGxbAAAABklEQVQDANQlZDV28KsrAAAAAElFTkSuQmCC", mxWindow.prototype.maximizeImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAArklEQVR4AcSSUQrDIBBEG/Eg7U1yIT88QZoT+OGFepP2IEI6b4mwlkD6UWjwmc3MjgomXPSUUq4eScPwHjVmoIgxPj0YHu9Rk7Ed96aH3vcdvYbRdXrMGIIppRXMcRMaSDoMSv9+hJzzS6tNYj2L0SMmMv6oZ7nB/0OQO6m1bmIZznLwQY/YyPzkqLNWW+BzMzSQPgsbfkfE/oeY6aau02OyBVtrN485bvIeNff4BgAA//8HoCv8AAAABklEQVQDAFXqZFJqMF/zAAAAAElFTkSuQmCC", mxWindow.prototype.resizeImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAtklEQVR4AZSS0Q2EIBBEF0MhVwqdnP5DEVZAAvyfnXidaCfcrBcTQFQkIWQ387I7Ezp6eEIIH+fc8gj03s8xxl4IMTWDDBGRYsgYMzaBKaS1HgjnFiwha+0LHvtLsIRQKynlgnXfpyBEMzbaPPF6qBVqDmfFW/cI0SmEaQPC+R4mtkCYSBnYAh0+QAvEmuwDcAPjq0HsnlINPI5d2ijTq0GswZC/RwimvcFNrLOit6XHNV/UmeYHAAD//4CpKLcAAAAGSURBVAMAuzSnSig8bRkAAAAASUVORK5CYII=";
5503
5503
  const S = i.getView().setTranslate;
5504
5504
  i.getView().setTranslate = function(w, E) {
5505
- const U = Math.max(0, Math.min(3e3, w)), O = Math.max(0, Math.min(3e3, E));
5506
- S.call(this, U, O);
5505
+ const L = Math.max(0, Math.min(3e3, w)), O = Math.max(0, Math.min(3e3, E));
5506
+ S.call(this, L, O);
5507
5507
  }, i.addListener(mxEvent.PAN, function() {
5508
5508
  const w = i.getView().getTranslate();
5509
- let E = Math.min(0, w.x), U = Math.min(0, w.y);
5510
- (E !== w.x || U !== w.y) && i.getView().setTranslate(E, U);
5511
- }), mxGraph.prototype.setCellStyles = function(w, E, U, O) {
5512
- U = U || this.getSelectionCells(), mxUtils.setCellStyles(this.model, U, w, E, O);
5513
- }, mxUtils.setCellStyles = function(w, E, U, O, M) {
5509
+ let E = Math.min(0, w.x), L = Math.min(0, w.y);
5510
+ (E !== w.x || L !== w.y) && i.getView().setTranslate(E, L);
5511
+ }), mxGraph.prototype.setCellStyles = function(w, E, L, O) {
5512
+ L = L || this.getSelectionCells(), mxUtils.setCellStyles(this.model, L, w, E, O);
5513
+ }, mxUtils.setCellStyles = function(w, E, L, O, M) {
5514
5514
  if (E != null && E.length > 0)
5515
5515
  if (e.firstStyle) {
5516
5516
  w.beginUpdate();
@@ -5533,10 +5533,10 @@ function je(t) {
5533
5533
  }
5534
5534
  e.firstStyle = !1;
5535
5535
  }
5536
- }, i.view.scaleGrid = !0, i.view.roundPoints = !0, mxSvgCanvas2D.prototype.updateTextNodes = function(w, E, U, O, M, B, F, V, H, W, q) {
5537
- var G = this.state.scale;
5536
+ }, i.view.scaleGrid = !0, i.view.roundPoints = !0, mxSvgCanvas2D.prototype.updateTextNodes = function(w, E, L, O, M, B, F, V, H, W, q) {
5537
+ var K = this.state.scale;
5538
5538
  mxSvgCanvas2D.createCss(
5539
- U + 2,
5539
+ L + 2,
5540
5540
  O,
5541
5541
  M,
5542
5542
  B,
@@ -5547,18 +5547,18 @@ function je(t) {
5547
5547
  this.state.fontBorderColor != null ? this.state.fontBorderColor : null,
5548
5548
  "display: flex; align-items: unsafe " + (B == mxConstants.ALIGN_TOP ? "flex-start" : B == mxConstants.ALIGN_BOTTOM ? "flex-end" : "center") + "; justify-content: unsafe " + (M == mxConstants.ALIGN_LEFT ? "flex-start" : M == mxConstants.ALIGN_RIGHT ? "flex-end" : "center") + "; ",
5549
5549
  this.getTextCss(),
5550
- G,
5550
+ K,
5551
5551
  mxUtils.bind(this, function(ne, re, Y, se, X) {
5552
5552
  w += this.state.dx, E += this.state.dy;
5553
- var pe = q.firstChild, Ue = pe.firstChild, Le = Ue.firstChild, et = Le.firstChild, Pe = (this.rotateHtml ? this.state.rotation : 0) + (W ?? 0), Ce = (this.foOffset != 0 ? "translate(" + this.foOffset + " " + this.foOffset + ")" : "") + (G != 1 ? "scale(" + G + ")" : "");
5554
- et.setAttribute("style", X), Le.setAttribute("style", se), pe.setAttribute("width", Math.ceil(1 / Math.min(1, G) * 100) + "%"), pe.setAttribute("height", Math.ceil(1 / Math.min(1, G) * 100) + "%");
5555
- let he = Math.round(E + re), tt = Math.round(w + ne), lt = s(he), at = s(tt);
5556
- if (he < 0)
5557
- pe.setAttribute("y", he);
5553
+ var he = q.firstChild, Ue = he.firstChild, Le = Ue.firstChild, et = Le.firstChild, Pe = (this.rotateHtml ? this.state.rotation : 0) + (W ?? 0), Ce = (this.foOffset != 0 ? "translate(" + this.foOffset + " " + this.foOffset + ")" : "") + (K != 1 ? "scale(" + K + ")" : "");
5554
+ et.setAttribute("style", X), Le.setAttribute("style", se), he.setAttribute("width", Math.ceil(1 / Math.min(1, K) * 100) + "%"), he.setAttribute("height", Math.ceil(1 / Math.min(1, K) * 100) + "%");
5555
+ let ge = Math.round(E + re), tt = Math.round(w + ne), lt = s(ge), at = s(tt);
5556
+ if (ge < 0)
5557
+ he.setAttribute("y", ge);
5558
5558
  else {
5559
- pe.removeAttribute("y");
5560
- let Te = he;
5561
- at || lt || (Te = he - 0.5), Y += "padding-top: " + Te + "px; ";
5559
+ he.removeAttribute("y");
5560
+ let Te = ge;
5561
+ at || lt || (Te = ge - 0.5), Y += "padding-top: " + Te + "px; ";
5562
5562
  }
5563
5563
  Y = Y.replace("width: 1px", "width: 0px"), Y = Y.replace("height: 1px", "height: 0px");
5564
5564
  let nt = w + ne;
@@ -5591,14 +5591,14 @@ function je(t) {
5591
5591
  if (f(this.labelShape))
5592
5592
  return mxEvent.LABEL_HANDLE;
5593
5593
  if (this.sizers != null) {
5594
- for (var C = 0; C < this.sizers.length; C++)
5595
- if (f(this.sizers[C]))
5596
- return C;
5594
+ for (var b = 0; b < this.sizers.length; b++)
5595
+ if (f(this.sizers[b]))
5596
+ return b;
5597
5597
  }
5598
5598
  if (this.customHandles != null && this.isCustomHandleEvent(n)) {
5599
- for (var C = this.customHandles.length - 1; C >= 0; C--)
5600
- if (f(this.customHandles[C].shape))
5601
- return mxEvent.CUSTOM_HANDLE - C;
5599
+ for (var b = this.customHandles.length - 1; b >= 0; b--)
5600
+ if (f(this.customHandles[b].shape))
5601
+ return mxEvent.CUSTOM_HANDLE - b;
5602
5602
  }
5603
5603
  }
5604
5604
  return null;
@@ -5640,70 +5640,70 @@ function je(t) {
5640
5640
  a.convertValueToString = function(n) {
5641
5641
  let { width: u, height: d, x: o, y: i } = n.geometry;
5642
5642
  if (n.type == "vertex")
5643
- return b(n);
5643
+ return v(n);
5644
5644
  if (n.type == "kitUI:CanvasWidget") {
5645
5645
  let c = n.value.style, f = document.createElement("div");
5646
5646
  f.style.width = u + "px", f.style.height = d + "px", f.className = "bgss-light";
5647
- let C = a.container.querySelector("canvas");
5648
- return C && (c["background-image"] ? C.style.background = `${c["background-image"]}center center no-repeat` : C.style.background = "transparent"), f;
5647
+ let b = a.container.querySelector("canvas");
5648
+ return b && (c["background-image"] ? b.style.background = `${c["background-image"]}center center no-repeat` : b.style.background = "transparent"), f;
5649
5649
  } else if (n.type == "img") {
5650
- let c = document.createElement("div"), f = n.value.style, C = "";
5650
+ let c = document.createElement("div"), f = n.value.style, b = "";
5651
5651
  if (f.scale == "fitRatio" ? (c.style.display = "flex", c.style.alignItems = "center", c.style.justifyContent = "center", c.style.flexDirection = "column", m(f.imgUrl || n.imgUrl).then((S) => {
5652
5652
  S && (c.style.aspectRatio = S.w / S.h);
5653
- }), C = "img-vr-fit-ratio") : f.scale == "fit" && (c.style.display = "flex", c.style.alignItems = "center", c.style.justifyContent = "center", C = "img-vr-fit"), c.innerHTML = N({
5653
+ }), b = "img-vr-fit-ratio") : f.scale == "fit" && (c.style.display = "flex", c.style.alignItems = "center", c.style.justifyContent = "center", b = "img-vr-fit"), c.innerHTML = N({
5654
5654
  img: f.imgUrl || n.imgUrl
5655
5655
  }), c.style.width = u + "px", c.style.height = d + "px", c.innerHTML += '<div class="svg-edit-gr"></div>', e.preview) {
5656
- n.hyperlink = "", n.popup = "", c.className = "bg-light svg-preview-gr " + C;
5657
- let { url: S, pup: w } = fe(n);
5656
+ n.hyperlink = "", n.popup = "", c.className = "bg-light svg-preview-gr " + b;
5657
+ let { url: S, pup: w } = pe(n);
5658
5658
  S ? (c.style.cursor = "pointer", n.hyperlink = S) : c.style.cursor = "default", w && w.length > 0 ? (c.style.cursor = "pointer", n.popup = w) : c.style.cursor = "default";
5659
5659
  } else
5660
- c.className = "bg-light " + C;
5660
+ c.className = "bg-light " + b;
5661
5661
  return c;
5662
5662
  } else if (n.crtype == "creatComp") {
5663
5663
  k(n);
5664
5664
  let c = document.createElement("div");
5665
5665
  if (c.innerHTML = wl(n.cmp, n.value, n.iconName), c.style.width = u + "px", c.style.height = d + "px", c.innerHTML += '<div class="svg-edit-gr"></div>', e.preview) {
5666
5666
  n.hyperlink = "", n.popup = "", c.className = "bg-creat-comp svg-preview-gr";
5667
- let { url: f, pup: C } = fe(n);
5668
- f ? (c.style.cursor = "pointer", n.hyperlink = f) : c.style.cursor = "default", C && C.length > 0 ? (c.style.cursor = "pointer", n.popup = C) : c.style.cursor = "default";
5667
+ let { url: f, pup: b } = pe(n);
5668
+ f ? (c.style.cursor = "pointer", n.hyperlink = f) : c.style.cursor = "default", b && b.length > 0 ? (c.style.cursor = "pointer", n.popup = b) : c.style.cursor = "default";
5669
5669
  } else
5670
5670
  c.className = "bg-creat-comp";
5671
5671
  return c;
5672
5672
  } else if (n.crtype == "schedule") {
5673
5673
  let c = n.value.style;
5674
5674
  k(n);
5675
- let f = document.createElement("div"), { el: C } = n.other || {};
5676
- f.innerHTML = C.outerHTML;
5675
+ let f = document.createElement("div"), { el: b } = n.other || {};
5676
+ f.innerHTML = b.outerHTML;
5677
5677
  let S = document.getElementById(n.id);
5678
5678
  if (S) {
5679
5679
  var y = a.view.getState(n);
5680
5680
  S.style.position = "absolute", S.style.width = y.width + "px", S.style.height = y.height + "px", S.style.left = y.x + "px", S.style.top = y.y + "px", e.preview || (f.innerHTML = S.innerHTML);
5681
5681
  }
5682
- return f.style = T(c, []), f.style.width = u + "px", f.style.height = d + "px", f.innerHTML += '<div class="svg-edit-gr"></div>', e.preview ? f.className = "bg-creat-comp svg-preview-gr" : f.className = "bg-creat-comp", f;
5682
+ return f.style = U(c, []), f.style.width = u + "px", f.style.height = d + "px", f.innerHTML += '<div class="svg-edit-gr"></div>', e.preview ? f.className = "bg-creat-comp svg-preview-gr" : f.className = "bg-creat-comp", f;
5683
5683
  } else if (n.type == "rect") {
5684
5684
  let c = n.value.style, f = n.value.data, S = (f.children || []).find((M) => M.key === "perimeter");
5685
5685
  S && (c.background.indexOf("/files") > -1 && (c.background = ""), Number(c.borderValue) === 0 && (c.stroke = "transparent"), n.style = S.value + `fillColor=${c.background || "transparent"};strokeColor=${c.stroke || "#333333"};strokeWidth=${c.borderValue || 0}`);
5686
5686
  let w = {}, E = f.children;
5687
5687
  E && (w = E.find((M) => M.key === "text"));
5688
- let U = document.createElement("div");
5689
- U.innerHTML = N({
5688
+ let L = document.createElement("div");
5689
+ L.innerHTML = N({
5690
5690
  text: w.value || c.text,
5691
- style: g(c, ["text-", "font-", "color"])
5692
- }), U.style = T(c, ["background", "stroke", "strokeWidth"]), U.style.width = u + "px", U.style.height = d + "px", U.className = "";
5691
+ style: C(c, ["text-", "font-", "color"])
5692
+ }), L.style = U(c, ["background", "stroke", "strokeWidth"]), L.style.width = u + "px", L.style.height = d + "px", L.className = "";
5693
5693
  let O = "";
5694
5694
  if (f.title === "ShapeTriangle" ? O = "triangle" : f.title === "ShapeRect" ? O = "rectangle" : f.title === "ShapeCircle" && (O = "circle"), e.preview) {
5695
5695
  n.hyperlink = "", n.popup = "";
5696
- let { url: M, pup: B } = fe(n);
5697
- M ? (U.style.cursor = "pointer", U.className = "main-text hyperlink-btn custom-rect-p " + O, n.hyperlink = M) : (U.style.cursor = "default", U.className = "main-text custom-rect-p " + O), B && B.length > 0 ? (n.popup = B, U.style.cursor = "pointer") : U.style.cursor = "default";
5696
+ let { url: M, pup: B } = pe(n);
5697
+ M ? (L.style.cursor = "pointer", L.className = "main-text hyperlink-btn custom-rect-p " + O, n.hyperlink = M) : (L.style.cursor = "default", L.className = "main-text custom-rect-p " + O), B && B.length > 0 ? (n.popup = B, L.style.cursor = "pointer") : L.style.cursor = "default";
5698
5698
  } else
5699
- U.className = "bg-light custom-rect " + O;
5700
- return U.innerHTML += '<div class="svg-edit-gr"></div>', U;
5699
+ L.className = "bg-light custom-rect " + O;
5700
+ return L.innerHTML += '<div class="svg-edit-gr"></div>', L;
5701
5701
  } else if (n.type == "edge") {
5702
5702
  if (e.firstFlag) {
5703
5703
  a.getModel(), e.firstFlag = !1;
5704
5704
  try {
5705
- let c = n.value.style, f = c.dashWidth || 3, C = c.dashSpace || 1;
5706
- f && C && (c.dashPattern = `${f} ${C}`), setTimeout(() => {
5705
+ let c = n.value.style, f = c.dashWidth || 3, b = c.dashSpace || 1;
5706
+ f && b && (c.dashPattern = `${f} ${b}`), setTimeout(() => {
5707
5707
  c && a.setCellStyles(null, null, [n], c);
5708
5708
  }, 1);
5709
5709
  } finally {
@@ -5715,19 +5715,19 @@ function je(t) {
5715
5715
  return n.value;
5716
5716
  };
5717
5717
  }
5718
- function b(a) {
5718
+ function v(a) {
5719
5719
  let { width: n, height: u, x: d, y: o } = a.geometry;
5720
5720
  k(a);
5721
5721
  let i = a.value.style, y = a.value.data.children, c = {};
5722
- y && (c = y.find((C) => C.key === "text"));
5722
+ y && (c = y.find((b) => b.key === "text"));
5723
5723
  let f = document.createElement("div");
5724
5724
  if (f.innerHTML = N({
5725
5725
  img: i.imgUrl || "",
5726
5726
  text: c.value || i.text
5727
- }), f.style = D(i), f.style.width = n + "px", f.style.height = u + "px", f.style.linHeight = u + "px", f.className = "bg-light", e.preview) {
5727
+ }), f.style = I(i), f.style.width = n + "px", f.style.height = u + "px", f.style.linHeight = u + "px", f.className = "bg-light", e.preview) {
5728
5728
  a.hyperlink = "", a.popup = "";
5729
- let { url: C, pup: S } = fe(a);
5730
- C ? (f.style.cursor = "pointer", f.className = "main-text hyperlink-btn", a.hyperlink = C) : (f.style.cursor = "default", f.className = "main-text"), S && S.length > 0 ? (f.style.cursor = "pointer", a.popup = S) : f.style.cursor = "default";
5729
+ let { url: b, pup: S } = pe(a);
5730
+ b ? (f.style.cursor = "pointer", f.className = "main-text hyperlink-btn", a.hyperlink = b) : (f.style.cursor = "default", f.className = "main-text"), S && S.length > 0 ? (f.style.cursor = "pointer", a.popup = S) : f.style.cursor = "default";
5731
5731
  } else
5732
5732
  f.className = "bg-light";
5733
5733
  return f.innerHTML += '<div class="svg-edit-gr"></div>', f;
@@ -5737,7 +5737,7 @@ function je(t) {
5737
5737
  return Math.sqrt(u * u + d * d);
5738
5738
  }
5739
5739
  e.isDragging = !1, e.dragTerminal = null, e.startPos = null, e.dx = null, e.dy = null, e.ctrlKey = !1, e.moveEdgeCells = [];
5740
- function v(a, n, u, d) {
5740
+ function g(a, n, u, d) {
5741
5741
  return new Promise((o, i) => {
5742
5742
  let y = a.getDefaultParent(), c = a.getModel();
5743
5743
  c.beginUpdate();
@@ -5751,8 +5751,8 @@ function je(t) {
5751
5751
  null,
5752
5752
  n.style
5753
5753
  // 继承样式
5754
- ), C = a.getCellGeometry(n);
5755
- let w = C.getTerminalPoint(!0), E = C.getTerminalPoint(!1);
5754
+ ), b = a.getCellGeometry(n);
5755
+ let w = b.getTerminalPoint(!0), E = b.getTerminalPoint(!1);
5756
5756
  var S = new mxGeometry();
5757
5757
  S.setTerminalPoint(
5758
5758
  new mxPoint(
@@ -5784,8 +5784,8 @@ function je(t) {
5784
5784
  }
5785
5785
  let o = a.getSelectionCell();
5786
5786
  if (o && o.isEdge()) {
5787
- let i = a.getPointForEvent(d), y = o.getGeometry(), c = y.getTerminalPoint(!0), f = y.getTerminalPoint(!1), C = x(i, c), S = x(i, f);
5788
- C < 15 && (e.isDragging = !0, e.dragTerminal = !0, e.startPos = i, u.consume()), S < 15 && (e.isDragging = !0, e.dragTerminal = !1, e.startPos = i, u.consume());
5787
+ let i = a.getPointForEvent(d), y = o.getGeometry(), c = y.getTerminalPoint(!0), f = y.getTerminalPoint(!1), b = x(i, c), S = x(i, f);
5788
+ b < 15 && (e.isDragging = !0, e.dragTerminal = !0, e.startPos = i, u.consume()), S < 15 && (e.isDragging = !0, e.dragTerminal = !1, e.startPos = i, u.consume());
5789
5789
  }
5790
5790
  u.consume();
5791
5791
  },
@@ -5810,8 +5810,8 @@ function je(t) {
5810
5810
  let y = [];
5811
5811
  for (let c = 0; c < i.length; c++) {
5812
5812
  let f = i[c];
5813
- f && f.isEdge() && v(a, f, e.dx - e.startPos.x, e.dy - e.startPos.y).then((C) => {
5814
- y.push(C);
5813
+ f && f.isEdge() && g(a, f, e.dx - e.startPos.x, e.dy - e.startPos.y).then((b) => {
5814
+ y.push(b);
5815
5815
  });
5816
5816
  }
5817
5817
  }
@@ -5846,8 +5846,8 @@ function je(t) {
5846
5846
  y: o
5847
5847
  }, f = y.children;
5848
5848
  if (f && f.length > 0) {
5849
- let C = f.find((S) => S.key == "layout");
5850
- C.value = c;
5849
+ let b = f.find((S) => S.key == "layout");
5850
+ b.value = c;
5851
5851
  }
5852
5852
  i.layout = c;
5853
5853
  }
@@ -5894,7 +5894,7 @@ function je(t) {
5894
5894
  }, 1);
5895
5895
  }
5896
5896
  }
5897
- function g(a, n) {
5897
+ function C(a, n) {
5898
5898
  if (!a)
5899
5899
  return "";
5900
5900
  let u = {};
@@ -5908,7 +5908,7 @@ function je(t) {
5908
5908
  return i === "gap" && (y = `${o}px`), `${i}:${y}`;
5909
5909
  }).join("; ") + ";";
5910
5910
  }
5911
- function T(a, n) {
5911
+ function U(a, n) {
5912
5912
  if (!a)
5913
5913
  return "";
5914
5914
  let u = {};
@@ -5922,7 +5922,7 @@ function je(t) {
5922
5922
  return i === "gap" && (y = `${o}px`), `${i}:${y}`;
5923
5923
  }).join("; ") + ";";
5924
5924
  }
5925
- function D(a) {
5925
+ function I(a) {
5926
5926
  return a ? (a.border && a.border.split(",").length === 1 && ["top", "right", "bottom", "left"].forEach((d) => {
5927
5927
  delete a["border-" + d + "-width"], delete a["border-" + d + "-style"], delete a["border-" + d + "-color"];
5928
5928
  }), Object.entries(a).filter(
@@ -5943,15 +5943,15 @@ function je(t) {
5943
5943
  return i === "gap" && (y = `${o}px`), `${i}=${y}`;
5944
5944
  }).join("; ") + ";" : "";
5945
5945
  }
5946
- function K(a) {
5946
+ function $(a) {
5947
5947
  const u = String(a).match(/\d+/);
5948
5948
  return u ? Number(u[0]) : null;
5949
5949
  }
5950
- function $(a, n, u) {
5951
- let d = a.value, o = K(d);
5950
+ function G(a, n, u) {
5951
+ let d = a.value, o = $(d);
5952
5952
  return n === "-inf" ? o <= u : u === "+inf" ? o >= n : o >= n && o <= u;
5953
5953
  }
5954
- function P(a, n) {
5954
+ function T(a, n) {
5955
5955
  if (!n.children)
5956
5956
  return "";
5957
5957
  let d = n.children.filter((o) => o.animate && (o.animate.isShow || o.animate.isShow == 1));
@@ -5959,7 +5959,7 @@ function je(t) {
5959
5959
  if (o.key === "background" || o.key === "color" || o.key === "image") {
5960
5960
  let i = o.animate.data, y = o.animate.mpType, c = null;
5961
5961
  if (y === "NumericToSimple") {
5962
- let f = i.find((C) => $(o, C.min, C.max));
5962
+ let f = i.find((b) => G(o, b.min, b.max));
5963
5963
  f ? c = f : o.key === "image" ? c = {
5964
5964
  value: o.animate.default,
5965
5965
  valueUrl: o.animate.defaultVal
@@ -5981,12 +5981,12 @@ function je(t) {
5981
5981
  if (d.setValue(i, i.value), i.value.style) {
5982
5982
  let y = {};
5983
5983
  if (i.type === "rect") {
5984
- const c = P(i.value.style, i.value.data);
5984
+ const c = T(i.value.style, i.value.data);
5985
5985
  y = te(i, c);
5986
5986
  } else if (i.type === "edge") {
5987
- const c = P(i.value.style, i.value.data);
5987
+ const c = T(i.value.style, i.value.data);
5988
5988
  e.firstFlag = !0, y = Z(i, c);
5989
- } else i.type === "kitUI:CanvasWidget" ? (y = P(realStyle, i.value.data), e.changePageSize(realStyle)) : y = P(i.value.style, i.value.data);
5989
+ } else i.type === "kitUI:CanvasWidget" ? (y = T(realStyle, i.value.data), e.changePageSize(realStyle)) : y = T(i.value.style, i.value.data);
5990
5990
  d.setStyle(i, y);
5991
5991
  }
5992
5992
  });
@@ -6005,12 +6005,12 @@ function je(t) {
6005
6005
  if (d.setValue(i, i.value), i.value.style) {
6006
6006
  let y = {};
6007
6007
  if (i.type === "rect") {
6008
- const c = P(i.value.style, i.value.data);
6008
+ const c = T(i.value.style, i.value.data);
6009
6009
  y = te(i, c);
6010
6010
  } else if (i.type === "edge") {
6011
- const c = P(i.value.style, i.value.data);
6011
+ const c = T(i.value.style, i.value.data);
6012
6012
  e.firstFlag = !0, y = Z(i, c);
6013
- } else i.type === "kitUI:CanvasWidget" ? (y = P(realStyle, i.value.data), e.changePageSize(realStyle)) : y = P(i.value.style, i.value.data);
6013
+ } else i.type === "kitUI:CanvasWidget" ? (y = T(realStyle, i.value.data), e.changePageSize(realStyle)) : y = T(i.value.style, i.value.data);
6014
6014
  d.setStyle(i, y);
6015
6015
  }
6016
6016
  });
@@ -6035,7 +6035,7 @@ function je(t) {
6035
6035
  }
6036
6036
  d.setValue(a, a.value);
6037
6037
  let i = "";
6038
- a.type === "rect" ? i = te(a, n) : a.type === "edge" ? (e.firstFlag = !0, i = Z(a, n)) : a.type === "kitUI:CanvasWidget" ? (i = P(o, a.value.data), e.changePageSize(o)) : i = P(o, a.value.data), Et(e.graph, a, i);
6038
+ a.type === "rect" ? i = te(a, n) : a.type === "edge" ? (e.firstFlag = !0, i = Z(a, n)) : a.type === "kitUI:CanvasWidget" ? (i = T(o, a.value.data), e.changePageSize(o)) : i = T(o, a.value.data), Et(e.graph, a, i);
6039
6039
  } finally {
6040
6040
  d.endUpdate();
6041
6041
  }
@@ -6045,7 +6045,7 @@ function je(t) {
6045
6045
  let u = e.graph, d = "", o = a.style || "";
6046
6046
  if (o) {
6047
6047
  const y = { ...ie(o), ...n };
6048
- d = R(y, !0), a.value.style = y, a.setStyle(d), P(a.value.style, a.value.data), u.refresh(a);
6048
+ d = R(y, !0), a.value.style = y, a.setStyle(d), T(a.value.style, a.value.data), u.refresh(a);
6049
6049
  }
6050
6050
  return d;
6051
6051
  }
@@ -6055,7 +6055,7 @@ function je(t) {
6055
6055
  let o = ie(d);
6056
6056
  o.shape = o.shape, o.perimeter = o.perimeter, n.background.indexOf("/files") > -1 && (n.background = ""), Number(n.borderValue) === 0 && (n.stroke = "transparent"), u = `shape=${o.shape};perimeter=${o.perimeter};fillColor=${n.background || "#D1E7FF"};strokeColor=${n.stroke || "#000000"};strokeWidth=${n.borderValue || 0}`, o.direction && (u += `;direction=${o.direction}`);
6057
6057
  const i = { ...o, ...n };
6058
- a.value.style = i, P(a.value.style, a.value.data);
6058
+ a.value.style = i, T(a.value.style, a.value.data);
6059
6059
  }
6060
6060
  return u;
6061
6061
  }
@@ -6076,10 +6076,10 @@ function je(t) {
6076
6076
  u.beginUpdate();
6077
6077
  try {
6078
6078
  a.forEach((i) => {
6079
- const { evt: y = null, data: c = {}, pt: f = { x: 50, y: 50 }, w: C = 48, h: S = 48, style: w = {}, displayName: E = "", imgUrl: U = "", iconName: O = "icon-Imagefile", realWh: M = {} } = i;
6079
+ const { evt: y = null, data: c = {}, pt: f = { x: 50, y: 50 }, w: b = 48, h: S = 48, style: w = {}, displayName: E = "", imgUrl: L = "", iconName: O = "icon-Imagefile", realWh: M = {} } = i;
6080
6080
  let B = f, F = e.graph;
6081
6081
  y && (B = F.getPointForEvent(y));
6082
- let V = F.insertVertex(d, null, i.show ? i.name : "", B.x, B.y, C, S);
6082
+ let V = F.insertVertex(d, null, i.show ? i.name : "", B.x, B.y, b, S);
6083
6083
  V.type = "img", V.model = "yes", V.imgUrl = i.imgUrl, V.iconName = O, V.value = {
6084
6084
  data: c,
6085
6085
  style: w,
@@ -6107,26 +6107,26 @@ function je(t) {
6107
6107
  });
6108
6108
  }
6109
6109
  e.createAllVertex = (a, n) => {
6110
- a === "vertex" ? Ke(n) : a === "custom" ? be(n) : a === "edge" ? ye(n) : a === "img" && oe(n);
6110
+ a === "vertex" ? Ke(n) : a === "custom" ? fe(n) : a === "edge" ? ye(n) : a === "img" && oe(n);
6111
6111
  };
6112
6112
  function ye(a) {
6113
6113
  e.firstFlag = !0;
6114
6114
  const n = mxGraph.prototype.insertEdge;
6115
- mxGraph.prototype.insertEdge = function(y, c, f, C, S, w) {
6115
+ mxGraph.prototype.insertEdge = function(y, c, f, b, S, w) {
6116
6116
  return w === null && (w = ""), n.apply(this, arguments);
6117
6117
  };
6118
6118
  let u = e.graph, d = u.getDefaultParent(), o = u.getModel(), i = [];
6119
6119
  o.beginUpdate();
6120
6120
  try {
6121
6121
  for (let y = 0; y < a.length; y++) {
6122
- const c = a[y], { evt: f = null, data: C = null, pt: S = { x: 50, y: 50 }, style: w, w: E = 30, h: U = 100, iconName: O = "icon-general-icon" } = c;
6122
+ const c = a[y], { evt: f = null, data: b = null, pt: S = { x: 50, y: 50 }, style: w, w: E = 30, h: L = 100, iconName: O = "icon-general-icon" } = c;
6123
6123
  let M = S;
6124
6124
  f && (M = u.getPointForEvent(f));
6125
6125
  let B = ue(), F = u.insertEdge(d, null, "", null, null, w.perimeter + `;strokeWidth=${w.strokeWidth || 1};strokeColor=${w.strokeColor || "#333333"}`);
6126
6126
  F.id = B;
6127
- let V = new mxGeometry(), { startX: H, startY: W, endX: q, endY: G } = ze(M, E, U);
6128
- V.setTerminalPoint(new mxPoint(H, W), !0), V.setTerminalPoint(new mxPoint(q, G), !1), F.setGeometry(V), F.model = "yes", F.type = "edge", F.iconName = O, F.value = {
6129
- data: { ...C },
6127
+ let V = new mxGeometry(), { startX: H, startY: W, endX: q, endY: K } = ze(M, E, L);
6128
+ V.setTerminalPoint(new mxPoint(H, W), !0), V.setTerminalPoint(new mxPoint(q, K), !1), F.setGeometry(V), F.model = "yes", F.type = "edge", F.iconName = O, F.value = {
6129
+ data: { ...b },
6130
6130
  //存储对象
6131
6131
  style: { ...w }
6132
6132
  //存储样式对象
@@ -6139,14 +6139,14 @@ function je(t) {
6139
6139
  o.endUpdate();
6140
6140
  }
6141
6141
  }
6142
- function be(a) {
6142
+ function fe(a) {
6143
6143
  let n = e.graph, u = n.getModel(), d = [];
6144
6144
  u.beginUpdate();
6145
6145
  try {
6146
6146
  for (let o = 0; o < a.length; o++) {
6147
- const i = a[o], { evt: y = null, data: c = null, pt: f = { x: 50, y: 50 }, style: C, w: S = 100, h: w = 30, type: E, tmpType: U, codeType: O, iconName: M = "icon-general-icon", realType: B } = i;
6147
+ const i = a[o], { evt: y = null, data: c = null, pt: f = { x: 50, y: 50 }, style: b, w: S = 100, h: w = 30, type: E, tmpType: L, codeType: O, iconName: M = "icon-general-icon", realType: B } = i;
6148
6148
  let F = S, V = w, H = f;
6149
- y && (H = n.getPointForEvent(y)), C.layout && (F = C.layout.width, V = C.layout.height);
6149
+ y && (H = n.getPointForEvent(y)), b.layout && (F = b.layout.width, V = b.layout.height);
6150
6150
  let W = {
6151
6151
  width: F,
6152
6152
  height: V,
@@ -6157,14 +6157,14 @@ function je(t) {
6157
6157
  let se = q.find((X) => X.key == "layout");
6158
6158
  se.value = W;
6159
6159
  }
6160
- C.layout = W;
6161
- let G = n.getDefaultParent();
6160
+ b.layout = W;
6161
+ let K = n.getDefaultParent();
6162
6162
  ce(n, null);
6163
- let ne = R(C), re = ue(), Y = n.insertVertex(G, re, C.text || "", H.x, H.y, F, V, ne);
6164
- Y.crtype = "creatComp", Y.cmp = U, Y.codeType = O, Y.type = E, Y.realType = B, Y.model = "yes", Y.name = C.text || "", Y.iconName = M, Y.style = ne, Y.value = {
6163
+ let ne = R(b), re = ue(), Y = n.insertVertex(K, re, b.text || "", H.x, H.y, F, V, ne);
6164
+ Y.crtype = "creatComp", Y.cmp = L, Y.codeType = O, Y.type = E, Y.realType = B, Y.model = "yes", Y.name = b.text || "", Y.iconName = M, Y.style = ne, Y.value = {
6165
6165
  data: c,
6166
6166
  //存储对象
6167
- style: C
6167
+ style: b
6168
6168
  //存储样式对象
6169
6169
  }, n.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED, {
6170
6170
  cells: [Y]
@@ -6180,7 +6180,7 @@ function je(t) {
6180
6180
  u.beginUpdate();
6181
6181
  try {
6182
6182
  for (let o = 0; o < a.length; o++) {
6183
- const i = a[o], { evt: y = null, data: c = null, pt: f = { x: 50, y: 50 }, style: C, w: S = 100, h: w = 20, iconName: E = "iconfont icon-general-icon", realType: U, from: O } = i;
6183
+ const i = a[o], { evt: y = null, data: c = null, pt: f = { x: 50, y: 50 }, style: b, w: S = 100, h: w = 20, iconName: E = "iconfont icon-general-icon", realType: L, from: O } = i;
6184
6184
  let M = f;
6185
6185
  n || (n = e.graph), y && (M = n.getPointForEvent(y));
6186
6186
  let B = n.getDefaultParent(), F = n.getModel(), V = {
@@ -6193,16 +6193,16 @@ function je(t) {
6193
6193
  let ne = H.find((re) => re.key == "layout");
6194
6194
  ne.value = V;
6195
6195
  }
6196
- let W = R(C);
6197
- C.gtype == "rect" && (Number(C.borderValue) === 0 && (C.stroke = "transparent"), W = C.perimeter + `;fillColor=${C.background || "transparent"};strokeColor=${C.stroke || "#333333"};strokeWidth=${C.borderWidth || 0}`);
6198
- let q = ue(), G = n.insertVertex(B, q, C.text || "", M.x, M.y, S, w, W);
6199
- C.gtype == "rect" ? G.type = "rect" : G.type = "vertex", G.model = "yes", G.name = C.text || "", G.iconName = E, G.value = {
6196
+ let W = R(b);
6197
+ b.gtype == "rect" && (Number(b.borderValue) === 0 && (b.stroke = "transparent"), W = b.perimeter + `;fillColor=${b.background || "transparent"};strokeColor=${b.stroke || "#333333"};strokeWidth=${b.borderWidth || 0}`);
6198
+ let q = ue(), K = n.insertVertex(B, q, b.text || "", M.x, M.y, S, w, W);
6199
+ b.gtype == "rect" ? K.type = "rect" : K.type = "vertex", K.model = "yes", K.name = b.text || "", K.iconName = E, K.value = {
6200
6200
  data: { ...c },
6201
6201
  //存储对象
6202
- style: { ...C }
6202
+ style: { ...b }
6203
6203
  //存储样式对象
6204
- }, G.from = O || "other", G.realType = U, G.style = W, d.push(G), n.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED, {
6205
- cells: [G]
6204
+ }, K.from = O || "other", K.realType = L, K.style = W, d.push(K), n.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED, {
6205
+ cells: [K]
6206
6206
  }));
6207
6207
  }
6208
6208
  n.setSelectionCells(d);
@@ -6211,14 +6211,14 @@ function je(t) {
6211
6211
  }
6212
6212
  }
6213
6213
  e.addVertex = ({ graph: a, options: n = {} }) => new Promise((u, d) => {
6214
- const { evt: o = null, data: i = null, pt: y = { x: 50, y: 50 }, style: c, w: f = 100, h: C = 20, iconName: S = "iconfont icon-general-icon", realType: w, from: E } = n;
6215
- let U = y;
6216
- a || (a = e.graph), o && (U = a.getPointForEvent(o));
6214
+ const { evt: o = null, data: i = null, pt: y = { x: 50, y: 50 }, style: c, w: f = 100, h: b = 20, iconName: S = "iconfont icon-general-icon", realType: w, from: E } = n;
6215
+ let L = y;
6216
+ a || (a = e.graph), o && (L = a.getPointForEvent(o));
6217
6217
  let O = a.getDefaultParent(), M = a.getModel(), B = {
6218
6218
  width: f,
6219
- height: C,
6220
- x: U.x,
6221
- y: U.y
6219
+ height: b,
6220
+ x: L.x,
6221
+ y: L.y
6222
6222
  }, F = i.children;
6223
6223
  if (F && F.length > 0) {
6224
6224
  let V = F.find((H) => H.key == "layout");
@@ -6228,7 +6228,7 @@ function je(t) {
6228
6228
  try {
6229
6229
  let V = R(c);
6230
6230
  c.gtype == "rect" && (Number(c.borderValue) === 0 && (c.stroke = "transparent"), V = c.perimeter + `;fillColor=${c.background || "transparent"};strokeColor=${c.stroke || "#333333"};strokeWidth=${c.borderWidth || 0}`);
6231
- let H = ue(), W = a.insertVertex(O, H, c.text || "", U.x, U.y, f, C, V);
6231
+ let H = ue(), W = a.insertVertex(O, H, c.text || "", L.x, L.y, f, b, V);
6232
6232
  c.gtype == "rect" ? W.type = "rect" : W.type = "vertex", W.model = "yes", W.name = c.text || "", W.iconName = S, W.value = {
6233
6233
  data: { ...i },
6234
6234
  //存储对象
@@ -6251,8 +6251,8 @@ function je(t) {
6251
6251
  // V3 右下
6252
6252
  { x: -c, y: f }
6253
6253
  // V4 左下
6254
- ].map((U) => {
6255
- const O = a.x + (U.x * i - U.y * y), M = a.y + (U.x * y + U.y * i);
6254
+ ].map((L) => {
6255
+ const O = a.x + (L.x * i - L.y * y), M = a.y + (L.x * y + L.y * i);
6256
6256
  return { x: O.toFixed(0), y: M.toFixed(0) };
6257
6257
  }), w = S[3], E = S[1];
6258
6258
  return { startX: parseFloat(w.x), startY: parseFloat(w.y), endX: parseFloat(E.x), endY: parseFloat(E.y) };
@@ -6263,15 +6263,15 @@ function je(t) {
6263
6263
  return mxGraph.prototype.insertEdge = function(d, o, i, y, c, f) {
6264
6264
  return f === null && (f = ""), u.apply(this, arguments);
6265
6265
  }, new Promise((d, o) => {
6266
- const { evt: i = null, data: y = null, pt: c = { x: 50, y: 50 }, style: f, w: C = 30, h: S = 100, iconName: w = "icon-general-icon" } = n;
6266
+ const { evt: i = null, data: y = null, pt: c = { x: 50, y: 50 }, style: f, w: b = 30, h: S = 100, iconName: w = "icon-general-icon" } = n;
6267
6267
  let E = c;
6268
6268
  a || (a = e.graph), i && (E = a.getPointForEvent(i));
6269
- let U = a.getDefaultParent(), O = a.getModel();
6269
+ let L = a.getDefaultParent(), O = a.getModel();
6270
6270
  O.beginUpdate();
6271
6271
  try {
6272
- let M = ue(), B = a.insertEdge(U, null, "", null, null, f.perimeter + `;strokeWidth=${f.strokeWidth || 1};strokeColor=${f.strokeColor || "#333333"}`);
6272
+ let M = ue(), B = a.insertEdge(L, null, "", null, null, f.perimeter + `;strokeWidth=${f.strokeWidth || 1};strokeColor=${f.strokeColor || "#333333"}`);
6273
6273
  B.id = M;
6274
- let F = new mxGeometry(), { startX: V, startY: H, endX: W, endY: q } = ze(E, C, S);
6274
+ let F = new mxGeometry(), { startX: V, startY: H, endX: W, endY: q } = ze(E, b, S);
6275
6275
  F.setTerminalPoint(new mxPoint(V, H), !0), F.setTerminalPoint(new mxPoint(W, q), !1), B.setGeometry(F), B.model = "yes", B.type = "edge", B.iconName = w, B.value = {
6276
6276
  data: { ...y },
6277
6277
  //存储对象
@@ -6285,17 +6285,17 @@ function je(t) {
6285
6285
  }
6286
6286
  });
6287
6287
  }, e.createCustomComponent = ({ graph: a, options: n = {} }) => new Promise((u, d) => {
6288
- const { evt: o = null, data: i = null, pt: y = { x: 50, y: 50 }, id: c = null, style: f, w: C = 100, h: S = 30, type: w, tmpType: E, codeType: U, crtype: O = "creatComp", other: M = {}, iconName: B = "icon-general-icon", realType: F } = n;
6289
- let V = C, H = S, W = y;
6288
+ const { evt: o = null, data: i = null, pt: y = { x: 50, y: 50 }, id: c = null, style: f, w: b = 100, h: S = 30, type: w, tmpType: E, codeType: L, crtype: O = "creatComp", other: M = {}, iconName: B = "icon-general-icon", realType: F } = n;
6289
+ let V = b, H = S, W = y;
6290
6290
  a || (a = e.graph), o && (W = a.getPointForEvent(o)), f.layout && (V = f.layout.width, H = f.layout.height);
6291
6291
  let q = {
6292
6292
  width: V,
6293
6293
  height: H,
6294
6294
  x: W.x,
6295
6295
  y: W.y
6296
- }, G = i.children;
6297
- if (G && G.length > 0) {
6298
- let Y = G.find((se) => se.key == "layout");
6296
+ }, K = i.children;
6297
+ if (K && K.length > 0) {
6298
+ let Y = K.find((se) => se.key == "layout");
6299
6299
  Y.value = q;
6300
6300
  }
6301
6301
  f.layout = q;
@@ -6303,7 +6303,7 @@ function je(t) {
6303
6303
  ce(a), re.beginUpdate();
6304
6304
  try {
6305
6305
  let Y = R(f), se = c || ue(), X = a.insertVertex(ne, se, f.text || "", W.x, W.y, V, H, Y);
6306
- X.crtype = O || "creatComp", X.other = M, X.cmp = E, X.codeType = U, X.type = w, X.realType = F, X.model = "yes", X.name = f.text || "", X.iconName = B, X.style = Y, X.value = {
6306
+ X.crtype = O || "creatComp", X.other = M, X.cmp = E, X.codeType = L, X.type = w, X.realType = F, X.model = "yes", X.name = f.text || "", X.iconName = B, X.style = Y, X.value = {
6307
6307
  data: i,
6308
6308
  //存储对象
6309
6309
  style: f
@@ -6337,7 +6337,7 @@ function je(t) {
6337
6337
  mxUtils.error("Browser is not supported!", 200, !1);
6338
6338
  else {
6339
6339
  let i = new mxEditor(), y = i.graph;
6340
- i.setGraphContainer(n), y.setEnabled(!1), y.setPanning(!1), y.setTooltips(!1), y.setHtmlLabels(!0), y.panningHandler.useLeftButtonForPanning = !0, y.isHtmlLabel = function(C) {
6340
+ i.setGraphContainer(n), y.setEnabled(!1), y.setPanning(!1), y.setTooltips(!1), y.setHtmlLabels(!0), y.panningHandler.useLeftButtonForPanning = !0, y.isHtmlLabel = function(b) {
6341
6341
  return !0;
6342
6342
  }, y.gridSize = 10, e.graph = y, e.preview = !0;
6343
6343
  const f = y.getStylesheet().getDefaultVertexStyle();
@@ -6352,35 +6352,35 @@ function je(t) {
6352
6352
  fontColor: "#333333",
6353
6353
  // 确保标签可见
6354
6354
  fontSize: 12
6355
- }), y.convertValueToString = function(C) {
6356
- let { width: S, height: w } = C.geometry;
6357
- if (C.type == "vertex") {
6358
- let { url: E, pup: U } = fe(C), O = C.value.style, M = C.value.data.children, B = {};
6355
+ }), y.convertValueToString = function(b) {
6356
+ let { width: S, height: w } = b.geometry;
6357
+ if (b.type == "vertex") {
6358
+ let { url: E, pup: L } = pe(b), O = b.value.style, M = b.value.data.children, B = {};
6359
6359
  M && (B = M.find((V) => V.key === "text"));
6360
6360
  let F = document.createElement("div");
6361
6361
  return F.innerHTML = N({
6362
6362
  img: (O == null ? void 0 : O.imgUrl) || "",
6363
6363
  text: B.value || O.text
6364
- }), F.style = D(O), F.style.width = S + "px", F.style.height = w + "px", F.style.lineHeight = w + "px", E ? (F.style.cursor = "pointer", F.className = "main-text hyperlink-btn", C.hyperlink = E) : F.className = "main-text", U && (C.popup = U), F;
6365
- } else if (C.type == "kitUI:CanvasWidget") {
6366
- let { width: E, height: U } = C.geometry, O = document.createElement("div");
6367
- if (O.style.width = E + "px", O.style.height = U + "px", C.value) {
6368
- let M = C.value.style;
6364
+ }), F.style = I(O), F.style.width = S + "px", F.style.height = w + "px", F.style.lineHeight = w + "px", E ? (F.style.cursor = "pointer", F.className = "main-text hyperlink-btn", b.hyperlink = E) : F.className = "main-text", L && (b.popup = L), F;
6365
+ } else if (b.type == "kitUI:CanvasWidget") {
6366
+ let { width: E, height: L } = b.geometry, O = document.createElement("div");
6367
+ if (O.style.width = E + "px", O.style.height = L + "px", b.value) {
6368
+ let M = b.value.style;
6369
6369
  M["background-image"] ? O.style.background = `${M["background-image"]} center center no-repeat` : O.style.background = "";
6370
6370
  }
6371
6371
  return O;
6372
- } else if (C.type == "img") {
6372
+ } else if (b.type == "img") {
6373
6373
  let E = document.createElement("div");
6374
6374
  return E.innerHTML = N({
6375
- img: C.imgUrl || ""
6375
+ img: b.imgUrl || ""
6376
6376
  }), E.style.width = S + "px", E.style.height = w + "px", E.className = "main-img", E;
6377
6377
  }
6378
- return C.value;
6378
+ return b.value;
6379
6379
  }, y.setPanning(!1), y.view.animate = !1, y.gridEnabled = !1, Ne(y), d(y);
6380
6380
  }
6381
6381
  });
6382
6382
  };
6383
- function fe(a) {
6383
+ function pe(a) {
6384
6384
  let n = a.value.data;
6385
6385
  if (n) {
6386
6386
  let u = n.treeData || [], d = [], o = [];
@@ -6465,9 +6465,9 @@ function je(t) {
6465
6465
  for (let c = 0; c < u.length; c++) {
6466
6466
  let f = u[c];
6467
6467
  if (e.isPreview) {
6468
- let C = document.getElementsByClassName(f.id);
6469
- for (let S = 0; S < C.length; S++) {
6470
- const w = C[S];
6468
+ let b = document.getElementsByClassName(f.id);
6469
+ for (let S = 0; S < b.length; S++) {
6470
+ const w = b[S];
6471
6471
  if (w) {
6472
6472
  var o = f.getGeometry();
6473
6473
  w.style.position = "absolute", w.style.width = o.width + "px", w.style.height = o.height + "px", w.style.left = o.x + i + "px", w.style.top = o.y + y + "px";
@@ -6517,8 +6517,8 @@ function je(t) {
6517
6517
  }
6518
6518
  else
6519
6519
  c && (c.style.background = "transparent");
6520
- let f = i, C = y;
6521
- a.horizontalAlign === "end" && (f = i - 2), a.verticalAlign === "end" && (C = y - 2), e.addMask(n, f, C, a.width, a.height), n.getView().setTranslate(f, C);
6520
+ let f = i, b = y;
6521
+ a.horizontalAlign === "end" && (f = i - 2), a.verticalAlign === "end" && (b = y - 2), e.addMask(n, f, b, a.width, a.height), n.getView().setTranslate(f, b);
6522
6522
  }
6523
6523
  n.scrollCellToVisible(d, !1), e.parent = d, n.refresh(d);
6524
6524
  }
@@ -6568,11 +6568,11 @@ function je(t) {
6568
6568
  const d = u.getProperty("cells"), o = u.getProperty("bounds"), i = u.getProperty("previous"), y = a.getSelectionCells();
6569
6569
  d.forEach((c) => {
6570
6570
  if (a.getChildCells(c), a.getCellGeometry(c)) {
6571
- const C = parseFloat(o[0].width / i[0].width), S = parseFloat(o[0].height / i[0].height);
6571
+ const b = parseFloat(o[0].width / i[0].width), S = parseFloat(o[0].height / i[0].height);
6572
6572
  y.forEach((w) => {
6573
6573
  if (w.id != c.id) {
6574
- const U = a.getCellGeometry(w).clone();
6575
- U.width *= C, U.height *= S, a.getModel().setGeometry(w, U);
6574
+ const L = a.getCellGeometry(w).clone();
6575
+ L.width *= b, L.height *= S, a.getModel().setGeometry(w, L);
6576
6576
  }
6577
6577
  });
6578
6578
  }
@@ -6592,12 +6592,12 @@ function je(t) {
6592
6592
  mxEvent.consume(a);
6593
6593
  const d = n.getView().getScale(), o = u ? 1.1 : 1 / 1.1, i = d * o;
6594
6594
  if (i > 3 || i < 0.1) return;
6595
- const y = n.container, c = y.offsetWidth, f = y.offsetHeight, C = c / 2, S = f / 2;
6595
+ const y = n.container, c = y.offsetWidth, f = y.offsetHeight, b = c / 2, S = f / 2;
6596
6596
  n.getModel().beginUpdate();
6597
6597
  try {
6598
- const w = n.getView(), E = w.getScale(), U = w.getTranslate(), O = C / E - U.x, M = S / E - U.y;
6598
+ const w = n.getView(), E = w.getScale(), L = w.getTranslate(), O = b / E - L.x, M = S / E - L.y;
6599
6599
  n.getView().setScale(i);
6600
- const B = C / i - U.x, F = S / i - U.y, V = B - O, H = F - M;
6600
+ const B = b / i - L.x, F = S / i - L.y, V = B - O, H = F - M;
6601
6601
  w.setTranslate(
6602
6602
  w.getTranslate().x + V,
6603
6603
  w.getTranslate().y + H
@@ -6615,8 +6615,8 @@ function je(t) {
6615
6615
  return;
6616
6616
  let y = [];
6617
6617
  d && d.type != "kitUI:CanvasWidget" ? (y = ["new"], i || y.push("paste"), n.getSelectionCells().length < 2 && y.push("order")) : (y = ["copy", "cut", "clone", "del", "order", "toUp", "toDown"], i || y.push("paste")), gt(a, y).forEach((f) => {
6618
- let C = null, S = null;
6619
- f.children && f.children.length > 0 ? (C = null, S = f.children) : C = function() {
6618
+ let b = null, S = null;
6619
+ f.children && f.children.length > 0 ? (b = null, S = f.children) : b = function() {
6620
6620
  if (f.code) {
6621
6621
  let E = n.getPointForEvent(o);
6622
6622
  t.contextmenus(o, {
@@ -6629,18 +6629,18 @@ function je(t) {
6629
6629
  });
6630
6630
  }
6631
6631
  };
6632
- let w = u.addItem(f.title, f.image, C, null, f.iconCls, f.disable, null, null, f.isBorder);
6632
+ let w = u.addItem(f.title, f.image, b, null, f.iconCls, f.disable, null, null, f.isBorder);
6633
6633
  S && S.forEach((E) => {
6634
6634
  u.addItem(E.title, E.image, function() {
6635
6635
  if (E.code) {
6636
- let U = n.getPointForEvent(o);
6636
+ let L = n.getPointForEvent(o);
6637
6637
  t.contextmenus(o, {
6638
6638
  title: E.title,
6639
6639
  code: E.code || "",
6640
6640
  type: E.type,
6641
6641
  style: E.style,
6642
6642
  iconCls: E.iconCls,
6643
- pt: U
6643
+ pt: L
6644
6644
  });
6645
6645
  }
6646
6646
  }, w, E.iconCls, E.disable, null, null, E.isBorder);
@@ -6676,13 +6676,13 @@ const $e = {
6676
6676
  return new Promise((l) => {
6677
6677
  const s = document.getElementsByTagName("script");
6678
6678
  let r = !1;
6679
- for (let b = 0; b < s.length; b++)
6680
- s[b].src.includes("mxClient.js") && (r = !0);
6679
+ for (let v = 0; v < s.length; v++)
6680
+ s[v].src.includes("mxClient.js") && (r = !0);
6681
6681
  if (r)
6682
6682
  return l();
6683
- let p = e.map((b) => {
6683
+ let p = e.map((v) => {
6684
6684
  let x = document.createElement("script");
6685
- return x.type = "text/javascript", x.async = !1, x.src = b, document.head.appendChild(x), x;
6685
+ return x.type = "text/javascript", x.async = !1, x.src = v, document.head.appendChild(x), x;
6686
6686
  }).pop();
6687
6687
  p.onload = l;
6688
6688
  });
@@ -7160,28 +7160,30 @@ const $e = {
7160
7160
  var p = document.createElement("div");
7161
7161
  if (r.type === "img") {
7162
7162
  p.style.overflow = "auto", p.style.width = "100%", p.style.height = "100%", p.style.display = "flex", p.style.justifyContent = "center", p.style.alignItems = "center";
7163
- var b = document.createElement("img");
7164
- b.src = r.path, p.appendChild(b);
7163
+ var v = document.createElement("img");
7164
+ v.src = r.path, p.appendChild(v);
7165
7165
  } else if (r.type === "time") {
7166
- let { el: T } = r.vnode;
7167
- p.style.overflow = "auto", p.style.width = "100%", p.style.height = "100%", p.appendChild(T);
7166
+ let { el: I } = r.vnode;
7167
+ p.style.overflow = "auto", p.style.width = "100%", p.style.height = "100%", p.appendChild(I);
7168
7168
  } else {
7169
7169
  p.style.overflow = "auto", p.style.width = "100%", p.style.height = "100%", p.style.display = "flex", p.style.justifyContent = "center", p.style.alignItems = "center";
7170
7170
  var x = r.pathHtml;
7171
7171
  p.appendChild(x);
7172
7172
  }
7173
- let v = 0, h = 0;
7173
+ let g = 0, h = 0;
7174
7174
  if (r.isCenter == "false")
7175
- v = r.left, h = r.top;
7175
+ g = r.left, h = r.top;
7176
7176
  else {
7177
7177
  var k = document.getElementById("app"), N = k.clientWidth, A = k.clientHeight;
7178
- v = (N - r.width) / 2, h = (A - r.height) / 2;
7178
+ g = (N - r.width) / 2, h = (A - r.height) / 2;
7179
7179
  }
7180
- v < 0 && (v = 0), h < 0 && (h = 0);
7181
- var z = document.createElement("div"), g = new mxWindow(
7180
+ g < 0 && (g = 0), h < 0 && (h = 0);
7181
+ var z = document.createElement("div");
7182
+ let C = document.querySelectorAll(".mx-window-mask");
7183
+ var U = new mxWindow(
7182
7184
  r.title,
7183
7185
  p,
7184
- v,
7186
+ g,
7185
7187
  h,
7186
7188
  r.width,
7187
7189
  r.height,
@@ -7189,12 +7191,14 @@ const $e = {
7189
7191
  !0,
7190
7192
  "mxWindowTitle"
7191
7193
  );
7192
- g.setClosable(!0), g.setMaximizable(!0), g.setScrollable(!0), g.setResizable(!0), g.setVisible(e), g.constrainWithinViewport = !0, g.addListener(mxEvent.CLOSE, function(T, D) {
7193
- l.isShowPup = !1, document.body.removeChild(z), z.style.display = "none";
7194
- }), g.addListener(mxEvent.MOVE, function(T, D) {
7195
- var R = g.getX(), K = g.getY(), $ = g.getElement().offsetWidth, P = g.getElement().offsetHeight, Z = document.documentElement.clientWidth, te = document.documentElement.clientHeight, ie = 0, oe = 0, ce = Z - $, ye = te - P;
7196
- R = Math.max(ie, Math.min(R, ce)), K = Math.max(oe, Math.min(K, ye)), g.setLocation(R, K);
7197
- }), g.div && (g.div.style.zIndex = 2e3 + m, z.className = "mx-window-mask", z.style.zIndex = 30 + m, document.body.appendChild(z), z.style.display = "block"), s.push(g);
7194
+ U.setClosable(!0), U.setMaximizable(!0), U.setScrollable(!0), U.setResizable(!0), U.setVisible(e), U.constrainWithinViewport = !0, U.addListener(mxEvent.CLOSE, function(I, R) {
7195
+ l.isShowPup = !1, C = document.querySelectorAll(".mx-window-mask"), C && C.length > 0 && C.forEach(($) => {
7196
+ $.style.display = "none", $.remove();
7197
+ });
7198
+ }), U.addListener(mxEvent.MOVE, function(I, R) {
7199
+ var $ = U.getX(), G = U.getY(), T = U.getElement().offsetWidth, Z = U.getElement().offsetHeight, te = document.documentElement.clientWidth, ie = document.documentElement.clientHeight, oe = 0, ce = 0, ye = te - T, fe = ie - Z;
7200
+ $ = Math.max(oe, Math.min($, ye)), G = Math.max(ce, Math.min(G, fe)), U.setLocation($, G);
7201
+ }), U.div && C.length == 0 && (U.div.style.zIndex = 2e3 + m, z.className = "mx-window-mask", z.style.zIndex = 30 + m, document.body.appendChild(z), z.style.display = "block"), s.push(U);
7198
7202
  }), l.centeredWindow = s, l.wndAry = s;
7199
7203
  }
7200
7204
  },
@@ -7244,7 +7248,7 @@ const $e = {
7244
7248
  class: "transparentRect"
7245
7249
  }, Ll = ["id"];
7246
7250
  function Pl(t, e, l, s, r, m) {
7247
- return L(), I("div", {
7251
+ return P(), D("div", {
7248
7252
  class: J(["main-gd", { "show-scroll": l.isPreview }]),
7249
7253
  ref: "mainGd"
7250
7254
  }, [
@@ -7253,14 +7257,14 @@ function Pl(t, e, l, s, r, m) {
7253
7257
  ref: "geEditor",
7254
7258
  id: l.currentIndex
7255
7259
  }, null, 10, Nl),
7256
- l.isShow ? (L(), I("div", Ul)) : _("", !0),
7257
- (L(!0), I(ge, null, ve(r.timeLineMap, (p, b) => ut((L(), I("div", {
7260
+ l.isShow ? (P(), D("div", Ul)) : _("", !0),
7261
+ (P(!0), D(ve, null, be(r.timeLineMap, (p, v) => ut((P(), D("div", {
7258
7262
  key: p.id + r.keys,
7259
7263
  id: p.id,
7260
7264
  style: j([{ position: "absolute" }, m.getStyle(p)]),
7261
7265
  class: J(p.id)
7262
7266
  }, [
7263
- (L(), me(Ve(m.dynamicComponent(p.compId)), {
7267
+ (P(), me(Ve(m.dynamicComponent(p.compId)), {
7264
7268
  id: p.other.timeId + "",
7265
7269
  thisTab: p.other.thisTab
7266
7270
  }, null, 8, ["id", "thisTab"]))
@@ -7477,32 +7481,32 @@ const jl = /* @__PURE__ */ ae(zl, [["render", Pl]]), Tl = {
7477
7481
  m.style.overflow = "auto", m.style.width = "100%", m.style.height = "100%", m.appendChild(z);
7478
7482
  } else {
7479
7483
  m.style.overflow = "auto", m.style.width = "100%", m.style.height = "100%";
7480
- var b = r.pathHtml;
7481
- m.appendChild(b);
7484
+ var v = r.pathHtml;
7485
+ m.appendChild(v);
7482
7486
  }
7483
- let x = 0, v = 0;
7487
+ let x = 0, g = 0;
7484
7488
  if (r.isCenter == "false")
7485
- x = r.left, v = r.top;
7489
+ x = r.left, g = r.top;
7486
7490
  else {
7487
7491
  var h = document.getElementById("app"), k = h.clientWidth, N = h.clientHeight;
7488
- x = (k - r.width) / 2, v = (N - r.height) / 2;
7492
+ x = (k - r.width) / 2, g = (N - r.height) / 2;
7489
7493
  }
7490
7494
  var A = new mxWindow(
7491
7495
  r.title,
7492
7496
  m,
7493
7497
  x,
7494
- v,
7498
+ g,
7495
7499
  r.width,
7496
7500
  r.height,
7497
7501
  !0,
7498
7502
  !0,
7499
7503
  "mxWindowTitle"
7500
7504
  );
7501
- A.setClosable(!0), A.setMaximizable(!1), A.setResizable(!0), A.setVisible(e), A.constrainWithinViewport = !0, A.addListener(mxEvent.CLOSE, function(z, g) {
7505
+ A.setClosable(!0), A.setMaximizable(!1), A.setResizable(!0), A.setVisible(e), A.constrainWithinViewport = !0, A.addListener(mxEvent.CLOSE, function(z, C) {
7502
7506
  l.isShowPup = !1;
7503
- }), A.addListener(mxEvent.MOVE, function(z, g) {
7504
- var T = A.getX(), D = A.getY(), R = A.getElement().offsetWidth, K = A.getElement().offsetHeight, $ = document.documentElement.clientWidth, P = document.documentElement.clientHeight, Z = 0, te = 0, ie = $ - R, oe = P - K;
7505
- T = Math.max(Z, Math.min(T, ie)), D = Math.max(te, Math.min(D, oe)), A.setLocation(T, D);
7507
+ }), A.addListener(mxEvent.MOVE, function(z, C) {
7508
+ var U = A.getX(), I = A.getY(), R = A.getElement().offsetWidth, $ = A.getElement().offsetHeight, G = document.documentElement.clientWidth, T = document.documentElement.clientHeight, Z = 0, te = 0, ie = G - R, oe = T - $;
7509
+ U = Math.max(Z, Math.min(U, ie)), I = Math.max(te, Math.min(I, oe)), A.setLocation(U, I);
7506
7510
  }), s.push(A);
7507
7511
  }), window.centeredWindow = s, l.wndAry = s;
7508
7512
  }
@@ -7534,20 +7538,20 @@ const jl = /* @__PURE__ */ ae(zl, [["render", Pl]]), Tl = {
7534
7538
  class: "transparentRect"
7535
7539
  }, Fl = ["id"];
7536
7540
  function Ol(t, e, l, s, r, m) {
7537
- return L(), I("div", Il, [
7541
+ return P(), D("div", Il, [
7538
7542
  le("div", {
7539
7543
  class: "main-body",
7540
7544
  ref: "geEditor",
7541
7545
  id: l.currentIndex
7542
7546
  }, [
7543
- l.isShow ? (L(), I("div", Bl)) : _("", !0),
7544
- r.timeLineMap.length > 0 && l.isPreview ? (L(!0), I(ge, { key: 1 }, ve(r.timeLineMap, (p, b) => (L(), I("div", {
7547
+ l.isShow ? (P(), D("div", Bl)) : _("", !0),
7548
+ r.timeLineMap.length > 0 && l.isPreview ? (P(!0), D(ve, { key: 1 }, be(r.timeLineMap, (p, v) => (P(), D("div", {
7545
7549
  key: p.id,
7546
7550
  id: p.id,
7547
7551
  class: J(p.id),
7548
7552
  style: j([{ position: "absolute" }, { zIndex: 0 }])
7549
7553
  }, [
7550
- (L(), me(Ve(m.dynamicComponent(p.compId)), {
7554
+ (P(), me(Ve(m.dynamicComponent(p.compId)), {
7551
7555
  id: p.other.timeId + "",
7552
7556
  thisTab: p.other.thisTab
7553
7557
  }, null, 8, ["id", "thisTab"]))