Skip to content

Commit 6c7e205

Browse files
committed
fix: apply ifc loader config
1 parent 00ebd09 commit 6c7e205

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thatopen/components",
33
"description": "Collection of core functionalities to author BIM apps.",
4-
"version": "3.1.3",
4+
"version": "3.1.4",
55
"author": "That Open Company",
66
"contributors": [
77
"Antonio Gonzalez Viegas (https://github.com/agviegas)",

packages/core/src/fragments/IfcLoader/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const ifcLoader = components.get(OBC.IfcLoader);
6767
await ifcLoader.setup({
6868
autoSetWasm: false,
6969
wasm: {
70-
path: "https://unpkg.com/[email protected].70/",
70+
path: "https://unpkg.com/[email protected].71/",
7171
absolute: true,
7272
},
7373
});

packages/core/src/fragments/IfcLoader/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export class IfcLoader extends Component implements Disposable {
122122
const serializer = new FRAGS.IfcImporter();
123123
serializer.wasm.path = this.settings.wasm.path;
124124
serializer.wasm.absolute = this.settings.wasm.absolute;
125+
serializer.webIfcSettings = this.settings.webIfc;
125126

126127
if (config?.instanceCallback) config.instanceCallback(serializer);
127128

@@ -130,7 +131,7 @@ export class IfcLoader extends Component implements Disposable {
130131
bytes: data,
131132
});
132133

133-
const model = await fragments.core.load(bytes, {
134+
const model = await fragments.core.load(bytes as any, {
134135
modelId: name,
135136
userData: config?.userData,
136137
});

0 commit comments

Comments
 (0)