@cognite/reveal 4.2.0-dev.20230525 → 4.2.0-dev.20230526
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 +25 -25
- package/dist/index.js.map +1 -1
- package/dist/packages/360-images/src/collection/DefaultImage360Collection.d.ts +3 -1
- package/dist/packages/360-images/src/collection/Image360Collection.d.ts +10 -0
- package/dist/packages/360-images/src/entity/Image360.d.ts +1 -1
- package/dist/packages/360-images/src/entity/Image360Entity.d.ts +2 -2
- package/dist/packages/360-images/src/entity/Image360Revision.d.ts +6 -2
- package/dist/packages/360-images/src/entity/Image360RevisionEntity.d.ts +7 -6
- package/dist/packages/api/src/public/migration/Cognite3DViewer.d.ts +2 -2
- package/dist/packages/data-providers/src/types.d.ts +2 -2
- package/package.json +3 -3
|
@@ -29,7 +29,9 @@ export declare class DefaultImage360Collection implements Image360Collection {
|
|
|
29
29
|
private readonly _icons;
|
|
30
30
|
private _isCollectionVisible;
|
|
31
31
|
private readonly _collectionId;
|
|
32
|
+
private readonly _collectionLabel;
|
|
32
33
|
get id(): string;
|
|
34
|
+
get label(): string | undefined;
|
|
33
35
|
get targetRevisionDate(): Date | undefined;
|
|
34
36
|
set targetRevisionDate(date: Date | undefined);
|
|
35
37
|
/**
|
|
@@ -40,7 +42,7 @@ export declare class DefaultImage360Collection implements Image360Collection {
|
|
|
40
42
|
image360Exited: EventTrigger<Image360ExitedDelegate>;
|
|
41
43
|
};
|
|
42
44
|
get isCollectionVisible(): boolean;
|
|
43
|
-
constructor(collectionId: string, entities: Image360Entity[], icons: IconCollection, image360DataProvider: Image360DataProvider);
|
|
45
|
+
constructor(collectionId: string, collectionLabel: string | undefined, entities: Image360Entity[], icons: IconCollection, image360DataProvider: Image360DataProvider);
|
|
44
46
|
/**
|
|
45
47
|
* Subscribes to events on 360 Image datasets. There are several event types:
|
|
46
48
|
* 'image360Entered' - Subscribes to a event for entering 360 image mode.
|
|
@@ -34,6 +34,16 @@ export type Image360AnnotationAssetQueryResult = {
|
|
|
34
34
|
* A wrapper that represents a set of 360 images.
|
|
35
35
|
*/
|
|
36
36
|
export interface Image360Collection {
|
|
37
|
+
/**
|
|
38
|
+
* The id of the collection.
|
|
39
|
+
* @returns The id of the collection.
|
|
40
|
+
*/
|
|
41
|
+
readonly id: string;
|
|
42
|
+
/**
|
|
43
|
+
* The label of the collection.
|
|
44
|
+
* @returns The label of the collection.
|
|
45
|
+
*/
|
|
46
|
+
readonly label: string | undefined;
|
|
37
47
|
/**
|
|
38
48
|
* A list containing all the 360 images in this set.
|
|
39
49
|
*/
|
|
@@ -28,7 +28,7 @@ export interface Image360 {
|
|
|
28
28
|
* Get label of 360 image entity.
|
|
29
29
|
* @returns Station label
|
|
30
30
|
* */
|
|
31
|
-
readonly label: string;
|
|
31
|
+
readonly label: string | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* List all historical images for this entity.
|
|
34
34
|
* @returns A list of available revisions.
|
|
@@ -15,7 +15,7 @@ export declare class Image360Entity implements Image360 {
|
|
|
15
15
|
private readonly _imageMetadata;
|
|
16
16
|
private readonly _transform;
|
|
17
17
|
private readonly _image360Icon;
|
|
18
|
-
private readonly
|
|
18
|
+
private readonly _image360VisualizationBox;
|
|
19
19
|
private _activeRevision;
|
|
20
20
|
/**
|
|
21
21
|
* Get a copy of the model-to-world transformation matrix
|
|
@@ -43,7 +43,7 @@ export declare class Image360Entity implements Image360 {
|
|
|
43
43
|
* Get label of 360 image entity.
|
|
44
44
|
* @returns Station label
|
|
45
45
|
* */
|
|
46
|
-
get label(): string;
|
|
46
|
+
get label(): string | undefined;
|
|
47
47
|
constructor(image360Metadata: Historical360ImageSet, sceneHandler: SceneHandler, imageProvider: Image360DataProvider, annotationFilterer: Image360AnnotationFilter, transform: THREE.Matrix4, icon: Overlay3DIcon, device: DeviceDescriptor);
|
|
48
48
|
/**
|
|
49
49
|
* List all historical images for this entity.
|
|
@@ -8,12 +8,16 @@ import { Image360Annotation } from '../annotation/Image360Annotation';
|
|
|
8
8
|
*/
|
|
9
9
|
export interface Image360Revision {
|
|
10
10
|
/**
|
|
11
|
-
* The date of this revision. Undefined if the
|
|
11
|
+
* The date of this revision. Undefined if the revision is undated.
|
|
12
12
|
* @returns Date | undefined
|
|
13
13
|
*/
|
|
14
14
|
readonly date: Date | undefined;
|
|
15
15
|
/**
|
|
16
|
-
* The annotations associated with this revision
|
|
16
|
+
* The annotations associated with this revision.
|
|
17
17
|
*/
|
|
18
18
|
getAnnotations(): Promise<Image360Annotation[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Get the thumbnail url for this revision.
|
|
21
|
+
*/
|
|
22
|
+
getPreviewThumbnailUrl(): Promise<string | undefined>;
|
|
19
23
|
}
|
|
@@ -10,16 +10,16 @@ import { Image360AnnotationFilter } from '../annotation/Image360AnnotationFilter
|
|
|
10
10
|
export declare class Image360RevisionEntity implements Image360Revision {
|
|
11
11
|
private readonly _imageProvider;
|
|
12
12
|
private readonly _image360Descriptor;
|
|
13
|
-
private readonly
|
|
13
|
+
private readonly _image360VisualizationBox;
|
|
14
14
|
private _previewTextures;
|
|
15
15
|
private _fullResolutionTextures;
|
|
16
16
|
private _onFullResolutionCompleted;
|
|
17
17
|
private _defaultAppearance;
|
|
18
18
|
private _annotations;
|
|
19
19
|
private readonly _annotationFilterer;
|
|
20
|
-
constructor(imageProvider: Image360DataProvider, image360Descriptor: Image360Descriptor,
|
|
20
|
+
constructor(imageProvider: Image360DataProvider, image360Descriptor: Image360Descriptor, image360VisualizationBox: Image360VisualizationBox, annotationFilterer: Image360AnnotationFilter);
|
|
21
21
|
/**
|
|
22
|
-
* The date of this revision. Undefined if the
|
|
22
|
+
* The date of this revision. Undefined if the revision is undated.
|
|
23
23
|
* @returns Date | undefined
|
|
24
24
|
*/
|
|
25
25
|
get date(): Date | undefined;
|
|
@@ -30,7 +30,7 @@ export declare class Image360RevisionEntity implements Image360Revision {
|
|
|
30
30
|
*
|
|
31
31
|
* This will start the download of both low and full resolution textures and return one promise for when each texture set is ready.
|
|
32
32
|
* If the low resolution images are completed first the full resolution download and texture loading will continue in the background,
|
|
33
|
-
* and applyFullResolutionTextures can be called to apply full resolution textures to the
|
|
33
|
+
* and applyFullResolutionTextures can be called to apply full resolution textures to the image360VisualizationBox at a desired time.
|
|
34
34
|
*
|
|
35
35
|
* @returns lowResolutionCompleted A promise for when the low resolution images are done loading.
|
|
36
36
|
* @returns fullResolutionCompleted A promise for when the full resolution images are done loading.
|
|
@@ -39,6 +39,7 @@ export declare class Image360RevisionEntity implements Image360Revision {
|
|
|
39
39
|
lowResolutionCompleted: Promise<void>;
|
|
40
40
|
fullResolutionCompleted: Promise<void>;
|
|
41
41
|
};
|
|
42
|
+
getPreviewThumbnailUrl(face?: 'front' | 'back' | 'left' | 'right' | 'top' | 'bottom'): Promise<string | undefined>;
|
|
42
43
|
private loadPreviewTextures;
|
|
43
44
|
private loadFullTextures;
|
|
44
45
|
private loadAndSetAnnotations;
|
|
@@ -49,11 +50,11 @@ export declare class Image360RevisionEntity implements Image360Revision {
|
|
|
49
50
|
*/
|
|
50
51
|
dispose(): void;
|
|
51
52
|
/**
|
|
52
|
-
* Apply cached textures to the
|
|
53
|
+
* Apply cached textures to the image360VisualizationBox.
|
|
53
54
|
*/
|
|
54
55
|
applyTextures(): void;
|
|
55
56
|
/**
|
|
56
|
-
* Apply full resolution textures to the
|
|
57
|
+
* Apply full resolution textures to the image360VisualizationBox.
|
|
57
58
|
* This has no effect if full resolution has already been applied.
|
|
58
59
|
*/
|
|
59
60
|
applyFullResolutionTextures(): Promise<void>;
|
|
@@ -114,10 +114,10 @@ export declare class Cognite3DViewer {
|
|
|
114
114
|
/**
|
|
115
115
|
* Dispose of WebGL resources. Can be used to free up memory when the viewer is no longer in use.
|
|
116
116
|
* @see {@link https://threejs.org/docs/#manual/en/introduction/How-to-dispose-of-objects}
|
|
117
|
-
* ```
|
|
117
|
+
* ```js
|
|
118
118
|
* // Viewer is no longer in use, free up memory
|
|
119
119
|
* viewer.dispose();
|
|
120
|
-
*
|
|
120
|
+
* ```
|
|
121
121
|
*/
|
|
122
122
|
dispose(): void;
|
|
123
123
|
/**
|
|
@@ -29,9 +29,9 @@ export type Image360Descriptor = {
|
|
|
29
29
|
};
|
|
30
30
|
export type Image360EventDescriptor = {
|
|
31
31
|
id: string;
|
|
32
|
-
label: string;
|
|
32
|
+
label: string | undefined;
|
|
33
33
|
collectionId: string;
|
|
34
|
-
collectionLabel: string;
|
|
34
|
+
collectionLabel: string | undefined;
|
|
35
35
|
transform: THREE.Matrix4;
|
|
36
36
|
};
|
|
37
37
|
export type Image360Face = {
|
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.20230526",
|
|
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.
|
|
79
|
+
"three-stdlib": "2.21.12"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@azure/msal-browser": "2.37.0",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
112
112
|
"file-loader": "6.2.0",
|
|
113
113
|
"gl": "6.0.2",
|
|
114
|
-
"glob": "10.2.
|
|
114
|
+
"glob": "10.2.6",
|
|
115
115
|
"glslify-loader": "2.0.0",
|
|
116
116
|
"html-webpack-plugin": "5.5.1",
|
|
117
117
|
"jest": "29.5.0",
|