@cognite/reveal 4.2.0-dev.20230530 → 4.2.0-dev.20230601

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.
@@ -7,6 +7,7 @@ import { Image360Entity } from '../entity/Image360Entity';
7
7
  import { Image360EnteredDelegate, Image360ExitedDelegate } from '../types';
8
8
  import { IconCollection, IconCullingScheme } from '../icons/IconCollection';
9
9
  import { Image360AnnotationAppearance } from '../annotation/types';
10
+ import { IdEither } from '@cognite/sdk';
10
11
  import { Image360DataProvider } from '../../../data-providers';
11
12
  /**
12
13
  * Default implementation of {@link Image360Collection}. Used for events when entering
@@ -80,4 +81,5 @@ export declare class DefaultImage360Collection implements Image360Collection {
80
81
  getDefaultAnnotationStyle(): Image360AnnotationAppearance;
81
82
  setDefaultAnnotationStyle(defaultStyle: Image360AnnotationAppearance): void;
82
83
  findImageAnnotation(filter: Image360AnnotationAssetFilter): Promise<Image360AnnotationAssetQueryResult[]>;
84
+ getAssetIds(): Promise<IdEither[]>;
83
85
  }
@@ -92,4 +92,8 @@ export interface Image360Collection {
92
92
  * Find 360 images associated with a asset with the given assetRef
93
93
  */
94
94
  findImageAnnotation(filter: Image360AnnotationAssetFilter): Promise<Image360AnnotationAssetQueryResult[]>;
95
+ /**
96
+ * Get IDs of all CDF assets associated with this 360 image collection through CDF annotations
97
+ */
98
+ getAssetIds(): Promise<IdEither[]>;
95
99
  }
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Copyright 2022 Cognite AS
3
3
  */
4
- import { Image360DescriptorProvider, Image360FileProvider, Image360AnnotationProvider } from './types';
4
+ import { Image360DescriptorProvider, Image360FileProvider, Image360AnnotationProvider, Image360AssetProvider } from './types';
5
5
  export interface Image360Provider<T> extends Image360DescriptorProvider<T>, Image360DataProvider {
6
6
  }
7
- export interface Image360DataProvider extends Image360FileProvider, Image360AnnotationProvider {
7
+ export interface Image360DataProvider extends Image360FileProvider, Image360AnnotationProvider, Image360AssetProvider {
8
8
  }
@@ -24,5 +24,5 @@ export declare class Cdf360ImageEventProvider implements Image360Provider<Metada
24
24
  }[], abortSignal?: AbortSignal): Promise<ArrayBuffer[]>;
25
25
  private getDownloadUrls;
26
26
  private parseEventMetadata;
27
- get360ImageFaces(): Promise<void>;
27
+ get360ImageAssets(image360FileDescriptors: Image360FileDescriptor[]): Promise<IdEither[]>;
28
28
  }
@@ -9,4 +9,5 @@ export declare class Local360ImageProvider implements Image360Provider<unknown>
9
9
  get360ImageFiles(image360FaceDescriptors: Image360FileDescriptor[], abortSignal?: AbortSignal): Promise<Image360Face[]>;
10
10
  getLowResolution360ImageFiles(image360FaceDescriptors: Image360FileDescriptor[], abortSignal?: AbortSignal): Promise<Image360Face[]>;
11
11
  getFilesByAssetRef(_assetId: IdEither): Promise<CogniteInternalId[]>;
12
+ get360ImageAssets(_image360FileDescriptors: Image360FileDescriptor[]): Promise<IdEither[]>;
12
13
  }
@@ -20,6 +20,9 @@ export interface Image360FileProvider {
20
20
  get360ImageFiles(image360FaceDescriptors: Image360FileDescriptor[], abortSignal?: AbortSignal): Promise<Image360Face[]>;
21
21
  getLowResolution360ImageFiles(image360FaceDescriptors: Image360FileDescriptor[], abortSignal?: AbortSignal): Promise<Image360Face[]>;
22
22
  }
23
+ export interface Image360AssetProvider {
24
+ get360ImageAssets(image360FileDescriptors: Image360FileDescriptor[]): Promise<IdEither[]>;
25
+ }
23
26
  export type Historical360ImageSet = Image360EventDescriptor & {
24
27
  imageRevisions: Image360Descriptor[];
25
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/reveal",
3
- "version": "4.2.0-dev.20230530",
3
+ "version": "4.2.0-dev.20230601",
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,7 +76,7 @@
76
76
  "rxjs": "7.8.1",
77
77
  "skmeans": "0.11.3",
78
78
  "sparse-octree": "7.1.6",
79
- "three-stdlib": "2.21.12"
79
+ "three-stdlib": "2.22.4"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@azure/msal-browser": "2.37.0",
@@ -89,23 +89,23 @@
89
89
  "@types/jest-environment-puppeteer": "5.0.3",
90
90
  "@types/jest-image-snapshot": "6.1.0",
91
91
  "@types/jsdom": "21.1.1",
92
- "@types/lodash": "4.14.194",
92
+ "@types/lodash": "4.14.195",
93
93
  "@types/mixpanel-browser": "2.38.1",
94
- "@types/node": "18.16.14",
94
+ "@types/node": "18.16.16",
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.152.0",
98
+ "@types/three": "0.152.1",
99
99
  "@types/tween.js": "18.5.1",
100
- "@typescript-eslint/eslint-plugin": "5.59.6",
101
- "@typescript-eslint/parser": "5.59.6",
100
+ "@typescript-eslint/eslint-plugin": "5.59.7",
101
+ "@typescript-eslint/parser": "5.59.7",
102
102
  "concurrently": "8.0.1",
103
103
  "cross-env": "7.0.3",
104
104
  "dat.gui": "0.7.9",
105
105
  "eslint": "8.41.0",
106
106
  "eslint-config-prettier": "8.8.0",
107
107
  "eslint-plugin-header": "3.1.1",
108
- "eslint-plugin-jsdoc": "44.2.4",
108
+ "eslint-plugin-jsdoc": "44.2.7",
109
109
  "eslint-plugin-lodash": "7.4.0",
110
110
  "eslint-plugin-prettier": "4.2.1",
111
111
  "eslint-plugin-unused-imports": "2.0.0",
@@ -120,12 +120,12 @@
120
120
  "jest-extended": "3.2.4",
121
121
  "jest-image-snapshot": "6.1.0",
122
122
  "jest-puppeteer": "8.0.6",
123
- "jsdom": "22.0.0",
123
+ "jsdom": "22.1.0",
124
124
  "moq.ts": "10.0.6",
125
125
  "nock": "13.3.1",
126
126
  "prettier": "2.8.8",
127
127
  "process": "0.11.10",
128
- "puppeteer": "20.2.1",
128
+ "puppeteer": "20.4.0",
129
129
  "random-seed": "0.3.0",
130
130
  "raw-loader": "4.0.2",
131
131
  "remove-files-webpack-plugin": "1.5.0",
@@ -134,11 +134,11 @@
134
134
  "stats.js": "0.17.0",
135
135
  "three": "0.152.2",
136
136
  "ts-jest": "29.1.0",
137
- "ts-loader": "9.4.2",
137
+ "ts-loader": "9.4.3",
138
138
  "tsc-alias": "1.8.6",
139
139
  "typescript": "5.0.4",
140
140
  "wasm-pack": "0.11.1",
141
- "webpack": "5.83.1",
141
+ "webpack": "5.84.1",
142
142
  "webpack-cli": "5.1.1",
143
143
  "webpack-dev-server": "4.15.0",
144
144
  "webpack-node-externals": "3.0.0",