@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
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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
/package/dist/types/src/procoregl/MeshTopology/__tests__/{HalfEdge.test.d.ts → Edge.test.d.ts}
RENAMED
|
File without changes
|