@procore/bim-webviewer-sdk 17.2.0 → 17.2.1-BM-2-default-viewpoint-for-file-extraction-id.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/Procore.Bim.Webviewer.d.ts +84 -41
  3. package/dist/Procore.Bim.Webviewer.js +1 -1
  4. package/dist/types/src/EscapeOperationsManager/EscapeOperationsManager.d.ts +21 -0
  5. package/dist/types/src/EscapeOperationsManager/__tests__/EscapeOperationsManager.test.d.ts +1 -0
  6. package/dist/types/src/EscapeOperationsManager/index.d.ts +1 -0
  7. package/dist/types/src/Webviewer.d.ts +1 -0
  8. package/dist/types/src/api/analytic_events/analyticKeys.d.ts +1 -0
  9. package/dist/types/src/api/bim_viewpoints.d.ts +5 -0
  10. package/dist/types/src/api/types/FileExtraction.d.ts +3 -9
  11. package/dist/types/src/api/types/GeometryFileBundle.d.ts +10 -0
  12. package/dist/types/src/api/types/ModelRevision.d.ts +2 -0
  13. package/dist/types/src/components/ContextMenuComponent/ContextMenuComponent.d.ts +9 -5
  14. package/dist/types/src/components/ContextMenuComponent/__tests__/ContextMenuComponent.test.d.ts +1 -0
  15. package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +0 -1
  16. package/dist/types/src/controllers/RenderController.d.ts +1 -10
  17. package/dist/types/src/controllers/RenderControllerProxy.d.ts +5 -8
  18. package/dist/types/src/controllers/RenderControllerWorker.d.ts +1 -3
  19. package/dist/types/src/controllers/ShortestDistanceController.d.ts +0 -1
  20. package/dist/types/src/{navigation → hotkeys}/Hotkeys.d.ts +8 -5
  21. package/dist/types/src/hotkeys/__tests__/Hotkeys.test.d.ts +1 -0
  22. package/dist/types/src/measuring/DistanceLabel.d.ts +6 -0
  23. package/dist/types/src/measuring/FeatureTooltip/FeatureTooltip.d.ts +2 -0
  24. package/dist/types/src/measuring/MeasureToolUtils.d.ts +9 -8
  25. package/dist/types/src/measuring/MeasurementManager.d.ts +3 -0
  26. package/dist/types/src/measuring/MeasurementRenderer.d.ts +0 -1
  27. package/dist/types/src/measuring/PointToPointController.d.ts +7 -10
  28. package/dist/types/src/measuring/__tests__/PointToPointFixtures.d.ts +29 -50
  29. package/dist/types/src/navigation/DefaultControl.d.ts +1 -0
  30. package/dist/types/src/navigation/__tests__/DefaultControl.test.d.ts +1 -0
  31. package/dist/types/src/procoregl/MeshTopology/MeshTopology.d.ts +1 -0
  32. package/dist/types/src/procoregl/MeshTopology/__tests__/TopologyFixtures.d.ts +3 -0
  33. package/dist/types/src/procoregl/Models/__tests__/Models.test.d.ts +2 -2
  34. package/dist/types/src/pwfreader/PWF.d.ts +1 -2
  35. package/dist/types/src/pwfreader/PWFProxy.d.ts +1 -2
  36. package/dist/types/src/pwfreader/v1/PWFV1.d.ts +0 -2
  37. package/dist/types/src/pwfreader/v1/streaming/StreamedMeshServices.d.ts +2 -0
  38. package/dist/types/src/pwfreader/v2/PWFV2.d.ts +7 -2
  39. package/dist/types/src/pwfreader/v2/streaming/MeshData.d.ts +1 -0
  40. package/dist/types/src/pwfreader/v2/streaming/PartitionProxy.d.ts +7 -2
  41. package/dist/types/src/pwfreader/v2/streaming/StreamedMeshServices.d.ts +24 -3
  42. package/dist/types/src/sdk.d.ts +3 -2
  43. package/dist/types/src/types/WebviewerOptions.d.ts +31 -31
  44. package/dist/types/src/types/setMeasurementSchema.d.ts +21 -0
  45. package/dist/types/src/utils/ApiMetaData/ApiMetaData.d.ts +5 -0
  46. package/dist/types/src/utils/ApiMetaData/__tests__/mocks.d.ts +10 -7
  47. package/dist/types/src/utils/CameraHelper/CameraHelper.d.ts +8 -0
  48. package/dist/types/src/utils/CameraHelper/index.d.ts +1 -0
  49. package/dist/types/src/utils/Enums.d.ts +1 -0
  50. package/dist/types/src/{pwfreader/v1/streaming → utils}/OPFSFile/MainThreadSyncAccessHandleFallback.d.ts +2 -1
  51. package/dist/types/src/{pwfreader/v1/streaming → utils}/OPFSFile/OPFSFile.d.ts +3 -2
  52. package/dist/types/src/utils/OPFSFile/__tests__/OPFSFile.test.d.ts +1 -0
  53. package/dist/types/src/utils/OPFSFile/index.d.ts +1 -0
  54. package/package.json +2 -2
  55. package/dist/types/src/pwfreader/v1/streaming/OPFSFile/index.d.ts +0 -1
  56. /package/dist/types/src/{navigation/Orbit → utils}/log.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,38 @@ 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
+ ### Added
11
+
12
+ - ([#1440](https://github.com/procore/bim-webviewer/pull/1440)) Added clipping of the point to point outline that appears when a user hovers over a mesh/surface, respecting the applied section box/plane.
13
+ - ([#1389](https://github.com/procore/bim-webviewer/pull/1389)) [QA Ignore] Fetching the model by only using model revision id in SDK side.
14
+
15
+ ### Changed
16
+
17
+ - ([#1415](https://github.com/procore/bim-webviewer/pull/1415)) Changed the priority of the escape key operations to place resetting the measurement below closing the floor plan modal, but above closing any open windows.
18
+ - ([#1416](https://github.com/procore/bim-webviewer/pull/1416)) When the Measurement Tool is enabled, the context menu for mouse right click button will no longer display.
19
+ - ([#1442](https://github.com/procore/bim-webviewer/pull/1442)) [Internal] Refactor Shortest Distance Measurement to get mesh data in the same code path for both standard and partitioned models. For partitioned models this means it no longer fetches the partition from cache for the mesh data and instead reads it from OPFS
20
+ - ([#1444](https://github.com/procore/bim-webviewer/pull/1444)) While Measurement Tool is enabled, changing to a different navigation mode other than the default navigation mode will now disable the Measurement Tool. Additionally, when enabling the Measurement Tool, the default navigation mode will be set regardless of the current navigation mode.
21
+ - ([#1446](https://github.com/procore/bim-webviewer/pull/1446)) Hotkey refactoring. Additionally, the SDK method `setMeasurement` can now be used even if the Measurement Tool is not added to the `options.tools` array when initializing the Web Viewer. This allows third party developers to enable the Measurement Tool after the Web Viewer has been initialized.
22
+ - ([#1452])(https://github.com/procore/bim-webviewer/pull/1452) [Internal][QA Ignore] Add support for writing mesh data to OPFS for PWFv2 partitioned models. Effectively just copying over the implementation from v1.
23
+
24
+ ### Fixed
25
+
26
+ - ([#1422](https://github.com/procore/bim-webviewer/pull/1422)) Fixed an issue where the crosshair cursor wouldn't appear when enabling the point-to-point measurement tool, requiring users to hover over a mesh and then move into empty space.
27
+ - ([#1423](https://github.com/procore/bim-webviewer/pull/1423)) Fixed bug that caused the temporary distance label to reappear in the scene when zooming in even when it was hidden behind the camera.
28
+ - ([#1414](https://github.com/procore/bim-webviewer/pull/1414)) [Internal][QA Ignore] Removes noisy console logs from the PointToPointController when a user of p2p hovers over non-manifold meshes.
29
+ - ([#1445](https://github.com/procore/bim-webviewer/pull/1445)) Fixed UI bug in which the footer line of the Settings dialog was on top of the Measurement Units dropdown menu.
30
+ - ([#1448](https://github.com/procore/bim-webviewer/pull/1448)) Fixed an issue where the cursor was not updated to the default one if the section box was disabled while the resize cursor was applied.
31
+ - ([#1449](https://github.com/procore/bim-webviewer/pull/1449)) Fixed bug in which the point to point feature tooltip was not hiding when zooming in/out as it does when moving the mouse around. It now behaves exactly as it does when moving the mouse around.
32
+ - ([#1450](https://github.com/procore/bim-webviewer/pull/1450)) Fixes the issue with opening the same large model multiple times, on separate tabs of the same Safari browser instance.
33
+ - ([#1447](https://github.com/procore/bim-webviewer/pull/1447)) [Internal][QA Ignore] Fix `OPFSFile` median stats
34
+ - ([#1451](https://github.com/procore/bim-webviewer/pull/1451)) Fixed issue with SDK method `setMeasurement` not working as expected when disabling the measurement tool while the tool is enabled and the optional `measurementMode` parameter is set to a different mode than the current mode.
35
+
36
+ ## [17.2.1] 2025-01-15
37
+
38
+ - ([#1453](https://github.com/procore/bim-webviewer/pull/1453)) Fix issue where models that have beyond a certain number of nodes in the object tree would fail to load in Chrome v132 (which released 2025-01-14). Chrome v131 did not seem to have this issue.
39
+
8
40
  ## [17.2.0] 2024-12-13
9
41
 
10
42
  ### Fixed
@@ -47,6 +79,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
47
79
  - ([#1399](https://github.com/procore/bim-webviewer/pull/1399)) When zooming in and/or out while the point to point measurement tool is active, the mouse cursor and intersection snap results now automatically update and the temporary distance label stays in the midpoint of the measuring line.
48
80
  - ([#1419](https://github.com/procore/bim-webviewer/pull/1419)) Fixed erroneous test mock data that was causing the whole test suite to fail.
49
81
 
82
+ ## [16.5.1] 2025-01-15
83
+
84
+ - ([#1453](https://github.com/procore/bim-webviewer/pull/1453)) Fix issue where models that have beyond a certain number of nodes in the object tree would fail to load in Chrome v132 (which released 2025-01-14). Chrome v131 did not seem to have this issue.
85
+
50
86
  ## [16.5.0] 2024-11-08
51
87
 
52
88
  ### Added
@@ -139,6 +175,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
139
175
 
140
176
  - [Breaking Change] Removed `enableObjectTreeSearch` feature flag as it is now always enabled and cannot be disabled.
141
177
 
178
+ ## [15.5.1] 2025-01-15
179
+
180
+ - ([#1453](https://github.com/procore/bim-webviewer/pull/1453)) Fix issue where models that have beyond a certain number of nodes in the object tree would fail to load in Chrome v132 (which released 2025-01-14). Chrome v131 did not seem to have this issue.
181
+
142
182
  ## [15.5.0] - 2024-08-02
143
183
 
144
184
  ### Added
@@ -188,10 +188,15 @@ export declare type FeatureFlags = {
188
188
  enableMeshDataOnOPFS: boolean;
189
189
  };
190
190
 
191
+ declare type File_2 = {
192
+ url: string;
193
+ };
194
+
191
195
  export declare type FileExtraction = {
192
196
  id: number;
193
197
  extraction_items: FileExtractionItem[];
194
198
  bim_file_upload: BimFileUpload;
199
+ viewpoint_id?: number | null;
195
200
  };
196
201
 
197
202
  export declare type FileExtractionItem = WebFormatExtractionItem | PropertiesExtractionItem;
@@ -200,17 +205,13 @@ export declare type FileExtractionModeOptions = CommonOptions & {
200
205
  fileExtractionId: FileExtraction['id'];
201
206
  };
202
207
 
203
- export declare type FileExtractionModePwfV1OverrideOptions = CommonOptions & PwfV1Bundle & {
204
- fileExtractionId: FileExtraction['id'];
205
- };
208
+ export declare type FileExtractionModePwfV1OverrideOptions = FileExtractionModeOptions & PwfV1Bundle;
206
209
 
207
210
  export declare type FileExtractionModePwfV1OverrideResource = PwfV1Bundle & {
208
211
  fileExtractionId: FileExtraction['id'];
209
212
  };
210
213
 
211
- export declare type FileExtractionModePwfV2OverrideOptions = CommonOptions & PwfV2Bundle & {
212
- fileExtractionId: FileExtraction['id'];
213
- };
214
+ export declare type FileExtractionModePwfV2OverrideOptions = FileExtractionModeOptions & PwfV2Bundle;
214
215
 
215
216
  export declare type FileExtractionModePwfV2OverrideResource = PwfV2Bundle & {
216
217
  fileExtractionId: FileExtraction['id'];
@@ -239,10 +240,10 @@ export declare type FilterField = (typeof FILTER_FIELD)[keyof typeof FILTER_FIEL
239
240
  * the valid configurations that we support.
240
241
  */
241
242
  export declare type GeometryBundle = {
242
- nodeUrl: GeometryFile['url'];
243
- meshnodeUrl: GeometryFile['url'];
244
- meshUrl?: GeometryFile['url'];
245
- manifestUrl?: GeometryFile['url'];
243
+ nodeUrl: string;
244
+ meshnodeUrl: string;
245
+ meshUrl?: string;
246
+ manifestUrl?: string;
246
247
  };
247
248
 
248
249
  declare class GeometryFactory {
@@ -264,8 +265,11 @@ declare class GeometryFactory {
264
265
  createMeshGeometry(_vertices: Float32Array, _faces: Uint16Array, _color: number, _opacity: number, _drawType: number): StreamedMeshGeometry;
265
266
  }
266
267
 
267
- export declare type GeometryFile = {
268
- url: string;
268
+ export declare type GeometryFileBundle = {
269
+ manifest_file?: File_2 | null;
270
+ mesh_file: File_2;
271
+ mesh_node_file: File_2;
272
+ node_file: File_2;
269
273
  };
270
274
 
271
275
  declare type GPUMeshData = {
@@ -364,6 +368,7 @@ declare class MeshData {
364
368
  faces(): Uint16Array;
365
369
  uploadToGPU(geometryFactory: StreamedGeometryFactory): StreamedMeshGeometry;
366
370
  uploadToGPUPreFetching(geometryFactory: StreamedGeometryFactory): StreamedMeshGeometry;
371
+ getCompressedMeshData(): ArrayBuffer;
367
372
  getUncompressedMeshData(): ArrayBuffer;
368
373
  }
369
374
 
@@ -504,8 +509,6 @@ declare type MeshnodeObject_2 = {
504
509
  selected: boolean;
505
510
  };
506
511
 
507
- declare type MeshnodeObject_3 = MeshnodeObject | MeshnodeObject_2;
508
-
509
512
  declare class MeshnodeServices {
510
513
  private meshnodeCount;
511
514
  private meshnodes;
@@ -618,24 +621,29 @@ export declare type ModelRevision = {
618
621
  id: number;
619
622
  revision: number;
620
623
  viewpoints: ModelRevisionViewpoint[];
624
+ geometry_file_bundle: GeometryFileBundle;
621
625
  };
622
626
 
623
- export declare type ModelRevisionModePwfV1Options = CommonOptions & PwfV1Bundle & {
627
+ export declare type ModelRevisionModeOptions = CommonOptions & {
624
628
  modelId: Model['id'];
625
629
  modelRevisionId: ModelRevision['id'];
626
630
  };
627
631
 
628
- export declare type ModelRevisionModePwfV1Resource = PwfV1Bundle & {
632
+ export declare type ModelRevisionModePwfV1OverrideOptions = ModelRevisionModeOptions & PwfV1Bundle;
633
+
634
+ export declare type ModelRevisionModePwfV1OverrideResource = PwfV1Bundle & {
629
635
  modelId: Model['id'];
630
636
  modelRevisionId: ModelRevision['id'];
631
637
  };
632
638
 
633
- export declare type ModelRevisionModePwfV2Options = CommonOptions & PwfV2Bundle & {
639
+ export declare type ModelRevisionModePwfV2OverrideOptions = ModelRevisionModeOptions & PwfV2Bundle;
640
+
641
+ export declare type ModelRevisionModePwfV2OverrideResource = PwfV2Bundle & {
634
642
  modelId: Model['id'];
635
643
  modelRevisionId: ModelRevision['id'];
636
644
  };
637
645
 
638
- export declare type ModelRevisionModePwfV2Resource = PwfV2Bundle & {
646
+ export declare type ModelRevisionModeResource = {
639
647
  modelId: Model['id'];
640
648
  modelRevisionId: ModelRevision['id'];
641
649
  };
@@ -827,7 +835,23 @@ export declare type ObjectFilter = {
827
835
  filterValue: string;
828
836
  };
829
837
 
830
- export declare type Options = FileExtractionModePwfV2OverrideOptions | FileExtractionModePwfV1OverrideOptions | FileExtractionModeOptions | ModelRevisionModePwfV2Options | ModelRevisionModePwfV1Options | ResourceOptions;
838
+ declare class OPFSFile {
839
+ private path;
840
+ private syncAccessHandle?;
841
+ private directoryHandle?;
842
+ private fileName?;
843
+ private static stats;
844
+ constructor(path: string);
845
+ open(): Promise<void>;
846
+ delete(): Promise<void>;
847
+ close(): void;
848
+ truncate(offset: number): void;
849
+ write(buffer: ArrayBuffer, byteOffset?: number): number | undefined;
850
+ read(byteOffset?: number, byteLength?: number): ArrayBuffer;
851
+ private updateReadStats;
852
+ }
853
+
854
+ export declare type Options = FileExtractionModePwfV2OverrideOptions | FileExtractionModePwfV1OverrideOptions | FileExtractionModeOptions | ModelRevisionModePwfV2OverrideOptions | ModelRevisionModePwfV1OverrideOptions | ModelRevisionModeOptions | ResourceOptions;
831
855
 
832
856
  declare type Palette = {
833
857
  default?: Color;
@@ -856,6 +880,7 @@ declare class Partition_2 {
856
880
 
857
881
  declare class PartitionProxy {
858
882
  private pwfPartitionProxy;
883
+ private meshServices;
859
884
  static numberOfPartitions: number;
860
885
  static numberOfPartitionsLoaded: number;
861
886
  static currentNumberOfDownloading: number;
@@ -866,7 +891,10 @@ declare class PartitionProxy {
866
891
  private _byteLength?;
867
892
  private _compressedByteLength?;
868
893
  private stats;
869
- constructor(pwfPartitionProxy: PWFPartitionProxy);
894
+ constructor(params: {
895
+ pwfPartitionProxy: PWFPartitionProxy;
896
+ meshServices: StreamedMeshServices;
897
+ });
870
898
  meshCount(): number;
871
899
  incrementMeshCount(numMeshes: number): void;
872
900
  vertexCount(): number;
@@ -884,7 +912,7 @@ declare class PartitionProxy {
884
912
  compressed: number;
885
913
  size: number;
886
914
  };
887
- static processPartitionProxiesAB(partitionProxiesAB: ArrayBuffer, callback: (partitionProxy: PartitionProxy) => void): void;
915
+ static processPartitionProxiesAB(partitionProxiesAB: ArrayBuffer, meshServices: StreamedMeshServices, callback: (partitionProxy: PartitionProxy) => void): void;
888
916
  static getPartitionProxies(partitionProxiesAB: ArrayBuffer): PWFPartitionProxy[];
889
917
  getContentOfPartitionUrl(): string;
890
918
  }
@@ -1017,7 +1045,6 @@ declare interface PWF {
1017
1045
  hasNode(id: number): boolean;
1018
1046
  loadAllMeshGeometryToGPU(): BootstrapperResult;
1019
1047
  loadAllPartitionProxies(): void;
1020
- getMeshDataForPartitionedModel(meshnodeIndex: number): Promise<MeshnodeObject_3>;
1021
1048
  captureModelStats(): void;
1022
1049
  getModelAnalyticsData(): ModelAnalyticsData;
1023
1050
  get virtualMeshnodeIndexOffset(): number;
@@ -1241,7 +1268,6 @@ declare class PWFV1 implements PWF {
1241
1268
  numFirstObjects(): number;
1242
1269
  breadthFirstTraversalNodes(callback: (n: Node_3 | Meshnode_2) => void): BootstrapperResult;
1243
1270
  getNamedNode(nodeId: number): Node_3;
1244
- getMeshDataForPartitionedModel(meshnodeIndex: number): Promise<MeshnodeObject>;
1245
1271
  captureModelStats(): number;
1246
1272
  private captureStandardModelStats;
1247
1273
  private capturePartitionedModelStats;
@@ -1252,14 +1278,15 @@ declare class PWFV1 implements PWF {
1252
1278
  }
1253
1279
 
1254
1280
  export declare type PwfV1Bundle = {
1255
- nodeUrl: GeometryFile['url'];
1256
- meshnodeUrl: GeometryFile['url'];
1257
- meshUrl: GeometryFile['url'];
1281
+ nodeUrl: string;
1282
+ meshnodeUrl: string;
1283
+ meshUrl: string;
1258
1284
  };
1259
1285
 
1260
1286
  declare class PWFV2 implements PWF {
1261
1287
  private readonly downloadMetaData;
1262
1288
  resourceId: number;
1289
+ resource: ResourceDiscriminator;
1263
1290
  streaming: boolean;
1264
1291
  nodeAB?: ArrayBuffer;
1265
1292
  meshnodeAB?: ArrayBuffer;
@@ -1282,14 +1309,18 @@ declare class PWFV2 implements PWF {
1282
1309
  meshnodeOffPointer: number;
1283
1310
  bvhTree?: BVHTree;
1284
1311
  _virtualMeshnodeIndexOffset: number;
1312
+ private readonly featureFlags;
1285
1313
  loadPartitionPromises: Promise<void>[];
1286
1314
  currentIndex: number;
1287
1315
  partitionProxies: PartitionProxy[];
1288
1316
  partitionsCache: LRUCache<string, Partition>;
1317
+ private meshServicesOPFSInitialized;
1289
1318
  constructor(params: {
1290
1319
  downloadMetaData: DownloadMetaData;
1291
1320
  resourceId: number;
1321
+ resource: ResourceDiscriminator;
1292
1322
  manifest: Manifest;
1323
+ featureFlags: ValidatedFeatureFlags;
1293
1324
  });
1294
1325
  setStandardModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, meshAB: ArrayBuffer): void;
1295
1326
  setPartitionedModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, partitionProxiesAB: ArrayBuffer): void;
@@ -1332,7 +1363,6 @@ declare class PWFV2 implements PWF {
1332
1363
  numFirstObjects(): number;
1333
1364
  breadthFirstTraversalNodes(callback: (n: Node_4 | Meshnode_3) => void): BootstrapperResult;
1334
1365
  getNamedNode(nodeId: number): Node_4;
1335
- getMeshDataForPartitionedModel(meshnodeIndex: number): Promise<MeshnodeObject_2>;
1336
1366
  captureModelStats(): number;
1337
1367
  private captureStandardModelStats;
1338
1368
  private capturePartitionedModelStats;
@@ -1343,10 +1373,10 @@ declare class PWFV2 implements PWF {
1343
1373
  }
1344
1374
 
1345
1375
  export declare type PwfV2Bundle = {
1346
- nodeUrl: GeometryFile['url'];
1347
- meshnodeUrl: GeometryFile['url'];
1348
- meshUrl: GeometryFile['url'];
1349
- manifestUrl: GeometryFile['url'];
1376
+ nodeUrl: string;
1377
+ meshnodeUrl: string;
1378
+ meshUrl: string;
1379
+ manifestUrl: string;
1350
1380
  };
1351
1381
 
1352
1382
  declare type PWFVersion = `${number}.${number}`;
@@ -1358,7 +1388,7 @@ export declare const RENDER_MODE: {
1358
1388
 
1359
1389
  export declare type RenderMode = (typeof RENDER_MODE)[keyof typeof RENDER_MODE];
1360
1390
 
1361
- export declare type Resource = FileExtractionModePwfV1OverrideResource | FileExtractionModePwfV2OverrideResource | FileExtractionModeResource | ModelRevisionModePwfV1Resource | ModelRevisionModePwfV2Resource;
1391
+ export declare type Resource = FileExtractionModePwfV1OverrideResource | FileExtractionModePwfV2OverrideResource | FileExtractionModeResource | ModelRevisionModePwfV1OverrideResource | ModelRevisionModePwfV2OverrideResource | ModelRevisionModeResource;
1362
1392
 
1363
1393
  declare type ResourceDiscriminator = {
1364
1394
  fileExtractionId: number;
@@ -1439,11 +1469,27 @@ declare class StreamedMeshnodeServices_2 extends MeshnodeServices_2 {
1439
1469
  }
1440
1470
 
1441
1471
  declare class StreamedMeshServices extends MeshServices {
1442
- constructor(pwf: PWFV2);
1443
- getMeshObject(meshOffset: number): MeshObject_2;
1472
+ private readonly featureFlags;
1473
+ private meshIndexToOPFSRecord;
1474
+ private opfsFile?;
1475
+ private opfsOffset;
1476
+ private resource;
1477
+ constructor(params: {
1478
+ pwf: PWFV2;
1479
+ featureFlags: ValidatedFeatureFlags;
1480
+ resource: ResourceDiscriminator;
1481
+ });
1482
+ initOPFS(): Promise<void>;
1483
+ private deleteOPFSFile;
1484
+ getOPFSFile(): OPFSFile | undefined;
1485
+ closeOPFS(): Promise<void>;
1486
+ writeMeshDataToOPFS(meshData: MeshData): Promise<void>;
1487
+ getMeshObject(meshIndex: number): MeshObject_2;
1444
1488
  loadPartitionContainingMeshnode(streamedMeshnode: StreamedMeshnode): Promise<void>;
1445
1489
  getMeshGeometryForOffsets(meshOffset: number, meshnodeOffset: number): StreamedMeshGeometry | undefined;
1446
- dispose(): void;
1490
+ meshFromOffset(meshIndex: number): Mesh;
1491
+ private getCompressedMeshDataFromOPFS;
1492
+ dispose(): Promise<void>;
1447
1493
  }
1448
1494
 
1449
1495
  declare class StreamedMeshServices_2 extends MeshServices_2 {
@@ -1459,6 +1505,7 @@ declare class StreamedMeshServices_2 extends MeshServices_2 {
1459
1505
  });
1460
1506
  initOPFS(): Promise<void>;
1461
1507
  private deleteOPFSFile;
1508
+ getOPFSFile(): OPFSFile | undefined;
1462
1509
  closeOPFS(): Promise<void>;
1463
1510
  writeMeshDataToOPFS(meshData: MeshData_2): Promise<void>;
1464
1511
  getMeshObject(meshIndex: number): MeshObject;
@@ -1595,12 +1642,7 @@ export declare type Visibility = {
1595
1642
  export declare type WebFormatExtractionItem = {
1596
1643
  item_type: 'WebFormat';
1597
1644
  artifact: {
1598
- web_format: {
1599
- node_file: GeometryFile;
1600
- mesh_node_file: GeometryFile;
1601
- mesh_file: GeometryFile;
1602
- manifest_file?: GeometryFile;
1603
- };
1645
+ web_format: GeometryFileBundle;
1604
1646
  };
1605
1647
  };
1606
1648
 
@@ -1608,6 +1650,7 @@ export declare class Webviewer {
1608
1650
  options: Options;
1609
1651
  private readonly measurementRenderer;
1610
1652
  private readonly measurementManager;
1653
+ private readonly escapeOperationsManager;
1611
1654
  static readonly tools: {
1612
1655
  readonly ALL: 0;
1613
1656
  readonly BOTTOMTOOL: 1;