@procore/bim-webviewer-sdk 17.2.1-rc.1 → 17.3.0-BM-1142.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 +50 -0
- package/dist/Procore.Bim.Webviewer.d.ts +84 -41
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/EscapeOperationsManager/EscapeOperationsManager.d.ts +21 -0
- package/dist/types/src/EscapeOperationsManager/__tests__/EscapeOperationsManager.test.d.ts +1 -0
- package/dist/types/src/EscapeOperationsManager/index.d.ts +1 -0
- package/dist/types/src/Webviewer.d.ts +1 -0
- package/dist/types/src/api/analytic_events/analyticKeys.d.ts +1 -0
- package/dist/types/src/api/bim_viewpoints.d.ts +5 -0
- package/dist/types/src/api/types/FileExtraction.d.ts +3 -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/components/ContextMenuComponent/ContextMenuComponent.d.ts +9 -5
- package/dist/types/src/components/ContextMenuComponent/__tests__/ContextMenuComponent.test.d.ts +1 -0
- package/dist/types/src/components/ShortestDistanceComponent.d.ts +1 -0
- package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +0 -1
- package/dist/types/src/controllers/RenderController.d.ts +2 -10
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +6 -8
- package/dist/types/src/controllers/RenderControllerWorker.d.ts +1 -3
- package/dist/types/src/controllers/ShortestDistanceController.d.ts +0 -1
- package/dist/types/src/{navigation → hotkeys}/Hotkeys.d.ts +8 -5
- package/dist/types/src/hotkeys/__tests__/Hotkeys.test.d.ts +1 -0
- package/dist/types/src/measuring/DistanceLabel.d.ts +7 -0
- package/dist/types/src/measuring/FeatureTooltip/FeatureTooltip.d.ts +4 -0
- package/dist/types/src/measuring/MeasureToolUtils.d.ts +11 -8
- package/dist/types/src/measuring/MeasurementInterface.d.ts +1 -0
- package/dist/types/src/measuring/MeasurementManager.d.ts +5 -0
- package/dist/types/src/measuring/MeasurementRenderer.d.ts +0 -1
- package/dist/types/src/measuring/PointToPointController.d.ts +11 -11
- package/dist/types/src/measuring/PointToPointManager.d.ts +5 -0
- package/dist/types/src/measuring/__tests__/PointToPointFixtures.d.ts +30 -50
- package/dist/types/src/measuring/__tests__/fixtures.d.ts +17 -0
- package/dist/types/src/navigation/DefaultControl.d.ts +1 -0
- package/dist/types/src/navigation/__tests__/DefaultControl.test.d.ts +1 -0
- package/dist/types/src/picking/PickingController.d.ts +9 -1
- package/dist/types/src/procoregl/MeshTopology/MeshTopology.d.ts +1 -0
- package/dist/types/src/procoregl/MeshTopology/__tests__/TopologyFixtures.d.ts +5 -1
- package/dist/types/src/procoregl/Models/__tests__/Models.test.d.ts +2 -2
- package/dist/types/src/pwfreader/PWF.d.ts +1 -2
- package/dist/types/src/pwfreader/PWFProxy.d.ts +1 -2
- package/dist/types/src/pwfreader/v1/PWFV1.d.ts +0 -2
- package/dist/types/src/pwfreader/v1/streaming/StreamedMeshServices.d.ts +2 -0
- package/dist/types/src/pwfreader/v2/PWFV2.d.ts +7 -2
- package/dist/types/src/pwfreader/v2/streaming/MeshData.d.ts +1 -0
- package/dist/types/src/pwfreader/v2/streaming/PartitionProxy.d.ts +7 -2
- package/dist/types/src/pwfreader/v2/streaming/StreamedMeshServices.d.ts +24 -3
- package/dist/types/src/sdk.d.ts +3 -2
- package/dist/types/src/types/WebviewerOptions.d.ts +31 -31
- package/dist/types/src/types/setMeasurementSchema.d.ts +21 -0
- package/dist/types/src/utils/ApiMetaData/ApiMetaData.d.ts +5 -0
- package/dist/types/src/utils/ApiMetaData/__tests__/mocks.d.ts +13 -9
- package/dist/types/src/utils/ApiMetaData/index.d.ts +1 -0
- package/dist/types/src/utils/CameraHelper/CameraHelper.d.ts +8 -0
- package/dist/types/src/utils/CameraHelper/index.d.ts +1 -0
- package/dist/types/src/utils/Enums.d.ts +1 -0
- package/dist/types/src/{pwfreader/v1/streaming → utils}/OPFSFile/MainThreadSyncAccessHandleFallback.d.ts +2 -1
- package/dist/types/src/{pwfreader/v1/streaming → utils}/OPFSFile/OPFSFile.d.ts +3 -2
- package/dist/types/src/utils/OPFSFile/__tests__/OPFSFile.test.d.ts +1 -0
- package/dist/types/src/utils/OPFSFile/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/types/src/pwfreader/v1/streaming/OPFSFile/index.d.ts +0 -1
- /package/dist/types/src/{navigation/Orbit → utils}/log.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,48 @@ 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
|
+
- ([#1466](https://github.com/procore/bim-webviewer/pull/1466)) Point to point measurement will now snap to intersections between meshes.
|
|
13
|
+
- ([#1469](https://github.com/procore/bim-webviewer/pull/1469)) Models loaded with a `fileExtractionId` now apply the viewpoint associated with that file extraction (if there is one) when the model is loaded.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- ([#1460](https://github.com/procore/bim-webviewer/pull/1460)) Measurement Tool will no longer display any visuals prior to making a measurement while hovering over a section plane when the Section Box tool is enabled. This is to prevent confusion over the interactions between the two tools.
|
|
18
|
+
- ([#1467](https://github.com/procore/bim-webviewer/pull/1467)) [Internal][QA Ignore] `updateProcore` script now updates `document-viewer-ui-service`.
|
|
19
|
+
|
|
20
|
+
## [17.3.0] 2025-01-17
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- ([#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.
|
|
25
|
+
- ([#1389](https://github.com/procore/bim-webviewer/pull/1389)) [QA Ignore] Fetching the model by only using model revision id in SDK side.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- ([#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.
|
|
30
|
+
- ([#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.
|
|
31
|
+
- ([#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.
|
|
32
|
+
- ([#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.
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- ([#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.
|
|
37
|
+
- ([#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.
|
|
38
|
+
- ([#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.
|
|
39
|
+
- ([#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.
|
|
40
|
+
- ([#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.
|
|
41
|
+
- ([#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.
|
|
42
|
+
- ([#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.
|
|
43
|
+
- ([#1462](https://github.com/procore/bim-webviewer/pull/1462)) Fixed bug that was causing the temporary distance label to flicker its visibility when zooming out past a certain limit. This limit makes sure to hide the label so it doesn't occlude the line.
|
|
44
|
+
- ([#1464](https://github.com/procore/bim-webviewer/pull/1464)) Fixed bug in which the fixed orbit stayed active after the point-to-point tool was toggled off.
|
|
45
|
+
|
|
46
|
+
## [17.2.1] 2025-01-15
|
|
47
|
+
|
|
48
|
+
- ([#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.
|
|
49
|
+
|
|
8
50
|
## [17.2.0] 2024-12-13
|
|
9
51
|
|
|
10
52
|
### Fixed
|
|
@@ -47,6 +89,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
47
89
|
- ([#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
90
|
- ([#1419](https://github.com/procore/bim-webviewer/pull/1419)) Fixed erroneous test mock data that was causing the whole test suite to fail.
|
|
49
91
|
|
|
92
|
+
## [16.5.1] 2025-01-15
|
|
93
|
+
|
|
94
|
+
- ([#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.
|
|
95
|
+
|
|
50
96
|
## [16.5.0] 2024-11-08
|
|
51
97
|
|
|
52
98
|
### Added
|
|
@@ -139,6 +185,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
139
185
|
|
|
140
186
|
- [Breaking Change] Removed `enableObjectTreeSearch` feature flag as it is now always enabled and cannot be disabled.
|
|
141
187
|
|
|
188
|
+
## [15.5.1] 2025-01-15
|
|
189
|
+
|
|
190
|
+
- ([#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.
|
|
191
|
+
|
|
142
192
|
## [15.5.0] - 2024-08-02
|
|
143
193
|
|
|
144
194
|
### 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 =
|
|
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 =
|
|
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:
|
|
243
|
-
meshnodeUrl:
|
|
244
|
-
meshUrl?:
|
|
245
|
-
manifestUrl?:
|
|
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
|
|
268
|
-
|
|
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
|
|
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,23 @@ export declare type ObjectFilter = {
|
|
|
827
835
|
filterValue: string;
|
|
828
836
|
};
|
|
829
837
|
|
|
830
|
-
|
|
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(
|
|
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:
|
|
1256
|
-
meshnodeUrl:
|
|
1257
|
-
meshUrl:
|
|
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:
|
|
1347
|
-
meshnodeUrl:
|
|
1348
|
-
meshUrl:
|
|
1349
|
-
manifestUrl:
|
|
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 |
|
|
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
|
-
|
|
1443
|
-
|
|
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
|
-
|
|
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;
|