@cognite/reveal 4.3.3 → 4.3.4-dev.20230627

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.
@@ -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
- set hoverIconVisibility(visible: boolean);
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
@@ -2,7 +2,7 @@
2
2
  * Copyright 2023 Cognite AS
3
3
  */
4
4
  import { Color, Vector3 } from 'three';
5
- import { Line2 } from 'three-stdlib';
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",
3
+ "version": "4.3.4-dev.20230627",
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.1.1",
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",
@@ -97,27 +96,27 @@
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.59.11",
101
- "@typescript-eslint/parser": "5.59.11",
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.42.0",
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": "44.2.7",
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.2.7",
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": "3.2.4",
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.2",
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.11.1",
141
- "webpack": "5.87.0",
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",