@procore/bim-webviewer-sdk 17.5.0-test-inline-worker-without-nesting.0 → 17.6.0-pl-17.6.0-blob.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 +19 -0
- package/dist/Procore.Bim.Webviewer.d.ts +52 -31
- 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 +18 -9
- 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/controllers/RendererFactory.d.ts +2 -1
- package/dist/types/src/measuring/MeasureToolUtils.d.ts +0 -5
- package/dist/types/src/measuring/PointToPointController.d.ts +1 -2
- package/dist/types/src/navigation/ZoomControl.d.ts +1 -0
- 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 +2 -2
- package/dist/types/src/procoregl/PartitionsRenderer.d.ts +3 -0
- package/dist/types/src/procoregl/PartitionsRendererImpl.d.ts +4 -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/standard/MeshnodeServices.d.ts +3 -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/types/WebviewerOptions.d.ts +1 -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 +1 -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/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
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import { PerspectiveCamera } from 'three/src/cameras/PerspectiveCamera';
|
|
1
2
|
import type { Node } from './Node';
|
|
2
3
|
import { MeshGeometry } from '../../../procoregl/MeshGeometry';
|
|
3
4
|
import { PWFMeshnode } from '../interface/PWFMeshnode';
|
|
4
5
|
import type { PWFV1 } from '../PWFV1';
|
|
5
6
|
import { MeshnodeObject } from '../objects/MeshnodeObject';
|
|
6
7
|
export declare class Meshnode {
|
|
8
|
+
uploadedToGPU: boolean;
|
|
7
9
|
protected pwfMeshnode: PWFMeshnode;
|
|
8
10
|
private hiddenValue;
|
|
9
11
|
private box3Value?;
|
|
10
12
|
private centerValue?;
|
|
11
13
|
private meshDataValue?;
|
|
12
|
-
|
|
14
|
+
protected meshGeometriesValue?: MeshGeometry[];
|
|
13
15
|
private matrixWorldValue?;
|
|
14
16
|
protected pwf: PWFV1;
|
|
15
17
|
selected: boolean;
|
|
@@ -40,5 +42,9 @@ export declare class Meshnode {
|
|
|
40
42
|
hidden(): Meshnode['hiddenValue'];
|
|
41
43
|
setHidden(hidden: boolean): void;
|
|
42
44
|
setParent(node: Node): void;
|
|
45
|
+
isProjectionAtLeastNPixelsRadius(camera: PerspectiveCamera, canvasSize: {
|
|
46
|
+
height: number;
|
|
47
|
+
width: number;
|
|
48
|
+
}, radiusPixels: number): boolean;
|
|
43
49
|
asObject(): MeshnodeObject;
|
|
44
50
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { PWFV1 } from '../PWFV1';
|
|
2
2
|
import { Meshnode } from './Meshnode';
|
|
3
3
|
import { PWFMeshnode } from '../interface/PWFMeshnode';
|
|
4
|
+
import type { ValidatedFeatureFlags } from '../../../types/WebviewerOptions';
|
|
4
5
|
export declare class MeshnodeServices {
|
|
5
6
|
private meshnodeCount;
|
|
6
7
|
private meshnodes;
|
|
7
8
|
protected pwf: PWFV1;
|
|
8
9
|
protected cachedMeshnodes: Map<number, Meshnode>;
|
|
9
|
-
|
|
10
|
+
protected readonly featureFlags: ValidatedFeatureFlags;
|
|
11
|
+
constructor(pwfMeshnodes: PWFMeshnode[], pwf: PWFV1, featureFlags: ValidatedFeatureFlags);
|
|
10
12
|
getMeshnodeFromIndex(index: number): Meshnode;
|
|
11
13
|
getMeshnode(offset: number): Meshnode;
|
|
12
14
|
numMeshnodes(): number;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StreamedMeshServices } from './StreamedMeshServices';
|
|
2
|
+
import { PWFHPartitionProxy } from '../interface/PWFHPartitionProxy';
|
|
3
|
+
import { PartitionProxy } from './PartitionProxy';
|
|
4
|
+
export declare class HPartitionProxy extends PartitionProxy {
|
|
5
|
+
static devModelName: string;
|
|
6
|
+
private pwfHPartitionProxy;
|
|
7
|
+
constructor(params: {
|
|
8
|
+
pwfHPartitionProxy: PWFHPartitionProxy;
|
|
9
|
+
meshServices: StreamedMeshServices;
|
|
10
|
+
});
|
|
11
|
+
partitionId(): number;
|
|
12
|
+
partitionUrl(): Promise<string>;
|
|
13
|
+
meshnodeOffsets(): Uint32Array;
|
|
14
|
+
size(): {
|
|
15
|
+
compressed: number;
|
|
16
|
+
size: number;
|
|
17
|
+
};
|
|
18
|
+
static processPartitionProxiesAB(partitionProxiesAB: ArrayBuffer, meshServices: StreamedMeshServices, callback: (partitionProxy: HPartitionProxy) => void): void;
|
|
19
|
+
static getPartitionProxies(partitionProxiesAB: ArrayBuffer): PWFHPartitionProxy[];
|
|
20
|
+
}
|
|
@@ -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
|
}
|
|
@@ -2,24 +2,26 @@ import { Partition } from './Partition';
|
|
|
2
2
|
import type { StreamedMeshnode } from './StreamedMeshnode';
|
|
3
3
|
import { PWFPartitionProxy } from '../interface/PWFPartitionProxy';
|
|
4
4
|
import { StreamedGeometryFactory } from '../../../procoregl/StreamedGeometryFactory';
|
|
5
|
-
import { StreamedMeshServices } from './StreamedMeshServices';
|
|
5
|
+
import type { StreamedMeshServices } from './StreamedMeshServices';
|
|
6
6
|
export declare class PartitionProxy {
|
|
7
7
|
private pwfPartitionProxy;
|
|
8
|
-
|
|
8
|
+
meshServices: StreamedMeshServices;
|
|
9
9
|
static numberOfPartitions: number;
|
|
10
10
|
static numberOfPartitionsLoaded: number;
|
|
11
11
|
static currentNumberOfDownloading: number;
|
|
12
|
-
static prefetchingPartitions: boolean;
|
|
13
|
-
loadedToGPU: boolean;
|
|
14
12
|
isLoading: boolean;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
isLoaded: boolean;
|
|
14
|
+
meshRef2Meshnodes: Map<number, StreamedMeshnode[]>;
|
|
15
|
+
protected _meshnodes: StreamedMeshnode[];
|
|
16
|
+
protected _byteLength?: number;
|
|
17
|
+
protected _compressedByteLength: number;
|
|
18
18
|
private stats;
|
|
19
|
+
private static partitionDownloadManager;
|
|
19
20
|
constructor(params: {
|
|
20
21
|
pwfPartitionProxy: PWFPartitionProxy;
|
|
21
22
|
meshServices: StreamedMeshServices;
|
|
22
23
|
});
|
|
24
|
+
getMeshServices(): StreamedMeshServices;
|
|
23
25
|
meshCount(): number;
|
|
24
26
|
incrementMeshCount(numMeshes: number): void;
|
|
25
27
|
vertexCount(): number;
|
|
@@ -32,6 +34,8 @@ export declare class PartitionProxy {
|
|
|
32
34
|
meshnodes(): StreamedMeshnode[];
|
|
33
35
|
setMeshnodes(meshnodes: StreamedMeshnode[]): void;
|
|
34
36
|
loadPartitionData(callbackFn: (partition: Partition) => void): Promise<void>;
|
|
37
|
+
private loadPartitionMeshesToOPFS;
|
|
38
|
+
private parsePartition;
|
|
35
39
|
loadPartition(factory: StreamedGeometryFactory): Promise<void>;
|
|
36
40
|
size(): {
|
|
37
41
|
compressed: number;
|
|
@@ -40,4 +44,6 @@ export declare class PartitionProxy {
|
|
|
40
44
|
static processPartitionProxiesAB(partitionProxiesAB: ArrayBuffer, meshServices: StreamedMeshServices, callback: (partitionProxy: PartitionProxy) => void): void;
|
|
41
45
|
static getPartitionProxies(partitionProxiesAB: ArrayBuffer): PWFPartitionProxy[];
|
|
42
46
|
getContentOfPartitionUrl(): string;
|
|
47
|
+
static loadPartitions(partitionsSet: Set<PartitionProxy>): Promise<void>;
|
|
48
|
+
private loadPartitionWithManager;
|
|
43
49
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StreamedMeshGeometry } from '../../../procoregl/StreamedMeshGeometry';
|
|
2
2
|
import type { PWFV1 } from '../PWFV1';
|
|
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';
|
|
8
7
|
import { OPFSFile } from '../../../utils/OPFSFile';
|
|
9
8
|
import type { ValidatedFeatureFlags } from '../../../types/WebviewerOptions';
|
|
10
9
|
import type { ResourceDiscriminator } from '../../../Webviewer';
|
|
10
|
+
import type { PartitionProxy } from './PartitionProxy';
|
|
11
11
|
export declare class StreamedMeshServices extends MeshServices {
|
|
12
12
|
private readonly featureFlags;
|
|
13
13
|
private meshIndexToOPFSRecord;
|
|
@@ -25,9 +25,10 @@ export declare class StreamedMeshServices extends MeshServices {
|
|
|
25
25
|
closeOPFS(): Promise<void>;
|
|
26
26
|
writeMeshDataToOPFS(meshData: MeshData): Promise<void>;
|
|
27
27
|
getMeshObject(meshIndex: number): MeshObject;
|
|
28
|
-
|
|
28
|
+
loadPartitionProxy(partitionProxy: PartitionProxy): Promise<boolean>;
|
|
29
29
|
getMeshGeometryForOffsets(meshOffset: number, meshnodeOffset: number): StreamedMeshGeometry | undefined;
|
|
30
30
|
meshFromOffset(meshIndex: number): Mesh;
|
|
31
|
+
readMeshDataFromOPFS(meshIndex: number): MeshData;
|
|
31
32
|
private getCompressedMeshDataFromOPFS;
|
|
32
33
|
dispose(): Promise<void>;
|
|
33
34
|
}
|
|
@@ -3,12 +3,20 @@ import { Meshnode } from '../standard/Meshnode';
|
|
|
3
3
|
import { MeshnodeObject } from '../objects/MeshnodeObject';
|
|
4
4
|
import { PartitionProxy } from './PartitionProxy';
|
|
5
5
|
import { StreamedMeshGeometry } from '../../../procoregl/StreamedMeshGeometry';
|
|
6
|
+
import { PWFMeshnode } from '../interface/PWFMeshnode';
|
|
7
|
+
import type { PWFV1 } from '../PWFV1';
|
|
6
8
|
export declare class StreamedMeshnode extends Meshnode {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
_partitionProxy?: PartitionProxy;
|
|
10
|
+
_meshGeometries: Map<number, StreamedMeshGeometry>;
|
|
11
|
+
protected meshGeometriesValue: MeshGeometry[];
|
|
12
|
+
uploadedToGPU: boolean;
|
|
13
|
+
prefetching: boolean;
|
|
14
|
+
constructor(pwfMeshnode: PWFMeshnode, pwf: PWFV1, prefetching: boolean);
|
|
15
|
+
isPrefetching(): boolean;
|
|
9
16
|
setPartitionProxy(partitionProxy: PartitionProxy): void;
|
|
10
17
|
partitionProxy(): PartitionProxy;
|
|
11
18
|
meshGeometries(): MeshGeometry[];
|
|
19
|
+
uploadMeshDataToGPU(): Promise<void>;
|
|
12
20
|
setMeshGeometry(meshIndex: number, meshGeometry: StreamedMeshGeometry): void;
|
|
13
21
|
getMeshGeometry(meshIndex: number): StreamedMeshGeometry | undefined;
|
|
14
22
|
asObject(): MeshnodeObject;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MeshnodeServices } from '../standard
|
|
1
|
+
import { MeshnodeServices } from '../standard';
|
|
2
2
|
import { Meshnode } from '../standard/Meshnode';
|
|
3
3
|
import { PWFMeshnode } from '../interface/PWFMeshnode';
|
|
4
4
|
export declare class StreamedMeshnodeServices extends MeshnodeServices {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -65,7 +65,8 @@ export declare class PWFV2 implements PWF {
|
|
|
65
65
|
});
|
|
66
66
|
setStandardModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, meshAB: ArrayBuffer): void;
|
|
67
67
|
setPartitionedModelBuffers(nodeAB: ArrayBuffer, meshnodeAB: ArrayBuffer, partitionProxiesAB: ArrayBuffer): void;
|
|
68
|
-
|
|
68
|
+
setHPartitionedModelBuffers(_nodeAB: ArrayBuffer, _meshnodeAB: ArrayBuffer, _partitionProxiesAB: ArrayBuffer): void;
|
|
69
|
+
getPwfPartitionContentUrls(): Promise<string[]>;
|
|
69
70
|
initPwfParser(): void;
|
|
70
71
|
parsePwfNodes(): BootstrapperResult;
|
|
71
72
|
parsePwfMeshnodes(): BootstrapperResult;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { PWFPartitionProxy } from '../../interface/PWFPartitionProxy';
|
|
2
2
|
export declare class PartitionProxyBufferReader {
|
|
3
3
|
private buffer;
|
|
4
|
-
private numPartitionProxies;
|
|
5
4
|
constructor(buffer: ArrayBuffer);
|
|
6
|
-
getNumPartitionProxies(): number;
|
|
7
5
|
parse(): PWFPartitionProxy[];
|
|
8
6
|
private forEach;
|
|
9
|
-
static numProxies(partitionProxiesAB: ArrayBuffer): number;
|
|
10
7
|
}
|
|
@@ -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';
|
|
@@ -8,6 +8,7 @@ export type FeatureFlags = {
|
|
|
8
8
|
* @beta Enables writing mesh data to OPFS for partitioned models, which allows users to use features that use mesh data, notably Point to Point.
|
|
9
9
|
*/
|
|
10
10
|
enableMeshDataOnOPFS: boolean;
|
|
11
|
+
enableProgressiveLoading: boolean;
|
|
11
12
|
};
|
|
12
13
|
export type ValidatedFeatureFlags = Readonly<FeatureFlags>;
|
|
13
14
|
export type CommonOptions = {
|
|
@@ -17,3 +17,16 @@ export declare function toScreenPosition(params: {
|
|
|
17
17
|
}): Vector3;
|
|
18
18
|
export declare function serializeVector(vector: THREE.Vector3): string;
|
|
19
19
|
export declare function normalizeLine(line: THREE.Line3): string;
|
|
20
|
+
export declare function isNormalFacingCamera(normal: THREE.Vector3, cameraDirection: THREE.Vector3): boolean;
|
|
21
|
+
export declare function areNormalsSimilar(normal1: THREE.Vector3, normal2: THREE.Vector3, FACE_NORMAL_TOLERANCE?: number): boolean;
|
|
22
|
+
export declare function arePlanesCoplanar(normal1: THREE.Vector3, point1: THREE.Vector3, normal2: THREE.Vector3, point2: THREE.Vector3, COPLANAR_TOLERANCE?: number): boolean;
|
|
23
|
+
export declare function getNormalFromPoints(point1: THREE.Vector3, point2: THREE.Vector3, point3: THREE.Vector3): THREE.Vector3;
|
|
24
|
+
export declare function vector3FuzzyEqual(a: THREE.Vector3, b: THREE.Vector3, epsilon: number): boolean;
|
|
25
|
+
export declare function areLinesParallel(line1: {
|
|
26
|
+
start: THREE.Vector3;
|
|
27
|
+
end: THREE.Vector3;
|
|
28
|
+
}, line2: {
|
|
29
|
+
start: THREE.Vector3;
|
|
30
|
+
end: THREE.Vector3;
|
|
31
|
+
}): boolean;
|
|
32
|
+
export declare function arePointsCollinear(p1: THREE.Vector3, p2: THREE.Vector3, p3: THREE.Vector3, POINT_COLLINEAR_SQR?: number): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { normalizeLine, serializeVector, toScreenPosition, translateToLocalCoord, translateToWorldCoord, } from './MathHelper';
|
|
1
|
+
export { normalizeLine, serializeVector, toScreenPosition, translateToLocalCoord, translateToWorldCoord, isNormalFacingCamera, areNormalsSimilar, arePlanesCoplanar, getNormalFromPoints, vector3FuzzyEqual, areLinesParallel, arePointsCollinear, } from './MathHelper';
|
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>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/bim-webviewer-sdk",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.6.0-pl-17.6.0-blob.0",
|
|
4
4
|
"description": "Procore BIM Webviewer SDK",
|
|
5
5
|
"main": "dist/Procore.Bim.Webviewer.js",
|
|
6
6
|
"types": "dist/Procore.Bim.Webviewer.d.ts",
|
/package/dist/types/src/procoregl/MeshTopology/__tests__/{HalfEdge.test.d.ts → Edge.test.d.ts}
RENAMED
|
File without changes
|