iflow-engine-base 3.9.16 → 3.9.162

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,6 +1,6 @@
1
- import { V as X, E as gt, Q as yt, M as Me, a as we, b as se, B as _e, F as ye, S as vt, c as Ge, m as ze, d as wt, P as bt, C as pe, e as xt, f as Mt, N as kt, T as _t, L as Ze, g as ge, h as Te, D as Ae, i as Et, j as Re, k as at, G as Se, l as Ct, n as St, A as Tt, o as At, O as It, W as Lt, p as Pt, q as Ue, r as Dt, I as zt, R as Rt } from "./three-vendor-Dbcwwhki.js";
2
- import { F as qe, W as lt, L as Bt } from "./sdk-runtime-DxxL_DiS.js";
3
- import { r as Ee } from "./sdk-assets-ChDuFDAw.js";
1
+ import { V as X, E as gt, Q as yt, M as Me, a as we, b as se, B as Ee, F as ye, S as vt, c as Ge, m as ze, d as wt, P as bt, C as pe, e as xt, f as Mt, N as kt, T as _t, L as Ze, g as ge, h as Te, D as Ae, i as Et, j as Re, k as at, G as Se, l as Ct, n as St, A as Tt, o as At, O as It, W as Lt, p as Pt, q as Ue, r as Dt, I as zt, R as Rt } from "./three-vendor-Dbcwwhki.js";
2
+ import { F as qe, W as lt, L as Bt } from "./sdk-runtime-gCd6dMmU.js";
3
+ import { r as _e } from "./sdk-assets-F7qFhuao.js";
4
4
  var Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
5
  function ht(A) {
6
6
  return A && A.__esModule && Object.prototype.hasOwnProperty.call(A, "default") ? A.default : A;
@@ -2969,7 +2969,7 @@ class et {
2969
2969
  });
2970
2970
  }
2971
2971
  if (r.length === 0) return null;
2972
- const v = new _e();
2972
+ const v = new Ee();
2973
2973
  return v.setAttribute("position", new ye(r, 3)), a && v.setAttribute("uv", new ye(o, 2)), v.computeVertexNormals(), v;
2974
2974
  }
2975
2975
  /** 将任意简单裁剪多边形三角化,后续每个三角形都可用凸裁剪处理。 */
@@ -3415,7 +3415,7 @@ class Xt {
3415
3415
  const h = new X(r.getX(a), r.getY(a), r.getZ(a)), u = new X(r.getX(a + 1), r.getY(a + 1), r.getZ(a + 1)), g = new X(r.getX(a + 2), r.getY(a + 2), r.getZ(a + 2)), v = h.clone().lerp(u, 0.5), d = u.clone().lerp(g, 0.5), y = g.clone().lerp(h, 0.5);
3416
3416
  this.pushTriangle(o, h, v, y), this.pushTriangle(o, v, u, d), this.pushTriangle(o, y, d, g), this.pushTriangle(o, v, d, y);
3417
3417
  }
3418
- i = new _e().setAttribute("position", new ye(o, 3));
3418
+ i = new Ee().setAttribute("position", new ye(o, 3));
3419
3419
  }
3420
3420
  return i;
3421
3421
  }
@@ -3794,7 +3794,7 @@ class it {
3794
3794
  if (!Number.isFinite(o) || !Number.isFinite(a) || o === 0 || a === 0) return [];
3795
3795
  const h = s.multiplyScalar(o), u = r.multiplyScalar(a), g = n.clone(), v = n.clone().add(h), d = n.clone().add(h).add(u), y = n.clone().add(u);
3796
3796
  [g, v, d, y].forEach((w) => w.applyMatrix4(t));
3797
- const l = new _e();
3797
+ const l = new Ee();
3798
3798
  l.setAttribute("position", new ye([
3799
3799
  g.x,
3800
3800
  g.y,
@@ -3927,7 +3927,7 @@ class Kt {
3927
3927
  if (e.forEach((g) => {
3928
3928
  g.points.forEach((v) => n.push(v));
3929
3929
  }), n.length === 0) return;
3930
- const s = new _e().setFromPoints(n), r = new Ze({ color: this.resolveColor(t) }), o = new ge(s, r);
3930
+ const s = new Ee().setFromPoints(n), r = new Ze({ color: this.resolveColor(t) }), o = new ge(s, r);
3931
3931
  o.name = t;
3932
3932
  const a = s.getAttribute("position");
3933
3933
  o.clonePoints = a.array.slice(), o.materialClone = r.clone(), this.targetGroup.add(o);
@@ -4005,7 +4005,7 @@ class Kt {
4005
4005
  /** 统一合批几何属性,避免裁剪后 normal/index/uv 差异导致 mergeGeometries 失败。 */
4006
4006
  normalizeMeshGeometries(e, t, i) {
4007
4007
  return e.map((n) => {
4008
- const s = n.geometry, r = s.index ? s.toNonIndexed() : s.clone(), o = r.getAttribute("position"), a = r.getAttribute("uv"), h = r.getAttribute("color"), u = new _e();
4008
+ const s = n.geometry, r = s.index ? s.toNonIndexed() : s.clone(), o = r.getAttribute("position"), a = r.getAttribute("uv"), h = r.getAttribute("color"), u = new Ee();
4009
4009
  return u.setAttribute("position", o.clone()), t && u.setAttribute("uv", a ? a.clone() : this.createEmptyUv(o.count)), i && u.setAttribute("color", h ? h.clone() : this.createSolidColorAttribute(o.count, n.color)), u;
4010
4010
  });
4011
4011
  }
@@ -4519,7 +4519,7 @@ class qt {
4519
4519
  });
4520
4520
  }
4521
4521
  if (i !== e && i.dispose(), o.length === 0) return null;
4522
- const h = new _e();
4522
+ const h = new Ee();
4523
4523
  return h.setAttribute("position", new ye(o, 3)), r && h.setAttribute("uv", new ye(a, 2)), h.computeVertexNormals(), h;
4524
4524
  }
4525
4525
  clipPolygonVertices(e, t) {
@@ -4579,7 +4579,7 @@ class qt {
4579
4579
  }
4580
4580
  /** 按图纸实际文字裁剪字体字符集,降低字体转换成本。 */
4581
4581
  async loadFont(e) {
4582
- const t = this.engine.options?.fontUrl ?? "/fonts/simfang.ttf", i = await qe.fromUrl(t, { chars: this.collectTextChars(e) });
4582
+ const t = this.engine.options?.fontUrl ?? _e("/fonts/simfang.ttf", import.meta.url), i = await qe.fromUrl(t, { chars: this.collectTextChars(e) });
4583
4583
  return qe.toThreeFont(i);
4584
4584
  }
4585
4585
  /** 从 block 实体中收集需要转换的文字字符;根实体来自 tile insert,不包含真实文字。 */
@@ -4669,7 +4669,7 @@ class qt {
4669
4669
  this.clear();
4670
4670
  }
4671
4671
  }
4672
- const Jt = "3.9.16", Qt = {
4672
+ const Jt = "3.9.161", Qt = {
4673
4673
  version: Jt
4674
4674
  }, ei = Qt.version, ti = `
4675
4675
  varying vec2 vWorldPos;
@@ -5814,7 +5814,7 @@ class ci {
5814
5814
  return e.geometrys[t.indexes[1]].clone();
5815
5815
  const i = e.geometry, n = i?.groups?.[t.indexes[1]];
5816
5816
  if (!i || !n) return null;
5817
- const s = new _e();
5817
+ const s = new Ee();
5818
5818
  return Object.keys(i.attributes).forEach((r) => {
5819
5819
  const o = i.getAttribute(r), a = o.itemSize, h = o.array, u = n.start * a, g = (n.start + n.count) * a;
5820
5820
  s.setAttribute(r, new Dt(h.slice(u, g), a, o.normalized));
@@ -6291,7 +6291,7 @@ class pi {
6291
6291
  }
6292
6292
  /** 渲染线段高亮覆盖层。 */
6293
6293
  highLightRenderLine(e) {
6294
- const t = new _e();
6294
+ const t = new Ee();
6295
6295
  t.setAttribute("position", new ye(e, 3));
6296
6296
  const i = new Ze({
6297
6297
  color: 43775,
@@ -6307,7 +6307,7 @@ class pi {
6307
6307
  }
6308
6308
  /** 渲染悬浮线段高亮覆盖层。 */
6309
6309
  highLightRenderLineHover(e) {
6310
- const t = new _e();
6310
+ const t = new Ee();
6311
6311
  t.setAttribute("position", new ye(e, 3));
6312
6312
  const i = new Ze({
6313
6313
  color: this.getHoverHighlightColor(),
@@ -7525,14 +7525,14 @@ const He = {
7525
7525
  fontSize: 16,
7526
7526
  cloudRadius: 10
7527
7527
  }, Ai = {
7528
- none: Ee("/assets/icon/选择.svg", import.meta.url),
7529
- line: Ee("/assets/icon/线.svg", import.meta.url),
7530
- arrow: Ee("/assets/icon/箭头.svg", import.meta.url),
7531
- rect: Ee("/assets/icon/矩形.svg", import.meta.url),
7532
- ellipse: Ee("/assets/icon/圆形.svg", import.meta.url),
7533
- polygon: Ee("/assets/icon/面积.svg", import.meta.url),
7534
- text: Ee("/assets/icon/文字.svg", import.meta.url),
7535
- cloudline: Ee("/assets/icon/云线.svg", import.meta.url)
7528
+ none: _e("/assets/icon/选择.svg", import.meta.url),
7529
+ line: _e("/assets/icon/线.svg", import.meta.url),
7530
+ arrow: _e("/assets/icon/箭头.svg", import.meta.url),
7531
+ rect: _e("/assets/icon/矩形.svg", import.meta.url),
7532
+ ellipse: _e("/assets/icon/圆形.svg", import.meta.url),
7533
+ polygon: _e("/assets/icon/面积.svg", import.meta.url),
7534
+ text: _e("/assets/icon/文字.svg", import.meta.url),
7535
+ cloudline: _e("/assets/icon/云线.svg", import.meta.url)
7536
7536
  }, Ii = "data:image/svg+xml;utf8," + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#1f2937" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M8 6V4h8v2"/><path d="M6 6l1 16h10l1-16"/><path d="M10 11v6"/><path d="M14 11v6"/></svg>'), Li = "data:image/svg+xml;utf8," + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#1f2937" stroke-width="2" stroke-linecap="round"><path d="M6 6l12 12"/><path d="M18 6L6 18"/></svg>');
7537
7537
  class Pi {
7538
7538
  engine;