bimatter-viewer-react 0.7.4 → 0.8.0

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/lib/types.d.ts CHANGED
@@ -8,6 +8,7 @@ export type ViewerModelRef = RefObject<ViewerModelGroup | null>;
8
8
  export type ViewerCameraRef = RefObject<Camera | null>;
9
9
  export type ViewerControlsRef = RefObject<CameraControlsImpl | null>;
10
10
  export type ViewerLightRef = RefObject<DirectionalLight | null>;
11
+ export type ViewerCameraProjection = "perspective" | "orthographic";
11
12
  export type ViewerMaterialMode = "quality" | "performance";
12
13
  export type ViewerPostproductionPassType = "N8AO" | "SSAO" | null;
13
14
  export type ViewerUploadMode = "smooth" | "balanced" | "fast";
@@ -1,4 +1,4 @@
1
- export type WorkerProgressPhase = "queued" | "reading" | "fetching" | "initializing" | "opening" | "parsing" | "properties" | "exporting" | "complete" | "error";
1
+ export type WorkerProgressPhase = "queued" | "reading" | "fetching" | "initializing" | "opening" | "parsing" | "properties" | "exporting" | "uploading" | "complete" | "error";
2
2
  export type WorkerProgressEvent = {
3
3
  loaded?: number;
4
4
  message?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimatter-viewer-react",
3
- "version": "0.7.4",
3
+ "version": "0.8.0",
4
4
  "license": "PolyForm-Noncommercial-1.0.0",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -1,24 +0,0 @@
1
- import { type RefObject } from "react";
2
- import { type DataTexture, type Group, type Matrix4 } from "three";
3
- import type { BmtGeomData, BmtMaterialData } from "./Loaders/BmtLoader";
4
- import type { ViewerMaterialMode, ViewerUploadMode } from "./types";
5
- export type UploadMeshData = {
6
- data: BmtGeomData;
7
- isIfcSpace: boolean;
8
- key: string;
9
- material: BmtMaterialData;
10
- meshMatrix: Matrix4;
11
- modelID: number;
12
- };
13
- type ModelUploadQueueProps = {
14
- colorPaletteTexture: DataTexture;
15
- groupRef: RefObject<Group | null>;
16
- items: UploadMeshData[];
17
- materialMode: ViewerMaterialMode;
18
- onUploadComplete?: (uploadedItemCount: number) => void;
19
- uploadMode: ViewerUploadMode;
20
- useDoubleSideMaterial: boolean;
21
- useWebGPU: boolean;
22
- };
23
- export declare function ModelUploadQueue({ colorPaletteTexture, groupRef, items, materialMode, onUploadComplete, uploadMode, useDoubleSideMaterial, useWebGPU, }: ModelUploadQueueProps): null;
24
- export {};