@cognite/reveal 4.11.0 → 4.12.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.
@@ -3,6 +3,7 @@ import { Image360Collection, Image360Entity, Image360, IconsOptions, Image360Rev
3
3
  import { Image360DataModelIdentifier } from '../../../data-providers';
4
4
  import { BeforeSceneRenderedDelegate, EventTrigger, InputHandler, SceneHandler } from '../../../utilities';
5
5
  import { ProxyCameraManager } from '../../../camera-manager';
6
+ import { Image360WithCollection } from '../public/types';
6
7
  export declare class Image360ApiHelper {
7
8
  private readonly _image360Facade;
8
9
  private readonly _domElement;
@@ -23,6 +24,7 @@ export declare class Image360ApiHelper {
23
24
  getImageCollections(): Image360Collection[];
24
25
  remove360Images(entities: Image360[]): Promise<void>;
25
26
  remove360ImageCollection(collection: Image360Collection): void;
27
+ getCurrentlyEnteredImageInfo(): Image360WithCollection | undefined;
26
28
  enter360Image(image360Entity: Image360Entity, revision?: Image360RevisionEntity): Promise<void>;
27
29
  private applyFullResolutionTextures;
28
30
  private transition;
@@ -6,7 +6,7 @@ import { PointerEventDelegate, SceneRenderedDelegate, DisposedDelegate, BeforeSc
6
6
  import { CogniteCadModel } from '../../../../cad-model';
7
7
  import { PointCloudBudget, CognitePointCloudModel } from '../../../../pointclouds';
8
8
  import { AddImage360Options, AddModelOptions, Cognite3DViewerOptions, Intersection, CadModelBudget, ResolutionOptions, RenderParameters } from './types';
9
- import { CogniteModel } from '../types';
9
+ import { CogniteModel, Image360WithCollection } from '../types';
10
10
  import { ViewerState } from '../../utilities/ViewStateHelper';
11
11
  import { CameraManager, CameraChangeDelegate, CameraStopDelegate } from '../../../../camera-manager';
12
12
  import { Image360DataModelIdentifier } from '../../../../data-providers';
@@ -299,6 +299,10 @@ export declare class Cognite3DViewer {
299
299
  * Returns a list of added 360 image collections.
300
300
  */
301
301
  get360ImageCollections(): Image360Collection[];
302
+ /**
303
+ * Returns the currently entered 360 image.
304
+ */
305
+ getActive360ImageInfo(): Image360WithCollection | undefined;
302
306
  /**
303
307
  * Remove a set of 360 images.
304
308
  * @param image360Entities
@@ -1,6 +1,7 @@
1
1
  /*!
2
2
  * Copyright 2021 Cognite AS
3
3
  */
4
+ import { Image360, Image360Collection } from '../../../360-images';
4
5
  import { CogniteCadModel } from '../../../cad-model';
5
6
  import { CognitePointCloudModel } from '../../../pointclouds';
6
7
  /**
@@ -9,4 +10,11 @@ import { CognitePointCloudModel } from '../../../pointclouds';
9
10
  export type CogniteModel = CogniteCadModel | CognitePointCloudModel;
10
11
  export { WellKnownAsprsPointClassCodes } from '../../../pointclouds';
11
12
  export { PointShape, PointColorType, PointSizeType } from '../../../rendering';
13
+ /**
14
+ * A tuple of a 360 image and its collection.
15
+ */
16
+ export type Image360WithCollection = {
17
+ image360Collection: Image360Collection;
18
+ image360: Image360;
19
+ };
12
20
  export * from './migration/types';
@@ -28,7 +28,6 @@ export declare class FlexibleControls extends EventDispatcher<FlexibleControlsEv
28
28
  private readonly _keyboard;
29
29
  private readonly _touchEvents;
30
30
  private _getPickedPointByPixelCoordinates;
31
- private _rawCameraRotation;
32
31
  private readonly _reusableVector3s;
33
32
  private readonly _rotationHelper;
34
33
  private _mouseDragInfo;
@@ -34,6 +34,7 @@ export declare class FlexibleControlsOptions {
34
34
  mouseRotationSpeedPolar: number;
35
35
  keyboardRotationSpeedAzimuth: number;
36
36
  keyboardRotationSpeedPolar: number;
37
+ keyboardFastRotationFactor: number;
37
38
  zoomFraction: number;
38
39
  minOrthographicZoom: number;
39
40
  maxOrthographicZoom: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/reveal",
3
- "version": "4.11.0",
3
+ "version": "4.12.0",
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": {