@cognite/reveal 4.2.0-dev.20230418 → 4.2.0-dev.20230419

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.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright 2022 Cognite AS
3
3
  */
4
- export { Image360 } from './src/entity/Image360';
4
+ export { Image360, Image360Metadata } from './src/entity/Image360';
5
5
  export { Image360Revision } from './src/entity/Image360Revision';
6
6
  export { Image360Collection } from './src/collection/Image360Collection';
7
7
  export { Image360Facade } from './src/Image360Facade';
@@ -3,6 +3,11 @@
3
3
  */
4
4
  import { Image360Revision } from './Image360Revision';
5
5
  import { Image360Visualization } from './Image360Visualization';
6
+ export type Image360Metadata = {
7
+ station: string;
8
+ collection: string;
9
+ date?: Date;
10
+ };
6
11
  export interface Image360 {
7
12
  /**
8
13
  * Get a copy of the model-to-world transformation matrix
@@ -15,6 +20,10 @@ export interface Image360 {
15
20
  * @returns Image360Visualization
16
21
  */
17
22
  readonly image360Visualization: Image360Visualization;
23
+ /**
24
+ * Get additional information about this image and its active revision.
25
+ */
26
+ getImageMetadata(): Image360Metadata;
18
27
  /**
19
28
  * List all historical images for this entity.
20
29
  * @returns A list of available revisions.
@@ -4,12 +4,13 @@
4
4
  import { SceneHandler } from '../../../utilities';
5
5
  import { Image360FileProvider } from '../../../data-providers';
6
6
  import { Image360Icon } from '../icons/Image360Icon';
7
- import { Image360 } from './Image360';
7
+ import { Image360, Image360Metadata } from './Image360';
8
8
  import { Historical360ImageSet } from '../../../data-providers/src/types';
9
9
  import { Image360RevisionEntity } from './Image360RevisionEntity';
10
10
  import { Image360VisualizationBox } from './Image360VisualizationBox';
11
11
  export declare class Image360Entity implements Image360 {
12
12
  private readonly _revisions;
13
+ private readonly _imageMetadata;
13
14
  private readonly _transform;
14
15
  private readonly _image360Icon;
15
16
  private readonly _image360VisualzationBox;
@@ -53,6 +54,7 @@ export declare class Image360Entity implements Image360 {
53
54
  * Drops the GPU resources for the 360 image
54
55
  */
55
56
  unloadImage(): void;
57
+ getImageMetadata(): Image360Metadata;
56
58
  /**
57
59
  * @obvious
58
60
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/reveal",
3
- "version": "4.2.0-dev.20230418",
3
+ "version": "4.2.0-dev.20230419",
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": {