iflow-engine-base 3.9.203 → 3.9.204

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,9 +1,6 @@
1
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, r as Nt } from "./sdk-runtime-Cp8Q8aEa.js";
2
+ import { F as qe, W as lt, L as Bt, r as Nt } from "./sdk-runtime-a0W8NqlU.js";
3
3
  import { r as _e } from "./sdk-assets-F7qFhuao.js";
4
- const Ot = "3.9.203", Wt = {
5
- version: Ot
6
- }, jt = Wt.version;
7
4
  var Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
5
  function ht(A) {
9
6
  return A && A.__esModule && Object.prototype.hasOwnProperty.call(A, "default") ? A.default : A;
@@ -13,7 +10,7 @@ function We(A) {
13
10
  }
14
11
  var Ve = { exports: {} };
15
12
  var Je;
16
- function Ut() {
13
+ function Ot() {
17
14
  return Je || (Je = 1, (function(A, e) {
18
15
  (function(t) {
19
16
  A.exports = t();
@@ -2315,14 +2312,14 @@ function Ut() {
2315
2312
  });
2316
2313
  })(Ve)), Ve.exports;
2317
2314
  }
2318
- var Ft = Ut();
2319
- const Vt = /* @__PURE__ */ ht(Ft);
2320
- var je = { exports: {} }, Ht = je.exports, Qe;
2321
- function Gt() {
2315
+ var Wt = Ot();
2316
+ const jt = /* @__PURE__ */ ht(Wt);
2317
+ var je = { exports: {} }, Ut = je.exports, Qe;
2318
+ function Ft() {
2322
2319
  return Qe || (Qe = 1, (function(A, e) {
2323
2320
  (function(t, i) {
2324
2321
  A.exports = i();
2325
- })(Ht, function() {
2322
+ })(Ut, function() {
2326
2323
  var t = function() {
2327
2324
  function i(d) {
2328
2325
  return r.appendChild(d.dom), d;
@@ -2362,9 +2359,9 @@ function Gt() {
2362
2359
  });
2363
2360
  })(je)), je.exports;
2364
2361
  }
2365
- var Zt = Gt();
2366
- const $t = /* @__PURE__ */ ht(Zt);
2367
- class Yt {
2362
+ var Vt = Ft();
2363
+ const Ht = /* @__PURE__ */ ht(Vt);
2364
+ class Gt {
2368
2365
  panel = null;
2369
2366
  listEl = null;
2370
2367
  isVisible = !1;
@@ -2518,7 +2515,7 @@ class ct {
2518
2515
  constructor(e) {
2519
2516
  this.engine = e;
2520
2517
  const t = document.getElementById(e?.options?.containerId ?? "") ?? e?.container ?? null;
2521
- t && (this.panelUI = new Yt(t, this));
2518
+ t && (this.panelUI = new Gt(t, this));
2522
2519
  }
2523
2520
  // ─── 数据 ──────────────────────────────────────────────
2524
2521
  _loadLayers(e = this.engine.dwgData?.layers ?? []) {
@@ -2646,7 +2643,7 @@ class ct {
2646
2643
  }
2647
2644
  }
2648
2645
  var fe = /* @__PURE__ */ ((A) => (A.ModelLoadStart = "model-load-start", A.ModelLoadProgress = "model-load-progress", A.ModelLoaded = "model-loaded", A.ModelLoadError = "model-load-error", A.RenderStart = "render-start", A.RenderEnd = "render-end", A.CameraChanged = "camera-changed", A.CameraReset = "camera-reset", A.SelectionChanged = "selection-changed", A.HoverChanged = "hover-changed", A.EntityClick = "entity-click", A.LayerVisibilityChanged = "layer-visibility-changed", A.LayerColorChanged = "layer-color-changed", A.ViewZoomChanged = "view-zoom-changed", A.ViewPanChanged = "view-pan-changed", A.ToolActivated = "tool-activated", A.ToolDeactivated = "tool-deactivated", A.Error = "error", A.Warning = "warning", A))(fe || {});
2649
- class Xt {
2646
+ class Zt {
2650
2647
  listeners = /* @__PURE__ */ new Map();
2651
2648
  onceListeners = /* @__PURE__ */ new Map();
2652
2649
  debugMode = !1;
@@ -2771,7 +2768,7 @@ function $e(A, e, t) {
2771
2768
  const i = new X(A[0] ?? 0, A[1] ?? 0, A[2] ?? 0), n = new gt(0, 0, t ?? 0), s = new X(e[0] ?? 1, e[1] ?? 1, e[2] ?? 1), r = new yt().setFromEuler(n);
2772
2769
  return new Me().compose(i, r, s);
2773
2770
  }
2774
- function Kt(A) {
2771
+ function $t(A) {
2775
2772
  return Array.isArray(A?.transformMatrix) && A.transformMatrix.length === 16 ? new Me().fromArray(A.transformMatrix) : $e(
2776
2773
  A.position ?? [0, 0, 0],
2777
2774
  A.scale ?? [1, 1, 1],
@@ -2833,7 +2830,7 @@ class et {
2833
2830
  for (const n of e)
2834
2831
  if (n?.visible !== !1) {
2835
2832
  if (n.type === "INSERT") {
2836
- const s = this.getBlockItems(n.blockId, i + 1), r = t.clone().multiply(Kt(n)), o = this.getClipPolygon(n, t);
2833
+ const s = this.getBlockItems(n.blockId, i + 1), r = t.clone().multiply($t(n)), o = this.getClipPolygon(n, t);
2837
2834
  for (const a of s) {
2838
2835
  const h = this.cloneRenderItem(a, r, n), u = o ? this.clipRenderItem(h, o) : h;
2839
2836
  u && (yield u);
@@ -3047,7 +3044,7 @@ class et {
3047
3044
  };
3048
3045
  }
3049
3046
  }
3050
- class qt {
3047
+ class Yt {
3051
3048
  zipObjectUrls = [];
3052
3049
  /** 加载新版 manifest 分包数据,并返回 Loader 可消费的 DWGData 结构。 */
3053
3050
  async load(e) {
@@ -3193,7 +3190,7 @@ class qt {
3193
3190
  const t = await fetch(e);
3194
3191
  if (!t.ok)
3195
3192
  throw new Error(`HTTP error! status: ${t.status}`);
3196
- const i = await Vt.loadAsync(await t.arrayBuffer()), n = this.findZipManifestPath(i), s = await this.fetchZipJson(i, n);
3193
+ const i = await jt.loadAsync(await t.arrayBuffer()), n = this.findZipManifestPath(i), s = await this.fetchZipJson(i, n);
3197
3194
  if (!this.isSplitManifest(s))
3198
3195
  throw new Error("[LoaderModule2d] Expected split CAD manifest data in .2d package.");
3199
3196
  const r = this.getZipBasePath(n);
@@ -3270,8 +3267,8 @@ class qt {
3270
3267
  this.zipObjectUrls.forEach((e) => URL.revokeObjectURL(e)), this.zipObjectUrls = [];
3271
3268
  }
3272
3269
  }
3273
- const ae = 1e-8, tt = 1e-3, Jt = 8421504;
3274
- class Qt {
3270
+ const ae = 1e-8, tt = 1e-3, Xt = 8421504;
3271
+ class Kt {
3275
3272
  constructor(e) {
3276
3273
  this.engine = e;
3277
3274
  }
@@ -3284,7 +3281,7 @@ class Qt {
3284
3281
  if (this.isSolidFill(e))
3285
3282
  return this.createSolidItems(e, t, i);
3286
3283
  const s = this.createPatternLineItem(e, t, i);
3287
- return s ? [s] : (this.warnUnknownPatternFallback(e), this.createSolidItems(e, t, i, Jt));
3284
+ return s ? [s] : (this.warnUnknownPatternFallback(e), this.createSolidItems(e, t, i, Xt));
3288
3285
  }
3289
3286
  /** 只有明确的 SOLID 才作为实心面;patternType=SolidFill 在当前导出数据里不可靠。 */
3290
3287
  isSolidFill(e) {
@@ -3654,7 +3651,7 @@ class Qt {
3654
3651
  }
3655
3652
  class it {
3656
3653
  constructor(e, t) {
3657
- this.engine = e, this.textFactory = t, this.hatchRenderer = new Qt(e);
3654
+ this.engine = e, this.textFactory = t, this.hatchRenderer = new Kt(e);
3658
3655
  }
3659
3656
  hatchRenderer;
3660
3657
  /** 根据实体类型分发到线、文字、填充、图片等具体几何生成逻辑。 */
@@ -3846,7 +3843,7 @@ class it {
3846
3843
  }];
3847
3844
  }
3848
3845
  }
3849
- class ei {
3846
+ class qt {
3850
3847
  constructor(e, t, i = e.modelGroup, n = {}) {
3851
3848
  this.model = t, this.targetGroup = i, this.options = n;
3852
3849
  }
@@ -4163,13 +4160,13 @@ class nt {
4163
4160
  return s.applyMatrix4($e([(t.min.x + t.max.x) / 2, (t.min.y + t.max.y) / 2, 0], [1, 1, 1], 0)), s;
4164
4161
  }
4165
4162
  }
4166
- class ti {
4163
+ class Jt {
4167
4164
  engine;
4168
4165
  data = null;
4169
4166
  enableValidation = !0;
4170
4167
  model = this.createEmptyModel();
4171
4168
  font = null;
4172
- dataSource = new qt();
4169
+ dataSource = new Yt();
4173
4170
  lastBuildOptions = {};
4174
4171
  activeWorkspace = { type: "model", name: "模型" };
4175
4172
  workspaceCache = /* @__PURE__ */ new Map();
@@ -4347,7 +4344,7 @@ class ti {
4347
4344
  for (let a = 0; a < e.length; a += 1) {
4348
4345
  const h = e[a], u = this.createTileGroup(h, n.namePrefix);
4349
4346
  t.add(u);
4350
- const g = new ei(this.engine, this.model, u, {
4347
+ const g = new qt(this.engine, this.model, u, {
4351
4348
  interactive: n.interactive ?? !0
4352
4349
  }), v = /* @__PURE__ */ new Set();
4353
4350
  let d = 0, y = 0;
@@ -4672,7 +4669,9 @@ class ti {
4672
4669
  this.clear();
4673
4670
  }
4674
4671
  }
4675
- const ii = `
4672
+ const Qt = "3.9.204", ei = {
4673
+ version: Qt
4674
+ }, ti = ei.version, ii = `
4676
4675
  varying vec2 vWorldPos;
4677
4676
 
4678
4677
  void main() {
@@ -8122,7 +8121,7 @@ class Ni {
8122
8121
  renderer = null;
8123
8122
  // 数据
8124
8123
  dwgData = null;
8125
- version = jt;
8124
+ version = ti;
8126
8125
  constructor(e) {
8127
8126
  if (this.options = e, this.options.backgroundColor = this.options.backgroundColor ?? 1710618, this.options.enablePerformanceMonitoring = this.options.enablePerformanceMonitoring ?? !1, this.options.showMouseCoordinates = this.options.showMouseCoordinates ?? !1, this.options.loadingStyle = this.options.loadingStyle ?? 2, this.options.contextMenu = this.options.contextMenu ?? {
8128
8127
  items: [
@@ -8142,7 +8141,7 @@ class Ni {
8142
8141
  * 初始化引擎
8143
8142
  */
8144
8143
  initialize() {
8145
- this.events = new Xt(!1), this.sceneModule2d = new ri(this, this.options), this.scene = this.sceneModule2d.scene, this.cameraModule2d = new ai(this, this.container), this.camera = this.cameraModule2d.orthographicCamera, this.renderModule2d = new li(this, this.container, this.options), this.renderer = this.renderModule2d.renderer, this.controlModule2d = new ci(this), this.loaderModule2d = new ti(this), this.themeManager = new Ei(this.container), this.layerManager = new ct(this), this.searchManager = new _i(this), this.measure = new Ai(this), this.markup = new Di(this), this.label = new zi(this), this.viewCube = new Ri(this), this.octreeBox2d = new di(this), this.modelToolModule2d = new fi(this), this.engineStatus2d = new oi(this), this.linkView2d3d = new ui(this), this.linkElement2d3d = new pi(this), this.sceneModule2d.initGrid(), this.cadCursorUI = new vi(this.container, this.renderer.domElement, this.options.cursorStyle ?? "short-crosshair"), this.cadCursorUI.setBackgroundColor(this.options.backgroundColor ?? 1710618), this.loadingUI = new bi(this.container, this.options.loadingStyle), this.events.on(fe.ModelLoadStart, () => this.loadingUI.show("正在加载...", 0)), this.events.on(fe.ModelLoadProgress, (e) => this.loadingUI.update(e.text, e.progress)), this.events.on(fe.ModelLoaded, () => this.loadingUI.hide()), this.events.on(fe.ModelLoadError, () => this.loadingUI.hide()), this.versionEl = document.createElement("div"), this.versionEl.className = "engine-2d-version-text", this.updateVersionDisplay(), this.container.appendChild(this.versionEl), this.workspaceTabsUI = new Bi(this.container, this), this.contextMenuUI = new wi(
8144
+ this.events = new Zt(!1), this.sceneModule2d = new ri(this, this.options), this.scene = this.sceneModule2d.scene, this.cameraModule2d = new ai(this, this.container), this.camera = this.cameraModule2d.orthographicCamera, this.renderModule2d = new li(this, this.container, this.options), this.renderer = this.renderModule2d.renderer, this.controlModule2d = new ci(this), this.loaderModule2d = new Jt(this), this.themeManager = new Ei(this.container), this.layerManager = new ct(this), this.searchManager = new _i(this), this.measure = new Ai(this), this.markup = new Di(this), this.label = new zi(this), this.viewCube = new Ri(this), this.octreeBox2d = new di(this), this.modelToolModule2d = new fi(this), this.engineStatus2d = new oi(this), this.linkView2d3d = new ui(this), this.linkElement2d3d = new pi(this), this.sceneModule2d.initGrid(), this.cadCursorUI = new vi(this.container, this.renderer.domElement, this.options.cursorStyle ?? "short-crosshair"), this.cadCursorUI.setBackgroundColor(this.options.backgroundColor ?? 1710618), this.loadingUI = new bi(this.container, this.options.loadingStyle), this.events.on(fe.ModelLoadStart, () => this.loadingUI.show("正在加载...", 0)), this.events.on(fe.ModelLoadProgress, (e) => this.loadingUI.update(e.text, e.progress)), this.events.on(fe.ModelLoaded, () => this.loadingUI.hide()), this.events.on(fe.ModelLoadError, () => this.loadingUI.hide()), this.versionEl = document.createElement("div"), this.versionEl.className = "engine-2d-version-text", this.updateVersionDisplay(), this.container.appendChild(this.versionEl), this.workspaceTabsUI = new Bi(this.container, this), this.contextMenuUI = new wi(
8146
8145
  this.container,
8147
8146
  this.renderer.domElement,
8148
8147
  (e) => {
@@ -8185,7 +8184,7 @@ class Ni {
8185
8184
  };
8186
8185
  /** 初始化 stats.js 性能监视器,showStats 优先控制可视面板,旧配置 enablePerformanceMonitoring 继续兼容。 */
8187
8186
  initStatsMonitor() {
8188
- !(this.options.showStats ?? this.enablePerformanceMonitoring) || !this.container || (this.stats = new $t(), this.stats.showPanel(0), this.stats.dom.className = "engine-2d-stats-monitor", this.stats.dom.style.position = "absolute", this.stats.dom.style.top = "0px", this.stats.dom.style.left = "0px", this.stats.dom.style.zIndex = "1000", this.container.appendChild(this.stats.dom));
8187
+ !(this.options.showStats ?? this.enablePerformanceMonitoring) || !this.container || (this.stats = new Ht(), this.stats.showPanel(0), this.stats.dom.className = "engine-2d-stats-monitor", this.stats.dom.style.position = "absolute", this.stats.dom.style.top = "0px", this.stats.dom.style.left = "0px", this.stats.dom.style.zIndex = "1000", this.container.appendChild(this.stats.dom));
8189
8188
  }
8190
8189
  /**
8191
8190
  * 更新性能统计
@@ -8422,10 +8421,10 @@ const Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8422
8421
  EngineKernel2d: Ni
8423
8422
  }, Symbol.toStringTag, { value: "Module" }));
8424
8423
  export {
8425
- jt as E,
8426
- Vt as J,
8427
- ti as L,
8428
- $t as S,
8424
+ ti as E,
8425
+ jt as J,
8426
+ Jt as L,
8427
+ Ht as S,
8429
8428
  Ui as a,
8430
8429
  Oe as c,
8431
8430
  ht as g
@@ -1,7 +1,7 @@
1
1
  import { n as bu, G as pn, s as il, O as jn, a as Ye, V as S, t as Px, u as Gs, b as Ze, Q as ai, R as mn, E as Su, p as Dx, v as $p, q as St, w as qp, x as Rx, M as Je, j as xt, I as at, f as Id, y as Kl, z as Kp, H as Zp, J as sl, K as Lx, U as Ix, X as Od, Y as Fd, Z as Ox, _ as Fx, C as wu, d as kx, $ as Nx, a0 as Cu, D as En, a1 as Ux, i as Bx, m as Eo, a2 as zx, a3 as Hx, a4 as Vx, a5 as Yi, a6 as Eu, a7 as ct, h as wn, a8 as Gx, a9 as zr, W as Jp, T as rl, aa as Wx, ab as Wc, ac as jc, B as wi, L as mr, o as Uo, ad as jx, ae as Xx, k as Xc, af as ol, ag as Yx, ah as As, ai as $x, aj as qx, ak as Qp, al as To, am as Kx, an as Zx, F as al, g as kd, ao as Jx, ap as Yc, aq as $c, r as Ao, ar as Qx, as as ey, at as Nd, au as ty, av as ny, aw as iy, ax as sy, ay as ry, az as Ud } from "./three-vendor-Dbcwwhki.js";
2
- import { W as bt, a as ll, B as Bd, g as Xn, L as oy, r as ay } from "./sdk-runtime-Cp8Q8aEa.js";
2
+ import { W as bt, a as ll, B as Bd, g as Xn, L as oy, r as ay } from "./sdk-runtime-a0W8NqlU.js";
3
3
  import { r as ht, g as ly } from "./sdk-assets-F7qFhuao.js";
4
- import { J as cy, L as hy, E as uy, S as dy } from "./engine-2d-D5sGoz-x.js";
4
+ import { J as cy, L as hy, E as uy, S as dy } from "./engine-2d-FTvtmsww.js";
5
5
  class fy {
6
6
  engine;
7
7
  scene;
@@ -1,6 +1,6 @@
1
1
  import { n as S, am as R, h as A, aA as x, j as b, s as E, E as F, Q as k, W as I, a as v, T as f, i as P, J as m, V as p, b as D } from "./three-vendor-Dbcwwhki.js";
2
- import { W as w, r as y } from "./sdk-runtime-Cp8Q8aEa.js";
3
- import { E as T } from "./engine-2d-D5sGoz-x.js";
2
+ import { W as w, r as y } from "./sdk-runtime-a0W8NqlU.js";
3
+ import { E as T } from "./engine-2d-FTvtmsww.js";
4
4
  class L {
5
5
  scene;
6
6
  panoramaSphere = null;
@@ -1,6 +1,6 @@
1
1
  import { n as Js, C as st, s as Zs, V as v, b as N, O as $s, W as en, M as J, Q as ge, a as tn, f as qt, j as De, B as sn, h as ft, q as it, aB as Ue, aC as Pt, aD as at, H as Et, aE as ms, aF as yn, aG as xn, aH as In, aI as Tn, z as wn, aJ as Bn, aK as En, l as lt, aL as As, aM as gs, aN as vn, k as Cs, aO as Fn, ap as Je, am as Ss, D as Kt, ab as Dn, aA as ys, p as bn, u as We, aP as qe, au as xs, r as Mn, aQ as Rn, a2 as Pn, aR as On, aS as nn, aT as Is, aU as kn, a7 as Ln, aV as Qe, aW as mt } from "./three-vendor-Dbcwwhki.js";
2
- import { E as Hn } from "./engine-2d-D5sGoz-x.js";
3
- import { r as Un } from "./sdk-runtime-Cp8Q8aEa.js";
2
+ import { E as Hn } from "./engine-2d-FTvtmsww.js";
3
+ import { r as Un } from "./sdk-runtime-a0W8NqlU.js";
4
4
  var Ne = /* @__PURE__ */ ((m) => (m.LoadStart = "gaussian-load-start", m.LoadProgress = "gaussian-load-progress", m.Loaded = "gaussian-loaded", m.LoadError = "gaussian-load-error", m.SceneRemoved = "gaussian-scene-removed", m.FpsUpdated = "gaussian-fps-updated", m.ViewChanged = "gaussian-view-changed", m))(Ne || {});
5
5
  class zn {
6
6
  listeners = /* @__PURE__ */ new Map();
@@ -1,7 +1,7 @@
1
1
  import { r as lQ } from "./sdk-assets-F7qFhuao.js";
2
- import { g as Ob, c as $L, E as uQ } from "./engine-2d-D5sGoz-x.js";
2
+ import { g as Ob, c as $L, E as uQ } from "./engine-2d-FTvtmsww.js";
3
3
  import { aX as Si, aY as hQ } from "./three-vendor-Dbcwwhki.js";
4
- import { l as dQ, L as fQ, r as mQ } from "./sdk-runtime-Cp8Q8aEa.js";
4
+ import { l as dQ, L as fQ, r as mQ } from "./sdk-runtime-a0W8NqlU.js";
5
5
  function l(e) {
6
6
  return e != null;
7
7
  }