bimatter-viewer-react 0.7.1 → 0.7.3
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/api/ViewerApi.d.ts +19 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +4299 -1439
- package/lib/store/ViewerStore.d.ts +34 -0
- package/lib/types.d.ts +1 -0
- package/package.json +65 -65
package/lib/api/ViewerApi.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ColorRepresentation, Group } from "three";
|
|
2
|
-
import type { SelectedStore, UserDevice, ViewerGridAxesVisibility, ViewerGridAxisSide, ViewerStoreApi } from "../store/ViewerStore";
|
|
2
|
+
import type { SelectedStore, UserDevice, ViewerGridAxesVisibility, ViewerGridAxisSide, ViewerLightingSettings, ViewerLightingSettingsUpdate, ViewerPostproductionActivePassFilter, ViewerStoreApi } from "../store/ViewerStore";
|
|
3
|
+
import type { ViewerPostproductionPassType } from "../types";
|
|
3
4
|
import { type ViewerPropertiesApi } from "./ViewerPropertiesApi";
|
|
4
5
|
import type { ViewerClippingApi } from "../utils/ClippingUtils";
|
|
5
6
|
import type { ViewerColorConfigByModel, ViewerModelColorConfig } from "../utils/ColorsUtils/useElementColors";
|
|
@@ -92,6 +93,22 @@ export type ViewerModelsApi = {
|
|
|
92
93
|
loadModels: (sources: ViewerModelSource[], options?: ViewerLoadModelsOptions) => Promise<ViewerLoadedModels>;
|
|
93
94
|
reset: () => void;
|
|
94
95
|
};
|
|
96
|
+
export type ViewerPostproductionApi = {
|
|
97
|
+
getAmbientLightColor: () => ColorRepresentation;
|
|
98
|
+
getAmbientLightIntensity: () => number;
|
|
99
|
+
getActivePassFilter: () => ViewerPostproductionActivePassFilter | null;
|
|
100
|
+
getDirectionalLightColor: () => ColorRepresentation;
|
|
101
|
+
getDirectionalLightIntensity: () => number;
|
|
102
|
+
getLighting: () => ViewerLightingSettings;
|
|
103
|
+
getSaturation: () => number;
|
|
104
|
+
setAmbientLightColor: (color: ColorRepresentation) => void;
|
|
105
|
+
setAmbientLightIntensity: (intensity: number) => void;
|
|
106
|
+
setDirectionalLightColor: (color: ColorRepresentation) => void;
|
|
107
|
+
setDirectionalLightIntensity: (intensity: number) => void;
|
|
108
|
+
setLighting: (lighting: ViewerLightingSettingsUpdate) => void;
|
|
109
|
+
setPassFilter: (type: ViewerPostproductionPassType) => void;
|
|
110
|
+
setSaturation: (saturation: number) => void;
|
|
111
|
+
};
|
|
95
112
|
export type ViewerApi = {
|
|
96
113
|
camera: ViewerCameraApi;
|
|
97
114
|
clipping: ViewerClippingApi;
|
|
@@ -100,6 +117,7 @@ export type ViewerApi = {
|
|
|
100
117
|
dimensions: ViewerDimensionsApi;
|
|
101
118
|
geometryUtils: ViewerGeometryUtilsApi;
|
|
102
119
|
models: ViewerModelsApi;
|
|
120
|
+
postproduction: ViewerPostproductionApi;
|
|
103
121
|
properties: ViewerPropertiesApi;
|
|
104
122
|
selector: ViewerSelectorApi;
|
|
105
123
|
utils: ViewerUtilsApi;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as Viewer } from "./Viewer";
|
|
2
2
|
export type { ViewerModelsData, ViewerProps } from "./Viewer";
|
|
3
|
-
export type { ViewerMaterialMode, ViewerUploadMode } from "./types";
|
|
4
|
-
export type { ViewerApi, ViewerCameraApi, ViewerCameraGetIntersection, ViewerClippingApi, ViewerColorsApi, ViewerBmtConverterOptions, ViewerConverterApi, ViewerDimensionsApi, ViewerGeometryUtilsApi, ViewerLoadModelsOptions, ViewerModelsApi, ViewerSelection, ViewerSelectorApi, ViewerUtilsApi, } from "./api/ViewerApi";
|
|
3
|
+
export type { ViewerMaterialMode, ViewerPostproductionPassType, ViewerUploadMode, } from "./types";
|
|
4
|
+
export type { ViewerApi, ViewerCameraApi, ViewerCameraGetIntersection, ViewerClippingApi, ViewerColorsApi, ViewerBmtConverterOptions, ViewerConverterApi, ViewerDimensionsApi, ViewerGeometryUtilsApi, ViewerLoadModelsOptions, ViewerModelsApi, ViewerPostproductionApi, ViewerSelection, ViewerSelectorApi, ViewerUtilsApi, } from "./api/ViewerApi";
|
|
5
5
|
export type { ViewerModelLevel, ViewerModelLevelsByModel, ViewerPropertiesApi, ViewerPropertiesExcelOptions, } from "./api/ViewerPropertiesApi";
|
|
6
6
|
export { BMTLoader } from "./Loaders/BmtLoader";
|
|
7
7
|
export type { BmtGeometryChunkData, BmtParseCallbacks, BmtParseProgressData, BmtModelGeometryData, BmtGeomData, BmtIndexArray, BmtMaterialData, BmtElementProps, BmtModelData, BmtModelProps, BmtModelStructure, BmtModelStructureNode, BmtPropertyRecord, BmtPropertySet, BmtPropertyValue, } from "./Loaders/BmtLoader";
|
|
@@ -23,4 +23,4 @@ export { DimensionLine, DimensionsUtils, useDimensionsUtils, type DimensionUnit,
|
|
|
23
23
|
export { createViewerStore } from "./store/ViewerStore";
|
|
24
24
|
export { ViewerStoreProvider } from "./store/ViewerStoreProvider";
|
|
25
25
|
export { useViewerStore, useViewerStoreApi } from "./store/useViewerStore";
|
|
26
|
-
export type { SelectedStore, UserDevice, ViewerGridAxesVisibility, ViewerGridAxisSide, ViewerModelNamesStore, ViewerModelPropsStore, ViewerModelStructureStore, ViewerStore, ViewerStoreApi, } from "./store/ViewerStore";
|
|
26
|
+
export type { SelectedStore, UserDevice, ViewerGridAxesVisibility, ViewerGridAxisSide, ViewerLightSettings, ViewerLightingSettings, ViewerLightingSettingsUpdate, ViewerModelNamesStore, ViewerModelPropsStore, ViewerModelStructureStore, ViewerPostproductionActivePassFilter, ViewerStore, ViewerStoreApi, } from "./store/ViewerStore";
|