@cognite/reveal 4.1.0-dev.20230126 → 4.1.0-dev.20230130
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 +58 -58
- package/dist/index.js.map +1 -1
- package/dist/packages/360-images/src/Image360LoadingCache.d.ts +1 -0
- package/dist/packages/360-images/src/Image360VisualizationBox.d.ts +1 -0
- package/dist/packages/camera-manager/src/StationaryCameraManager.d.ts +9 -3
- package/package.json +3 -3
|
@@ -13,6 +13,7 @@ export declare class Image360VisualizationBox implements Image360Visualization {
|
|
|
13
13
|
private readonly _visualizationState;
|
|
14
14
|
get opacity(): number;
|
|
15
15
|
set opacity(alpha: number);
|
|
16
|
+
get visible(): boolean;
|
|
16
17
|
set visible(isVisible: boolean);
|
|
17
18
|
set scale(newScale: THREE.Vector3);
|
|
18
19
|
set renderOrder(newRenderOrder: number);
|
|
@@ -12,6 +12,7 @@ export declare class StationaryCameraManager implements CameraManager {
|
|
|
12
12
|
private readonly _minFOV;
|
|
13
13
|
private readonly _stopEventTrigger;
|
|
14
14
|
private _isDragging;
|
|
15
|
+
private _downEventCache;
|
|
15
16
|
constructor(domElement: HTMLElement, camera: THREE.PerspectiveCamera);
|
|
16
17
|
getCamera(): THREE.PerspectiveCamera;
|
|
17
18
|
get defaultFOV(): number;
|
|
@@ -26,10 +27,15 @@ export declare class StationaryCameraManager implements CameraManager {
|
|
|
26
27
|
setFOV(fov: number): void;
|
|
27
28
|
update(_: number, boundingBox: THREE.Box3): void;
|
|
28
29
|
dispose(): void;
|
|
29
|
-
private
|
|
30
|
-
private
|
|
31
|
-
private readonly
|
|
30
|
+
private enableDragging;
|
|
31
|
+
private disableDragging;
|
|
32
|
+
private readonly onPointerUp;
|
|
33
|
+
private readonly onPointerDown;
|
|
34
|
+
private readonly onPointerMove;
|
|
35
|
+
private rotateCamera;
|
|
36
|
+
private pinchCamera;
|
|
32
37
|
private readonly zoomCamera;
|
|
33
38
|
private getCursorRay;
|
|
34
39
|
private getTarget;
|
|
40
|
+
private calculateDownEventDistance;
|
|
35
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.1.0-dev.
|
|
3
|
+
"version": "4.1.0-dev.20230130",
|
|
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": {
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"jest-extended": "3.2.3",
|
|
128
128
|
"jest-image-snapshot": "6.1.0",
|
|
129
129
|
"jest-puppeteer": "6.2.0",
|
|
130
|
-
"jsdom": "21.
|
|
130
|
+
"jsdom": "21.1.0",
|
|
131
131
|
"moq.ts": "10.0.2",
|
|
132
132
|
"nock": "13.3.0",
|
|
133
133
|
"prettier": "2.8.2",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"workerize-loader": "2.0.2"
|
|
154
154
|
},
|
|
155
155
|
"peerDependencies": {
|
|
156
|
-
"@cognite/sdk": "7.
|
|
156
|
+
"@cognite/sdk": "^7.16.0",
|
|
157
157
|
"three": "0.148.0"
|
|
158
158
|
},
|
|
159
159
|
"glslify": {
|