@procore/bim-webviewer-sdk 17.3.0-rc.1 → 17.3.0-rc.3
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 +5 -0
- package/dist/Procore.Bim.Webviewer.d.ts +34 -31
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/api/types/FileExtraction.d.ts +2 -9
- package/dist/types/src/api/types/GeometryFileBundle.d.ts +10 -0
- package/dist/types/src/api/types/ModelRevision.d.ts +2 -0
- package/dist/types/src/measuring/PointToPointController.d.ts +4 -1
- package/dist/types/src/procoregl/MeshTopology/MeshTopology.d.ts +1 -0
- package/dist/types/src/procoregl/MeshTopology/__tests__/TopologyFixtures.d.ts +1 -0
- package/dist/types/src/procoregl/Models/__tests__/Models.test.d.ts +2 -2
- package/dist/types/src/sdk.d.ts +3 -2
- package/dist/types/src/types/WebviewerOptions.d.ts +31 -31
- package/dist/types/src/utils/ApiMetaData/ApiMetaData.d.ts +1 -0
- package/dist/types/src/utils/ApiMetaData/__tests__/mocks.d.ts +10 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,9 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- ([#1389](https://github.com/procore/bim-webviewer/pull/1389)) [QA Ignore] Fetching the model by only using model revision id in SDK side.
|
|
13
|
+
|
|
10
14
|
### Fixed
|
|
11
15
|
|
|
12
16
|
- ([#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.
|
|
17
|
+
- ([#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.
|
|
13
18
|
|
|
14
19
|
## [17.2.0] 2024-12-13
|
|
15
20
|
|
|
@@ -188,6 +188,10 @@ 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[];
|
|
@@ -200,17 +204,13 @@ export declare type FileExtractionModeOptions = CommonOptions & {
|
|
|
200
204
|
fileExtractionId: FileExtraction['id'];
|
|
201
205
|
};
|
|
202
206
|
|
|
203
|
-
export declare type FileExtractionModePwfV1OverrideOptions =
|
|
204
|
-
fileExtractionId: FileExtraction['id'];
|
|
205
|
-
};
|
|
207
|
+
export declare type FileExtractionModePwfV1OverrideOptions = FileExtractionModeOptions & PwfV1Bundle;
|
|
206
208
|
|
|
207
209
|
export declare type FileExtractionModePwfV1OverrideResource = PwfV1Bundle & {
|
|
208
210
|
fileExtractionId: FileExtraction['id'];
|
|
209
211
|
};
|
|
210
212
|
|
|
211
|
-
export declare type FileExtractionModePwfV2OverrideOptions =
|
|
212
|
-
fileExtractionId: FileExtraction['id'];
|
|
213
|
-
};
|
|
213
|
+
export declare type FileExtractionModePwfV2OverrideOptions = FileExtractionModeOptions & PwfV2Bundle;
|
|
214
214
|
|
|
215
215
|
export declare type FileExtractionModePwfV2OverrideResource = PwfV2Bundle & {
|
|
216
216
|
fileExtractionId: FileExtraction['id'];
|
|
@@ -239,10 +239,10 @@ export declare type FilterField = (typeof FILTER_FIELD)[keyof typeof FILTER_FIEL
|
|
|
239
239
|
* the valid configurations that we support.
|
|
240
240
|
*/
|
|
241
241
|
export declare type GeometryBundle = {
|
|
242
|
-
nodeUrl:
|
|
243
|
-
meshnodeUrl:
|
|
244
|
-
meshUrl?:
|
|
245
|
-
manifestUrl?:
|
|
242
|
+
nodeUrl: string;
|
|
243
|
+
meshnodeUrl: string;
|
|
244
|
+
meshUrl?: string;
|
|
245
|
+
manifestUrl?: string;
|
|
246
246
|
};
|
|
247
247
|
|
|
248
248
|
declare class GeometryFactory {
|
|
@@ -264,8 +264,11 @@ declare class GeometryFactory {
|
|
|
264
264
|
createMeshGeometry(_vertices: Float32Array, _faces: Uint16Array, _color: number, _opacity: number, _drawType: number): StreamedMeshGeometry;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
export declare type
|
|
268
|
-
|
|
267
|
+
export declare type GeometryFileBundle = {
|
|
268
|
+
manifest_file?: File_2 | null;
|
|
269
|
+
mesh_file: File_2;
|
|
270
|
+
mesh_node_file: File_2;
|
|
271
|
+
node_file: File_2;
|
|
269
272
|
};
|
|
270
273
|
|
|
271
274
|
declare type GPUMeshData = {
|
|
@@ -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
|
|
627
|
+
export declare type ModelRevisionModeOptions = CommonOptions & {
|
|
624
628
|
modelId: Model['id'];
|
|
625
629
|
modelRevisionId: ModelRevision['id'];
|
|
626
630
|
};
|
|
627
631
|
|
|
628
|
-
export declare type
|
|
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
|
|
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
|
|
646
|
+
export declare type ModelRevisionModeResource = {
|
|
639
647
|
modelId: Model['id'];
|
|
640
648
|
modelRevisionId: ModelRevision['id'];
|
|
641
649
|
};
|
|
@@ -827,7 +835,7 @@ export declare type ObjectFilter = {
|
|
|
827
835
|
filterValue: string;
|
|
828
836
|
};
|
|
829
837
|
|
|
830
|
-
export declare type Options = FileExtractionModePwfV2OverrideOptions | FileExtractionModePwfV1OverrideOptions | FileExtractionModeOptions |
|
|
838
|
+
export declare type Options = FileExtractionModePwfV2OverrideOptions | FileExtractionModePwfV1OverrideOptions | FileExtractionModeOptions | ModelRevisionModePwfV2OverrideOptions | ModelRevisionModePwfV1OverrideOptions | ModelRevisionModeOptions | ResourceOptions;
|
|
831
839
|
|
|
832
840
|
declare type Palette = {
|
|
833
841
|
default?: Color;
|
|
@@ -1252,9 +1260,9 @@ declare class PWFV1 implements PWF {
|
|
|
1252
1260
|
}
|
|
1253
1261
|
|
|
1254
1262
|
export declare type PwfV1Bundle = {
|
|
1255
|
-
nodeUrl:
|
|
1256
|
-
meshnodeUrl:
|
|
1257
|
-
meshUrl:
|
|
1263
|
+
nodeUrl: string;
|
|
1264
|
+
meshnodeUrl: string;
|
|
1265
|
+
meshUrl: string;
|
|
1258
1266
|
};
|
|
1259
1267
|
|
|
1260
1268
|
declare class PWFV2 implements PWF {
|
|
@@ -1343,10 +1351,10 @@ declare class PWFV2 implements PWF {
|
|
|
1343
1351
|
}
|
|
1344
1352
|
|
|
1345
1353
|
export declare type PwfV2Bundle = {
|
|
1346
|
-
nodeUrl:
|
|
1347
|
-
meshnodeUrl:
|
|
1348
|
-
meshUrl:
|
|
1349
|
-
manifestUrl:
|
|
1354
|
+
nodeUrl: string;
|
|
1355
|
+
meshnodeUrl: string;
|
|
1356
|
+
meshUrl: string;
|
|
1357
|
+
manifestUrl: string;
|
|
1350
1358
|
};
|
|
1351
1359
|
|
|
1352
1360
|
declare type PWFVersion = `${number}.${number}`;
|
|
@@ -1358,7 +1366,7 @@ export declare const RENDER_MODE: {
|
|
|
1358
1366
|
|
|
1359
1367
|
export declare type RenderMode = (typeof RENDER_MODE)[keyof typeof RENDER_MODE];
|
|
1360
1368
|
|
|
1361
|
-
export declare type Resource = FileExtractionModePwfV1OverrideResource | FileExtractionModePwfV2OverrideResource | FileExtractionModeResource |
|
|
1369
|
+
export declare type Resource = FileExtractionModePwfV1OverrideResource | FileExtractionModePwfV2OverrideResource | FileExtractionModeResource | ModelRevisionModePwfV1OverrideResource | ModelRevisionModePwfV2OverrideResource | ModelRevisionModeResource;
|
|
1362
1370
|
|
|
1363
1371
|
declare type ResourceDiscriminator = {
|
|
1364
1372
|
fileExtractionId: number;
|
|
@@ -1595,12 +1603,7 @@ export declare type Visibility = {
|
|
|
1595
1603
|
export declare type WebFormatExtractionItem = {
|
|
1596
1604
|
item_type: 'WebFormat';
|
|
1597
1605
|
artifact: {
|
|
1598
|
-
web_format:
|
|
1599
|
-
node_file: GeometryFile;
|
|
1600
|
-
mesh_node_file: GeometryFile;
|
|
1601
|
-
mesh_file: GeometryFile;
|
|
1602
|
-
manifest_file?: GeometryFile;
|
|
1603
|
-
};
|
|
1606
|
+
web_format: GeometryFileBundle;
|
|
1604
1607
|
};
|
|
1605
1608
|
};
|
|
1606
1609
|
|