@thatopen/components 2.1.21 → 2.1.22

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.21");
3094
+ u(As, "release", "2.1.22");
3095
3095
  let pi = As;
3096
3096
  class gr extends _i {
3097
3097
  constructor() {
@@ -10084,6 +10084,10 @@ const Ge = class Ge extends et {
10084
10084
  }
10085
10085
  /** {@link Disposable.dispose} */
10086
10086
  dispose() {
10087
+ try {
10088
+ this.webIfc.Dispose();
10089
+ } catch {
10090
+ }
10087
10091
  this.webIfc = null, this.onDisposed.trigger(Ge.uuid), this.onDisposed.reset();
10088
10092
  }
10089
10093
  /**
@@ -10175,7 +10179,11 @@ const Ge = class Ge extends et {
10175
10179
  * ```
10176
10180
  */
10177
10181
  cleanUp() {
10178
- this.webIfc.Dispose(), this.webIfc = null, this.webIfc = new U.IfcAPI(), this._visitedFragments.clear(), this._fragmentInstances.clear();
10182
+ try {
10183
+ this.webIfc.Dispose();
10184
+ } catch {
10185
+ }
10186
+ this.webIfc = null, this.webIfc = new U.IfcAPI(), this._visitedFragments.clear(), this._fragmentInstances.clear();
10179
10187
  }
10180
10188
  async getAllGeometries() {
10181
10189
  this._spatialTree.setUp(this.webIfc);
@@ -11294,7 +11302,11 @@ const Ms = class Ms extends et {
11294
11302
  this.onIfcLoaded.trigger(f), n.dispose(!0);
11295
11303
  }
11296
11304
  cleanUp() {
11297
- this.webIfc.Dispose(), this.webIfc = null, this.webIfc = new U.IfcAPI(), this._visitedGeometries.clear(), this._geometries.clear(), this._assets = [], this._meshesWithHoles.clear();
11305
+ try {
11306
+ this.webIfc.Dispose();
11307
+ } catch {
11308
+ }
11309
+ this.webIfc = null, this.webIfc = new U.IfcAPI(), this._visitedGeometries.clear(), this._geometries.clear(), this._assets = [], this._meshesWithHoles.clear();
11298
11310
  }
11299
11311
  getMesh(t, e, i) {
11300
11312
  const o = e.geometries.size(), n = e.expressID, r = { id: n, geometries: [] };