bimatter-viewer-react 0.1.1 → 0.1.2
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/README.md +7 -3
- package/package.json +5 -3
- package/public/ifc-parser.wasm +0 -0
package/README.md
CHANGED
|
@@ -79,8 +79,6 @@ npm run dev
|
|
|
79
79
|
|
|
80
80
|
## IFC Models
|
|
81
81
|
|
|
82
|
-
IFC loading is based on `web-ifc`. The WASM parser file must be available from the public assets folder:
|
|
83
|
-
|
|
84
82
|
```text
|
|
85
83
|
public/
|
|
86
84
|
ifc-parser.wasm
|
|
@@ -88,7 +86,13 @@ public/
|
|
|
88
86
|
architecture.ifc
|
|
89
87
|
```
|
|
90
88
|
|
|
91
|
-
For Vite apps, files in `public` are served from the app root, so `public/ifc-parser.wasm` is available as `/ifc-parser.wasm`.
|
|
89
|
+
For Vite apps, files in `public` are served from the app root, so `public/ifc-parser.wasm` is available as `/ifc-parser.wasm`.
|
|
90
|
+
|
|
91
|
+
The package includes this WASM file. Copy it into your app public folder:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
cp node_modules/bimatter-viewer-react/public/ifc-parser.wasm public/ifc-parser.wasm
|
|
95
|
+
```
|
|
92
96
|
|
|
93
97
|
After that, IFC models can be loaded the same way as BMT models:
|
|
94
98
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bimatter-viewer-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./lib/index.d.ts",
|
|
12
12
|
"import": "./lib/index.js"
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
|
+
"./ifc-parser.wasm": "./public/ifc-parser.wasm"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
|
-
"lib"
|
|
17
|
+
"lib",
|
|
18
|
+
"public/ifc-parser.wasm"
|
|
17
19
|
],
|
|
18
20
|
"scripts": {
|
|
19
21
|
"dev": "vite",
|
|
Binary file
|