@procore/bim-webviewer-sdk 17.6.0-rc.0 → 17.6.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 +11 -0
- package/dist/Procore.Bim.Webviewer.d.ts +49 -30
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/api/analytic_events/payloadFactories.d.ts +3 -1
- package/dist/types/src/components/LoadingComponent/LoadingComponent.d.ts +8 -6
- package/dist/types/src/components/RootComponent.d.ts +1 -1
- package/dist/types/src/components/StatsJS.d.ts +8 -3
- package/dist/types/src/controllers/Bootstrapper.d.ts +15 -8
- package/dist/types/src/controllers/PubSubController.d.ts +2 -1
- package/dist/types/src/controllers/RenderController.d.ts +3 -2
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +2 -2
- package/dist/types/src/controllers/RenderControllerWorker.d.ts +1 -0
- package/dist/types/src/measuring/MeasureToolUtils.d.ts +0 -5
- package/dist/types/src/measuring/PointToPointController.d.ts +1 -2
- package/dist/types/src/procoregl/MeshTopology/Centroid.d.ts +2 -2
- package/dist/types/src/procoregl/MeshTopology/{HalfEdge.d.ts → Edge.d.ts} +12 -10
- package/dist/types/src/procoregl/MeshTopology/MeshTopology.d.ts +22 -8
- package/dist/types/src/procoregl/MeshTopology/Position.d.ts +2 -2
- package/dist/types/src/procoregl/MeshTopology/Segment.d.ts +18 -0
- package/dist/types/src/procoregl/MeshTopology/__tests__/Segment.test.d.ts +1 -0
- package/dist/types/src/procoregl/MeshTopology/index.d.ts +2 -1
- package/dist/types/src/procoregl/Models/Models.d.ts +1 -2
- package/dist/types/src/procoregl/PartitionsRenderer.d.ts +3 -0
- package/dist/types/src/procoregl/PartitionsRendererImpl.d.ts +2 -0
- package/dist/types/src/procoregl/StreamedGeometryFactory.d.ts +0 -1
- package/dist/types/src/procoregl/ViewerRenderer.d.ts +2 -0
- package/dist/types/src/pwfreader/PWF.d.ts +3 -2
- package/dist/types/src/pwfreader/PWFProxy.d.ts +3 -2
- package/dist/types/src/pwfreader/Utils.d.ts +6 -2
- package/dist/types/src/pwfreader/v1/PWFV1.d.ts +3 -1
- package/dist/types/src/pwfreader/v1/impl/bufferReader/HPartitionProxyBufferReader.d.ts +8 -0
- package/dist/types/src/pwfreader/v1/impl/bufferReader/PartitionProxyBufferReader.d.ts +1 -3
- package/dist/types/src/pwfreader/v1/impl/bufferReader/__tests__/HPartitionProxyBufferReader.test.d.ts +1 -0
- package/dist/types/src/pwfreader/v1/impl/pwfNoCache/PWFHPartitionProxyNoCache.d.ts +14 -0
- package/dist/types/src/pwfreader/v1/impl/recordReader/PWFHPartitionProxyReader.d.ts +19 -0
- package/dist/types/src/pwfreader/v1/interface/PWFHPartitionProxy.d.ts +7 -0
- package/dist/types/src/pwfreader/v1/standard/MeshServices.d.ts +1 -0
- package/dist/types/src/pwfreader/v1/standard/Meshnode.d.ts +7 -1
- package/dist/types/src/pwfreader/v1/streaming/HPartitionProxy.d.ts +20 -0
- package/dist/types/src/pwfreader/v1/streaming/MeshData.d.ts +2 -3
- package/dist/types/src/pwfreader/v1/streaming/Partition.d.ts +1 -1
- package/dist/types/src/pwfreader/v1/streaming/PartitionDownloadManager.d.ts +7 -0
- package/dist/types/src/pwfreader/v1/streaming/PartitionProxy.d.ts +13 -7
- package/dist/types/src/pwfreader/v1/streaming/StreamedMeshServices.d.ts +3 -2
- package/dist/types/src/pwfreader/v1/streaming/StreamedMeshnode.d.ts +10 -2
- package/dist/types/src/pwfreader/v1/streaming/StreamedMeshnodeServices.d.ts +1 -1
- package/dist/types/src/pwfreader/v1/streaming/__tests__/HPartitionProxy.test.d.ts +1 -0
- package/dist/types/src/pwfreader/v1/streaming/__tests__/PartitionDownloadManager.test.d.ts +1 -0
- package/dist/types/src/pwfreader/v2/PWFV2.d.ts +2 -1
- package/dist/types/src/pwfreader/v2/impl/bufferReader/PartitionProxyBufferReader.d.ts +0 -3
- package/dist/types/src/pwfreader/v2/standard/Meshnode.d.ts +1 -0
- package/dist/types/src/pwfreader/v2/streaming/MeshData.d.ts +2 -3
- package/dist/types/src/pwfreader/v2/streaming/Partition.d.ts +1 -1
- package/dist/types/src/pwfreader/v2/streaming/PartitionProxy.d.ts +1 -3
- package/dist/types/src/pwfreader/v2/streaming/StreamedMeshServices.d.ts +1 -2
- package/dist/types/src/pwfreader/v2/streaming/StreamedMeshnode.d.ts +1 -3
- package/dist/types/src/threeShaking.d.ts +2 -0
- package/dist/types/src/utils/MathHelper/MathHelper.d.ts +13 -0
- package/dist/types/src/utils/MathHelper/index.d.ts +1 -1
- package/dist/types/src/utils/constants.d.ts +3 -0
- package/dist/types/src/utils/requestPersistentStorage/__tests__/requestPersistentStorage.test.d.ts +1 -0
- package/dist/types/src/utils/requestPersistentStorage/index.d.ts +1 -0
- package/dist/types/src/utils/requestPersistentStorage/requestPersistentStorage.d.ts +1 -0
- package/dist/types/src/workers/PartitionDownload.worker.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/src/procoregl/SceneGraph/utils.d.ts +0 -2
- /package/dist/types/src/procoregl/MeshTopology/__tests__/{HalfEdge.test.d.ts → Edge.test.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,9 +7,18 @@ 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
|
+
- ([#1492](https://github.com/procore/bim-webviewer/pull/1492)) Make a request for persistent storage (`navigator.storage.persist`) during load time.
|
|
13
|
+
- In Firefox, this will prompt the user to allow persistent storage, which, when granted, will increase the amount of disk space made available to the current origin. While this prompt is displayed, the loading screen (enabled with `tools: [Webviewer.tools.LOADING]`) will display a message directing the user to "Allow Persistent Storage".
|
|
14
|
+
- ([#1404](https://github.com/procore/bim-webviewer/pull/1404)) Logs bootstrapper execution summary at the console with the option `logInitializationTimes=true`
|
|
15
|
+
- ([#1401](https://github.com/procore/bim-webviewer/pull/1401)) [Internal][QA Ignore] Adds the new `model:hpartition` script for development, along with several plantUML diagrams of the "to be" end state under `docs/diagrams/hierarchicalPartitions/`.
|
|
16
|
+
|
|
10
17
|
### Changed
|
|
11
18
|
|
|
19
|
+
- ([#1468](https://github.com/procore/bim-webviewer/pull/1468)) Point to point measurement tool is now able to create the outline and snap to features for non-manifold meshes.
|
|
12
20
|
- ([#1497](https://github.com/procore/bim-webviewer/pull/1497)) [Internal][QA Ignore] `npm run benchmark:branchCompare` now pauses after switching branches but before running the benchmark so that you can restart the webpack dev server (`npm run start`) in another terminal.
|
|
21
|
+
- ([#1406](https://github.com/procore/bim-webviewer/pull/1406)) [Internal][QA Ignore] Brings the code path handling progressive loading of partition back to healthy place.
|
|
13
22
|
|
|
14
23
|
## [17.5.0] 2025-02-14
|
|
15
24
|
|
|
@@ -22,9 +31,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
22
31
|
- ([#1481](https://github.com/procore/bim-webviewer/pull/1481)) Fixed an erroneous interaction between any active measurement mode and the home viewpoint button. Now the measurement mode gets deactivated and fixed orbit, if active, will switch to default navigation when the home viewpoint button is clicked (also works for hotkeys).
|
|
23
32
|
- ([#1490](https://github.com/procore/bim-webviewer/pull/1490)) Fixed an issue where the Properties window and gui.formatUnit displayed incorrect feet-inches values for negative inputs.
|
|
24
33
|
- ([#1491](https://github.com/procore/bim-webviewer/pull/1491)) Fixed an issue in which the cursor was not updating to the correct point-to-point or section box resizing one when zooming in/out and both point-to-point and section box were active.
|
|
34
|
+
- ([#1500](https://github.com/procore/bim-webviewer/pull/1500)) Fixed an issue where the cursor tooltip for the measurement tool would reappear after a measurement was completed and the section box display was toggled.
|
|
25
35
|
|
|
26
36
|
### Removed
|
|
27
37
|
|
|
38
|
+
- ([#1492](https://github.com/procore/bim-webviewer/pull/1492)) [Breaking Change] Removed `launchedAnimationLoop` event. You can instead listen to `renderReady` event.
|
|
28
39
|
- ([#1480](https://github.com/procore/bim-webviewer/pull/1480)) Removed the feature flag `enablePointToPoint` as Point to Point is now a standard feature.
|
|
29
40
|
|
|
30
41
|
## [17.4.0] 2025-01-31
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PerspectiveCamera } from 'three/src/cameras/PerspectiveCamera';
|
|
2
|
+
|
|
1
3
|
export declare const ACTION: {
|
|
2
4
|
readonly NONE: -1;
|
|
3
5
|
readonly PAN: 1;
|
|
@@ -351,8 +353,8 @@ declare class Mesh_2 {
|
|
|
351
353
|
}
|
|
352
354
|
|
|
353
355
|
declare class MeshData {
|
|
354
|
-
private _meshIndex;
|
|
355
|
-
private compressedMeshData;
|
|
356
|
+
private readonly _meshIndex;
|
|
357
|
+
private readonly compressedMeshData;
|
|
356
358
|
private uncompressedMeshData?;
|
|
357
359
|
private meshGeometry?;
|
|
358
360
|
constructor(meshIndex: number, compressedMeshData: ArrayBuffer);
|
|
@@ -363,14 +365,13 @@ declare class MeshData {
|
|
|
363
365
|
vertices(): Float32Array;
|
|
364
366
|
faces(): Uint16Array;
|
|
365
367
|
uploadToGPU(geometryFactory: StreamedGeometryFactory): StreamedMeshGeometry;
|
|
366
|
-
uploadToGPUPreFetching(geometryFactory: StreamedGeometryFactory): StreamedMeshGeometry;
|
|
367
368
|
getCompressedMeshData(): ArrayBuffer;
|
|
368
369
|
getUncompressedMeshData(): ArrayBuffer;
|
|
369
370
|
}
|
|
370
371
|
|
|
371
372
|
declare class MeshData_2 {
|
|
372
|
-
private _meshIndex;
|
|
373
|
-
private compressedMeshData;
|
|
373
|
+
private readonly _meshIndex;
|
|
374
|
+
private readonly compressedMeshData;
|
|
374
375
|
private uncompressedMeshData?;
|
|
375
376
|
private meshGeometry?;
|
|
376
377
|
constructor(meshIndex: number, compressedMeshData: ArrayBuffer);
|
|
@@ -381,7 +382,6 @@ declare class MeshData_2 {
|
|
|
381
382
|
vertices(): Float32Array;
|
|
382
383
|
faces(): Uint16Array;
|
|
383
384
|
uploadToGPU(geometryFactory: StreamedGeometryFactory): StreamedMeshGeometry;
|
|
384
|
-
uploadToGPUPreFetching(geometryFactory: StreamedGeometryFactory): StreamedMeshGeometry;
|
|
385
385
|
getCompressedMeshData(): ArrayBuffer;
|
|
386
386
|
getUncompressedMeshData(): ArrayBuffer;
|
|
387
387
|
}
|
|
@@ -402,12 +402,13 @@ declare class MeshGeometry {
|
|
|
402
402
|
declare type Meshnode = Meshnode_2 | Meshnode_3;
|
|
403
403
|
|
|
404
404
|
declare class Meshnode_2 {
|
|
405
|
+
uploadedToGPU: boolean;
|
|
405
406
|
protected pwfMeshnode: PWFMeshnode;
|
|
406
407
|
private hiddenValue;
|
|
407
408
|
private box3Value?;
|
|
408
409
|
private centerValue?;
|
|
409
410
|
private meshDataValue?;
|
|
410
|
-
|
|
411
|
+
protected meshGeometriesValue?: MeshGeometry[];
|
|
411
412
|
private matrixWorldValue?;
|
|
412
413
|
protected pwf: PWFV1;
|
|
413
414
|
selected: boolean;
|
|
@@ -438,10 +439,15 @@ declare class Meshnode_2 {
|
|
|
438
439
|
hidden(): Meshnode_2['hiddenValue'];
|
|
439
440
|
setHidden(hidden: boolean): void;
|
|
440
441
|
setParent(node: Node_3): void;
|
|
442
|
+
isProjectionAtLeastNPixelsRadius(camera: PerspectiveCamera, canvasSize: {
|
|
443
|
+
height: number;
|
|
444
|
+
width: number;
|
|
445
|
+
}, radiusPixels: number): boolean;
|
|
441
446
|
asObject(): MeshnodeObject;
|
|
442
447
|
}
|
|
443
448
|
|
|
444
449
|
declare class Meshnode_3 {
|
|
450
|
+
uploadedToGPU: boolean;
|
|
445
451
|
protected pwfMeshnode: PWFMeshnode_2;
|
|
446
452
|
private hiddenValue;
|
|
447
453
|
private box3Value?;
|
|
@@ -583,6 +589,7 @@ declare class MeshServices_2 {
|
|
|
583
589
|
private readonly meshCount;
|
|
584
590
|
private currentIndex;
|
|
585
591
|
constructor(pwfMeshes: PWFMesh_2[], pwf: PWFV1);
|
|
592
|
+
getGeometryFactory(): GeometryFactory;
|
|
586
593
|
setGeometryFactory(geometryFactory: GeometryFactory): void;
|
|
587
594
|
getMeshGeometryForOffsets(meshOffset: number, _meshnodeOffset: number | undefined): MeshGeometry | undefined;
|
|
588
595
|
meshFromOffset(offset: number): Mesh_2;
|
|
@@ -864,23 +871,21 @@ declare class Partition {
|
|
|
864
871
|
private pwfPartition;
|
|
865
872
|
constructor(pwfPartition: PWFPartition);
|
|
866
873
|
partitionId(): number;
|
|
867
|
-
|
|
874
|
+
meshDatum(): MeshData[];
|
|
868
875
|
}
|
|
869
876
|
|
|
870
877
|
declare class Partition_2 {
|
|
871
878
|
private pwfPartition;
|
|
872
879
|
constructor(pwfPartition: PWFPartition_2);
|
|
873
880
|
partitionId(): number;
|
|
874
|
-
|
|
881
|
+
meshDatum(): MeshData_2[];
|
|
875
882
|
}
|
|
876
883
|
|
|
877
884
|
declare class PartitionProxy {
|
|
878
885
|
private pwfPartitionProxy;
|
|
879
|
-
private meshServices;
|
|
880
886
|
static numberOfPartitions: number;
|
|
881
887
|
static numberOfPartitionsLoaded: number;
|
|
882
888
|
static currentNumberOfDownloading: number;
|
|
883
|
-
static prefetchingPartitions: boolean;
|
|
884
889
|
loadedToGPU: boolean;
|
|
885
890
|
isLoading: boolean;
|
|
886
891
|
private _meshnodes;
|
|
@@ -903,7 +908,7 @@ declare class PartitionProxy {
|
|
|
903
908
|
meshnodes(): StreamedMeshnode[];
|
|
904
909
|
setMeshnodes(meshnodes: StreamedMeshnode[]): void;
|
|
905
910
|
loadPartitionData(callbackFn: (partition: Partition) => void): Promise<void>;
|
|
906
|
-
loadPartition(
|
|
911
|
+
loadPartition(_factory: StreamedGeometryFactory): Promise<void>;
|
|
907
912
|
size(): {
|
|
908
913
|
compressed: number;
|
|
909
914
|
size: number;
|
|
@@ -915,21 +920,23 @@ declare class PartitionProxy {
|
|
|
915
920
|
|
|
916
921
|
declare class PartitionProxy_2 {
|
|
917
922
|
private pwfPartitionProxy;
|
|
918
|
-
|
|
923
|
+
meshServices: StreamedMeshServices_2;
|
|
919
924
|
static numberOfPartitions: number;
|
|
920
925
|
static numberOfPartitionsLoaded: number;
|
|
921
926
|
static currentNumberOfDownloading: number;
|
|
922
|
-
static prefetchingPartitions: boolean;
|
|
923
|
-
loadedToGPU: boolean;
|
|
924
927
|
isLoading: boolean;
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
+
isLoaded: boolean;
|
|
929
|
+
meshRef2Meshnodes: Map<number, StreamedMeshnode_2[]>;
|
|
930
|
+
protected _meshnodes: StreamedMeshnode_2[];
|
|
931
|
+
protected _byteLength?: number;
|
|
932
|
+
protected _compressedByteLength: number;
|
|
928
933
|
private stats;
|
|
934
|
+
private static partitionDownloadManager;
|
|
929
935
|
constructor(params: {
|
|
930
936
|
pwfPartitionProxy: PWFPartitionProxy_2;
|
|
931
937
|
meshServices: StreamedMeshServices_2;
|
|
932
938
|
});
|
|
939
|
+
getMeshServices(): StreamedMeshServices_2;
|
|
933
940
|
meshCount(): number;
|
|
934
941
|
incrementMeshCount(numMeshes: number): void;
|
|
935
942
|
vertexCount(): number;
|
|
@@ -942,6 +949,8 @@ declare class PartitionProxy_2 {
|
|
|
942
949
|
meshnodes(): StreamedMeshnode_2[];
|
|
943
950
|
setMeshnodes(meshnodes: StreamedMeshnode_2[]): void;
|
|
944
951
|
loadPartitionData(callbackFn: (partition: Partition_2) => void): Promise<void>;
|
|
952
|
+
private loadPartitionMeshesToOPFS;
|
|
953
|
+
private parsePartition;
|
|
945
954
|
loadPartition(factory: StreamedGeometryFactory): Promise<void>;
|
|
946
955
|
size(): {
|
|
947
956
|
compressed: number;
|
|
@@ -950,6 +959,8 @@ declare class PartitionProxy_2 {
|
|
|
950
959
|
static processPartitionProxiesAB(partitionProxiesAB: ArrayBuffer, meshServices: StreamedMeshServices_2, callback: (partitionProxy: PartitionProxy_2) => void): void;
|
|
951
960
|
static getPartitionProxies(partitionProxiesAB: ArrayBuffer): PWFPartitionProxy_2[];
|
|
952
961
|
getContentOfPartitionUrl(): string;
|
|
962
|
+
static loadPartitions(partitionsSet: Set<PartitionProxy_2>): Promise<void>;
|
|
963
|
+
private loadPartitionWithManager;
|
|
953
964
|
}
|
|
954
965
|
|
|
955
966
|
declare type Point = {
|
|
@@ -1004,7 +1015,8 @@ export declare type PublicNode = {
|
|
|
1004
1015
|
|
|
1005
1016
|
declare interface PWF {
|
|
1006
1017
|
setStandardModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, meshAB: ArrayBuffer): void;
|
|
1007
|
-
setPartitionedModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer,
|
|
1018
|
+
setPartitionedModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, partitionProxiesAB: ArrayBuffer): void;
|
|
1019
|
+
setHPartitionedModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, partitionProxiesAB: ArrayBuffer): void;
|
|
1008
1020
|
initPwfParser(): void;
|
|
1009
1021
|
parsePwfNodes(): BootstrapperResult;
|
|
1010
1022
|
parsePwfMeshnodes(): BootstrapperResult;
|
|
@@ -1022,7 +1034,7 @@ declare interface PWF {
|
|
|
1022
1034
|
getVirtualMeshnodeIndexesByNodeId(nodeId: number): number[];
|
|
1023
1035
|
getNamedNode(nodeId: number): Node_2;
|
|
1024
1036
|
globalOffset(): Vector3;
|
|
1025
|
-
getPwfPartitionContentUrls(): string[]
|
|
1037
|
+
getPwfPartitionContentUrls(): Promise<string[]>;
|
|
1026
1038
|
numNodes(): number;
|
|
1027
1039
|
numMeshnodes(): number;
|
|
1028
1040
|
numMeshes(): number;
|
|
@@ -1197,6 +1209,7 @@ declare class PWFV1 implements PWF {
|
|
|
1197
1209
|
meshAB?: ArrayBuffer;
|
|
1198
1210
|
partitionProxiesAB?: ArrayBuffer;
|
|
1199
1211
|
pwfModelParser?: PWFModelParser_2;
|
|
1212
|
+
modelType: 'standard' | 'partitioned-flat' | 'partitioned-tree';
|
|
1200
1213
|
private _numMeshnodes;
|
|
1201
1214
|
private _numMeshes;
|
|
1202
1215
|
private _numNodes;
|
|
@@ -1225,7 +1238,8 @@ declare class PWFV1 implements PWF {
|
|
|
1225
1238
|
});
|
|
1226
1239
|
setStandardModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, meshAB: ArrayBuffer): void;
|
|
1227
1240
|
setPartitionedModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, partitionProxiesAB: ArrayBuffer): void;
|
|
1228
|
-
|
|
1241
|
+
setHPartitionedModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, partitionProxiesAB: ArrayBuffer): void;
|
|
1242
|
+
getPwfPartitionContentUrls(): Promise<string[]>;
|
|
1229
1243
|
initPwfParser(): void;
|
|
1230
1244
|
parsePwfNodes(): BootstrapperResult;
|
|
1231
1245
|
parsePwfMeshnodes(): BootstrapperResult;
|
|
@@ -1320,7 +1334,8 @@ declare class PWFV2 implements PWF {
|
|
|
1320
1334
|
});
|
|
1321
1335
|
setStandardModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, meshAB: ArrayBuffer): void;
|
|
1322
1336
|
setPartitionedModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, partitionProxiesAB: ArrayBuffer): void;
|
|
1323
|
-
|
|
1337
|
+
setHPartitionedModelBuffers(_nodeAB: ArrayBuffer, _meshnodeAB: ArrayBuffer, _partitionProxiesAB: ArrayBuffer): void;
|
|
1338
|
+
getPwfPartitionContentUrls(): Promise<string[]>;
|
|
1324
1339
|
initPwfParser(): void;
|
|
1325
1340
|
parsePwfNodes(): BootstrapperResult;
|
|
1326
1341
|
parsePwfMeshnodes(): BootstrapperResult;
|
|
@@ -1414,7 +1429,6 @@ export declare type SectionDataProcoreFormat = ProcoreFormatClipPlane[];
|
|
|
1414
1429
|
|
|
1415
1430
|
declare class StreamedGeometryFactory extends GeometryFactory {
|
|
1416
1431
|
createMeshGeometry(vertexArray: Float32Array, indexArray: Uint16Array, color: number, opacity: number, drawType: number): StreamedMeshGeometry;
|
|
1417
|
-
createMeshGeometryPrefetching(vertexArray: Float32Array, indexArray: Uint16Array, color: number, opacity: number, drawType: number): StreamedMeshGeometry;
|
|
1418
1432
|
createCylinderGeometry(vertexArray: Float32Array, indexArray: Uint16Array, color: number, opacity: number, drawType: number): StreamedMeshGeometry;
|
|
1419
1433
|
protected newVertexBufferStream(size: number): WebGLBuffer;
|
|
1420
1434
|
protected newIndexBufferStream(size: number): WebGLBuffer;
|
|
@@ -1434,22 +1448,26 @@ declare class StreamedMeshGeometry extends MeshGeometry {
|
|
|
1434
1448
|
|
|
1435
1449
|
declare class StreamedMeshnode extends Meshnode_3 {
|
|
1436
1450
|
private _partitionProxy?;
|
|
1437
|
-
private _meshGeometries;
|
|
1438
1451
|
setPartitionProxy(partitionProxy: PartitionProxy): void;
|
|
1439
1452
|
partitionProxy(): PartitionProxy;
|
|
1440
1453
|
meshGeometries(): MeshGeometry[];
|
|
1441
|
-
|
|
1442
|
-
getMeshGeometry(meshIndex: number): StreamedMeshGeometry | undefined;
|
|
1454
|
+
getMeshGeometry(_meshIndex: number): StreamedMeshGeometry | undefined;
|
|
1443
1455
|
asObject(): MeshnodeObject_2;
|
|
1444
1456
|
private getMeshObject;
|
|
1445
1457
|
}
|
|
1446
1458
|
|
|
1447
1459
|
declare class StreamedMeshnode_2 extends Meshnode_2 {
|
|
1448
|
-
|
|
1449
|
-
|
|
1460
|
+
_partitionProxy?: PartitionProxy_2;
|
|
1461
|
+
_meshGeometries: Map<number, StreamedMeshGeometry>;
|
|
1462
|
+
protected meshGeometriesValue: MeshGeometry[];
|
|
1463
|
+
uploadedToGPU: boolean;
|
|
1464
|
+
prefetching: boolean;
|
|
1465
|
+
constructor(pwfMeshnode: PWFMeshnode, pwf: PWFV1, prefetching: boolean);
|
|
1466
|
+
isPrefetching(): boolean;
|
|
1450
1467
|
setPartitionProxy(partitionProxy: PartitionProxy_2): void;
|
|
1451
1468
|
partitionProxy(): PartitionProxy_2;
|
|
1452
1469
|
meshGeometries(): MeshGeometry[];
|
|
1470
|
+
uploadMeshDataToGPU(): Promise<void>;
|
|
1453
1471
|
setMeshGeometry(meshIndex: number, meshGeometry: StreamedMeshGeometry): void;
|
|
1454
1472
|
getMeshGeometry(meshIndex: number): StreamedMeshGeometry | undefined;
|
|
1455
1473
|
asObject(): MeshnodeObject;
|
|
@@ -1481,7 +1499,7 @@ declare class StreamedMeshServices extends MeshServices {
|
|
|
1481
1499
|
closeOPFS(): Promise<void>;
|
|
1482
1500
|
writeMeshDataToOPFS(meshData: MeshData): Promise<void>;
|
|
1483
1501
|
getMeshObject(meshIndex: number): MeshObject_2;
|
|
1484
|
-
loadPartitionContainingMeshnode(
|
|
1502
|
+
loadPartitionContainingMeshnode(): void;
|
|
1485
1503
|
getMeshGeometryForOffsets(meshOffset: number, meshnodeOffset: number): StreamedMeshGeometry | undefined;
|
|
1486
1504
|
meshFromOffset(meshIndex: number): Mesh;
|
|
1487
1505
|
private getCompressedMeshDataFromOPFS;
|
|
@@ -1505,9 +1523,10 @@ declare class StreamedMeshServices_2 extends MeshServices_2 {
|
|
|
1505
1523
|
closeOPFS(): Promise<void>;
|
|
1506
1524
|
writeMeshDataToOPFS(meshData: MeshData_2): Promise<void>;
|
|
1507
1525
|
getMeshObject(meshIndex: number): MeshObject;
|
|
1508
|
-
|
|
1526
|
+
loadPartitionProxy(partitionProxy: PartitionProxy_2): Promise<boolean>;
|
|
1509
1527
|
getMeshGeometryForOffsets(meshOffset: number, meshnodeOffset: number): StreamedMeshGeometry | undefined;
|
|
1510
1528
|
meshFromOffset(meshIndex: number): Mesh_2;
|
|
1529
|
+
readMeshDataFromOPFS(meshIndex: number): MeshData_2;
|
|
1511
1530
|
private getCompressedMeshDataFromOPFS;
|
|
1512
1531
|
dispose(): Promise<void>;
|
|
1513
1532
|
}
|