@cognite/reveal 4.1.1-dev.20230203 → 4.1.1-dev.20230207

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.
@@ -85,6 +85,7 @@ export declare class ComboControls extends EventDispatcher {
85
85
  private readonly _raycaster;
86
86
  private readonly _targetFPS;
87
87
  private _targetFPSOverActualFPS;
88
+ private readonly _pointEventCache;
88
89
  private _enabled;
89
90
  private _options;
90
91
  private static readonly DefaultControlsOptions;
@@ -114,7 +114,7 @@ export declare class DefaultCameraManager implements CameraManager {
114
114
  private calculateNewTargetWithoutModel;
115
115
  /**
116
116
  * Calculates new camera target based on cursor position.
117
- * @param event MouseEvent that contains pointer location data.
117
+ * @param event PointerEvent that contains pointer location data.
118
118
  */
119
119
  private calculateNewTarget;
120
120
  /**
@@ -3,11 +3,11 @@
3
3
  */
4
4
  /**
5
5
  * Determines clicked or touched coordinate as offset
6
- * @param ev An MouseEvent or TouchEvent.
6
+ * @param ev An PointerEvent or WheelEvent.
7
7
  * @param target HTML element to find coordinates relative to.
8
8
  * @returns A struct containing coordinates relative to the HTML element provided.
9
9
  */
10
- export declare function clickOrTouchEventOffset(ev: MouseEvent | TouchEvent, target: HTMLElement): {
10
+ export declare function clickOrTouchEventOffset(ev: PointerEvent | WheelEvent, target: HTMLElement): {
11
11
  offsetX: number;
12
12
  offsetY: number;
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/reveal",
3
- "version": "4.1.1-dev.20230203",
3
+ "version": "4.1.1-dev.20230207",
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": {
@@ -71,7 +71,6 @@
71
71
  "@tweenjs/tween.js": "18.6.4",
72
72
  "assert": "2.0.0",
73
73
  "async-mutex": "0.4.0",
74
- "comlink": "4.3.1",
75
74
  "glslify": "7.1.1",
76
75
  "glslify-import": "3.1.0",
77
76
  "html2canvas": "^1.4.1",
@@ -103,8 +102,8 @@
103
102
  "@types/stats": "0.16.30",
104
103
  "@types/three": "0.149.0",
105
104
  "@types/tween.js": "18.5.1",
106
- "@typescript-eslint/eslint-plugin": "5.49.0",
107
- "@typescript-eslint/parser": "5.49.0",
105
+ "@typescript-eslint/eslint-plugin": "5.50.0",
106
+ "@typescript-eslint/parser": "5.50.0",
108
107
  "concurrently": "7.6.0",
109
108
  "cross-env": "7.0.3",
110
109
  "cross-var": "1.1.0",
@@ -132,7 +131,7 @@
132
131
  "nock": "13.3.0",
133
132
  "prettier": "2.8.2",
134
133
  "process": "0.11.10",
135
- "puppeteer": "19.6.2",
134
+ "puppeteer": "19.6.3",
136
135
  "random-seed": "0.3.0",
137
136
  "raw-loader": "4.0.2",
138
137
  "remove-files-webpack-plugin": "1.5.0",
@@ -143,7 +142,7 @@
143
142
  "ts-jest": "29.0.5",
144
143
  "ts-loader": "9.4.2",
145
144
  "tsc-alias": "1.8.2",
146
- "typescript": "4.9.4",
145
+ "typescript": "4.9.5",
147
146
  "wasm-pack": "0.10.3",
148
147
  "webpack": "5.75.0",
149
148
  "webpack-cli": "5.0.1",
@@ -164,5 +163,5 @@
164
163
  "files": [
165
164
  "./dist/*"
166
165
  ],
167
- "packageManager": "yarn@3.3.1"
166
+ "packageManager": "yarn@3.4.1"
168
167
  }