@cognite/reveal 4.10.6 → 4.10.7
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/api-entry-points/core.d.ts +1 -1
- package/dist/index.js +191 -187
- package/dist/index.js.map +1 -1
- package/dist/packages/360-images/src/collection/DefaultImage360Collection.d.ts +5 -0
- package/dist/packages/360-images/src/collection/Image360Collection.d.ts +5 -0
- package/dist/packages/tools/src/Measurement/MeasurementLine.d.ts +0 -1
- package/dist/packages/utilities/index.d.ts +1 -0
- package/dist/packages/utilities/src/customObject/CustomObjectIntersection.d.ts +11 -1
- package/dist/packages/utilities/src/three/isPointVisibleByPlanes.d.ts +5 -0
- package/package.json +4 -4
|
@@ -61,6 +61,11 @@ export declare class DefaultImage360Collection implements Image360Collection {
|
|
|
61
61
|
* @param pointLimit Limit the number of points within the given radius. Points closer to the camera will be prioritized.
|
|
62
62
|
*/
|
|
63
63
|
set360IconCullingRestrictions(radius: number, pointLimit: number): void;
|
|
64
|
+
/**
|
|
65
|
+
* Gets visibility of all 360 image icons.
|
|
66
|
+
* @returns true if all icons are visible, false if all icons are invisible
|
|
67
|
+
*/
|
|
68
|
+
getIconsVisibility(): boolean;
|
|
64
69
|
/**
|
|
65
70
|
* Set visibility of all 360 image icons.
|
|
66
71
|
* @param visible If true all icons are made visible according to the active culling scheme. If false all icons are hidden.
|
|
@@ -80,6 +80,11 @@ export interface Image360Collection {
|
|
|
80
80
|
* @param pointLimit Limit the number of points within the given radius. Points closer to the camera will be prioritized.
|
|
81
81
|
*/
|
|
82
82
|
set360IconCullingRestrictions(radius: number, pointLimit: number): void;
|
|
83
|
+
/**
|
|
84
|
+
* Gets visibility of all 360 image icons.
|
|
85
|
+
* @returns true if all icons are visible, false if all icons are invisible
|
|
86
|
+
*/
|
|
87
|
+
getIconsVisibility(): boolean;
|
|
83
88
|
/**
|
|
84
89
|
* Set visibility of all 360 image icons.
|
|
85
90
|
* @param visible If true all icons are made visible according to the active culling scheme. If false all icons are hidden.
|
|
@@ -42,6 +42,7 @@ export { SceneHandler } from './src/SceneHandler';
|
|
|
42
42
|
export { CustomObject } from './src/customObject/CustomObject';
|
|
43
43
|
export { CustomObjectIntersectInput } from './src/customObject/CustomObjectIntersectInput';
|
|
44
44
|
export { CustomObjectIntersection } from './src/customObject/CustomObjectIntersection';
|
|
45
|
+
export { isPointVisibleByPlanes } from './src/three/isPointVisibleByPlanes';
|
|
45
46
|
export { CDF_TO_VIEWER_TRANSFORMATION } from './src/constants';
|
|
46
47
|
export * from './src/workers/workerize-transferable';
|
|
47
48
|
export * from './src/shapes';
|
|
@@ -11,7 +11,7 @@ export type CustomObjectIntersection = {
|
|
|
11
11
|
/**
|
|
12
12
|
* The intersection type.
|
|
13
13
|
*/
|
|
14
|
-
type:
|
|
14
|
+
type: string;
|
|
15
15
|
/**
|
|
16
16
|
* Coordinate of the intersection.
|
|
17
17
|
*/
|
|
@@ -20,6 +20,16 @@ export type CustomObjectIntersection = {
|
|
|
20
20
|
* Distance from the camera to the intersection.
|
|
21
21
|
*/
|
|
22
22
|
distanceToCamera: number;
|
|
23
|
+
/**
|
|
24
|
+
* The CustomObject that was intersected.
|
|
25
|
+
*/
|
|
23
26
|
customObject: CustomObject;
|
|
27
|
+
/**
|
|
28
|
+
* The bounding box of the part of the CustomObject that was intersected.
|
|
29
|
+
*/
|
|
24
30
|
boundingBox?: Box3;
|
|
31
|
+
/**
|
|
32
|
+
* Additional info, for instance which part of the CustomObject was intersected.
|
|
33
|
+
*/
|
|
34
|
+
userData?: any;
|
|
25
35
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.7",
|
|
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": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@azure/msal-browser": "2.38.3",
|
|
83
83
|
"@cognite/sdk": "8.3.0",
|
|
84
|
-
"@microsoft/api-extractor": "7.42.
|
|
84
|
+
"@microsoft/api-extractor": "7.42.3",
|
|
85
85
|
"@types/dat.gui": "0.7.12",
|
|
86
86
|
"@types/gl": "^6.0.2",
|
|
87
87
|
"@types/glob": "8.1.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@types/jsdom": "21.1.6",
|
|
92
92
|
"@types/lodash": "4.14.202",
|
|
93
93
|
"@types/mixpanel-browser": "2.49.0",
|
|
94
|
-
"@types/node": "18.19.
|
|
94
|
+
"@types/node": "18.19.22",
|
|
95
95
|
"@types/random-seed": "0.3.5",
|
|
96
96
|
"@types/skmeans": "0.11.7",
|
|
97
97
|
"@types/stats": "0.16.30",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"eslint": "8.57.0",
|
|
106
106
|
"eslint-config-prettier": "9.1.0",
|
|
107
107
|
"eslint-plugin-header": "3.1.1",
|
|
108
|
-
"eslint-plugin-jsdoc": "48.2.
|
|
108
|
+
"eslint-plugin-jsdoc": "48.2.1",
|
|
109
109
|
"eslint-plugin-lodash": "7.4.0",
|
|
110
110
|
"eslint-plugin-prettier": "5.1.3",
|
|
111
111
|
"eslint-plugin-unused-imports": "3.1.0",
|