@cognite/reveal 4.2.0-dev.20230503 → 4.2.0-dev.20230505
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.
|
@@ -5,6 +5,7 @@ import { Image360DataProvider, Image360Descriptor } from '../../../data-provider
|
|
|
5
5
|
import { Image360Revision } from './Image360Revision';
|
|
6
6
|
import { Image360VisualizationBox } from './Image360VisualizationBox';
|
|
7
7
|
import { ImageAnnotationObject } from '../annotation/ImageAnnotationObject';
|
|
8
|
+
import { Image360AnnotationAppearance } from '../annotation/types';
|
|
8
9
|
export declare class Image360RevisionEntity implements Image360Revision {
|
|
9
10
|
private readonly _imageProvider;
|
|
10
11
|
private readonly _image360Descriptor;
|
|
@@ -12,6 +13,7 @@ export declare class Image360RevisionEntity implements Image360Revision {
|
|
|
12
13
|
private _previewTextures;
|
|
13
14
|
private _fullResolutionTextures;
|
|
14
15
|
private _onFullResolutionCompleted;
|
|
16
|
+
private _defaultAppearance;
|
|
15
17
|
private _annotations;
|
|
16
18
|
constructor(imageProvider: Image360DataProvider, image360Descriptor: Image360Descriptor, image360VisualzationBox: Image360VisualizationBox);
|
|
17
19
|
/**
|
|
@@ -19,7 +21,7 @@ export declare class Image360RevisionEntity implements Image360Revision {
|
|
|
19
21
|
* @returns Date | undefined
|
|
20
22
|
*/
|
|
21
23
|
get date(): Date | undefined;
|
|
22
|
-
|
|
24
|
+
getAnnotations(): Promise<ImageAnnotationObject[]>;
|
|
23
25
|
intersectAnnotations(raycaster: THREE.Raycaster): ImageAnnotationObject | undefined;
|
|
24
26
|
/**
|
|
25
27
|
* Loads the textures needed for the 360 image (6 faces).
|
|
@@ -34,11 +36,12 @@ export declare class Image360RevisionEntity implements Image360Revision {
|
|
|
34
36
|
loadTextures(abortSignal?: AbortSignal): {
|
|
35
37
|
lowResolutionCompleted: Promise<void>;
|
|
36
38
|
fullResolutionCompleted: Promise<void>;
|
|
37
|
-
annotationsCompleted: Promise<void>;
|
|
38
39
|
};
|
|
39
40
|
private loadPreviewTextures;
|
|
40
41
|
private loadFullTextures;
|
|
41
|
-
private
|
|
42
|
+
private loadAndSetAnnotations;
|
|
43
|
+
setDefaultAppearance(appearance: Image360AnnotationAppearance): void;
|
|
44
|
+
private propagateDefaultAppearanceToAnnotations;
|
|
42
45
|
/**
|
|
43
46
|
* Clear the cached textures used by this revision.
|
|
44
47
|
*/
|
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.20230505",
|
|
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": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"html2canvas": "^1.4.1",
|
|
71
71
|
"lodash": "4.17.21",
|
|
72
72
|
"loglevel": "1.8.1",
|
|
73
|
-
"mixpanel-browser": "2.
|
|
73
|
+
"mixpanel-browser": "2.47.0",
|
|
74
74
|
"path-browserify": "1.0.1",
|
|
75
75
|
"random-seed": "0.3.0",
|
|
76
76
|
"rxjs": "7.8.1",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@types/jsdom": "21.1.1",
|
|
92
92
|
"@types/lodash": "4.14.194",
|
|
93
93
|
"@types/mixpanel-browser": "2.38.1",
|
|
94
|
-
"@types/node": "18.16.
|
|
94
|
+
"@types/node": "18.16.3",
|
|
95
95
|
"@types/random-seed": "0.3.3",
|
|
96
96
|
"@types/skmeans": "0.11.4",
|
|
97
97
|
"@types/stats": "0.16.30",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"jest-image-snapshot": "6.1.0",
|
|
122
122
|
"jest-puppeteer": "8.0.6",
|
|
123
123
|
"jsdom": "21.1.1",
|
|
124
|
-
"moq.ts": "10.0.
|
|
124
|
+
"moq.ts": "10.0.6",
|
|
125
125
|
"nock": "13.3.1",
|
|
126
126
|
"prettier": "2.8.8",
|
|
127
127
|
"process": "0.11.10",
|