iflow-engine-base 3.12.4 → 3.12.6

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,5 +1,5 @@
1
- import { n as R, at as S, h as E, aN as b, j as x, t as A, E as k, Q as F, p as I, W as y, a as v, T as f, i as P, Y as m, V as p, b as D } from "./three-vendor-Bx2tSp_D.js";
2
- import { C as L, W as w, E as T, c as z, r as _ } from "./sdk-runtime-B4l79tmQ.js";
1
+ import { n as R, ay as S, h as E, w as b, j as x, H as A, E as k, Q as F, p as I, W as y, a as v, T as f, i as P, a3 as m, V as p, b as D } from "./three-vendor-BL-jpeTM.js";
2
+ import { C as L, W as w, E as T, c as z, r as _ } from "./sdk-runtime-BNBo1yPN.js";
3
3
  class V {
4
4
  scene;
5
5
  panoramaSphere = null;
@@ -101,7 +101,7 @@ class V {
101
101
  this.scene.clear();
102
102
  }
103
103
  }
104
- class K {
104
+ class H {
105
105
  camera;
106
106
  minFov;
107
107
  maxFov;
@@ -199,7 +199,7 @@ class K {
199
199
  this.camera = null;
200
200
  }
201
201
  }
202
- class O {
202
+ class K {
203
203
  renderer;
204
204
  container;
205
205
  animationId = null;
@@ -328,7 +328,7 @@ class O {
328
328
  this.pauseRendering(), this.container.contains(this.renderer.domElement) && this.container.removeChild(this.renderer.domElement), this.watermark.dispose(), this.renderer.dispose(), this.renderer.forceContextLoss(), this.onBeforeRenderCallback = void 0, this.onAfterRenderCallback = void 0;
329
329
  }
330
330
  }
331
- class H {
331
+ class O {
332
332
  camera;
333
333
  domElement;
334
334
  cameraModule;
@@ -547,7 +547,7 @@ class X {
547
547
  domElement;
548
548
  cameraModule;
549
549
  constructor(e, t) {
550
- this.cameraModule = e, this.domElement = t, this.controls = new H(e, t);
550
+ this.cameraModule = e, this.domElement = t, this.controls = new O(e, t);
551
551
  }
552
552
  /**
553
553
  * 初始化控制模块
@@ -623,7 +623,7 @@ class X {
623
623
  this.controls.dispose();
624
624
  }
625
625
  }
626
- class Y {
626
+ class Z {
627
627
  cache = /* @__PURE__ */ new Map();
628
628
  loadingPromises = /* @__PURE__ */ new Map();
629
629
  /**
@@ -701,13 +701,13 @@ class Y {
701
701
  this.clear();
702
702
  }
703
703
  }
704
- class Z {
704
+ class U {
705
705
  textureCache;
706
706
  currentUrl = null;
707
707
  loadProgress = 0;
708
708
  onProgressCallback;
709
709
  constructor() {
710
- this.textureCache = new Y();
710
+ this.textureCache = new Z();
711
711
  }
712
712
  /**
713
713
  * 加载全景图纹理
@@ -888,7 +888,7 @@ class C {
888
888
  }
889
889
  }
890
890
  var d = /* @__PURE__ */ ((i) => (i.ICON = "icon", i.TEXT = "text", i.LINK = "link", i))(d || {});
891
- class U {
891
+ class W {
892
892
  annotations = /* @__PURE__ */ new Map();
893
893
  container;
894
894
  annotationContainer;
@@ -1164,7 +1164,7 @@ class U {
1164
1164
  return `annotation-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
1165
1165
  }
1166
1166
  }
1167
- class W {
1167
+ class Y {
1168
1168
  listeners = /* @__PURE__ */ new Map();
1169
1169
  /**
1170
1170
  * 订阅事件
@@ -1273,23 +1273,23 @@ class N {
1273
1273
  if (!n)
1274
1274
  throw new Error(`Container with id "${t.containerId}" not found`);
1275
1275
  try {
1276
- this.eventModule = new W(), this.sceneModule = new V(t.sphereRadius), this.cameraModule = new K(
1276
+ this.eventModule = new Y(), this.sceneModule = new V(t.sphereRadius), this.cameraModule = new H(
1277
1277
  n,
1278
1278
  t.fov,
1279
1279
  t.minFov,
1280
1280
  t.maxFov
1281
- ), this.renderModule = new O(n, !0), this.controlModule = new X(
1281
+ ), this.renderModule = new K(n, !0), this.controlModule = new X(
1282
1282
  this.cameraModule,
1283
1283
  this.renderModule.getDomElement()
1284
1284
  );
1285
1285
  const o = this.controlModule.getControls();
1286
1286
  o.enableZoom = t.enableZoom, o.enableRotate = t.enableRotate, o.setRotateSpeed(t.rotateSpeed), o.setZoomSpeed(t.zoomSpeed), o.setEnableDamping(t.enableDamping), o.setDampingFactor(t.dampingFactor), o.setZoomLimits(t.minFov, t.maxFov), o.setOnViewAngleChange((a, s) => {
1287
1287
  this.eventModule.trigger(r.ViewAngleChanged, { theta: a, phi: s });
1288
- }), this.panoramaLoader = new Z(), this.worldToScreen = new w(
1288
+ }), this.panoramaLoader = new U(), this.worldToScreen = new w(
1289
1289
  this.cameraModule.getCamera(),
1290
1290
  this.renderModule.getRenderer(),
1291
1291
  this.sceneModule.getScene()
1292
- ), this.annotationManager = new U(
1292
+ ), this.annotationManager = new W(
1293
1293
  n,
1294
1294
  this.cameraModule.getCamera(),
1295
1295
  this.renderModule.getRenderer(),
@@ -1,5 +1,5 @@
1
- import { n as Js, C as st, t 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 be, B as sn, h as ft, r as it, aO as ze, aP as Pt, aQ as at, X as Bt, aR as ms, aS as yn, aT as xn, aU as In, aV as Tn, U as wn, aW as En, aX as Bn, l as lt, aY as As, aZ as gs, a_ as vn, k as Cs, a$ as Fn, aw as Je, at as Ss, D as Kt, aj as bn, aN as ys, q as Dn, y as We, b0 as qe, aB as xs, s as Mn, b1 as Rn, a9 as Pn, b2 as On, b3 as nn, aD as Is, b4 as kn, ag as Ln, b5 as Ne, b6 as mt, p as Hn } from "./three-vendor-Bx2tSp_D.js";
2
- import { C as Un, c as zn, E as _n, r as Qn } from "./sdk-runtime-B4l79tmQ.js";
1
+ import { n as Js, C as st, H 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 be, B as sn, h as ft, r as it, aP as ze, aQ as Pt, aR as at, a2 as Bt, aS as ms, aT as yn, aU as xn, aV as In, aW as Tn, a1 as wn, aX as En, aY as Bn, l as lt, aZ as As, a_ as gs, a$ as vn, k as Cs, b0 as Fn, t as Je, ay as Ss, D as Kt, ap as bn, w as ys, q as Dn, Y as We, b1 as qe, aF as xs, s as Mn, b2 as Rn, ag as Pn, b3 as On, b4 as nn, aH as Is, b5 as kn, am as Ln, b6 as Ne, b7 as mt, p as Hn } from "./three-vendor-BL-jpeTM.js";
2
+ import { C as Un, c as zn, E as _n, r as Qn } from "./sdk-runtime-BNBo1yPN.js";
3
3
  var De = /* @__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))(De || {});
4
4
  class Nn {
5
5
  listeners = /* @__PURE__ */ new Map();
@@ -1,6 +1,6 @@
1
- import { g as xX, J as KN } from "./sdk-vendor-VZI0bEcg.js";
2
- import { b7 as Ii, b8 as TX } from "./three-vendor-Bx2tSp_D.js";
3
- import { l as vX, L as EX, E as CX, d as JN, e as wX, c as $C, a as SX, f as IX, r as DX, h as XC } from "./sdk-runtime-B4l79tmQ.js";
1
+ import { g as xX, J as KN } from "./sdk-vendor-DEyo-iP-.js";
2
+ import { b8 as Ii, b9 as TX } from "./three-vendor-BL-jpeTM.js";
3
+ import { l as vX, L as EX, E as CX, d as JN, e as wX, c as $C, a as SX, f as IX, r as DX, h as XC } from "./sdk-runtime-BNBo1yPN.js";
4
4
  var QN = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
5
  function Fb(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -1,8 +1,8 @@
1
- import { b9 as w } from "./three-vendor-Bx2tSp_D.js";
1
+ import { ba as w } from "./three-vendor-BL-jpeTM.js";
2
2
  const S = "__BIM_ENGINE_SDK_ASSET_BASE__", b = "__BIM_ENGINE_SDK_ASSET_FILE_MAP__", g = "__BIM_ENGINE_SDK_ASSET_FILE_URLS__", A = "__BIM_ENGINE_SDK_ASSET_FILE_SESSION__", j = "https://unpkg.com/iflow-engine-base@3.9.20/dist/", L = "https://__bim_engine_sdk_asset__/", M = ["assets/", "fonts/", "draco/", "basis/", "texture/", "prompt/"];
3
3
  let _ = null;
4
4
  async function R() {
5
- return _ || (_ = import("./sdk-vendor-VZI0bEcg.js").then((t) => t.j).then((t) => t.default ?? t)), _;
5
+ return _ || (_ = import("./sdk-vendor-DEyo-iP-.js").then((t) => t.j).then((t) => t.default ?? t)), _;
6
6
  }
7
7
  function a() {
8
8
  return typeof globalThis < "u" ? globalThis : null;
@@ -1,5 +1,5 @@
1
- import { R as ve, b as B, V as ce, t as Te, ba as Ce } from "./three-vendor-Bx2tSp_D.js";
2
- import { a as pe, J as ne, p as Ae, l as J } from "./sdk-vendor-VZI0bEcg.js";
1
+ import { R as ve, b as B, V as ce, H as Te, bb as Ce } from "./three-vendor-BL-jpeTM.js";
2
+ import { a as pe, J as ne, p as Ae, l as J } from "./sdk-vendor-DEyo-iP-.js";
3
3
  class It {
4
4
  /**
5
5
  * 构造函数
@@ -297,7 +297,7 @@ const A = 16, me = /* @__PURE__ */ new Uint8Array(16), L = /* @__PURE__ */ T(me)
297
297
  // reduce % poly
298
298
  };
299
299
  }, _ = (n) => (n >>> 0 & 255) << 24 | (n >>> 8 & 255) << 16 | (n >>> 16 & 255) << 8 | n >>> 24 & 255 | 0, Ve = (n) => n > 64 * 1024 ? 8 : n > 1024 ? 4 : 2;
300
- class De {
300
+ class He {
301
301
  blockLen = A;
302
302
  outputLen = A;
303
303
  s0 = 0;
@@ -374,7 +374,7 @@ class De {
374
374
  return this.digestInto(e), this.destroy(), e;
375
375
  }
376
376
  }
377
- const ue = /* @__PURE__ */ $e(16, (n, e) => new De(n, e), (n) => [n.length]), ee = 16, He = 4, $ = /* @__PURE__ */ new Uint8Array(ee), Fe = 283;
377
+ const ue = /* @__PURE__ */ $e(16, (n, e) => new He(n, e), (n) => [n.length]), ee = 16, De = 4, $ = /* @__PURE__ */ new Uint8Array(ee), Fe = 283;
378
378
  function Ze(n) {
379
379
  if (![16, 24, 32].includes(n.length))
380
380
  throw new Error('"aes key" expected Uint8Array of length 16/24/32, got length=' + n.length);
@@ -455,7 +455,7 @@ function O(n, e, t, r, i) {
455
455
  let h = c.getUint32(d, e), { s0: f, s1: p, s2: y, s3: b } = he(n, g(s[0]), g(s[1]), g(s[2]), g(s[3]));
456
456
  for (let m = 0; m + 4 <= a.length; m += 4)
457
457
  l[m + 0] = a[m + 0] ^ g(f), l[m + 1] = a[m + 1] ^ g(p), l[m + 2] = a[m + 2] ^ g(y), l[m + 3] = a[m + 3] ^ g(b), h = h + 1 >>> 0, c.setUint32(d, h, e), { s0: f, s1: p, s2: y, s3: b } = he(n, g(s[0]), g(s[1]), g(s[2]), g(s[3]));
458
- const k = ee * Math.floor(a.length / He);
458
+ const k = ee * Math.floor(a.length / De);
459
459
  if (k < u) {
460
460
  const m = new Uint32Array([f, p, y, b]);
461
461
  ie(m);
@@ -1056,7 +1056,7 @@ class jt {
1056
1056
  e.stopImmediatePropagation();
1057
1057
  };
1058
1058
  }
1059
- const ot = "3.12.4", st = {
1059
+ const ot = "3.12.6", st = {
1060
1060
  version: ot
1061
1061
  }, V = st.version;
1062
1062
  function se() {
@@ -1128,22 +1128,22 @@ async function dt(n) {
1128
1128
  };
1129
1129
  }
1130
1130
  const G = /* @__PURE__ */ new Map();
1131
- function D(n) {
1131
+ function H(n) {
1132
1132
  return n.replace(/\/+$/, "");
1133
1133
  }
1134
- function H(n) {
1134
+ function D(n) {
1135
1135
  if (n) return n;
1136
1136
  if (typeof window < "u" && typeof window.location?.origin == "string")
1137
1137
  return window.location.origin;
1138
1138
  }
1139
1139
  function ht(n, e) {
1140
1140
  return JSON.stringify({
1141
- endpoint: D(n.endpoint),
1141
+ endpoint: H(n.endpoint),
1142
1142
  token: n.token ?? "",
1143
1143
  appId: n.appId ?? "",
1144
1144
  appKey: n.appKey ?? "",
1145
1145
  appSecret: n.appSecret ?? "",
1146
- origin: H(n.origin) ?? "",
1146
+ origin: D(n.origin) ?? "",
1147
1147
  product: n.product ?? "",
1148
1148
  engineType: e,
1149
1149
  sdkVersion: V
@@ -1170,11 +1170,11 @@ async function te(n, e, t) {
1170
1170
  }
1171
1171
  }
1172
1172
  async function ft(n, e) {
1173
- const t = await te(`${D(n.endpoint)}/oauth/sdk-verify`, {
1173
+ const t = await te(`${H(n.endpoint)}/oauth/sdk-verify`, {
1174
1174
  sdkToken: n.token,
1175
1175
  engineType: e,
1176
1176
  sdkVersion: V,
1177
- origin: H(n.origin),
1177
+ origin: D(n.origin),
1178
1178
  product: n.product
1179
1179
  }, n.timeoutMs ?? 8e3);
1180
1180
  return t.sdkToken = n.token, t;
@@ -1186,17 +1186,17 @@ async function pt(n, e) {
1186
1186
  appSecret: n.appSecret,
1187
1187
  engineType: e,
1188
1188
  sdkVersion: V,
1189
- origin: H(n.origin),
1189
+ origin: D(n.origin),
1190
1190
  product: n.product
1191
1191
  }), r = await te(
1192
- `${D(n.endpoint)}/oauth/sdk-token/secure`,
1192
+ `${H(n.endpoint)}/oauth/sdk-token/secure`,
1193
1193
  t,
1194
1194
  n.timeoutMs ?? 8e3
1195
- ), i = await te(`${D(n.endpoint)}/oauth/sdk-verify`, {
1195
+ ), i = await te(`${H(n.endpoint)}/oauth/sdk-verify`, {
1196
1196
  sdkToken: r.sdkToken,
1197
1197
  engineType: e,
1198
1198
  sdkVersion: V,
1199
- origin: H(n.origin),
1199
+ origin: D(n.origin),
1200
1200
  product: n.product
1201
1201
  }, n.timeoutMs ?? 8e3);
1202
1202
  return i.sdkToken = r.sdkToken, i;
@@ -1,4 +1,4 @@
1
- import { c as ja, g as X0, a as f1 } from "./engine-gis-j4GvT41d.js";
1
+ import { c as ja, g as X0, a as f1 } from "./engine-gis-B4-BdA-v.js";
2
2
  function d1(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const i = e[r];
@@ -43823,7 +43823,7 @@ Ci.add.bind(Ci);
43823
43823
  Ci.remove.bind(Ci);
43824
43824
  Ci.update.bind(Ci);
43825
43825
  export {
43826
- j1 as $,
43826
+ ov as $,
43827
43827
  Dv as A,
43828
43828
  Ve as B,
43829
43829
  Ae as C,
@@ -43831,10 +43831,10 @@ export {
43831
43831
  Fn as E,
43832
43832
  Me as F,
43833
43833
  qi as G,
43834
- q1 as H,
43834
+ Wt as H,
43835
43835
  Td as I,
43836
- ov as J,
43837
- dw as K,
43836
+ nt as J,
43837
+ nm as K,
43838
43838
  hn as L,
43839
43839
  ve as M,
43840
43840
  cB as N,
@@ -43844,90 +43844,91 @@ export {
43844
43844
  T0 as R,
43845
43845
  ui as S,
43846
43846
  g0 as T,
43847
- jt as U,
43847
+ Ih as U,
43848
43848
  T as V,
43849
43849
  TC as W,
43850
- Nt as X,
43851
- ht as Y,
43852
- Jt as Z,
43853
- X1 as _,
43850
+ D0 as X,
43851
+ ex as Y,
43852
+ dv as Z,
43853
+ q1 as _,
43854
43854
  Ed as a,
43855
- rc as a$,
43856
- zi as a0,
43857
- nr as a1,
43858
- K1 as a2,
43859
- Y1 as a3,
43860
- qh as a4,
43861
- ac as a5,
43862
- $1 as a6,
43863
- eB as a7,
43864
- tB as a8,
43865
- _r as a9,
43866
- Og as aA,
43867
- pv as aB,
43868
- Kh as aC,
43869
- Ht as aD,
43870
- Ym as aE,
43871
- Km as aF,
43872
- $h as aG,
43873
- Wm as aH,
43874
- nc as aI,
43875
- ic as aJ,
43876
- Ts as aK,
43877
- Yt as aL,
43878
- Bt as aM,
43879
- Gn as aN,
43880
- wn as aO,
43881
- Rh as aP,
43882
- Jn as aQ,
43883
- Tt as aR,
43884
- qe as aS,
43885
- yt as aT,
43886
- $o as aU,
43887
- O0 as aV,
43888
- Is as aW,
43889
- Ii as aX,
43890
- Hl as aY,
43891
- zl as aZ,
43892
- bh as a_,
43893
- Z1 as aa,
43894
- J1 as ab,
43895
- li as ac,
43896
- Xd as ad,
43897
- b0 as ae,
43898
- cn as af,
43899
- jn as ag,
43900
- Of as ah,
43901
- nB as ai,
43902
- Rt as aj,
43903
- km as ak,
43904
- Y_ as al,
43905
- Cd as am,
43906
- Ln as an,
43907
- rB as ao,
43908
- fi as ap,
43909
- sB as aq,
43910
- go as ar,
43911
- Jf as as,
43912
- Pa as at,
43913
- cp as au,
43914
- vh as av,
43915
- at as aw,
43916
- iB as ax,
43917
- aB as ay,
43918
- m1 as az,
43855
+ bh as a$,
43856
+ dw as a0,
43857
+ jt as a1,
43858
+ Nt as a2,
43859
+ ht as a3,
43860
+ Jt as a4,
43861
+ X1 as a5,
43862
+ j1 as a6,
43863
+ zi as a7,
43864
+ nr as a8,
43865
+ K1 as a9,
43866
+ vh as aA,
43867
+ iB as aB,
43868
+ aB as aC,
43869
+ m1 as aD,
43870
+ Og as aE,
43871
+ pv as aF,
43872
+ Kh as aG,
43873
+ Ht as aH,
43874
+ Ym as aI,
43875
+ Km as aJ,
43876
+ $h as aK,
43877
+ Wm as aL,
43878
+ nc as aM,
43879
+ ic as aN,
43880
+ Ts as aO,
43881
+ wn as aP,
43882
+ Rh as aQ,
43883
+ Jn as aR,
43884
+ Tt as aS,
43885
+ qe as aT,
43886
+ yt as aU,
43887
+ $o as aV,
43888
+ O0 as aW,
43889
+ Is as aX,
43890
+ Ii as aY,
43891
+ Hl as aZ,
43892
+ zl as a_,
43893
+ Y1 as aa,
43894
+ qh as ab,
43895
+ ac,
43896
+ $1 as ad,
43897
+ eB as ae,
43898
+ tB as af,
43899
+ _r as ag,
43900
+ Z1 as ah,
43901
+ J1 as ai,
43902
+ li as aj,
43903
+ Xd as ak,
43904
+ b0 as al,
43905
+ jn as am,
43906
+ Of as an,
43907
+ nB as ao,
43908
+ Rt as ap,
43909
+ km as aq,
43910
+ Y_ as ar,
43911
+ Cd as as,
43912
+ rB as at,
43913
+ fi as au,
43914
+ sB as av,
43915
+ go as aw,
43916
+ Jf as ax,
43917
+ Pa as ay,
43918
+ cp as az,
43919
43919
  Y as b,
43920
- tx as b0,
43921
- y0 as b1,
43922
- Bx as b2,
43923
- lr as b3,
43924
- Ji as b4,
43925
- Je as b5,
43926
- oo as b6,
43927
- So as b7,
43928
- lB as b8,
43929
- p0 as b9,
43930
- oB as ba,
43920
+ rc as b0,
43921
+ tx as b1,
43922
+ y0 as b2,
43923
+ Bx as b3,
43924
+ lr as b4,
43925
+ Ji as b5,
43926
+ Je as b6,
43927
+ oo as b7,
43928
+ So as b8,
43929
+ lB as b9,
43930
+ p0 as ba,
43931
+ oB as bb,
43931
43932
  Yh as c,
43932
43933
  dr as d,
43933
43934
  Wh as e,
@@ -43945,11 +43946,11 @@ export {
43945
43946
  wi as q,
43946
43947
  vt as r,
43947
43948
  ot as s,
43948
- Wt as t,
43949
- nt as u,
43950
- nm as v,
43951
- Ih as w,
43952
- D0 as x,
43953
- ex as y,
43954
- dv as z
43949
+ at as t,
43950
+ Yt as u,
43951
+ Bt as v,
43952
+ Gn as w,
43953
+ cn as x,
43954
+ ci as y,
43955
+ Ln as z
43955
43956
  };