bimatter-viewer-react 0.7.5 → 0.8.1

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.
@@ -37,6 +37,7 @@ export declare const DEFAULT_AMBIENT_LIGHT_INTENSITY = 1.5;
37
37
  export declare const DEFAULT_DIRECTIONAL_LIGHT_COLOR = "#ffffff";
38
38
  export declare const DEFAULT_DIRECTIONAL_LIGHT_INTENSITY = 1.5;
39
39
  export declare const DEFAULT_POSTPRODUCTION_SATURATION = 0;
40
+ export declare const DEFAULT_PERFORMANCE_MOVING_FACTOR = 0.4;
40
41
  export type ViewerStore = {
41
42
  api: ViewerApi | null;
42
43
  defaultHotkeysEnabled: boolean;
@@ -44,6 +45,7 @@ export type ViewerStore = {
44
45
  modelNames: ViewerModelNamesStore;
45
46
  modelProps: ViewerModelPropsStore;
46
47
  modelStructure: ViewerModelStructureStore;
48
+ performanceMovingFactor: number;
47
49
  gridAxesVisibility: ViewerGridAxesVisibility;
48
50
  preselectionColor: ColorRepresentation;
49
51
  postproductionActivePassFilter: ViewerPostproductionActivePassFilter | null;
@@ -68,6 +70,7 @@ export type ViewerStore = {
68
70
  setModelNames: (modelNames: ViewerModelNamesStore) => void;
69
71
  setModelProps: (modelProps: ViewerModelPropsStore) => void;
70
72
  setModelStructure: (modelStructure: ViewerModelStructureStore) => void;
73
+ setPerformanceMovingFactor: (factor: number) => void;
71
74
  setPreselectionColor: (color: ColorRepresentation) => void;
72
75
  setPostproductionActivePassFilter: (filter: ViewerPostproductionActivePassFilter | null) => void;
73
76
  setPostproductionPassType: (type: ViewerPostproductionPassType) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimatter-viewer-react",
3
- "version": "0.7.5",
3
+ "version": "0.8.1",
4
4
  "license": "PolyForm-Noncommercial-1.0.0",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -1,25 +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
- onUploadProgress?: (uploadedItemCount: number, totalItemCount: number) => void;
20
- uploadMode: ViewerUploadMode;
21
- useDoubleSideMaterial: boolean;
22
- useWebGPU: boolean;
23
- };
24
- export declare function ModelUploadQueue({ colorPaletteTexture, groupRef, items, materialMode, onUploadComplete, onUploadProgress, uploadMode, useDoubleSideMaterial, useWebGPU, }: ModelUploadQueueProps): null;
25
- export {};