@procore/bim-webviewer-sdk 17.6.0-rc.1 → 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 +10 -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/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/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
|
@@ -4,6 +4,7 @@ import { PWFMeshnode } from '../interface/PWFMeshnode';
|
|
|
4
4
|
import type { PWFV2 } from '../PWFV2';
|
|
5
5
|
import { MeshnodeObject } from '../objects/MeshnodeObject';
|
|
6
6
|
export declare class Meshnode {
|
|
7
|
+
uploadedToGPU: boolean;
|
|
7
8
|
protected pwfMeshnode: PWFMeshnode;
|
|
8
9
|
private hiddenValue;
|
|
9
10
|
private box3Value?;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { StreamedMeshGeometry } from '../../../procoregl/StreamedMeshGeometry';
|
|
2
2
|
import { StreamedGeometryFactory } from '../../../procoregl/StreamedGeometryFactory';
|
|
3
3
|
export declare class MeshData {
|
|
4
|
-
private _meshIndex;
|
|
5
|
-
private compressedMeshData;
|
|
4
|
+
private readonly _meshIndex;
|
|
5
|
+
private readonly compressedMeshData;
|
|
6
6
|
private uncompressedMeshData?;
|
|
7
7
|
private meshGeometry?;
|
|
8
8
|
constructor(meshIndex: number, compressedMeshData: ArrayBuffer);
|
|
@@ -13,7 +13,6 @@ export declare class MeshData {
|
|
|
13
13
|
vertices(): Float32Array;
|
|
14
14
|
faces(): Uint16Array;
|
|
15
15
|
uploadToGPU(geometryFactory: StreamedGeometryFactory): StreamedMeshGeometry;
|
|
16
|
-
uploadToGPUPreFetching(geometryFactory: StreamedGeometryFactory): StreamedMeshGeometry;
|
|
17
16
|
getCompressedMeshData(): ArrayBuffer;
|
|
18
17
|
getUncompressedMeshData(): ArrayBuffer;
|
|
19
18
|
}
|
|
@@ -5,11 +5,9 @@ import { StreamedGeometryFactory } from '../../../procoregl/StreamedGeometryFact
|
|
|
5
5
|
import { StreamedMeshServices } from './StreamedMeshServices';
|
|
6
6
|
export declare class PartitionProxy {
|
|
7
7
|
private pwfPartitionProxy;
|
|
8
|
-
private meshServices;
|
|
9
8
|
static numberOfPartitions: number;
|
|
10
9
|
static numberOfPartitionsLoaded: number;
|
|
11
10
|
static currentNumberOfDownloading: number;
|
|
12
|
-
static prefetchingPartitions: boolean;
|
|
13
11
|
loadedToGPU: boolean;
|
|
14
12
|
isLoading: boolean;
|
|
15
13
|
private _meshnodes;
|
|
@@ -32,7 +30,7 @@ export declare class PartitionProxy {
|
|
|
32
30
|
meshnodes(): StreamedMeshnode[];
|
|
33
31
|
setMeshnodes(meshnodes: StreamedMeshnode[]): void;
|
|
34
32
|
loadPartitionData(callbackFn: (partition: Partition) => void): Promise<void>;
|
|
35
|
-
loadPartition(
|
|
33
|
+
loadPartition(_factory: StreamedGeometryFactory): Promise<void>;
|
|
36
34
|
size(): {
|
|
37
35
|
compressed: number;
|
|
38
36
|
size: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StreamedMeshGeometry } from '../../../procoregl/StreamedMeshGeometry';
|
|
2
2
|
import type { PWFV2 } from '../PWFV2';
|
|
3
3
|
import { MeshServices } from '../standard';
|
|
4
|
-
import type { StreamedMeshnode } from './StreamedMeshnode';
|
|
5
4
|
import { MeshObject } from '../objects/MeshObject';
|
|
6
5
|
import { MeshData } from './MeshData';
|
|
7
6
|
import { Mesh } from '../standard/Mesh';
|
|
@@ -25,7 +24,7 @@ export declare class StreamedMeshServices extends MeshServices {
|
|
|
25
24
|
closeOPFS(): Promise<void>;
|
|
26
25
|
writeMeshDataToOPFS(meshData: MeshData): Promise<void>;
|
|
27
26
|
getMeshObject(meshIndex: number): MeshObject;
|
|
28
|
-
loadPartitionContainingMeshnode(
|
|
27
|
+
loadPartitionContainingMeshnode(): void;
|
|
29
28
|
getMeshGeometryForOffsets(meshOffset: number, meshnodeOffset: number): StreamedMeshGeometry | undefined;
|
|
30
29
|
meshFromOffset(meshIndex: number): Mesh;
|
|
31
30
|
private getCompressedMeshDataFromOPFS;
|
|
@@ -5,12 +5,10 @@ import { PartitionProxy } from './PartitionProxy';
|
|
|
5
5
|
import { StreamedMeshGeometry } from '../../../procoregl/StreamedMeshGeometry';
|
|
6
6
|
export declare class StreamedMeshnode extends Meshnode {
|
|
7
7
|
private _partitionProxy?;
|
|
8
|
-
private _meshGeometries;
|
|
9
8
|
setPartitionProxy(partitionProxy: PartitionProxy): void;
|
|
10
9
|
partitionProxy(): PartitionProxy;
|
|
11
10
|
meshGeometries(): MeshGeometry[];
|
|
12
|
-
|
|
13
|
-
getMeshGeometry(meshIndex: number): StreamedMeshGeometry | undefined;
|
|
11
|
+
getMeshGeometry(_meshIndex: number): StreamedMeshGeometry | undefined;
|
|
14
12
|
asObject(): MeshnodeObject;
|
|
15
13
|
private getMeshObject;
|
|
16
14
|
}
|
|
@@ -39,6 +39,7 @@ export namespace THREE {
|
|
|
39
39
|
export { RGBAFormat };
|
|
40
40
|
export { Scene };
|
|
41
41
|
export { ShaderMaterial };
|
|
42
|
+
export { Sphere };
|
|
42
43
|
export { Spherical };
|
|
43
44
|
export { Triangle };
|
|
44
45
|
export { Vector2 };
|
|
@@ -87,6 +88,7 @@ import { Raycaster } from 'three/src/core/Raycaster';
|
|
|
87
88
|
import { RGBAFormat } from 'three/src/constants';
|
|
88
89
|
import { Scene } from 'three/src/scenes/Scene';
|
|
89
90
|
import { ShaderMaterial } from 'three/src/materials/ShaderMaterial';
|
|
91
|
+
import { Sphere } from 'three/src/math/Sphere';
|
|
90
92
|
import { Spherical } from 'three/src/math/Spherical';
|
|
91
93
|
import { Triangle } from 'three/src/math/Triangle';
|
|
92
94
|
import { Vector2 } from 'three/src/math/Vector2';
|
|
@@ -7,3 +7,6 @@ export declare const RENDER_MODE: {
|
|
|
7
7
|
readonly XRAY: "xray";
|
|
8
8
|
};
|
|
9
9
|
export type RenderMode = (typeof RENDER_MODE)[keyof typeof RENDER_MODE];
|
|
10
|
+
export declare const PREFETCHED_PARTITIONS = true;
|
|
11
|
+
export declare const PROGRESSIVE_PARTITIONS = false;
|
|
12
|
+
export declare const LOG_RENDERER_MESHNODES_STATS = false;
|
package/dist/types/src/utils/requestPersistentStorage/__tests__/requestPersistentStorage.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { requestPersistentStorage } from './requestPersistentStorage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function requestPersistentStorage(quickResolveTimeout?: number): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED