ifc-reader-2 1.3.3 → 1.3.4

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.js CHANGED
@@ -37341,8 +37341,9 @@ const vb = class vb {
37341
37341
  return We.Data.Relationships = me, ue("data-done", 93, "Element data processed"), ue("camera", 95, "Generating bounding box..."), We.CameraData = this.generateBoundingbox(We.Elements), ue("camera-done", 98, "Bounding box generated"), We;
37342
37342
  }
37343
37343
  async readIfcFile(t) {
37344
+ this._dispose();
37344
37345
  const { path: C, absolute: J, logLevel: X } = this.settings.wasm;
37345
- return console.log(this.settings.autoSetWasm), this.settings.autoSetWasm ? this._webIfc.SetWasmPath(C, J) : this._webIfc.SetWasmPath(this._customWasmPath ? this._customWasmPath : "./wasm/", !0), await this._webIfc.Init(), X && this._webIfc.SetLogLevel(X), this._webIfc.OpenModel(t, this.settings.webIfc);
37346
+ return this.settings.autoSetWasm ? this._webIfc.SetWasmPath(C, J) : this._webIfc.SetWasmPath(this._customWasmPath ? this._customWasmPath : "./wasm/", !0), await this._webIfc.Init(), X && this._webIfc.SetLogLevel(X), this._webIfc.OpenModel(t, this.settings.webIfc);
37346
37347
  }
37347
37348
  async getAllGeometries2(t, C, J) {
37348
37349
  const X = J ?? performance.now();
@@ -37439,7 +37440,7 @@ const vb = class vb {
37439
37440
  return this._webIfc.GetCoordinationMatrix(t);
37440
37441
  }
37441
37442
  //#endregion
37442
- async _dispose() {
37443
+ _dispose() {
37443
37444
  this._fragments.clear(), this._materials = [], this._materialMap.clear(), this._elementCompositions.clear(), this._geometryCache.clear(), this._vertexCache.clear();
37444
37445
  }
37445
37446
  // flattenObject(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ifc-reader-2",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",