iflow-engine-base-3d 3.11.6 → 3.11.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -830,7 +830,7 @@ class Pt {
830
830
  e.stopImmediatePropagation();
831
831
  };
832
832
  }
833
- const Qe = "3.11.6", et = {
833
+ const Qe = "3.11.8", et = {
834
834
  version: Qe
835
835
  }, N = et.version;
836
836
  function ie() {
@@ -2628,12 +2628,13 @@ class Yn {
2628
2628
  }
2629
2629
  async loadModel(e, t = {}) {
2630
2630
  const p = this.viewer.getSceneCount(), x = {
2631
- showLoadingUI: !0,
2632
2631
  progressiveLoad: !1,
2633
2632
  position: [0, 0, 0],
2634
2633
  rotation: this.getDefaultRotation(),
2635
2634
  scale: [1, 1, 1],
2636
- ...t
2635
+ ...t,
2636
+ // 统一关闭三方库内置加载浮层,加载进度仍通过 SDK 的事件与回调向外提供。
2637
+ showLoadingUI: !1
2637
2638
  };
2638
2639
  await this.viewer.addSplatScene(e, x);
2639
2640
  const g = {
@@ -2667,7 +2668,7 @@ class Yn {
2667
2668
  t.push(await this.loadModel(p.url, p.options));
2668
2669
  return t;
2669
2670
  }
2670
- async unloadModel(e, t = !0) {
2671
+ async unloadModel(e, t = !1) {
2671
2672
  const p = this.scenes.get(e);
2672
2673
  p && (await this.viewer.removeSplatScene(p.index, t), this.scenes.delete(e), this.localSceneResources.get(e)?.revoke(), this.localSceneResources.delete(e), this.reindexScenesAfterRemove(p.index));
2673
2674
  }
@@ -2691,7 +2692,7 @@ class Yn {
2691
2692
  });
2692
2693
  }
2693
2694
  }
2694
- const Zn = "3.11.3", Xn = {
2695
+ const Zn = "3.11.7", Xn = {
2695
2696
  version: Zn
2696
2697
  }, Tt = Xn.version;
2697
2698
  function Wr() {
@@ -14633,7 +14634,7 @@ class as {
14633
14634
  initialCameraLookAt: e.initialCameraLookAt ?? [0, 0, 0],
14634
14635
  backgroundColor: e.backgroundColor,
14635
14636
  antialias: e.antialias ?? !1,
14636
- showLoadingUI: e.showLoadingUI ?? !0,
14637
+ showLoadingUI: !1,
14637
14638
  sharedMemoryForWorkers: e.sharedMemoryForWorkers ?? !1,
14638
14639
  gpuAcceleratedSort: e.gpuAcceleratedSort ?? !1,
14639
14640
  sphericalHarmonicsDegree: e.sphericalHarmonicsDegree ?? 0,
@@ -14665,8 +14666,8 @@ class as {
14665
14666
  this.checkInitialized(), this.eventModule.trigger(ot.LoadStart, { url: e, name: t.name });
14666
14667
  try {
14667
14668
  const p = await this.loaderModule.loadModel(e, {
14668
- showLoadingUI: !0,
14669
14669
  ...t,
14670
+ showLoadingUI: !1,
14670
14671
  onProgress: (x, g, u) => {
14671
14672
  this.eventModule.trigger(ot.LoadProgress, { url: e, name: t.name, progress: x }), t.onProgress?.(x, g, u);
14672
14673
  }
@@ -14689,8 +14690,8 @@ class as {
14689
14690
  this.eventModule.trigger(ot.LoadStart, { url: p, name: t.name ?? p });
14690
14691
  try {
14691
14692
  const x = await this.loaderModule.loadModelFile(e, {
14692
- showLoadingUI: !0,
14693
14693
  ...t,
14694
+ showLoadingUI: !1,
14694
14695
  onProgress: (g, u, r) => {
14695
14696
  this.eventModule.trigger(ot.LoadProgress, { url: p, name: t.name ?? p, progress: g }), t.onProgress?.(g, u, r);
14696
14697
  }