Skip to content

Commit

Permalink
chore: update web-ifc
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Aug 12, 2024
1 parent 11e0860 commit 9072121
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 22 deletions.
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/components",
"description": "Collection of core functionalities to author BIM apps.",
"version": "2.1.24",
"version": "2.1.25",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down Expand Up @@ -42,7 +42,7 @@
"@types/three": "0.160.0",
"stats.js": "^0.17.0",
"three": "^0.160.1",
"web-ifc": "0.0.56"
"web-ifc": "0.0.57"
},
"dependencies": {
"camera-controls": "2.7.3",
Expand All @@ -51,6 +51,6 @@
"peerDependencies": {
"@thatopen/fragments": "~2.1.0",
"three": "^0.160.1",
"web-ifc": "0.0.56"
"web-ifc": "0.0.57"
}
}
}
2 changes: 1 addition & 1 deletion packages/core/src/core/Components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class Components implements Disposable {
/**
* The version of the @thatopen/components library.
*/
static readonly release = "2.1.24";
static readonly release = "2.1.25";

/** {@link Disposable.onDisposed} */
readonly onDisposed = new Event<void>();
Expand Down
7 changes: 1 addition & 6 deletions packages/core/src/fragments/IfcLoader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ export class IfcLoader extends Component implements Disposable {

/** {@link Disposable.dispose} */
dispose() {
try {
this.webIfc.Dispose();
} catch (e) {
// web-ifc couldn't be disposed
}
(this.webIfc as any) = null;
this.onDisposed.trigger(IfcLoader.uuid);
this.onDisposed.reset();
Expand Down Expand Up @@ -206,7 +201,7 @@ export class IfcLoader extends Component implements Disposable {
try {
this.webIfc.Dispose();
} catch (e) {
// web-ifc couldn't be disposed
console.log("Web-ifc wasn't disposed.");
}
(this.webIfc as any) = null; // Clear the reference to the Web-IFC library
this.webIfc = new WEBIFC.IfcAPI(); // Create a new instance of the Web-IFC library
Expand Down
6 changes: 3 additions & 3 deletions packages/front/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/components-front",
"description": "Collection of frontend tools to author BIM apps.",
"version": "2.1.26",
"version": "2.1.27",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down Expand Up @@ -35,7 +35,7 @@
"peerDependencies": {
"@thatopen/fragments": "~2.1.0",
"three": "^0.160.1",
"web-ifc": "0.0.56"
"web-ifc": "0.0.57"
},
"devDependencies": {
"@thatopen/fragments": "~2.1.0",
Expand All @@ -44,7 +44,7 @@
"@types/earcut": "^2.1.4",
"@types/three": "^0.160.0",
"three": "^0.160.1",
"web-ifc": "0.0.56"
"web-ifc": "0.0.57"
},
"dependencies": {
"@thatopen/components": "~2.1.0",
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -633,11 +633,11 @@ __metadata:
n8ao: 1.5.1
postprocessing: 6.34.2
three: ^0.160.1
web-ifc: 0.0.56
web-ifc: 0.0.57
peerDependencies:
"@thatopen/fragments": ~2.1.0
three: ^0.160.1
web-ifc: 0.0.56
web-ifc: 0.0.57
languageName: unknown
linkType: soft

Expand All @@ -652,11 +652,11 @@ __metadata:
stats.js: ^0.17.0
three: ^0.160.1
three-mesh-bvh: 0.7.0
web-ifc: 0.0.56
web-ifc: 0.0.57
peerDependencies:
"@thatopen/fragments": ~2.1.0
three: ^0.160.1
web-ifc: 0.0.56
web-ifc: 0.0.57
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -4285,10 +4285,10 @@ __metadata:
languageName: node
linkType: hard

"web-ifc@npm:0.0.56":
version: 0.0.56
resolution: "web-ifc@npm:0.0.56"
checksum: 37c1479228ada56ffc903aaecfde351d368221b44576a29b9037000d171d46074c629db9c703adbc4e20fb0eaf3e8e23ff3c593a584ea275f75b5675682165c8
"web-ifc@npm:0.0.57":
version: 0.0.57
resolution: "web-ifc@npm:0.0.57"
checksum: b6735af53368003bce4761c235635275f641eaf943376be824f288118398383882e0806ea47a539729740be4b3fbb485d9ec9b3ff85fd41955cf3bad29d35cf4
languageName: node
linkType: hard

Expand Down

0 comments on commit 9072121

Please sign in to comment.