@procore/bim-webviewer-sdk 15.0.0 → 15.1.0-BIM-4183.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/Procore.Bim.Webviewer.d.ts +161 -75
  3. package/dist/Procore.Bim.Webviewer.js +1 -1
  4. package/dist/types/src/Webviewer.d.ts +45 -25
  5. package/dist/types/src/api/HttpClient.d.ts +1 -0
  6. package/dist/types/src/api/analytic_events/analyticKeys.d.ts +10 -6
  7. package/dist/types/src/api/analytic_events/index.d.ts +1 -1
  8. package/dist/types/src/api/analytic_events/payloadFactories.d.ts +6 -1
  9. package/dist/types/src/api/types/Model.d.ts +0 -13
  10. package/dist/types/src/api/types/ModelRevision.d.ts +9 -0
  11. package/dist/types/src/api/types/Viewpoint.d.ts +15 -0
  12. package/dist/types/src/components/Markup/SvgRenderer.d.ts +3 -3
  13. package/dist/types/src/components/RootComponent.d.ts +3 -3
  14. package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +35 -8
  15. package/dist/types/src/components/ToolBarTools.d.ts +17 -16
  16. package/dist/types/src/components/ToolEnum.d.ts +18 -3
  17. package/dist/types/src/components/ViewpointManager/ViewpointManager.d.ts +28 -0
  18. package/dist/types/src/components/{HomeViewpointManager → ViewpointManager}/__tests__/fixtures.d.ts +5 -1
  19. package/dist/types/src/components/ViewpointManager/index.d.ts +1 -0
  20. package/dist/types/src/components/WindowModelObjectComponent/WindowModelObjectComponent.d.ts +1 -1
  21. package/dist/types/src/components/WindowSettingsComponent.d.ts +1 -1
  22. package/dist/types/src/components/WindowTreeViewComponent.d.ts +4 -4
  23. package/dist/types/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts +1 -1
  24. package/dist/types/src/controllers/CacheController.d.ts +2 -1
  25. package/dist/types/src/controllers/PubSubController.d.ts +1 -0
  26. package/dist/types/src/controllers/RenderController.d.ts +11 -8
  27. package/dist/types/src/controllers/RenderControllerProxy.d.ts +20 -5
  28. package/dist/types/src/controllers/RenderControllerWorker.d.ts +5 -3
  29. package/dist/types/src/procoregl/HiddenNodeServices/HiddenNodeServices.d.ts +6 -1
  30. package/dist/types/src/procoregl/HiddenNodeServices/__tests__/rangify.test.d.ts +1 -0
  31. package/dist/types/src/procoregl/HiddenNodeServices/rangify.d.ts +14 -0
  32. package/dist/types/src/procoregl/PartitionsRenderer.d.ts +2 -2
  33. package/dist/types/src/procoregl/PartitionsRendererImpl.d.ts +3 -2
  34. package/dist/types/src/procoregl/StandardRenderer.d.ts +2 -2
  35. package/dist/types/src/procoregl/StandardRendererImpl.d.ts +3 -2
  36. package/dist/types/src/procoregl/ViewerRenderer.d.ts +3 -2
  37. package/dist/types/src/pwfreader/PWF.d.ts +3 -0
  38. package/dist/types/src/pwfreader/shared/NodeServices.d.ts +2 -0
  39. package/dist/types/src/pwfreader/streaming/PartitionProxy.d.ts +6 -1
  40. package/dist/types/src/sdk.d.ts +24 -1
  41. package/dist/types/src/sectioning/SectionController.d.ts +3 -3
  42. package/dist/types/src/types/WebviewerOptions.d.ts +8 -8
  43. package/dist/types/src/utils/ApiMetaData/ApiMetaData.d.ts +1 -1
  44. package/dist/types/src/utils/ApiMetaData/__tests__/mocks.d.ts +1 -1
  45. package/dist/types/src/utils/ApiMetaData/index.d.ts +1 -0
  46. package/dist/types/src/utils/Enums.d.ts +13 -12
  47. package/dist/types/src/utils/Stack.d.ts +6 -4
  48. package/dist/types/src/utils/constants.d.ts +9 -4
  49. package/dist/types/src/viewpoint/ViewpointFactory.d.ts +5 -1
  50. package/dist/types/src/viewpoint/types.d.ts +5 -1
  51. package/package.json +1 -1
  52. package/dist/types/src/components/HomeViewpointManager/HomeViewpointManager.d.ts +0 -18
  53. package/dist/types/src/components/HomeViewpointManager/index.d.ts +0 -1
  54. /package/dist/types/src/components/{HomeViewpointManager/__tests__/HomeViewpointManager.test.d.ts → ViewpointManager/__tests__/ViewpointManager.test.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
7
7
 
8
+ ## [Unreleased]
9
+
10
+ ## Changed
11
+
12
+ - Changed `model.getViewpoint` and `model.setViewpoint` to include `visibility` and `render_mode`.
13
+ - Viewpoints selected in the Views tool now respect visibility and render mode if the views contain them.
14
+ - [Internal] Added new `SDK_VIEWPOINT` origin for section box and render mode that is used when they are set specifically from an sdk call to `setViewpoint` (vs an sdk call to `setRenderMode` for example)
15
+ - Some enums and types for them are now exposed
16
+ - `TOOL_ENUM` and its type `ToolEnum`. Used to enable tools when instantiating the `Webviewer`
17
+ - `TOOL_BAR_TOOLS` and its type `ToolBarTools`. Used for enabling tools within the toolbar and for some events.
18
+ - `ACTION` and its type `Action`. Used in some events to describe type of camera movement.
19
+
20
+ ## [15.1.0] - 2024-05-13
21
+
22
+ ## Added
23
+
24
+ - Add `model.getVisibility` and `model.setVisibility` methods.
25
+ - These methods interact with the visibility portion of the viewpoints schema defined by the `bim_viewpoints` endpoint (https://developers.procore.com/reference/rest/v1/bim-viewpoints?version=1.0)
26
+ - `Viewpoint`s now include `visibility`, but `model.get/setViewpoint` do not yet do anything with it. It will behave as if you had called `model.get/setVisibility` in a future release.
27
+ - Added `model.getRenderMode` and `model.setRenderMode` methods.
28
+ - Exposed more types used as params or return types for the SDK
29
+
8
30
  ## [15.0.0] - 2024-04-29
9
31
 
10
32
  ### Added
@@ -1,4 +1,16 @@
1
- declare type Attachment = {
1
+ export declare const ACTION: {
2
+ readonly NONE: -1;
3
+ readonly PAN: 1;
4
+ readonly KEYMOVE: 2;
5
+ readonly ROTATE: 3;
6
+ readonly FLY: 4;
7
+ readonly ORBIT: 5;
8
+ readonly STRAFE: 6;
9
+ };
10
+
11
+ export declare type Action = (typeof ACTION)[keyof typeof ACTION];
12
+
13
+ export declare type Attachment = {
2
14
  id: number;
3
15
  content_type: string;
4
16
  name: string;
@@ -6,14 +18,14 @@ declare type Attachment = {
6
18
  url: string;
7
19
  };
8
20
 
9
- declare type AutodeskFormatClipBox = {
21
+ export declare type AutodeskFormatClipBox = {
10
22
  Type: 'OrientedBox3D';
11
23
  Version: 1;
12
24
  Box: [[number, number, number], [number, number, number]];
13
25
  Rotation: [number, number, number];
14
26
  };
15
27
 
16
- declare type AutodeskFormatClipPlane = {
28
+ export declare type AutodeskFormatClipPlane = {
17
29
  Type: 'ClipPlane';
18
30
  Version: 1;
19
31
  Normal: [number, number, number];
@@ -21,7 +33,7 @@ declare type AutodeskFormatClipPlane = {
21
33
  Enabled: boolean;
22
34
  };
23
35
 
24
- declare type BcfCameraPerspective = {
36
+ export declare type BcfCameraPerspective = {
25
37
  camera_view_point: {
26
38
  x: number;
27
39
  y: number;
@@ -53,22 +65,17 @@ export declare namespace Benchmark {
53
65
  const clear: () => void;
54
66
  }
55
67
 
56
- declare type BimFileUpload = {
68
+ export declare type BimFileUpload = {
57
69
  id: number;
58
70
  file_version: FileVersion;
59
71
  attachment: Attachment;
60
72
  };
61
73
 
62
- declare type BoundingBox = {
74
+ export declare type BoundingBox = {
63
75
  max: Vector3;
64
76
  min: Vector3;
65
77
  };
66
78
 
67
- declare type BoundingBox_2 = {
68
- min: number[];
69
- max: number[];
70
- };
71
-
72
79
  declare const Cache_2: {
73
80
  removeModel: (options: any) => Promise<boolean>;
74
81
  hasModel: (geometryBundle: GeometryBundle) => Promise<boolean>;
@@ -77,7 +84,7 @@ export { Cache_2 as Cache }
77
84
 
78
85
  declare type Camera = any;
79
86
 
80
- declare type CommonOptions = {
87
+ export declare type CommonOptions = {
81
88
  /**
82
89
  * Always required
83
90
  */
@@ -122,42 +129,42 @@ declare type CommonOptions = {
122
129
  bimFileId?: number;
123
130
  };
124
131
 
125
- declare type CssColor = RGB | RGBA | HEX | string;
132
+ export declare type CssColor = RGB | RGBA | HEX | string;
126
133
 
127
- declare type FeatureFlags = Partial<{
134
+ export declare type FeatureFlags = Partial<{
128
135
  enableObjectTreeSearch: boolean;
129
136
  }>;
130
137
 
131
- declare type FileExtraction = {
138
+ export declare type FileExtraction = {
132
139
  id: number;
133
140
  extraction_items: FileExtractionItem[];
134
141
  bim_file_upload: BimFileUpload;
135
142
  };
136
143
 
137
- declare type FileExtractionItem = WebFormatExtractionItem | PropertiesExtractionItem;
144
+ export declare type FileExtractionItem = WebFormatExtractionItem | PropertiesExtractionItem;
138
145
 
139
- declare type FileExtractionModeOptions = CommonOptions & {
146
+ export declare type FileExtractionModeOptions = CommonOptions & {
140
147
  fileExtractionId: FileExtraction['id'];
141
148
  };
142
149
 
143
- declare type FileExtractionModePwfV1OverrideOptions = CommonOptions & PwfV1Bundle & {
150
+ export declare type FileExtractionModePwfV1OverrideOptions = CommonOptions & PwfV1Bundle & {
144
151
  fileExtractionId: FileExtraction['id'];
145
152
  };
146
153
 
147
- declare type FileExtractionModePwfV2OverrideOptions = CommonOptions & PwfV2Bundle & {
154
+ export declare type FileExtractionModePwfV2OverrideOptions = CommonOptions & PwfV2Bundle & {
148
155
  fileExtractionId: FileExtraction['id'];
149
156
  };
150
157
 
151
- declare type FileVersion = {
158
+ export declare type FileVersion = {
152
159
  id: number;
153
160
  file_id: number;
154
161
  };
155
162
 
156
- declare const FILTER_FIELD: {
163
+ export declare const FILTER_FIELD: {
157
164
  readonly NAME: "name";
158
165
  };
159
166
 
160
- declare type FilterField = (typeof FILTER_FIELD)[keyof typeof FILTER_FIELD];
167
+ export declare type FilterField = (typeof FILTER_FIELD)[keyof typeof FILTER_FIELD];
161
168
 
162
169
  /**
163
170
  * API Configurations
@@ -166,46 +173,46 @@ declare type FilterField = (typeof FILTER_FIELD)[keyof typeof FILTER_FIELD];
166
173
  * properties) in a variety of ways. These types attempt to accurately declare
167
174
  * the valid configurations that we support.
168
175
  */
169
- declare type GeometryBundle = {
176
+ export declare type GeometryBundle = {
170
177
  nodeUrl: GeometryFile['url'];
171
178
  meshnodeUrl: GeometryFile['url'];
172
179
  meshUrl?: GeometryFile['url'];
173
180
  manifestUrl?: GeometryFile['url'];
174
181
  };
175
182
 
176
- declare type GeometryFile = {
183
+ export declare type GeometryFile = {
177
184
  url: string;
178
185
  };
179
186
 
180
- declare type HEX = `#${string}`;
187
+ export declare type HEX = `#${string}`;
181
188
 
182
189
  declare type MetricId = string;
183
190
 
184
- declare type Model = {
191
+ export declare type Model = {
185
192
  id: number;
186
193
  };
187
194
 
188
- declare type ModelRevision = {
195
+ export declare type ModelRevision = {
189
196
  id: number;
190
197
  revision: number;
191
198
  viewpoints: ModelRevisionViewpoint[];
192
199
  };
193
200
 
194
- declare type ModelRevisionModePwfV1Options = CommonOptions & PwfV1Bundle & {
201
+ export declare type ModelRevisionModePwfV1Options = CommonOptions & PwfV1Bundle & {
195
202
  modelId: Model['id'];
196
203
  modelRevisionId: ModelRevision['id'];
197
204
  };
198
205
 
199
- declare type ModelRevisionModePwfV2Options = CommonOptions & PwfV2Bundle & {
206
+ export declare type ModelRevisionModePwfV2Options = CommonOptions & PwfV2Bundle & {
200
207
  modelId: Model['id'];
201
208
  modelRevisionId: ModelRevision['id'];
202
209
  };
203
210
 
204
- declare type ModelRevisionViewpoint = Viewpoint & {
211
+ export declare type ModelRevisionViewpoint = Viewpoint & {
205
212
  primary: boolean;
206
213
  };
207
214
 
208
- declare const NAV_MODE: {
215
+ export declare const NAV_MODE: {
209
216
  readonly DEFAULT: 0;
210
217
  readonly FLY: 1;
211
218
  readonly ORBIT: 2;
@@ -215,9 +222,14 @@ declare const NAV_MODE: {
215
222
  readonly SURVEY: 6;
216
223
  };
217
224
 
218
- declare type NavigationMode = (typeof NAV_MODE)[keyof typeof NAV_MODE];
225
+ export declare type NavigationMode = (typeof NAV_MODE)[keyof typeof NAV_MODE];
219
226
 
220
- declare type ObjectFilter = {
227
+ export declare type NodeBoundingBox = {
228
+ min: number[];
229
+ max: number[];
230
+ };
231
+
232
+ export declare type ObjectFilter = {
221
233
  filterField: FilterField;
222
234
  filterValue: string;
223
235
  };
@@ -237,31 +249,31 @@ declare type Point = {
237
249
  };
238
250
  };
239
251
 
240
- declare type ProcoreFormatClipPlane = {
252
+ export declare type ProcoreFormatClipPlane = {
241
253
  unit?: string;
242
254
  direction: Vector3;
243
255
  location: Vector3;
244
256
  };
245
257
 
246
- declare type Project = {
258
+ export declare type Project = {
247
259
  id: number;
248
260
  };
249
261
 
250
- declare type PropertiesExtractionItem = {
262
+ export declare type PropertiesExtractionItem = {
251
263
  item_type: 'Properties';
252
264
  artifact: {
253
265
  properties: PropertiesFile;
254
266
  };
255
267
  };
256
268
 
257
- declare type PropertiesFile = {
269
+ export declare type PropertiesFile = {
258
270
  id: number;
259
271
  url: string;
260
272
  };
261
273
 
262
- declare type PublicNode = {
274
+ export declare type PublicNode = {
263
275
  id: number;
264
- bbox: BoundingBox_2;
276
+ bbox: NodeBoundingBox;
265
277
  nodeType: number;
266
278
  hidden: boolean;
267
279
  selected: boolean;
@@ -270,24 +282,31 @@ declare type PublicNode = {
270
282
  children: number[];
271
283
  };
272
284
 
273
- declare type PwfV1Bundle = {
285
+ export declare type PwfV1Bundle = {
274
286
  nodeUrl: GeometryFile['url'];
275
287
  meshnodeUrl: GeometryFile['url'];
276
288
  meshUrl: GeometryFile['url'];
277
289
  };
278
290
 
279
- declare type PwfV2Bundle = {
291
+ export declare type PwfV2Bundle = {
280
292
  nodeUrl: GeometryFile['url'];
281
293
  meshnodeUrl: GeometryFile['url'];
282
294
  meshUrl: GeometryFile['url'];
283
295
  manifestUrl: GeometryFile['url'];
284
296
  };
285
297
 
286
- declare type RGB = `rgb(${number}, ${number}, ${number})`;
298
+ export declare const RENDER_MODE: {
299
+ readonly SHADED: "shaded";
300
+ readonly XRAY: "xray";
301
+ };
302
+
303
+ export declare type RenderMode = (typeof RENDER_MODE)[keyof typeof RENDER_MODE];
287
304
 
288
- declare type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
305
+ export declare type RGB = `rgb(${number}, ${number}, ${number})`;
289
306
 
290
- declare type SectionDataAutodeskFormat = {
307
+ export declare type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
308
+
309
+ export declare type SectionDataAutodeskFormat = {
291
310
  Type: 'ClipPlaneSet';
292
311
  Version: 1;
293
312
  Unit?: string;
@@ -297,7 +316,7 @@ declare type SectionDataAutodeskFormat = {
297
316
  Enabled: boolean;
298
317
  };
299
318
 
300
- declare type SectionDataProcoreFormat = ProcoreFormatClipPlane[];
319
+ export declare type SectionDataProcoreFormat = ProcoreFormatClipPlane[];
301
320
 
302
321
  export declare class TestRoutineRecorder {
303
322
  camera: Camera;
@@ -310,14 +329,52 @@ export declare class TestRoutineRecorder {
310
329
  print(): void;
311
330
  }
312
331
 
313
- declare type Tool = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
314
-
315
- declare type Vector2 = {
332
+ export declare const TOOL: {
333
+ readonly ALL: 0;
334
+ readonly BOTTOMTOOL: 1;
335
+ readonly FLOORPLAN: 2;
336
+ readonly OBJECTMODELTREE: 3;
337
+ readonly MODELVIEWS: 4;
338
+ readonly COACHMARKS: 5;
339
+ readonly COACHMARKSHIDDEN: 6;
340
+ readonly COACHMARKSECTION: 7;
341
+ readonly MEASUREMENT_SD: 8;
342
+ readonly SETTINGS: 9;
343
+ readonly CONTEXTMENU: 10;
344
+ readonly COACHMARKSFOV: 11;
345
+ readonly VIEW_PROPERTIES: 12;
346
+ readonly LOADING: 13;
347
+ readonly XRAY_MODE: 14;
348
+ readonly SECTION_BOX: 15;
349
+ };
350
+
351
+ export declare type Tool = (typeof TOOL)[keyof typeof TOOL];
352
+
353
+ export declare const TOOL_BAR_TOOLS: {
354
+ readonly NONE: 0;
355
+ readonly HOME: 1;
356
+ readonly NAV_DEFAULT: 2;
357
+ readonly NAV_FLY: 3;
358
+ readonly NAV_ORBIT: 4;
359
+ readonly OBJECT: 5;
360
+ readonly PREMEASURE: 6;
361
+ readonly MEASURE: 7;
362
+ readonly SETTING: 8;
363
+ readonly VIEW: 9;
364
+ readonly PROPERTIES: 10;
365
+ readonly CONTEXT_MENU: 11;
366
+ readonly XRAY_MODE: 12;
367
+ readonly SECTION_BOX: 13;
368
+ };
369
+
370
+ export declare type ToolBarTools = (typeof TOOL_BAR_TOOLS)[keyof typeof TOOL_BAR_TOOLS];
371
+
372
+ export declare type Vector2 = {
316
373
  x: number;
317
374
  y: number;
318
375
  };
319
376
 
320
- declare type Vector3 = {
377
+ export declare type Vector3 = {
321
378
  x: number;
322
379
  y: number;
323
380
  z: number;
@@ -325,13 +382,23 @@ declare type Vector3 = {
325
382
 
326
383
  export declare const version: string;
327
384
 
328
- declare type Viewpoint = {
385
+ export declare type Viewpoint = {
329
386
  camera_data: string;
330
387
  sections_data: string;
331
388
  redlines_data: string;
389
+ visibility?: Visibility | null;
390
+ render_mode?: RenderMode | null;
332
391
  };
333
392
 
334
- declare type WebFormatExtractionItem = {
393
+ export declare type Visibility = {
394
+ default_visibility: boolean;
395
+ exceptions: {
396
+ object_ids: number[];
397
+ object_ranges: [number, number][];
398
+ };
399
+ };
400
+
401
+ export declare type WebFormatExtractionItem = {
335
402
  item_type: 'WebFormat';
336
403
  artifact: {
337
404
  web_format: {
@@ -346,33 +413,48 @@ declare type WebFormatExtractionItem = {
346
413
  export declare class Webviewer {
347
414
  options: Options;
348
415
  static readonly tools: {
349
- [key: string]: Tool;
416
+ readonly ALL: 0;
417
+ readonly BOTTOMTOOL: 1;
418
+ readonly FLOORPLAN: 2;
419
+ readonly OBJECTMODELTREE: 3;
420
+ readonly MODELVIEWS: 4;
421
+ readonly COACHMARKS: 5;
422
+ readonly COACHMARKSHIDDEN: 6;
423
+ readonly COACHMARKSECTION: 7;
424
+ readonly MEASUREMENT_SD: 8;
425
+ readonly SETTINGS: 9;
426
+ readonly CONTEXTMENU: 10;
427
+ readonly COACHMARKSFOV: 11;
428
+ readonly VIEW_PROPERTIES: 12;
429
+ readonly LOADING: 13;
430
+ readonly XRAY_MODE: 14;
431
+ readonly SECTION_BOX: 15;
350
432
  };
351
433
  static readonly toolbar_enum: {
352
- NONE: number;
353
- HOME: number;
354
- NAV_DEFAULT: number;
355
- NAV_FLY: number;
356
- NAV_ORBIT: number;
357
- OBJECT: number;
358
- PREMEASURE: number;
359
- MEASURE: number;
360
- SETTING: number;
361
- VIEW: number;
362
- PROPERTIES: number;
363
- CONTEXT_MENU: number;
364
- XRAY_MODE: number;
365
- SECTION_BOX: number;
434
+ readonly NONE: 0;
435
+ readonly HOME: 1;
436
+ readonly NAV_DEFAULT: 2;
437
+ readonly NAV_FLY: 3;
438
+ readonly NAV_ORBIT: 4;
439
+ readonly OBJECT: 5;
440
+ readonly PREMEASURE: 6;
441
+ readonly MEASURE: 7;
442
+ readonly SETTING: 8;
443
+ readonly VIEW: 9;
444
+ readonly PROPERTIES: 10;
445
+ readonly CONTEXT_MENU: 11;
446
+ readonly XRAY_MODE: 12;
447
+ readonly SECTION_BOX: 13;
448
+ };
449
+ static readonly action: {
450
+ readonly NONE: -1;
451
+ readonly PAN: 1;
452
+ readonly KEYMOVE: 2;
453
+ readonly ROTATE: 3;
454
+ readonly FLY: 4;
455
+ readonly ORBIT: 5;
456
+ readonly STRAFE: 6;
366
457
  };
367
- static readonly action: Readonly<{
368
- NONE: -1;
369
- PAN: 1;
370
- KEYMOVE: 2;
371
- ROTATE: 3;
372
- FLY: 4;
373
- ORBIT: 5;
374
- STRAFE: 6;
375
- }>;
376
458
  events: {
377
459
  addEventListener: (eventName: string, callback: any) => void;
378
460
  removeEventListener: (eventName: string, callback: any) => void;
@@ -507,6 +589,8 @@ export declare class Webviewer {
507
589
  } | null>;
508
590
  setXRayMode: () => void;
509
591
  setNormalMode: () => void;
592
+ setRenderMode: (mode: RenderMode) => void;
593
+ getRenderMode: () => Promise<RenderMode>;
510
594
  getObject: (id: number, objectTreeName?: string) => Promise<PublicNode | undefined>;
511
595
  getObjects: (objectIds: number[], objectTreeName?: string) => Promise<PublicNode[]>;
512
596
  getNumObjectsSelected: (method: string) => Promise<{
@@ -534,6 +618,8 @@ export declare class Webviewer {
534
618
  clearObjectTreeFilter: () => Promise<void>;
535
619
  getViewpoint: () => Promise<Viewpoint>;
536
620
  setViewpoint: (viewpoint: Viewpoint) => Promise<void>;
621
+ getVisibility: () => Promise<Visibility>;
622
+ setVisibility: (visibility: Visibility) => Promise<void>;
537
623
  };
538
624
  api: {
539
625
  getNamesForObjects: (ids: number[]) => Promise<any>;