bimatter-viewer-react 0.4.0 → 0.4.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.
- package/README.md +31 -0
- package/lib/Loaders/BmtLoader.d.ts +2 -0
- package/lib/Selector/FilteredElementsCollector.d.ts +38 -0
- package/lib/api/ViewerApi.d.ts +2 -0
- package/lib/api/ViewerPropertiesApi.d.ts +4 -0
- package/lib/index.d.ts +6 -2
- package/lib/index.js +12273 -11822
- package/lib/store/ViewerStore.d.ts +3 -0
- package/lib/utils/ExportUtils/ExportUtils.d.ts +13 -0
- package/lib/utils/ExportUtils/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -12,11 +12,13 @@ export interface SelectedStore {
|
|
|
12
12
|
}
|
|
13
13
|
export type ViewerModelPropsStore = Record<number, BmtModelProps>;
|
|
14
14
|
export type ViewerModelStructureStore = Record<number, BmtModelStructure>;
|
|
15
|
+
export type ViewerModelNamesStore = Record<number, string>;
|
|
15
16
|
export declare const DEFAULT_SELECTION_COLOR = "rgb(17, 148, 189)";
|
|
16
17
|
export declare const DEFAULT_PRESELECTION_COLOR = "rgb(104, 198, 227)";
|
|
17
18
|
export type ViewerStore = {
|
|
18
19
|
api: ViewerApi | null;
|
|
19
20
|
defaultHotkeysEnabled: boolean;
|
|
21
|
+
modelNames: ViewerModelNamesStore;
|
|
20
22
|
modelProps: ViewerModelPropsStore;
|
|
21
23
|
modelStructure: ViewerModelStructureStore;
|
|
22
24
|
gridAxesVisibility: ViewerGridAxesVisibility;
|
|
@@ -32,6 +34,7 @@ export type ViewerStore = {
|
|
|
32
34
|
setGridAxesVisibility: (gridAxesVisibility: Partial<ViewerGridAxesVisibility>) => void;
|
|
33
35
|
setGridAxisVisibility: (side: ViewerGridAxisSide, visible: boolean) => void;
|
|
34
36
|
setShowGridAxes: (visible: boolean) => void;
|
|
37
|
+
setModelNames: (modelNames: ViewerModelNamesStore) => void;
|
|
35
38
|
setModelProps: (modelProps: ViewerModelPropsStore) => void;
|
|
36
39
|
setModelStructure: (modelStructure: ViewerModelStructureStore) => void;
|
|
37
40
|
setPreselectionColor: (color: ColorRepresentation) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BmtModelData } from "../../Loaders/BmtLoader";
|
|
2
|
+
export type ExportModelSource = BmtModelData | null | undefined;
|
|
3
|
+
export type ModelPropertiesExcelOptions = {
|
|
4
|
+
emptyValue?: string;
|
|
5
|
+
fileName?: string;
|
|
6
|
+
modelName?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ExportedExcelFile = {
|
|
9
|
+
blob: Blob;
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function exportModelPropertiesToExcel(model: ExportModelSource, options?: ModelPropertiesExcelOptions): Blob;
|
|
13
|
+
export declare function exportExcel(model: ExportModelSource, options?: ModelPropertiesExcelOptions): ExportedExcelFile;
|