bimatter-viewer-react 0.1.0 → 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 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`. If you copy the file from `web-ifc`, rename `web-ifc.wasm` to `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
 
@@ -320,32 +324,24 @@ viewerRef.current?.utils.setGridAxesVisibility({
320
324
 
321
325
  ### Selection
322
326
 
323
- | Action | Description |
327
+ `Left Click` - Select element
324
328
 
325
- |---|---|
329
+ `Shift + Left Click` - Multi-select element
326
330
 
327
- | `Left Click` | Select element |
331
+ `Ctrl + Left Click` - Unselect element
328
332
 
329
- | `Shift + Left Click` | Multi-select element |
333
+ `Shift + Drag Right` - Select elements fully inside rectangle
330
334
 
331
- | `Ctrl + Left Click` | Unselect element |
335
+ `Shift + Drag Left` - Select elements intersected by rectangle
332
336
 
333
- | `Shift + Drag Right` | Select elements fully inside rectangle |
337
+ `Ctrl + Drag Right` - Unselect elements fully inside rectangle
334
338
 
335
- | `Shift + Drag Left` | Select elements intersected by rectangle |
336
-
337
- | `Ctrl + Drag Right` | Unselect elements fully inside rectangle |
338
-
339
- | `Ctrl + Drag Left` | Unselect elements intersected by rectangle |
339
+ `Ctrl + Drag Left` - Unselect elements intersected by rectangle
340
340
 
341
341
  ### Visibility
342
342
 
343
- | Action | Description |
344
-
345
- |---|---|
346
-
347
- | `C` | Clear hidden / isolated elements |
343
+ `C` - Clear hidden / isolated elements
348
344
 
349
- | `H` | Hide selected elements |
345
+ `H` - Hide selected elements
350
346
 
351
- | `I` | Isolate selected elements |
347
+ `I` - Isolate selected elements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimatter-viewer-react",
3
- "version": "0.1.0",
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