@procore/bim-webviewer-sdk 17.2.0-rc.1 → 17.2.0-rc.10

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 CHANGED
@@ -5,15 +5,16 @@ 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]
8
+ ## [17.2.0] 2024-12-13
9
9
 
10
10
  ### Fixed
11
11
 
12
12
  - ([#1417](https://github.com/procore/bim-webviewer/pull/1417)) The distance labels no longer impede the user's ability to zoom in and out and or rotate around the measurement midpoint.
13
+ - ([#1418](https://github.com/procore/bim-webviewer/pull/1418)) When `featureFlags.enableMeshDataOnOPFS` was enabled and a partitioned model was loaded, subsequent partitioned models in separate tabs would fail to load until the first one was closed. This has been fixed so that multiple partitioned models can be loaded in separate tabs.
13
14
 
14
15
  ### Changed
15
16
 
16
- - ([#1433](https://github.com/procore/bim-webviewer/pull/1433)) Large model loading screen meesage is changed
17
+ - ([#1433](https://github.com/procore/bim-webviewer/pull/1433)) Large model loading screen message is changed
17
18
 
18
19
  ## [17.1.0] 2024-12-09
19
20
 
@@ -985,7 +985,7 @@ declare interface PWF {
985
985
  parsePwfNodes(): BootstrapperResult;
986
986
  parsePwfMeshnodes(): BootstrapperResult;
987
987
  parsePwfMeshes(): void;
988
- initMeshServices(): void;
988
+ initMeshServices(): BootstrapperResult;
989
989
  initNodeServices(): void;
990
990
  initMeshnodeServices(): void;
991
991
  initNodeTree(): BootstrapperResult;
@@ -1167,6 +1167,7 @@ declare interface PWFPartitionProxy_2 {
1167
1167
  declare class PWFV1 implements PWF {
1168
1168
  private readonly downloadMetaData;
1169
1169
  resourceId: number;
1170
+ resource: ResourceDiscriminator;
1170
1171
  streaming: boolean;
1171
1172
  nodeAB?: ArrayBuffer;
1172
1173
  meshnodeAB?: ArrayBuffer;
@@ -1196,6 +1197,7 @@ declare class PWFV1 implements PWF {
1196
1197
  constructor(params: {
1197
1198
  downloadMetaData: DownloadMetaData;
1198
1199
  resourceId: number;
1200
+ resource: ResourceDiscriminator;
1199
1201
  featureFlags: ValidatedFeatureFlags;
1200
1202
  });
1201
1203
  setStandardModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, meshAB: ArrayBuffer): void;
@@ -1296,7 +1298,7 @@ declare class PWFV2 implements PWF {
1296
1298
  parsePwfNodes(): BootstrapperResult;
1297
1299
  parsePwfMeshnodes(): BootstrapperResult;
1298
1300
  parsePwfMeshes(): void;
1299
- initMeshServices(): void;
1301
+ initMeshServices(): BootstrapperResult;
1300
1302
  initNodeServices(): void;
1301
1303
  initMeshnodeServices(): void;
1302
1304
  initNodeTree(): BootstrapperResult;
@@ -1358,6 +1360,12 @@ export declare type RenderMode = (typeof RENDER_MODE)[keyof typeof RENDER_MODE];
1358
1360
 
1359
1361
  export declare type Resource = FileExtractionModePwfV1OverrideResource | FileExtractionModePwfV2OverrideResource | FileExtractionModeResource | ModelRevisionModePwfV1Resource | ModelRevisionModePwfV2Resource;
1360
1362
 
1363
+ declare type ResourceDiscriminator = {
1364
+ fileExtractionId: number;
1365
+ } | {
1366
+ modelRevisionId: number;
1367
+ };
1368
+
1361
1369
  export declare type ResourceOptions = CommonOptions & {
1362
1370
  resources: Resource[];
1363
1371
  };
@@ -1443,11 +1451,14 @@ declare class StreamedMeshServices_2 extends MeshServices_2 {
1443
1451
  private meshIndexToOPFSRecord;
1444
1452
  private opfsFile?;
1445
1453
  private opfsOffset;
1454
+ private resource;
1446
1455
  constructor(params: {
1447
1456
  pwf: PWFV1;
1448
1457
  featureFlags: ValidatedFeatureFlags;
1458
+ resource: ResourceDiscriminator;
1449
1459
  });
1450
1460
  initOPFS(): Promise<void>;
1461
+ private deleteOPFSFile;
1451
1462
  closeOPFS(): Promise<void>;
1452
1463
  writeMeshDataToOPFS(meshData: MeshData_2): Promise<void>;
1453
1464
  getMeshObject(meshIndex: number): MeshObject;
@@ -1455,7 +1466,7 @@ declare class StreamedMeshServices_2 extends MeshServices_2 {
1455
1466
  getMeshGeometryForOffsets(meshOffset: number, meshnodeOffset: number): StreamedMeshGeometry | undefined;
1456
1467
  meshFromOffset(meshIndex: number): Mesh_2;
1457
1468
  private getCompressedMeshDataFromOPFS;
1458
- dispose(): void;
1469
+ dispose(): Promise<void>;
1459
1470
  }
1460
1471
 
1461
1472
  export declare class TestRoutineRecorder {