@cognite/reveal 4.3.3 → 4.3.4-dev.20230628
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 +175 -175
- package/dist/index.js.map +1 -1
- package/dist/packages/360-images/src/Image360Facade.d.ts +2 -1
- package/dist/packages/camera-manager/src/CameraManagerHelper.d.ts +2 -1
- package/dist/packages/pointclouds/src/PointCloudManager.d.ts +1 -0
- package/dist/packages/rendering/src/PointCloudMaterialManager.d.ts +2 -1
- package/dist/packages/utilities/src/three/VariableWidthLine.d.ts +1 -1
- package/package.json +13 -14
|
@@ -16,7 +16,8 @@ export declare class Image360Facade<T> {
|
|
|
16
16
|
get collections(): DefaultImage360Collection[];
|
|
17
17
|
set allIconsVisibility(visible: boolean);
|
|
18
18
|
set allIconsSelected(visible: boolean);
|
|
19
|
-
|
|
19
|
+
setHoverIconVisibilityForEntity(entity: Image360Entity, visible: boolean): void;
|
|
20
|
+
hideAllHoverIcons(): void;
|
|
20
21
|
set allIconCullingScheme(scheme: IconCullingScheme);
|
|
21
22
|
constructor(_entityFactory: Image360CollectionFactory<T>);
|
|
22
23
|
create(dataProviderFilter: T, annotationFilter?: Image360AnnotationFilterOptions, postTransform?: THREE.Matrix4, preComputedRotation?: boolean): Promise<DefaultImage360Collection>;
|
|
@@ -16,9 +16,10 @@ export declare class CameraManagerHelper {
|
|
|
16
16
|
* @param camera Used camera instance.
|
|
17
17
|
* @param rotation New camera rotation in quaternion form.
|
|
18
18
|
* @param currentTarget Current camera target.
|
|
19
|
+
* @param position New camera position.
|
|
19
20
|
* @returns
|
|
20
21
|
*/
|
|
21
|
-
static calculateNewTargetFromRotation(camera: THREE.PerspectiveCamera, rotation: THREE.Quaternion, currentTarget: THREE.Vector3): THREE.Vector3;
|
|
22
|
+
static calculateNewTargetFromRotation(camera: THREE.PerspectiveCamera, rotation: THREE.Quaternion, currentTarget: THREE.Vector3, position: THREE.Vector3): THREE.Vector3;
|
|
22
23
|
/**
|
|
23
24
|
* Calculates camera rotation from target
|
|
24
25
|
* @param camera Used Camera instance
|
|
@@ -18,6 +18,7 @@ export declare class PointCloudManager {
|
|
|
18
18
|
private readonly _loadingStateHandler;
|
|
19
19
|
private readonly _potreeInstance;
|
|
20
20
|
private readonly _pointCloudNodes;
|
|
21
|
+
private _globalClippingPlanes;
|
|
21
22
|
private readonly _cameraSubject;
|
|
22
23
|
private readonly _modelSubject;
|
|
23
24
|
private readonly _budgetSubject;
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
import { PointCloudObjectIdMaps } from './pointcloud-rendering/PointCloudObjectIdMaps';
|
|
5
5
|
import { PointCloudMaterial } from './pointcloud-rendering';
|
|
6
6
|
import { PointCloudMaterialParameters } from './render-passes/types';
|
|
7
|
+
import { Plane } from 'three';
|
|
7
8
|
export declare class PointCloudMaterialManager {
|
|
8
9
|
private readonly _modelsMaterialsMap;
|
|
9
10
|
addModelMaterial(modelIdentifier: symbol, objectIdMaps: PointCloudObjectIdMaps): void;
|
|
10
11
|
removeModelMaterial(modelIdentifier: symbol): void;
|
|
11
12
|
getModelMaterial(modelIdentifier: symbol): PointCloudMaterial;
|
|
12
|
-
initializeClippingPlanesForPointCloud(modelIdentifier: symbol): void;
|
|
13
|
+
initializeClippingPlanesForPointCloud(modelIdentifier: symbol, clippingPlanes: Plane[]): void;
|
|
13
14
|
setModelsMaterialParameters(materialParameters: PointCloudMaterialParameters | undefined): void;
|
|
14
15
|
setMaterialParameters(material: PointCloudMaterial, parameters: PointCloudMaterialParameters): void;
|
|
15
16
|
dispose(): void;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import { Color, Vector3 } from 'three';
|
|
5
|
-
import { Line2 } from 'three
|
|
5
|
+
import { Line2 } from 'three/examples/jsm/lines/Line2';
|
|
6
6
|
export declare class VariableWidthLine {
|
|
7
7
|
private readonly _geometry;
|
|
8
8
|
private readonly _lineMaterial;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.4-dev.20230628",
|
|
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": {
|
|
@@ -75,12 +75,11 @@
|
|
|
75
75
|
"random-seed": "0.3.0",
|
|
76
76
|
"rxjs": "7.8.1",
|
|
77
77
|
"skmeans": "0.11.3",
|
|
78
|
-
"sparse-octree": "7.1.8"
|
|
79
|
-
"three-stdlib": "2.23.10"
|
|
78
|
+
"sparse-octree": "7.1.8"
|
|
80
79
|
},
|
|
81
80
|
"devDependencies": {
|
|
82
81
|
"@azure/msal-browser": "2.37.1",
|
|
83
|
-
"@cognite/sdk": "8.
|
|
82
|
+
"@cognite/sdk": "8.2.0",
|
|
84
83
|
"@microsoft/api-extractor": "^7.33.6",
|
|
85
84
|
"@types/dat.gui": "0.7.10",
|
|
86
85
|
"@types/gl": "^6.0.2",
|
|
@@ -90,34 +89,34 @@
|
|
|
90
89
|
"@types/jest-image-snapshot": "6.1.0",
|
|
91
90
|
"@types/jsdom": "21.1.1",
|
|
92
91
|
"@types/lodash": "4.14.195",
|
|
93
|
-
"@types/mixpanel-browser": "2.
|
|
92
|
+
"@types/mixpanel-browser": "2.47.0",
|
|
94
93
|
"@types/node": "18.16.18",
|
|
95
94
|
"@types/random-seed": "0.3.3",
|
|
96
95
|
"@types/skmeans": "0.11.4",
|
|
97
96
|
"@types/stats": "0.16.30",
|
|
98
97
|
"@types/three": "0.152.1",
|
|
99
98
|
"@types/tween.js": "18.5.1",
|
|
100
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
101
|
-
"@typescript-eslint/parser": "5.
|
|
99
|
+
"@typescript-eslint/eslint-plugin": "5.60.0",
|
|
100
|
+
"@typescript-eslint/parser": "5.60.0",
|
|
102
101
|
"concurrently": "8.2.0",
|
|
103
102
|
"cross-env": "7.0.3",
|
|
104
103
|
"dat.gui": "0.7.9",
|
|
105
|
-
"eslint": "8.
|
|
104
|
+
"eslint": "8.43.0",
|
|
106
105
|
"eslint-config-prettier": "8.8.0",
|
|
107
106
|
"eslint-plugin-header": "3.1.1",
|
|
108
|
-
"eslint-plugin-jsdoc": "
|
|
107
|
+
"eslint-plugin-jsdoc": "46.2.6",
|
|
109
108
|
"eslint-plugin-lodash": "7.4.0",
|
|
110
109
|
"eslint-plugin-prettier": "4.2.1",
|
|
111
110
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
112
111
|
"file-loader": "6.2.0",
|
|
113
112
|
"gl": "6.0.2",
|
|
114
|
-
"glob": "10.
|
|
113
|
+
"glob": "10.3.0",
|
|
115
114
|
"glslify-loader": "2.0.0",
|
|
116
115
|
"html-webpack-plugin": "5.5.3",
|
|
117
116
|
"jest": "29.5.0",
|
|
118
117
|
"jest-canvas-mock": "2.5.1",
|
|
119
118
|
"jest-environment-jsdom": "29.5.0",
|
|
120
|
-
"jest-extended": "
|
|
119
|
+
"jest-extended": "4.0.0",
|
|
121
120
|
"jest-image-snapshot": "6.1.0",
|
|
122
121
|
"jest-puppeteer": "9.0.0",
|
|
123
122
|
"jsdom": "22.1.0",
|
|
@@ -125,7 +124,7 @@
|
|
|
125
124
|
"nock": "13.3.1",
|
|
126
125
|
"prettier": "2.8.8",
|
|
127
126
|
"process": "0.11.10",
|
|
128
|
-
"puppeteer": "20.7.
|
|
127
|
+
"puppeteer": "20.7.3",
|
|
129
128
|
"random-seed": "0.3.0",
|
|
130
129
|
"raw-loader": "4.0.2",
|
|
131
130
|
"remove-files-webpack-plugin": "1.5.0",
|
|
@@ -137,8 +136,8 @@
|
|
|
137
136
|
"ts-loader": "9.4.3",
|
|
138
137
|
"tsc-alias": "1.8.6",
|
|
139
138
|
"typescript": "5.1.3",
|
|
140
|
-
"wasm-pack": "0.
|
|
141
|
-
"webpack": "5.
|
|
139
|
+
"wasm-pack": "0.12.0",
|
|
140
|
+
"webpack": "5.88.0",
|
|
142
141
|
"webpack-cli": "5.1.4",
|
|
143
142
|
"webpack-dev-server": "4.15.1",
|
|
144
143
|
"webpack-node-externals": "3.0.0",
|