@thatopen/components 2.1.23 → 2.1.25

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.
package/dist/index.mjs CHANGED
@@ -3091,7 +3091,7 @@ const As = class As {
3091
3091
  /**
3092
3092
  * The version of the @thatopen/components library.
3093
3093
  */
3094
- u(As, "release", "2.1.23");
3094
+ u(As, "release", "2.1.25");
3095
3095
  let pi = As;
3096
3096
  class gr extends _i {
3097
3097
  constructor() {
@@ -3305,7 +3305,7 @@ class aa extends dr {
3305
3305
  }
3306
3306
  /** {@link Disposable.dispose} */
3307
3307
  dispose() {
3308
- this.enabled = !1, this.setupEvents(!1), this.three.domElement.remove(), this.three.dispose(), this.onResize.reset(), this.onAfterUpdate.reset(), this.onBeforeUpdate.reset(), this.onDisposed.trigger(), this.onDisposed.reset();
3308
+ this.enabled = !1, this.setupEvents(!1), this.three.domElement.remove(), this.three.forceContextLoss(), this.three.dispose(), this.onResize.reset(), this.onAfterUpdate.reset(), this.onBeforeUpdate.reset(), this.onDisposed.trigger(), this.onDisposed.reset();
3309
3309
  }
3310
3310
  /** {@link Resizeable.getSize}. */
3311
3311
  getSize() {
@@ -5033,7 +5033,7 @@ class wr {
5033
5033
  this.enabled = !1;
5034
5034
  for (const s of this.scene.children)
5035
5035
  s.removeFromParent();
5036
- this.onViewUpdated.reset(), this.worker.terminate(), this.renderer.dispose(), this.renderTarget.dispose(), this._buffer = null, this.onDisposed.reset();
5036
+ this.onViewUpdated.reset(), this.worker.terminate(), this.renderer.forceContextLoss(), this.renderer.dispose(), this.renderTarget.dispose(), this._buffer = null, this.onDisposed.reset();
5037
5037
  }
5038
5038
  getAvailableColor() {
5039
5039
  let s = BigInt(this._availableColor.toString());
@@ -5445,7 +5445,7 @@ void main() {
5445
5445
  }
5446
5446
  /** {@link Disposable.dispose} */
5447
5447
  dispose() {
5448
- this.enabled = !1, this.onDistanceComputed.reset(), this.worker.terminate(), this.renderer.dispose(), this.tempRT.dispose(), this.resultRT.dispose();
5448
+ this.enabled = !1, this.onDistanceComputed.reset(), this.worker.terminate(), this.renderer.forceContextLoss(), this.renderer.dispose(), this.tempRT.dispose(), this.resultRT.dispose();
5449
5449
  const s = [...this.scene.children];
5450
5450
  this.excludedObjects.clear();
5451
5451
  for (const t of s)
@@ -6927,7 +6927,7 @@ class kr {
6927
6927
  }
6928
6928
  /** {@link Disposable.dispose} */
6929
6929
  dispose() {
6930
- this.enabled = !1, this.onBeforeUpdate.reset(), this.onAfterUpdate.reset(), this.onResize.reset(), this.overrideMaterial.dispose(), this.renderer.dispose(), this.onDisposed.trigger(), this.onDisposed.reset();
6930
+ this.enabled = !1, this.onBeforeUpdate.reset(), this.onAfterUpdate.reset(), this.onResize.reset(), this.overrideMaterial.dispose(), this.renderer.forceContextLoss(), this.renderer.dispose(), this.onDisposed.trigger(), this.onDisposed.reset();
6931
6931
  }
6932
6932
  /** Returns the camera used by the MiniMap */
6933
6933
  get() {
@@ -10113,10 +10113,6 @@ const Ge = class Ge extends et {
10113
10113
  }
10114
10114
  /** {@link Disposable.dispose} */
10115
10115
  dispose() {
10116
- try {
10117
- this.webIfc.Dispose();
10118
- } catch {
10119
- }
10120
10116
  this.webIfc = null, this.onDisposed.trigger(Ge.uuid), this.onDisposed.reset();
10121
10117
  }
10122
10118
  /**
@@ -10211,6 +10207,7 @@ const Ge = class Ge extends et {
10211
10207
  try {
10212
10208
  this.webIfc.Dispose();
10213
10209
  } catch {
10210
+ console.log("Web-ifc wasn't disposed.");
10214
10211
  }
10215
10212
  this.webIfc = null, this.webIfc = new D.IfcAPI(), this._visitedFragments.clear(), this._fragmentInstances.clear();
10216
10213
  }