bimatter-viewer-react 0.5.5 → 0.5.7
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 +3 -1
- package/lib/Viewer.d.ts +1 -0
- package/lib/index.js +746 -732
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,8 @@ All about us you can see on our website [Bimatter](https://bimatter.ru/)
|
|
|
8
8
|
|
|
9
9
|
[GitHub](https://github.com/rkaeplive/bimatter-viewer-react)
|
|
10
10
|
|
|
11
|
+
## [Documentation](https://rkaeplive.github.io/bimatter-viewer-react/api)
|
|
12
|
+
|
|
11
13
|
Vanila js viewer core: [bimatter-viewer](https://www.npmjs.com/package/bimatter-viewer?activeTab=code)
|
|
12
14
|
|
|
13
15
|
Write your issuse here: [GitHub](https://github.com/rkaeplive/bimatter-viewer-react/issues)
|
|
@@ -169,7 +171,7 @@ const models = await loader.loadModel(["/models/model.ifc"], {
|
|
|
169
171
|
});
|
|
170
172
|
```
|
|
171
173
|
|
|
172
|
-
IFC worker loading uses the same parser wasm file.
|
|
174
|
+
IFC worker loading uses the same parser wasm file. By default, `ifc-parser.wasm` is resolved relative to the app document base URL, so it works with Vite `base` paths like `/my-app/` when the file is in that app's `public` folder. Pass a custom `wasmPath` only when the file is hosted elsewhere:
|
|
173
175
|
|
|
174
176
|
```ts
|
|
175
177
|
await loader.loadModel(["/models/model.ifc"], {
|
package/lib/Viewer.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { type ViewerModelSource } from "./api/loader";
|
|
|
6
6
|
type ModelsData = Record<number, BmtModelData>;
|
|
7
7
|
export type ViewerModelsData = ModelsData;
|
|
8
8
|
export type ViewerProps = {
|
|
9
|
+
autoFitCamera?: boolean;
|
|
9
10
|
camera?: ComponentProps<typeof Canvas>["camera"];
|
|
10
11
|
dpr?: ComponentProps<typeof Canvas>["dpr"];
|
|
11
12
|
defaultSelected?: ViewerSelection;
|