@bimdata/viewer 2.2.0-beta.3 → 2.2.0-beta.4
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 +88 -88
- package/index.d.ts +33 -29
- package/package.json +1 -1
- package/types/context-menu.d.ts +0 -15
- package/types/shortcuts.d.ts +0 -23
- package/types/xeokit.d.ts +0 -3
package/index.d.ts
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
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
2
|
/// <reference types="./types/models"/>
|
|
7
|
-
/// <reference types="./types/plugins"/>
|
|
8
|
-
/// <reference types="./types/shortcuts"/>
|
|
9
3
|
/// <reference types="./types/state"/>
|
|
10
|
-
/// <reference types="./types/windows"/>
|
|
11
|
-
/// <reference types="./types/xeokit"/>
|
|
12
|
-
/// <reference types="./types/$viewer"/>
|
|
13
4
|
|
|
14
5
|
declare module "@bimdata/viewer" {
|
|
15
6
|
export default function makeBIMDataViewer(cfg: BDV.ViewerConfig): BDV.Viewer;
|
|
@@ -25,9 +16,6 @@ declare namespace BDV {
|
|
|
25
16
|
registerWindow(window: Object): void;
|
|
26
17
|
unregisterWindow(name: string): void;
|
|
27
18
|
loadModels(modelIds: number[]): Promise<StateModel[]>;
|
|
28
|
-
|
|
29
|
-
/** @deprecated use `loadModels` instead */
|
|
30
|
-
loadIfcs(ifcIds: number[]): Promise<StateModel[]>;
|
|
31
19
|
}
|
|
32
20
|
|
|
33
21
|
type ViewerLocale = "de" | "en" | "es" | "fr" | "it";
|
|
@@ -40,16 +28,40 @@ declare namespace BDV {
|
|
|
40
28
|
}
|
|
41
29
|
|
|
42
30
|
interface ViewerConfigUI {
|
|
43
|
-
headerVisible?: boolean;
|
|
44
|
-
windowManager?: boolean;
|
|
45
|
-
version?: boolean;
|
|
46
31
|
bimdataLogo?: boolean;
|
|
47
|
-
contextMenu?:
|
|
48
|
-
|
|
49
|
-
|
|
32
|
+
contextMenu?: boolean;
|
|
33
|
+
header?: boolean;
|
|
34
|
+
resizable?: boolean;
|
|
50
35
|
style?: {
|
|
51
36
|
backgroundColor?: string;
|
|
37
|
+
colorPrimary?: string;
|
|
38
|
+
colorPrimaryLighter?: string;
|
|
39
|
+
colorPrimaryLight?: string;
|
|
40
|
+
colorPrimaryDark?: string;
|
|
41
|
+
colorSecondary?: string;
|
|
42
|
+
colorSecondaryLight?: string;
|
|
43
|
+
colorSecondaryLighter?: string;
|
|
44
|
+
colorSecondaryDark?: string;
|
|
45
|
+
colorSilverLight?: string;
|
|
46
|
+
colorSilver?: string;
|
|
47
|
+
colorSilverDark?: string;
|
|
48
|
+
colorGraniteLight?: string;
|
|
49
|
+
colorGranite?: string;
|
|
50
|
+
colorSuccess?: string;
|
|
51
|
+
colorSuccessLight?: string;
|
|
52
|
+
colorSuccessLighter?: string;
|
|
53
|
+
colorSuccessDark?: string;
|
|
54
|
+
colorWarning?: string;
|
|
55
|
+
colorWarningLight?: string;
|
|
56
|
+
colorWarningLighter?: string;
|
|
57
|
+
colorWarningDark?: string;
|
|
58
|
+
colorHigh?: string;
|
|
59
|
+
colorHighLight?: string;
|
|
60
|
+
colorHighLighter?: string;
|
|
61
|
+
colorHighDark?: string;
|
|
62
|
+
colorText?: string;
|
|
52
63
|
};
|
|
64
|
+
version?: boolean;
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
interface ViewerConfigApi {
|
|
@@ -62,19 +74,12 @@ declare namespace BDV {
|
|
|
62
74
|
|
|
63
75
|
offline?: {
|
|
64
76
|
enabled: boolean;
|
|
65
|
-
|
|
77
|
+
data: string;
|
|
66
78
|
};
|
|
67
|
-
|
|
68
|
-
/** @deprecated use `modelIds` instead */
|
|
69
|
-
ifcIds?: number[];
|
|
70
79
|
}
|
|
71
80
|
|
|
72
81
|
interface ViewerConfigPlugins {
|
|
73
|
-
|
|
74
|
-
windowSelector?: boolean; // Enable/Disable window selector
|
|
75
|
-
|
|
76
|
-
// --- Native plugins config ---
|
|
77
|
-
|
|
82
|
+
accessMarketplace: boolean;
|
|
78
83
|
alerts?: boolean;
|
|
79
84
|
bcf?:
|
|
80
85
|
| boolean
|
|
@@ -99,7 +104,6 @@ declare namespace BDV {
|
|
|
99
104
|
};
|
|
100
105
|
fullscreen?: boolean;
|
|
101
106
|
ged?: boolean;
|
|
102
|
-
header?: boolean;
|
|
103
107
|
measure2d?: boolean;
|
|
104
108
|
measure3d?: boolean;
|
|
105
109
|
navigationVersionsModel?: boolean;
|
|
@@ -178,6 +182,6 @@ declare namespace BDV {
|
|
|
178
182
|
pivotMarker?: boolean;
|
|
179
183
|
};
|
|
180
184
|
"viewer3d-parameters"?: boolean;
|
|
181
|
-
"window-
|
|
185
|
+
"window-manager"?: boolean;
|
|
182
186
|
}
|
|
183
187
|
}
|
package/package.json
CHANGED
package/types/context-menu.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare namespace BDV {
|
|
2
|
-
interface ContextMenuCommand {
|
|
3
|
-
label: string;
|
|
4
|
-
picto: string;
|
|
5
|
-
execute(): void;
|
|
6
|
-
predicate?(): boolean;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface ContextMenu {
|
|
10
|
-
preventDefault(): void;
|
|
11
|
-
registerContextCommand(command: ContextMenuCommand): boolean;
|
|
12
|
-
registerCommand(command: ContextMenuCommand): boolean;
|
|
13
|
-
unregisterCommand(command: ContextMenuCommand): boolean;
|
|
14
|
-
}
|
|
15
|
-
}
|
package/types/shortcuts.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare namespace BDV {
|
|
2
|
-
interface Shortcut {
|
|
3
|
-
name: string;
|
|
4
|
-
context: GlobalContext | LocalContext;
|
|
5
|
-
key: string;
|
|
6
|
-
ctrlKey: boolean;
|
|
7
|
-
shiftKey: boolean;
|
|
8
|
-
altKey: boolean;
|
|
9
|
-
execute(): void;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface ShortcutManager {
|
|
13
|
-
active: boolean;
|
|
14
|
-
activeLocalContext?: LocalContext;
|
|
15
|
-
shortcuts: Shortcut[];
|
|
16
|
-
|
|
17
|
-
getShortcuts(context: GlobalContext | LocalContext): Shortcut[];
|
|
18
|
-
getShortcut(name: string, context: GlobalContext | LocalContext): Shortcut;
|
|
19
|
-
registerShortcut(shortcut: Shortcut, context: GlobalContext | LocalContext): boolean;
|
|
20
|
-
unregisterShortcut(name: string, context: GlobalContext | LocalContext): boolean;
|
|
21
|
-
destroy(): void;
|
|
22
|
-
}
|
|
23
|
-
}
|
package/types/xeokit.d.ts
DELETED