@procore/bim-webviewer-sdk 15.2.0 → 15.3.0
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/CHANGELOG.md +19 -4
- package/dist/Procore.Bim.Webviewer.d.ts +749 -6
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/Webviewer.d.ts +21 -5
- package/dist/types/src/api/analytic_events/analyticKeys.d.ts +2 -0
- package/dist/types/src/api/analytic_events/payloadFactories.d.ts +1 -0
- package/dist/types/src/components/ViewpointManager/ViewpointManager.d.ts +6 -2
- package/dist/types/src/controllers/RenderController.d.ts +4 -4
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +99 -98
- package/dist/types/src/controllers/RenderControllerWorker.d.ts +94 -94
- package/dist/types/src/procoregl/HiddenNodeServices/HiddenNodeServices.d.ts +3 -1
- package/dist/types/src/sdk.d.ts +4 -1
- package/dist/types/src/types/Palette.d.ts +1 -1
- package/dist/types/src/types/WebviewerOptions.d.ts +28 -1
- package/dist/types/src/utils/ApiMetaData/ApiMetaData.d.ts +18 -12
- package/dist/types/src/utils/ApiMetaData/__tests__/mocks.d.ts +25 -1
- package/dist/types/src/utils/Error/CustomError.d.ts +3 -0
- package/dist/types/src/utils/Error/ErrorLogger.d.ts +12 -0
- package/dist/types/src/utils/Error/ExternalError.d.ts +5 -0
- package/dist/types/src/utils/Error/__tests__/CustomError.test.d.ts +1 -0
- package/dist/types/src/utils/Error/__tests__/ErrorLogger.test.d.ts +1 -0
- package/dist/types/src/utils/Error/__tests__/ExternalError.test.d.ts +1 -0
- package/dist/types/src/utils/Error/index.d.ts +3 -0
- package/dist/types/src/utils/Logger/BugsnagLogger.d.ts +8 -0
- package/dist/types/src/utils/Logger/Logger.d.ts +3 -0
- package/dist/types/src/utils/Logger/__tests__/BugsnagLogger.test.d.ts +1 -0
- package/dist/types/src/utils/Logger/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Options } from './types/WebviewerOptions';
|
|
2
2
|
import { BoundingBox, Vector2, Vector3 } from './types/Math';
|
|
3
3
|
import { BcfCameraPerspective } from './types/BcfCamera';
|
|
4
|
+
import { PaletteParams } from './types/Palette';
|
|
4
5
|
import { ObjectFilter } from './types/ObjectFilter';
|
|
5
6
|
import { PublicNode } from './types/PublicNode';
|
|
6
7
|
import { NavigationMode } from './navigation/NavigationModes';
|
|
@@ -8,6 +9,11 @@ import { SectionDataAutodeskFormat, SectionDataProcoreFormat } from './sectionin
|
|
|
8
9
|
import type { Viewpoint, Visibility } from './api/types/Viewpoint';
|
|
9
10
|
import type { CssColor } from './components/Markup/SvgRenderer';
|
|
10
11
|
import { RenderMode } from './utils/constants';
|
|
12
|
+
export type ResourceDiscriminator = {
|
|
13
|
+
fileExtractionId: number;
|
|
14
|
+
} | {
|
|
15
|
+
modelRevisionId: number;
|
|
16
|
+
};
|
|
11
17
|
export declare class Webviewer {
|
|
12
18
|
options: Options;
|
|
13
19
|
static readonly tools: {
|
|
@@ -209,14 +215,24 @@ export declare class Webviewer {
|
|
|
209
215
|
selectAllObjects: (objectTreeName?: string) => Promise<boolean>;
|
|
210
216
|
getSelectedObjects: () => Promise<number[]>;
|
|
211
217
|
setMeasurement: (enable: boolean) => void;
|
|
212
|
-
setObjectColor: (palettes:
|
|
213
|
-
|
|
214
|
-
|
|
218
|
+
setObjectColor: (palettes: PaletteParams[], options?: {
|
|
219
|
+
resource?: ResourceDiscriminator;
|
|
220
|
+
}) => void;
|
|
221
|
+
clearObjectColor: (objectIds: number[], options?: {
|
|
222
|
+
resource?: ResourceDiscriminator;
|
|
223
|
+
}) => Promise<void> | void;
|
|
224
|
+
clearAllObjectColor: (options?: {
|
|
225
|
+
resource?: ResourceDiscriminator;
|
|
226
|
+
}) => Promise<void> | void;
|
|
215
227
|
filterObjectTree: (objectIds: number[]) => Promise<void>;
|
|
216
228
|
clearObjectTreeFilter: () => Promise<void>;
|
|
217
|
-
getViewpoint: (
|
|
229
|
+
getViewpoint: (options?: {
|
|
230
|
+
defaultVisibilityAlwaysTrue?: boolean;
|
|
231
|
+
}) => Promise<Viewpoint>;
|
|
218
232
|
setViewpoint: (viewpoint: Viewpoint) => Promise<void>;
|
|
219
|
-
getVisibility: (
|
|
233
|
+
getVisibility: (options?: {
|
|
234
|
+
defaultVisibilityAlwaysTrue?: boolean;
|
|
235
|
+
}) => Promise<Visibility>;
|
|
220
236
|
setVisibility: (visibility: Visibility) => Promise<void>;
|
|
221
237
|
};
|
|
222
238
|
api: {
|
|
@@ -27,6 +27,7 @@ export type BimModelsDownloadCompletedPayload = {
|
|
|
27
27
|
input_file_size: number;
|
|
28
28
|
model_type: ModelType;
|
|
29
29
|
model_cached: boolean;
|
|
30
|
+
file_extraction_id?: string;
|
|
30
31
|
total_partitions_size?: number;
|
|
31
32
|
total_partitions_size_compressed?: number;
|
|
32
33
|
num_partitions?: number;
|
|
@@ -52,6 +53,7 @@ export type InitializationTrackEventPayload = ModelInitializationPayload & {
|
|
|
52
53
|
file_name: string;
|
|
53
54
|
file_type: string;
|
|
54
55
|
input_file_size: number;
|
|
56
|
+
file_extraction_id?: string;
|
|
55
57
|
};
|
|
56
58
|
export declare const sectionBoxes: {
|
|
57
59
|
readonly enabled: `${string}.enabled`;
|
|
@@ -4,6 +4,7 @@ export declare const getModelMetaData: () => Promise<{
|
|
|
4
4
|
file_name: string;
|
|
5
5
|
file_type: string;
|
|
6
6
|
input_file_size: number;
|
|
7
|
+
file_extraction_id?: string | undefined;
|
|
7
8
|
}>;
|
|
8
9
|
export declare const getInitializationEventPayload: (params: {
|
|
9
10
|
streaming?: boolean | undefined;
|
|
@@ -18,11 +18,15 @@ export declare class ViewpointManager {
|
|
|
18
18
|
});
|
|
19
19
|
activateHomeViewpoint: () => Promise<void>;
|
|
20
20
|
private activateViewpoint;
|
|
21
|
-
getViewpoint(
|
|
21
|
+
getViewpoint(options?: {
|
|
22
|
+
defaultVisibilityAlwaysTrue?: boolean;
|
|
23
|
+
}): Promise<Viewpoint>;
|
|
22
24
|
setViewpoint(viewpoint: Viewpoint, options?: {
|
|
23
25
|
origins?: ViewpointOrigins;
|
|
24
26
|
}): Promise<void>;
|
|
25
27
|
setVisibility(visibility: Visibility): Promise<void>;
|
|
26
|
-
getVisibility(
|
|
28
|
+
getVisibility(options?: {
|
|
29
|
+
defaultVisibilityAlwaysTrue?: boolean;
|
|
30
|
+
}): Promise<Visibility>;
|
|
27
31
|
}
|
|
28
32
|
export {};
|
|
@@ -139,9 +139,9 @@ export class RenderController {
|
|
|
139
139
|
z: number;
|
|
140
140
|
};
|
|
141
141
|
setMeshnodeColor(params: any): void;
|
|
142
|
-
setNodeColor(
|
|
143
|
-
clearNodeColor(nodeIds: any): void;
|
|
144
|
-
clearAllNodeColor(): void;
|
|
142
|
+
setNodeColor(palettes: any, options: any): void;
|
|
143
|
+
clearNodeColor(nodeIds: any, options: any): void;
|
|
144
|
+
clearAllNodeColor(options: any): void;
|
|
145
145
|
setLookAt(params: any): {
|
|
146
146
|
direction: {
|
|
147
147
|
x: number;
|
|
@@ -388,7 +388,7 @@ export class RenderController {
|
|
|
388
388
|
getNumNodesHidden(): {
|
|
389
389
|
count: any;
|
|
390
390
|
};
|
|
391
|
-
setRenderMode(
|
|
391
|
+
setRenderMode(renderMode: any, origin: any): void;
|
|
392
392
|
getRenderMode(): string;
|
|
393
393
|
getSelectedNodeIds(): any[];
|
|
394
394
|
getPartiallySelectedNodeIds(): any[];
|
|
@@ -35,6 +35,7 @@ export class RenderControllerProxy {
|
|
|
35
35
|
fileExtractionId: any;
|
|
36
36
|
modelId: any;
|
|
37
37
|
modelRevisionId: any;
|
|
38
|
+
resources: any;
|
|
38
39
|
companyId: any;
|
|
39
40
|
accessToken: any;
|
|
40
41
|
};
|
|
@@ -54,23 +55,23 @@ export class RenderControllerProxy {
|
|
|
54
55
|
onUpdateWithState(data: any): void | Promise<any> | undefined;
|
|
55
56
|
close(): void;
|
|
56
57
|
cameras: any;
|
|
57
|
-
setNavigationMode(
|
|
58
|
-
getCameraDirection(): Promise<any> | {
|
|
58
|
+
setNavigationMode(...params: any[]): void;
|
|
59
|
+
getCameraDirection(...params: any[]): Promise<any> | {
|
|
59
60
|
x: number;
|
|
60
61
|
y: number;
|
|
61
62
|
z: number;
|
|
62
63
|
};
|
|
63
|
-
getPosition(params: any): Promise<any> | {
|
|
64
|
+
getPosition(...params: any[]): Promise<any> | {
|
|
64
65
|
x: number;
|
|
65
66
|
y: number;
|
|
66
67
|
z: number;
|
|
67
68
|
};
|
|
68
|
-
getLookAt(params: any): Promise<any> | {
|
|
69
|
+
getLookAt(...params: any[]): Promise<any> | {
|
|
69
70
|
x: number;
|
|
70
71
|
y: number;
|
|
71
72
|
z: number;
|
|
72
73
|
};
|
|
73
|
-
getBenchmarkPoint(): Promise<any> | {
|
|
74
|
+
getBenchmarkPoint(...params: any[]): Promise<any> | {
|
|
74
75
|
position: {
|
|
75
76
|
x: number;
|
|
76
77
|
y: number;
|
|
@@ -82,12 +83,12 @@ export class RenderControllerProxy {
|
|
|
82
83
|
z: number;
|
|
83
84
|
};
|
|
84
85
|
};
|
|
85
|
-
setBenchmarkPoint(params: any): void | Promise<any>;
|
|
86
|
-
setNodeColor(params: any): void;
|
|
87
|
-
clearNodeColor(
|
|
88
|
-
clearAllNodeColor(): void;
|
|
89
|
-
setMeshnodeColor(
|
|
90
|
-
setLookAt(params: any): Promise<any> | {
|
|
86
|
+
setBenchmarkPoint(...params: any[]): void | Promise<any>;
|
|
87
|
+
setNodeColor(...params: any[]): void;
|
|
88
|
+
clearNodeColor(...params: any[]): void;
|
|
89
|
+
clearAllNodeColor(...params: any[]): void;
|
|
90
|
+
setMeshnodeColor(...params: any[]): void;
|
|
91
|
+
setLookAt(...params: any[]): Promise<any> | {
|
|
91
92
|
direction: {
|
|
92
93
|
x: number;
|
|
93
94
|
y: number;
|
|
@@ -99,7 +100,7 @@ export class RenderControllerProxy {
|
|
|
99
100
|
z: number;
|
|
100
101
|
};
|
|
101
102
|
};
|
|
102
|
-
setPosition(
|
|
103
|
+
setPosition(...params: any[]): Promise<any> | {
|
|
103
104
|
direction: {
|
|
104
105
|
x: number;
|
|
105
106
|
y: number;
|
|
@@ -111,39 +112,39 @@ export class RenderControllerProxy {
|
|
|
111
112
|
z: number;
|
|
112
113
|
};
|
|
113
114
|
};
|
|
114
|
-
setCameraRotation(params: any): void | Promise<any>;
|
|
115
|
-
getGlobalOffset(): Promise<any> | {
|
|
115
|
+
setCameraRotation(...params: any[]): void | Promise<any>;
|
|
116
|
+
getGlobalOffset(...params: any[]): Promise<any> | {
|
|
116
117
|
offsetX: number;
|
|
117
118
|
offsetY: number;
|
|
118
119
|
offsetZ: number;
|
|
119
120
|
} | null;
|
|
120
|
-
getMeshnodeFromNodeId(
|
|
121
|
-
unhideNodeFromNodeIds(params: any): boolean | Promise<any>;
|
|
122
|
-
hideNodesFromNodeIds(params: any): boolean | Promise<any>;
|
|
123
|
-
onResize(): void;
|
|
124
|
-
getMeshnodeFromIndex(
|
|
125
|
-
getMeasureObjectMeshes(): Promise<any> | import("../pwfreader/shared/Meshnode").MeshnodeObject[];
|
|
126
|
-
onContextMenu(
|
|
127
|
-
getContextMenuData(
|
|
121
|
+
getMeshnodeFromNodeId(...params: any[]): Promise<any> | import("../pwfreader/shared/Node").Node | import("../pwfreader/shared/Meshnode").Meshnode | null;
|
|
122
|
+
unhideNodeFromNodeIds(...params: any[]): boolean | Promise<any>;
|
|
123
|
+
hideNodesFromNodeIds(...params: any[]): boolean | Promise<any>;
|
|
124
|
+
onResize(...params: any[]): void;
|
|
125
|
+
getMeshnodeFromIndex(...params: any[]): Promise<any> | import("../pwfreader/shared/Meshnode").Meshnode | null;
|
|
126
|
+
getMeasureObjectMeshes(...params: any[]): Promise<any> | import("../pwfreader/shared/Meshnode").MeshnodeObject[];
|
|
127
|
+
onContextMenu(...params: any[]): void | Promise<any>;
|
|
128
|
+
getContextMenuData(...params: any[]): Promise<any> | {
|
|
128
129
|
meshnodeIndex: number;
|
|
129
130
|
};
|
|
130
|
-
onSingleClick(
|
|
131
|
-
resizeScene(params: any): void;
|
|
132
|
-
onDoubleClick(
|
|
133
|
-
onRightClick(
|
|
134
|
-
getNumNodesHidden(): Promise<any> | {
|
|
131
|
+
onSingleClick(...params: any[]): void | Promise<any>;
|
|
132
|
+
resizeScene(...params: any[]): void;
|
|
133
|
+
onDoubleClick(...params: any[]): void | Promise<any>;
|
|
134
|
+
onRightClick(...params: any[]): void | Promise<any>;
|
|
135
|
+
getNumNodesHidden(...params: any[]): Promise<any> | {
|
|
135
136
|
count: any;
|
|
136
137
|
};
|
|
137
|
-
hideSelected(): void;
|
|
138
|
-
hideNodeOffset(
|
|
139
|
-
getHiddenNodeIds(): any[] | Promise<any>;
|
|
140
|
-
getHiddenMeshnodeIndices(): any[] | Promise<any>;
|
|
141
|
-
getHiddenGeoIdsSet(): any;
|
|
142
|
-
addHiddenMeshnodeIndices(
|
|
143
|
-
removeHiddenGeoIds(
|
|
144
|
-
setVisibility(params: any): void | Promise<any>;
|
|
145
|
-
getVisibility(params: any): any;
|
|
146
|
-
getOrbitTranslate(
|
|
138
|
+
hideSelected(...params: any[]): void;
|
|
139
|
+
hideNodeOffset(...params: any[]): any;
|
|
140
|
+
getHiddenNodeIds(...params: any[]): any[] | Promise<any>;
|
|
141
|
+
getHiddenMeshnodeIndices(...params: any[]): any[] | Promise<any>;
|
|
142
|
+
getHiddenGeoIdsSet(...params: any[]): any;
|
|
143
|
+
addHiddenMeshnodeIndices(...params: any[]): void | Promise<any>;
|
|
144
|
+
removeHiddenGeoIds(...params: any[]): any;
|
|
145
|
+
setVisibility(...params: any[]): void | Promise<any>;
|
|
146
|
+
getVisibility(...params: any[]): any;
|
|
147
|
+
getOrbitTranslate(...params: any[]): Promise<any> | {
|
|
147
148
|
translate: {
|
|
148
149
|
x: any;
|
|
149
150
|
y: any;
|
|
@@ -155,7 +156,7 @@ export class RenderControllerProxy {
|
|
|
155
156
|
}[];
|
|
156
157
|
orbitPoint: import("../sdk").Vector3;
|
|
157
158
|
};
|
|
158
|
-
ToScreenPosition(params: any): Promise<any> | {
|
|
159
|
+
ToScreenPosition(...params: any[]): Promise<any> | {
|
|
159
160
|
x: any;
|
|
160
161
|
y: any;
|
|
161
162
|
z: any;
|
|
@@ -164,7 +165,7 @@ export class RenderControllerProxy {
|
|
|
164
165
|
y: any;
|
|
165
166
|
z: any;
|
|
166
167
|
}[];
|
|
167
|
-
ModelToMapSpace(params: any): Promise<any> | {
|
|
168
|
+
ModelToMapSpace(...params: any[]): Promise<any> | {
|
|
168
169
|
x?: undefined;
|
|
169
170
|
y?: undefined;
|
|
170
171
|
dir_x?: undefined;
|
|
@@ -175,7 +176,7 @@ export class RenderControllerProxy {
|
|
|
175
176
|
dir_x: number;
|
|
176
177
|
dir_y: number;
|
|
177
178
|
};
|
|
178
|
-
MapToModelSpace(params: any): Promise<any> | {
|
|
179
|
+
MapToModelSpace(...params: any[]): Promise<any> | {
|
|
179
180
|
x?: undefined;
|
|
180
181
|
y?: undefined;
|
|
181
182
|
dir_x?: undefined;
|
|
@@ -186,7 +187,7 @@ export class RenderControllerProxy {
|
|
|
186
187
|
dir_x: number;
|
|
187
188
|
dir_y: number;
|
|
188
189
|
};
|
|
189
|
-
setBcfCamera(params: any): false | Promise<any> | {
|
|
190
|
+
setBcfCamera(...params: any[]): false | Promise<any> | {
|
|
190
191
|
perspective_camera: {
|
|
191
192
|
camera_view_point: {
|
|
192
193
|
x: number;
|
|
@@ -208,7 +209,7 @@ export class RenderControllerProxy {
|
|
|
208
209
|
unit: string;
|
|
209
210
|
};
|
|
210
211
|
};
|
|
211
|
-
getBcfCamera(params: any): Promise<any> | {
|
|
212
|
+
getBcfCamera(...params: any[]): Promise<any> | {
|
|
212
213
|
perspective_camera: {
|
|
213
214
|
camera_view_point: {
|
|
214
215
|
x: number;
|
|
@@ -230,70 +231,70 @@ export class RenderControllerProxy {
|
|
|
230
231
|
unit: string;
|
|
231
232
|
};
|
|
232
233
|
};
|
|
233
|
-
refreshScene(): void;
|
|
234
|
-
refreshLighting(): void;
|
|
235
|
-
setSectionBox(params: any): void | Promise<any>;
|
|
236
|
-
setSectionsData(params: any): boolean | Promise<any>;
|
|
237
|
-
removeSectionBox(): void;
|
|
238
|
-
addSectionPlane(params: any): void;
|
|
239
|
-
removeSectionPlane(
|
|
240
|
-
getSections(
|
|
241
|
-
clearSection(): void | Promise<any>;
|
|
234
|
+
refreshScene(...params: any[]): void;
|
|
235
|
+
refreshLighting(...params: any[]): void;
|
|
236
|
+
setSectionBox(...params: any[]): void | Promise<any>;
|
|
237
|
+
setSectionsData(...params: any[]): boolean | Promise<any>;
|
|
238
|
+
removeSectionBox(...params: any[]): void;
|
|
239
|
+
addSectionPlane(...params: any[]): void;
|
|
240
|
+
removeSectionPlane(...params: any[]): void;
|
|
241
|
+
getSections(...params: any[]): Promise<any> | import("../sdk").SectionDataProcoreFormat | import("../sdk").SectionDataAutodeskFormat | null;
|
|
242
|
+
clearSection(...params: any[]): void | Promise<any>;
|
|
242
243
|
setOptions(options: any): void;
|
|
243
|
-
setCanvasSelectionEnabled(params: any): void;
|
|
244
|
-
findFirstObject(
|
|
245
|
-
getNamedNode(
|
|
246
|
-
setEulerAngles(
|
|
247
|
-
setMeasureEnabled(
|
|
248
|
-
statusChange(
|
|
249
|
-
onUndo(): void | Promise<any>;
|
|
250
|
-
getMeasureEnabled(): boolean | Promise<any>;
|
|
251
|
-
getMeasureIds(): any[] | Promise<any>;
|
|
252
|
-
removeMeasureIds(
|
|
253
|
-
onRedo(): void | Promise<any>;
|
|
254
|
-
clearMeasureIds(): void | Promise<any>;
|
|
255
|
-
clearHidden(): boolean | Promise<any>;
|
|
256
|
-
hasHiddenMeshnodeIndices(
|
|
257
|
-
addSelectedMeshnodeIndices(
|
|
258
|
-
clearAndSelectNode(
|
|
259
|
-
clearAndSelectNodes(params: any): void | Promise<any>;
|
|
260
|
-
getNode(params: any): any;
|
|
261
|
-
getNodes(params: any): any;
|
|
262
|
-
setNodesSelected(params: any): boolean | Promise<any>;
|
|
263
|
-
getRootNode(params: any): any;
|
|
264
|
-
getSelectedMeshnodeIndices(): any[] | Promise<any>;
|
|
265
|
-
hasSelectedMeshnodeIndices(
|
|
266
|
-
clearSelected(): boolean | Promise<any>;
|
|
267
|
-
getFieldOfView(): number | Promise<any>;
|
|
268
|
-
setFieldOfView(
|
|
269
|
-
zoomToBoundingBox(
|
|
270
|
-
zoomToGlobal(params: any): void | Promise<any>;
|
|
271
|
-
zoomToSelection(): void | Promise<any>;
|
|
272
|
-
isolateSelectionInSectionBox(): void | Promise<any>;
|
|
273
|
-
isolateSelection(): void | Promise<any>;
|
|
274
|
-
zoomToNodes(
|
|
275
|
-
getNumNodesSelected(params: any): Promise<any> | {
|
|
244
|
+
setCanvasSelectionEnabled(...params: any[]): void;
|
|
245
|
+
findFirstObject(...params: any[]): any;
|
|
246
|
+
getNamedNode(...params: any[]): any;
|
|
247
|
+
setEulerAngles(...params: any[]): void | Promise<any>;
|
|
248
|
+
setMeasureEnabled(...params: any[]): void | Promise<any>;
|
|
249
|
+
statusChange(...params: any[]): void | Promise<any>;
|
|
250
|
+
onUndo(...params: any[]): void | Promise<any>;
|
|
251
|
+
getMeasureEnabled(...params: any[]): boolean | Promise<any>;
|
|
252
|
+
getMeasureIds(...params: any[]): any[] | Promise<any>;
|
|
253
|
+
removeMeasureIds(...params: any[]): void | Promise<any>;
|
|
254
|
+
onRedo(...params: any[]): void | Promise<any>;
|
|
255
|
+
clearMeasureIds(...params: any[]): void | Promise<any>;
|
|
256
|
+
clearHidden(...params: any[]): boolean | Promise<any>;
|
|
257
|
+
hasHiddenMeshnodeIndices(...params: any[]): any;
|
|
258
|
+
addSelectedMeshnodeIndices(...params: any[]): boolean | Promise<any>;
|
|
259
|
+
clearAndSelectNode(...params: any[]): void | Promise<any>;
|
|
260
|
+
clearAndSelectNodes(...params: any[]): void | Promise<any>;
|
|
261
|
+
getNode(...params: any[]): any;
|
|
262
|
+
getNodes(...params: any[]): any;
|
|
263
|
+
setNodesSelected(...params: any[]): boolean | Promise<any>;
|
|
264
|
+
getRootNode(...params: any[]): any;
|
|
265
|
+
getSelectedMeshnodeIndices(...params: any[]): any[] | Promise<any>;
|
|
266
|
+
hasSelectedMeshnodeIndices(...params: any[]): any;
|
|
267
|
+
clearSelected(...params: any[]): boolean | Promise<any>;
|
|
268
|
+
getFieldOfView(...params: any[]): number | Promise<any>;
|
|
269
|
+
setFieldOfView(...params: any[]): void | Promise<any>;
|
|
270
|
+
zoomToBoundingBox(...params: any[]): void | Promise<any>;
|
|
271
|
+
zoomToGlobal(...params: any[]): void | Promise<any>;
|
|
272
|
+
zoomToSelection(...params: any[]): void | Promise<any>;
|
|
273
|
+
isolateSelectionInSectionBox(...params: any[]): void | Promise<any>;
|
|
274
|
+
isolateSelection(...params: any[]): void | Promise<any>;
|
|
275
|
+
zoomToNodes(...params: any[]): void | Promise<any>;
|
|
276
|
+
getNumNodesSelected(...params: any[]): Promise<any> | {
|
|
276
277
|
count: any;
|
|
277
278
|
};
|
|
278
|
-
setRenderMode(
|
|
279
|
-
getRenderMode(): string | Promise<any>;
|
|
280
|
-
getSelectedNodeIds(): any[] | Promise<any>;
|
|
281
|
-
getPartiallySelectedNodeIds(): any[] | Promise<any>;
|
|
282
|
-
toggleSectionBoxDisplay(params: any): void | Promise<any>;
|
|
283
|
-
zoomToSectionBox(): void | Promise<any>;
|
|
284
|
-
setSectionBoxHidden(
|
|
285
|
-
resetSectionBox(): void | Promise<any>;
|
|
286
|
-
constructObjectTreeFromNodeIds(params: any): Promise<any> | {
|
|
279
|
+
setRenderMode(...params: any[]): void;
|
|
280
|
+
getRenderMode(...params: any[]): string | Promise<any>;
|
|
281
|
+
getSelectedNodeIds(...params: any[]): any[] | Promise<any>;
|
|
282
|
+
getPartiallySelectedNodeIds(...params: any[]): any[] | Promise<any>;
|
|
283
|
+
toggleSectionBoxDisplay(...params: any[]): void | Promise<any>;
|
|
284
|
+
zoomToSectionBox(...params: any[]): void | Promise<any>;
|
|
285
|
+
setSectionBoxHidden(...params: any[]): void | Promise<any>;
|
|
286
|
+
resetSectionBox(...params: any[]): void | Promise<any>;
|
|
287
|
+
constructObjectTreeFromNodeIds(...params: any[]): Promise<any> | {
|
|
287
288
|
nodeIds: number[];
|
|
288
289
|
ancestors: number[];
|
|
289
290
|
children: number[];
|
|
290
291
|
};
|
|
291
|
-
clearFilteredObjectTree(): void | Promise<any>;
|
|
292
|
-
getSectionBoxDisplayBbox(): Promise<any> | import("../sdk").BoundingBox;
|
|
293
|
-
getSectionsAsBox(): Promise<any> | import("../sectioning/SectionController").OrientedBox | null;
|
|
292
|
+
clearFilteredObjectTree(...params: any[]): void | Promise<any>;
|
|
293
|
+
getSectionBoxDisplayBbox(...params: any[]): Promise<any> | import("../sdk").BoundingBox;
|
|
294
|
+
getSectionsAsBox(...params: any[]): Promise<any> | import("../sectioning/SectionController").OrientedBox | null;
|
|
294
295
|
setHotkeysEnabled(enabled: any): void;
|
|
295
|
-
partitionUrlsFromMeshnodeIndices(
|
|
296
|
-
isPartitionedModel(): boolean | Promise<any>;
|
|
296
|
+
partitionUrlsFromMeshnodeIndices(...params: any[]): any;
|
|
297
|
+
isPartitionedModel(...params: any[]): boolean | Promise<any>;
|
|
297
298
|
}
|
|
298
299
|
export namespace RenderControllerProxy {
|
|
299
300
|
namespace NAVIGATION_MODE {
|
|
@@ -11,24 +11,24 @@ export class RenderControllerWorker {
|
|
|
11
11
|
postSimpleMessage(fn: any, args: any): Promise<any>;
|
|
12
12
|
postMessage(payload: any): Promise<any>;
|
|
13
13
|
onUpdateWithState(data: any): Promise<any>;
|
|
14
|
-
close(): void;
|
|
15
|
-
getCameraDirection(): Promise<any>;
|
|
16
|
-
getPosition(params: any): Promise<any>;
|
|
17
|
-
setNodeColor(params: any): Promise<any>;
|
|
18
|
-
clearNodeColor(
|
|
19
|
-
clearAllNodeColor(): Promise<any>;
|
|
20
|
-
setMeshnodeColor(params: any): Promise<any>;
|
|
21
|
-
setLookAt(params: any): Promise<any>;
|
|
22
|
-
getLookAt(params: any): Promise<any>;
|
|
23
|
-
getBenchmarkPoint(): Promise<any>;
|
|
24
|
-
setBenchmarkPoint(params: any): Promise<any>;
|
|
25
|
-
setPosition(params: any): Promise<any>;
|
|
26
|
-
setCameraRotation(params: any): Promise<any>;
|
|
27
|
-
getGlobalOffset(): Promise<any>;
|
|
28
|
-
getMeshnodeFromNodeId(
|
|
29
|
-
onResize(): Promise<any>;
|
|
30
|
-
getMeshnodeFromIndex(
|
|
31
|
-
getMeasureObjectMeshes(): Promise<any>;
|
|
14
|
+
close(...params: any[]): void;
|
|
15
|
+
getCameraDirection(...params: any[]): Promise<any>;
|
|
16
|
+
getPosition(...params: any[]): Promise<any>;
|
|
17
|
+
setNodeColor(...params: any[]): Promise<any>;
|
|
18
|
+
clearNodeColor(...params: any[]): Promise<any>;
|
|
19
|
+
clearAllNodeColor(...params: any[]): Promise<any>;
|
|
20
|
+
setMeshnodeColor(...params: any[]): Promise<any>;
|
|
21
|
+
setLookAt(...params: any[]): Promise<any>;
|
|
22
|
+
getLookAt(...params: any[]): Promise<any>;
|
|
23
|
+
getBenchmarkPoint(...params: any[]): Promise<any>;
|
|
24
|
+
setBenchmarkPoint(...params: any[]): Promise<any>;
|
|
25
|
+
setPosition(...params: any[]): Promise<any>;
|
|
26
|
+
setCameraRotation(...params: any[]): Promise<any>;
|
|
27
|
+
getGlobalOffset(...params: any[]): Promise<any>;
|
|
28
|
+
getMeshnodeFromNodeId(...params: any[]): Promise<any>;
|
|
29
|
+
onResize(...params: any[]): Promise<any>;
|
|
30
|
+
getMeshnodeFromIndex(...params: any[]): Promise<any>;
|
|
31
|
+
getMeasureObjectMeshes(...params: any[]): Promise<any>;
|
|
32
32
|
extractEventVars(evt: any): {
|
|
33
33
|
pageX: any;
|
|
34
34
|
pageY: any;
|
|
@@ -38,83 +38,83 @@ export class RenderControllerWorker {
|
|
|
38
38
|
onContextMenu(evt: any): Promise<any>;
|
|
39
39
|
getContextMenuData(evt: any): Promise<any>;
|
|
40
40
|
onSingleClick(evt: any): Promise<any>;
|
|
41
|
-
resizeScene(params: any): Promise<any>;
|
|
41
|
+
resizeScene(...params: any[]): Promise<any>;
|
|
42
42
|
onDoubleClick(evt: any): Promise<any>;
|
|
43
43
|
onRightClick(evt: any): Promise<any>;
|
|
44
|
-
getNumNodesHidden(): Promise<any>;
|
|
45
|
-
hideSelected(): Promise<any>;
|
|
46
|
-
hideNodeOffset(
|
|
47
|
-
getHiddenNodeIds(): Promise<any>;
|
|
48
|
-
getHiddenMeshnodeIndices(): Promise<any>;
|
|
49
|
-
getHiddenGeoIdsSet(): Promise<any>;
|
|
50
|
-
addHiddenMeshnodeIndices(
|
|
51
|
-
removeHiddenGeoIds(
|
|
52
|
-
setVisibility(params: any): Promise<any>;
|
|
53
|
-
getVisibility(params: any): Promise<any>;
|
|
44
|
+
getNumNodesHidden(...params: any[]): Promise<any>;
|
|
45
|
+
hideSelected(...params: any[]): Promise<any>;
|
|
46
|
+
hideNodeOffset(...params: any[]): Promise<any>;
|
|
47
|
+
getHiddenNodeIds(...params: any[]): Promise<any>;
|
|
48
|
+
getHiddenMeshnodeIndices(...params: any[]): Promise<any>;
|
|
49
|
+
getHiddenGeoIdsSet(...params: any[]): Promise<any>;
|
|
50
|
+
addHiddenMeshnodeIndices(...params: any[]): Promise<any>;
|
|
51
|
+
removeHiddenGeoIds(...params: any[]): Promise<any>;
|
|
52
|
+
setVisibility(...params: any[]): Promise<any>;
|
|
53
|
+
getVisibility(...params: any[]): Promise<any>;
|
|
54
54
|
getOrbitTranslate(evt: any): Promise<any>;
|
|
55
|
-
ToScreenPosition(params: any): Promise<any>;
|
|
56
|
-
ModelToMapSpace(params: any): Promise<any>;
|
|
57
|
-
MapToModelSpace(params: any): Promise<any>;
|
|
58
|
-
setBcfCamera(params: any): Promise<any>;
|
|
59
|
-
getBcfCamera(params: any): Promise<any>;
|
|
60
|
-
refreshScene(): Promise<any>;
|
|
61
|
-
refreshLighting(): Promise<any>;
|
|
62
|
-
setSectionBox(params: any): Promise<any>;
|
|
63
|
-
setSectionsData(params: any): Promise<any>;
|
|
64
|
-
removeSectionBox(): Promise<any>;
|
|
65
|
-
addSectionPlane(params: any): Promise<any>;
|
|
66
|
-
removeSectionPlane(
|
|
67
|
-
getSections(params: any): Promise<any>;
|
|
68
|
-
clearSection(): Promise<any>;
|
|
69
|
-
setOptions(
|
|
70
|
-
setCanvasSelectionEnabled(params: any): Promise<any>;
|
|
71
|
-
findFirstObject(
|
|
72
|
-
getNamedNode(
|
|
73
|
-
setEulerAngles(params: any): Promise<any>;
|
|
74
|
-
setMeasureEnabled(
|
|
75
|
-
statusChange(
|
|
76
|
-
onUndo(): Promise<any>;
|
|
77
|
-
getMeasureEnabled(): Promise<any>;
|
|
78
|
-
getMeasureIds(): Promise<any>;
|
|
79
|
-
removeMeasureIds(
|
|
80
|
-
onRedo(): Promise<any>;
|
|
81
|
-
clearMeasureIds(): Promise<any>;
|
|
82
|
-
clearHidden(): Promise<any>;
|
|
83
|
-
hasHiddenMeshnodeIndices(
|
|
84
|
-
addSelectedMeshnodeIndices(
|
|
85
|
-
clearAndSelectNode(
|
|
86
|
-
clearAndSelectNodes(params: any): Promise<any>;
|
|
87
|
-
getNode(params: any): Promise<any>;
|
|
88
|
-
getNodes(params: any): Promise<any>;
|
|
89
|
-
getRootNode(params: any): Promise<any>;
|
|
90
|
-
setNodesSelected(params: any): Promise<any>;
|
|
91
|
-
getSelectedMeshnodeIndices(): Promise<any>;
|
|
92
|
-
hasSelectedMeshnodeIndices(
|
|
93
|
-
clearSelected(): Promise<any>;
|
|
94
|
-
getFieldOfView(): Promise<any>;
|
|
95
|
-
setFieldOfView(
|
|
96
|
-
zoomToBoundingBox(params: any): Promise<any>;
|
|
97
|
-
zoomToGlobal(params: any): Promise<any>;
|
|
98
|
-
zoomToSelection(): Promise<any>;
|
|
99
|
-
isolateSelectionInSectionBox(): Promise<any>;
|
|
100
|
-
isolateSelection(): Promise<any>;
|
|
101
|
-
zoomToNodes(params: any): Promise<any>;
|
|
102
|
-
unhideNodeFromNodeIds(params: any): Promise<any>;
|
|
103
|
-
hideNodesFromNodeIds(params: any): Promise<any>;
|
|
104
|
-
getNumNodesSelected(params: any): Promise<any>;
|
|
105
|
-
setRenderMode(params: any): Promise<any>;
|
|
106
|
-
getRenderMode(): Promise<any>;
|
|
107
|
-
getSelectedNodeIds(): Promise<any>;
|
|
108
|
-
getPartiallySelectedNodeIds(): Promise<any>;
|
|
109
|
-
toggleSectionBoxDisplay(params: any): Promise<any>;
|
|
110
|
-
zoomToSectionBox(): Promise<any>;
|
|
111
|
-
setSectionBoxHidden(
|
|
112
|
-
resetSectionBox(): Promise<any>;
|
|
113
|
-
constructObjectTreeFromNodeIds(params: any): Promise<any>;
|
|
114
|
-
clearFilteredObjectTree(): Promise<any>;
|
|
115
|
-
getSectionBoxDisplayBbox(params: any): Promise<any>;
|
|
116
|
-
getSectionsAsBox(params: any): Promise<any>;
|
|
117
|
-
setPwfFileCacheState(params: any): Promise<any>;
|
|
118
|
-
partitionUrlsFromMeshnodeIndices(params: any): Promise<any>;
|
|
119
|
-
isPartitionedModel(): Promise<any>;
|
|
55
|
+
ToScreenPosition(...params: any[]): Promise<any>;
|
|
56
|
+
ModelToMapSpace(...params: any[]): Promise<any>;
|
|
57
|
+
MapToModelSpace(...params: any[]): Promise<any>;
|
|
58
|
+
setBcfCamera(...params: any[]): Promise<any>;
|
|
59
|
+
getBcfCamera(...params: any[]): Promise<any>;
|
|
60
|
+
refreshScene(...params: any[]): Promise<any>;
|
|
61
|
+
refreshLighting(...params: any[]): Promise<any>;
|
|
62
|
+
setSectionBox(...params: any[]): Promise<any>;
|
|
63
|
+
setSectionsData(...params: any[]): Promise<any>;
|
|
64
|
+
removeSectionBox(...params: any[]): Promise<any>;
|
|
65
|
+
addSectionPlane(...params: any[]): Promise<any>;
|
|
66
|
+
removeSectionPlane(...params: any[]): Promise<any>;
|
|
67
|
+
getSections(...params: any[]): Promise<any>;
|
|
68
|
+
clearSection(...params: any[]): Promise<any>;
|
|
69
|
+
setOptions(...params: any[]): Promise<any>;
|
|
70
|
+
setCanvasSelectionEnabled(...params: any[]): Promise<any>;
|
|
71
|
+
findFirstObject(...params: any[]): Promise<any>;
|
|
72
|
+
getNamedNode(...params: any[]): Promise<any>;
|
|
73
|
+
setEulerAngles(...params: any[]): Promise<any>;
|
|
74
|
+
setMeasureEnabled(...params: any[]): Promise<any>;
|
|
75
|
+
statusChange(...params: any[]): Promise<any>;
|
|
76
|
+
onUndo(...params: any[]): Promise<any>;
|
|
77
|
+
getMeasureEnabled(...params: any[]): Promise<any>;
|
|
78
|
+
getMeasureIds(...params: any[]): Promise<any>;
|
|
79
|
+
removeMeasureIds(...params: any[]): Promise<any>;
|
|
80
|
+
onRedo(...params: any[]): Promise<any>;
|
|
81
|
+
clearMeasureIds(...params: any[]): Promise<any>;
|
|
82
|
+
clearHidden(...params: any[]): Promise<any>;
|
|
83
|
+
hasHiddenMeshnodeIndices(...params: any[]): Promise<any>;
|
|
84
|
+
addSelectedMeshnodeIndices(...params: any[]): Promise<any>;
|
|
85
|
+
clearAndSelectNode(...params: any[]): Promise<any>;
|
|
86
|
+
clearAndSelectNodes(...params: any[]): Promise<any>;
|
|
87
|
+
getNode(...params: any[]): Promise<any>;
|
|
88
|
+
getNodes(...params: any[]): Promise<any>;
|
|
89
|
+
getRootNode(...params: any[]): Promise<any>;
|
|
90
|
+
setNodesSelected(...params: any[]): Promise<any>;
|
|
91
|
+
getSelectedMeshnodeIndices(...params: any[]): Promise<any>;
|
|
92
|
+
hasSelectedMeshnodeIndices(...params: any[]): Promise<any>;
|
|
93
|
+
clearSelected(...params: any[]): Promise<any>;
|
|
94
|
+
getFieldOfView(...params: any[]): Promise<any>;
|
|
95
|
+
setFieldOfView(...params: any[]): Promise<any>;
|
|
96
|
+
zoomToBoundingBox(...params: any[]): Promise<any>;
|
|
97
|
+
zoomToGlobal(...params: any[]): Promise<any>;
|
|
98
|
+
zoomToSelection(...params: any[]): Promise<any>;
|
|
99
|
+
isolateSelectionInSectionBox(...params: any[]): Promise<any>;
|
|
100
|
+
isolateSelection(...params: any[]): Promise<any>;
|
|
101
|
+
zoomToNodes(...params: any[]): Promise<any>;
|
|
102
|
+
unhideNodeFromNodeIds(...params: any[]): Promise<any>;
|
|
103
|
+
hideNodesFromNodeIds(...params: any[]): Promise<any>;
|
|
104
|
+
getNumNodesSelected(...params: any[]): Promise<any>;
|
|
105
|
+
setRenderMode(...params: any[]): Promise<any>;
|
|
106
|
+
getRenderMode(...params: any[]): Promise<any>;
|
|
107
|
+
getSelectedNodeIds(...params: any[]): Promise<any>;
|
|
108
|
+
getPartiallySelectedNodeIds(...params: any[]): Promise<any>;
|
|
109
|
+
toggleSectionBoxDisplay(...params: any[]): Promise<any>;
|
|
110
|
+
zoomToSectionBox(...params: any[]): Promise<any>;
|
|
111
|
+
setSectionBoxHidden(...params: any[]): Promise<any>;
|
|
112
|
+
resetSectionBox(...params: any[]): Promise<any>;
|
|
113
|
+
constructObjectTreeFromNodeIds(...params: any[]): Promise<any>;
|
|
114
|
+
clearFilteredObjectTree(...params: any[]): Promise<any>;
|
|
115
|
+
getSectionBoxDisplayBbox(...params: any[]): Promise<any>;
|
|
116
|
+
getSectionsAsBox(...params: any[]): Promise<any>;
|
|
117
|
+
setPwfFileCacheState(...params: any[]): Promise<any>;
|
|
118
|
+
partitionUrlsFromMeshnodeIndices(...params: any[]): Promise<any>;
|
|
119
|
+
isPartitionedModel(...params: any[]): Promise<any>;
|
|
120
120
|
}
|
|
@@ -22,7 +22,9 @@ export declare class HiddenNodeServices {
|
|
|
22
22
|
hideAll(): void;
|
|
23
23
|
hasMeshnodeIndices: (indexes: Array<number>) => boolean;
|
|
24
24
|
private nodeNeedsUpdating;
|
|
25
|
-
getVisibility: (
|
|
25
|
+
getVisibility: (options?: {
|
|
26
|
+
defaultVisibilityAlwaysTrue?: boolean | undefined;
|
|
27
|
+
}) => Visibility;
|
|
26
28
|
setVisibility: (visibility: Visibility) => void;
|
|
27
29
|
private updateNodeAndChildren;
|
|
28
30
|
private updateNodeAndParentsDF;
|