@bimdata/viewer 2.0.0-beta.83 → 2.0.0-beta.85
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/dist/bimdata-viewer.esm.min.js +51 -51
- package/index.d.ts +22 -16
- package/package.json +3 -3
- package/types/api.d.ts +14 -3
- package/types/state.d.ts +2 -2
package/index.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/// <reference types="./types/api"/>
|
|
2
|
+
/// <reference types="./types/context-menu"/>
|
|
3
|
+
/// <reference types="./types/events"/>
|
|
4
|
+
/// <reference types="./types/global-context"/>
|
|
5
|
+
/// <reference types="./types/local-context"/>
|
|
6
|
+
/// <reference types="./types/models"/>
|
|
7
|
+
/// <reference types="./types/plugins"/>
|
|
8
|
+
/// <reference types="./types/shortcuts"/>
|
|
9
|
+
/// <reference types="./types/state"/>
|
|
10
|
+
/// <reference types="./types/windows"/>
|
|
11
|
+
/// <reference types="./types/xeokit"/>
|
|
12
|
+
|
|
1
13
|
declare module "@bimdata/viewer" {
|
|
2
14
|
export default function makeBIMDataViewer(cfg: BDV.ViewerConfig): BDV.Viewer;
|
|
3
15
|
}
|
|
@@ -17,13 +29,7 @@ declare namespace BDV {
|
|
|
17
29
|
loadIfcs(ifcIds: number[]): Promise<StateModel[]>;
|
|
18
30
|
}
|
|
19
31
|
|
|
20
|
-
|
|
21
|
-
"de",
|
|
22
|
-
"en",
|
|
23
|
-
"es",
|
|
24
|
-
"fr",
|
|
25
|
-
"it",
|
|
26
|
-
}
|
|
32
|
+
type ViewerLocale = "de" | "en" | "es" | "fr" | "it";
|
|
27
33
|
|
|
28
34
|
interface ViewerConfig {
|
|
29
35
|
ui?: ViewerConfigUI;
|
|
@@ -33,15 +39,15 @@ declare namespace BDV {
|
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
interface ViewerConfigUI {
|
|
36
|
-
headerVisible
|
|
37
|
-
windowManager
|
|
38
|
-
version
|
|
39
|
-
bimdataLogo
|
|
40
|
-
contextMenu
|
|
41
|
-
defaultCommands
|
|
42
|
+
headerVisible?: boolean;
|
|
43
|
+
windowManager?: boolean;
|
|
44
|
+
version?: boolean;
|
|
45
|
+
bimdataLogo?: boolean;
|
|
46
|
+
contextMenu?: {
|
|
47
|
+
defaultCommands?: boolean;
|
|
42
48
|
};
|
|
43
|
-
style
|
|
44
|
-
backgroundColor
|
|
49
|
+
style?: {
|
|
50
|
+
backgroundColor?: string;
|
|
45
51
|
};
|
|
46
52
|
}
|
|
47
53
|
|
|
@@ -51,7 +57,7 @@ declare namespace BDV {
|
|
|
51
57
|
accessToken: string;
|
|
52
58
|
cloudId: number;
|
|
53
59
|
projectId: number;
|
|
54
|
-
modelIds
|
|
60
|
+
modelIds?: number[];
|
|
55
61
|
|
|
56
62
|
/** @deprecated use `modelIds` instead */
|
|
57
63
|
ifcIds?: number[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bimdata/viewer",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.85",
|
|
5
5
|
"description": "A customizable BIM viewer.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"bim",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"@babel/preset-env": "^7.22.20",
|
|
52
52
|
"@bimdata/2d-engine": "2.4.0",
|
|
53
53
|
"@bimdata/areas-next": "0.1.13",
|
|
54
|
-
"@bimdata/bcf-components": "6.
|
|
54
|
+
"@bimdata/bcf-components": "6.2.0",
|
|
55
55
|
"@bimdata/building-maker": "3.0.3",
|
|
56
56
|
"@bimdata/components": "1.3.1",
|
|
57
57
|
"@bimdata/design-system": "2.1.0-rc.9",
|
|
58
|
-
"@bimdata/typescript-fetch-api-client": "9.
|
|
58
|
+
"@bimdata/typescript-fetch-api-client": "9.18.0",
|
|
59
59
|
"@rollup/plugin-alias": "5.0.0",
|
|
60
60
|
"@rollup/plugin-babel": "^6.0.3",
|
|
61
61
|
"@rollup/plugin-commonjs": "^25.0.4",
|
package/types/api.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare namespace BDV {
|
|
2
2
|
interface Api {
|
|
3
3
|
readonly apiClient: any;
|
|
4
|
-
readonly apiUrl
|
|
5
|
-
readonly archiveUrl
|
|
4
|
+
readonly apiUrl?: string;
|
|
5
|
+
readonly archiveUrl?: string;
|
|
6
6
|
readonly cloudId: number;
|
|
7
7
|
readonly projectId: number;
|
|
8
8
|
readonly permissions: Permissions;
|
|
@@ -91,7 +91,18 @@ declare namespace BDV {
|
|
|
91
91
|
hasModelWritePermission: boolean;
|
|
92
92
|
hasReadPermission: boolean;
|
|
93
93
|
hasWritePermission: boolean;
|
|
94
|
-
userRole
|
|
94
|
+
userRole?: string;
|
|
95
|
+
user?: {
|
|
96
|
+
id: number;
|
|
97
|
+
email: string;
|
|
98
|
+
firstName: string;
|
|
99
|
+
lastName: string;
|
|
100
|
+
created_at: string;
|
|
101
|
+
updated_at: string;
|
|
102
|
+
provider: string;
|
|
103
|
+
sub: string;
|
|
104
|
+
profile_picture: string;
|
|
105
|
+
};
|
|
95
106
|
tokenScopes: {
|
|
96
107
|
bcf?: string[];
|
|
97
108
|
model?: string[];
|
package/types/state.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare namespace BDV {
|
|
|
6
6
|
readonly models: StateModel[];
|
|
7
7
|
readonly modelsMap: Map<number, StateModel>;
|
|
8
8
|
loadModels(modelIds: number[]): Promise<StateModel[]>;
|
|
9
|
-
unloadModels(modelIds: number[]);
|
|
9
|
+
unloadModels(modelIds: number[]): void;
|
|
10
10
|
getStoreyFromAbsoluteElevation(model: StateModel, elevation: number): StateStorey;
|
|
11
11
|
|
|
12
12
|
/**** objects ****/
|
|
@@ -102,7 +102,7 @@ declare namespace BDV {
|
|
|
102
102
|
/** @deprecated use `loadModels` instead */
|
|
103
103
|
loadIfcs(ifcIds: string[]): Promise<StateModel[]>;
|
|
104
104
|
/** @deprecated use `unloadModels` instead */
|
|
105
|
-
unloadIfcs(ifcIds: string[]);
|
|
105
|
+
unloadIfcs(ifcIds: string[]): void;
|
|
106
106
|
/** @deprecated use `getModel` instead */
|
|
107
107
|
getIfc(id: number): StateModel;
|
|
108
108
|
}
|