@cognite/reveal 4.2.0-dev.20230505 → 4.2.0-dev.20230508
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/dist/index.js +174 -178
- package/dist/index.js.map +1 -1
- package/dist/packages/360-images/src/collection/DefaultImage360Collection.d.ts +1 -1
- package/dist/packages/360-images/src/collection/Image360Collection.d.ts +1 -1
- package/dist/packages/cad-model/src/wrappers/CadNode.d.ts +1 -0
- package/dist/packages/utilities/index.d.ts +0 -1
- package/package.json +6 -6
- package/dist/packages/utilities/src/three/BoundingBoxLOD.d.ts +0 -27
|
@@ -83,5 +83,5 @@ export declare class DefaultImage360Collection implements Image360Collection {
|
|
|
83
83
|
get needsRedraw(): boolean;
|
|
84
84
|
resetRedraw(): void;
|
|
85
85
|
get defaultStyle(): Image360AnnotationAppearance;
|
|
86
|
-
|
|
86
|
+
setDefaultAnnotationStyle(defaultStyle: Image360AnnotationAppearance): void;
|
|
87
87
|
}
|
|
@@ -20,6 +20,7 @@ export declare class CadNode extends Object3D {
|
|
|
20
20
|
private readonly _batchedGeometryMeshGroup;
|
|
21
21
|
private readonly _styledTreeIndexSets;
|
|
22
22
|
private _needsRedraw;
|
|
23
|
+
readonly type = "CadNode";
|
|
23
24
|
constructor(model: CadModelMetadata, materialManager: CadMaterialManager, sectorRepository: SectorRepository);
|
|
24
25
|
get needsRedraw(): boolean;
|
|
25
26
|
resetRedraw(): void;
|
|
@@ -14,7 +14,6 @@ export { IndexSet } from './src/IndexSet';
|
|
|
14
14
|
export { DynamicDefragmentedBuffer } from './src/datastructures/DynamicDefragmentedBuffer';
|
|
15
15
|
export { AttributeDataAccessor } from './src/three/AttributeDataAccessor';
|
|
16
16
|
export { AutoDisposeGroup } from './src/three/AutoDisposeGroup';
|
|
17
|
-
export { BoundingBoxLOD } from './src/three/BoundingBoxLOD';
|
|
18
17
|
export { toThreeBox3 } from './src/three/toThreeBox3';
|
|
19
18
|
export { fromThreeVector3 } from './src/three/fromThreeVector3';
|
|
20
19
|
export { unionBoxes } from './src/three/unionBoxes';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.2.0-dev.
|
|
3
|
+
"version": "4.2.0-dev.20230508",
|
|
4
4
|
"description": "WebGL based 3D viewer for CAD and point clouds processed in Cognite Data Fusion.",
|
|
5
5
|
"homepage": "https://github.com/cognitedata/reveal/tree/master/viewer",
|
|
6
6
|
"repository": {
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"rxjs": "7.8.1",
|
|
77
77
|
"skmeans": "0.11.3",
|
|
78
78
|
"sparse-octree": "7.1.6",
|
|
79
|
-
"three-stdlib": "2.21.
|
|
79
|
+
"three-stdlib": "2.21.10"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@azure/msal-browser": "2.36.0",
|
|
83
|
-
"@cognite/sdk": "8.1.
|
|
83
|
+
"@cognite/sdk": "8.1.1",
|
|
84
84
|
"@microsoft/api-extractor": "^7.33.6",
|
|
85
85
|
"@types/dat.gui": "0.7.9",
|
|
86
86
|
"@types/gl": "^6.0.2",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@types/random-seed": "0.3.3",
|
|
96
96
|
"@types/skmeans": "0.11.4",
|
|
97
97
|
"@types/stats": "0.16.30",
|
|
98
|
-
"@types/three": "0.
|
|
98
|
+
"@types/three": "0.152.0",
|
|
99
99
|
"@types/tween.js": "18.5.1",
|
|
100
100
|
"@typescript-eslint/eslint-plugin": "5.59.1",
|
|
101
101
|
"@typescript-eslint/parser": "5.59.1",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"resize-observer-polyfill": "1.5.1",
|
|
133
133
|
"shx": "0.3.4",
|
|
134
134
|
"stats.js": "0.17.0",
|
|
135
|
-
"three": "0.
|
|
135
|
+
"three": "0.152.2",
|
|
136
136
|
"ts-jest": "29.1.0",
|
|
137
137
|
"ts-loader": "9.4.2",
|
|
138
138
|
"tsc-alias": "1.8.6",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
},
|
|
148
148
|
"peerDependencies": {
|
|
149
149
|
"@cognite/sdk": "^7.16.0 || ^8.0.0",
|
|
150
|
-
"three": "0.
|
|
150
|
+
"three": "0.152.2"
|
|
151
151
|
},
|
|
152
152
|
"glslify": {
|
|
153
153
|
"transform": [
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
/**
|
|
6
|
-
* Class similar to THREE.LOD except that it doesn't use `matrixWorld` to determine distance to camera, but a
|
|
7
|
-
* bounding box.
|
|
8
|
-
*/
|
|
9
|
-
export declare class BoundingBoxLOD extends THREE.Object3D {
|
|
10
|
-
private readonly _boundingBox;
|
|
11
|
-
private _activeLevel;
|
|
12
|
-
private readonly _levels;
|
|
13
|
-
readonly isLOD = true;
|
|
14
|
-
readonly autoUpdate = true;
|
|
15
|
-
constructor(boundingBox: THREE.Box3);
|
|
16
|
-
setBoundingBox(boundingBox: THREE.Box3): void;
|
|
17
|
-
addLevel(object: THREE.Object3D, distance?: number): void;
|
|
18
|
-
/**
|
|
19
|
-
* Returns the index of the current active LOD. 0 means highest detail.
|
|
20
|
-
*/
|
|
21
|
-
getCurrentLevel(): number;
|
|
22
|
-
/**
|
|
23
|
-
* Update selected LOD level based on distance to camera.
|
|
24
|
-
*/
|
|
25
|
-
update(camera: THREE.Camera): void;
|
|
26
|
-
private updateCurrentLevel;
|
|
27
|
-
}
|