@cognite/reveal 4.18.0 → 4.19.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.
- package/dist/index.js +37 -45
- package/dist/index.js.map +1 -1
- package/dist/packages/360-images/src/collection/DefaultImage360Collection.d.ts +7 -9
- package/dist/packages/360-images/src/collection/Image360Collection.d.ts +30 -0
- package/dist/packages/360-images/src/entity/Image360VisualizationBox.d.ts +6 -5
- package/dist/packages/360-images/src/icons/IconCollection.d.ts +4 -0
- package/dist/packages/3d-overlays/src/Overlay3DIcon.d.ts +1 -1
- package/dist/packages/3d-overlays/src/OverlayPointsObject.d.ts +6 -0
- package/package.json +1 -1
|
@@ -65,16 +65,14 @@ export declare class DefaultImage360Collection implements Image360Collection {
|
|
|
65
65
|
* @param pointLimit Limit the number of points within the given radius. Points closer to the camera will be prioritized.
|
|
66
66
|
*/
|
|
67
67
|
set360IconCullingRestrictions(radius: number, pointLimit: number): void;
|
|
68
|
-
/**
|
|
69
|
-
* Gets visibility of all 360 image icons.
|
|
70
|
-
* @returns true if all icons are visible, false if all icons are invisible
|
|
71
|
-
*/
|
|
72
68
|
getIconsVisibility(): boolean;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
setIconsVisibility(value: boolean): void;
|
|
70
|
+
isOccludedIconsVisible(): boolean;
|
|
71
|
+
setOccludedIconsVisible(value: boolean): void;
|
|
72
|
+
getIconsOpacity(): number;
|
|
73
|
+
setIconsOpacity(value: number): void;
|
|
74
|
+
getImagesOpacity(): number;
|
|
75
|
+
setImagesOpacity(value: number): void;
|
|
78
76
|
/**
|
|
79
77
|
* Unsubscribes from 360 image dataset event.
|
|
80
78
|
* @param event The event type.
|
|
@@ -100,6 +100,36 @@ export interface Image360Collection {
|
|
|
100
100
|
* @param visible If true all icons are made visible according to the active culling scheme. If false all icons are hidden.
|
|
101
101
|
*/
|
|
102
102
|
setIconsVisibility(visible: boolean): void;
|
|
103
|
+
/**
|
|
104
|
+
* Check if the occluded icons are visible
|
|
105
|
+
* @returns true is occluded icons are visible
|
|
106
|
+
*/
|
|
107
|
+
isOccludedIconsVisible(): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Set the occluded icons visible
|
|
110
|
+
* @param visible
|
|
111
|
+
*/
|
|
112
|
+
setOccludedIconsVisible(visible: boolean): void;
|
|
113
|
+
/**
|
|
114
|
+
* Get the opacity of the images
|
|
115
|
+
* @returns The opacity of the images
|
|
116
|
+
*/
|
|
117
|
+
getImagesOpacity(): number;
|
|
118
|
+
/**
|
|
119
|
+
* Set the opacity of the images
|
|
120
|
+
* @param opacity The opacity of the images
|
|
121
|
+
*/
|
|
122
|
+
setImagesOpacity(opacity: number): void;
|
|
123
|
+
/**
|
|
124
|
+
* Get the opacity of the icons
|
|
125
|
+
* @returns The opacity of the icons
|
|
126
|
+
*/
|
|
127
|
+
getIconsOpacity(): number;
|
|
128
|
+
/**
|
|
129
|
+
* Set the opacity of the icons
|
|
130
|
+
* @param opacity The opacity of the icons
|
|
131
|
+
*/
|
|
132
|
+
setIconsOpacity(opacity: number): void;
|
|
103
133
|
/**
|
|
104
134
|
* Subscribes to events on 360 Image datasets. There are several event types:
|
|
105
135
|
* 'image360Entered' - Subscribes to a event for entering 360 image mode.
|
|
@@ -6,6 +6,7 @@ import { DeviceDescriptor, SceneHandler } from '../../../utilities';
|
|
|
6
6
|
import { Image360Face, Image360Texture } from '../../../data-providers';
|
|
7
7
|
import { Image360Visualization } from './Image360Visualization';
|
|
8
8
|
import { ImageAnnotationObject } from '../annotation/ImageAnnotationObject';
|
|
9
|
+
export declare const DEFAULT_IMAGE_360_OPACITY = 1;
|
|
9
10
|
export declare class Image360VisualizationBox implements Image360Visualization {
|
|
10
11
|
private readonly MAX_MOBILE_IMAGE_SIZE;
|
|
11
12
|
private readonly _worldTransform;
|
|
@@ -18,12 +19,12 @@ export declare class Image360VisualizationBox implements Image360Visualization {
|
|
|
18
19
|
private readonly _faceMaterialOrder;
|
|
19
20
|
private readonly _annotationsGroup;
|
|
20
21
|
private readonly _localTransform;
|
|
21
|
-
get opacity(): number;
|
|
22
|
-
set opacity(alpha: number);
|
|
23
22
|
get visible(): boolean;
|
|
24
|
-
set visible(
|
|
25
|
-
|
|
26
|
-
set
|
|
23
|
+
set visible(value: boolean);
|
|
24
|
+
get opacity(): number;
|
|
25
|
+
set opacity(value: number);
|
|
26
|
+
set scale(value: THREE.Vector3);
|
|
27
|
+
set renderOrder(value: number);
|
|
27
28
|
setAnnotations(annotations: ImageAnnotationObject[]): void;
|
|
28
29
|
constructor(worldTransform: THREE.Matrix4, sceneHandler: SceneHandler, device: DeviceDescriptor);
|
|
29
30
|
setWorldTransform(matrix: THREE.Matrix4): void;
|
|
@@ -39,4 +39,8 @@ export declare class IconCollection {
|
|
|
39
39
|
private createHoverSprite;
|
|
40
40
|
private createOuterRingsTexture;
|
|
41
41
|
private createHoverIconTexture;
|
|
42
|
+
getOpacity(): number;
|
|
43
|
+
setOpacity(value: number): void;
|
|
44
|
+
isOccludedVisible(): boolean;
|
|
45
|
+
setOccludedVisible(value: boolean): void;
|
|
42
46
|
}
|
|
@@ -12,6 +12,8 @@ export type OverlayPointsParameters = {
|
|
|
12
12
|
depthMode?: DepthModes;
|
|
13
13
|
collectionOpacity?: number;
|
|
14
14
|
};
|
|
15
|
+
export declare const DEFAULT_OVERLAY_FRONT_OPACITY = 1;
|
|
16
|
+
export declare const DEFAULT_OVERLAY_BACK_OPACITY = 0.5;
|
|
15
17
|
export declare class OverlayPointsObject extends Group {
|
|
16
18
|
private readonly _geometry;
|
|
17
19
|
private readonly _frontMaterial;
|
|
@@ -23,6 +25,10 @@ export declare class OverlayPointsObject extends Group {
|
|
|
23
25
|
private readonly _onBeforeRender?;
|
|
24
26
|
private _modelTransform;
|
|
25
27
|
constructor(maxNumberOfPoints: number, materialParameters: OverlayPointsParameters, onBeforeRender?: Object3D['onBeforeRender']);
|
|
28
|
+
getOpacity(): number;
|
|
29
|
+
setOpacity(value: number): void;
|
|
30
|
+
isBackPointsVisible(): boolean;
|
|
31
|
+
setBackPointsVisible(value: boolean): void;
|
|
26
32
|
setPoints(points: Vector3[], colors?: Color[]): void;
|
|
27
33
|
setTransform(transform: Matrix4): void;
|
|
28
34
|
getTransform(out?: Matrix4): Matrix4;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.19.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": {
|