@cognite/reveal 4.14.3 → 4.14.4

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.
@@ -647,11 +647,16 @@ export declare class Cognite3DViewer {
647
647
  /**
648
648
  * Raycasting model(s) for finding where the ray intersects with all models, including custom objects.
649
649
  * @param pixelCoords Pixel coordinate in pixels (relative to the domElement).
650
+ * @param options
651
+ * @param options.stopOnHitting360Icon
650
652
  * @returns A promise that if there was an intersection then return the intersection object - otherwise it
651
653
  * returns `null` if there were no intersections.
652
654
  * @beta
653
655
  */
654
- getAnyIntersectionFromPixel(pixelCoords: THREE.Vector2): Promise<AnyIntersection | undefined>;
656
+ getAnyIntersectionFromPixel(pixelCoords: THREE.Vector2, options?: {
657
+ stopOnHitting360Icon?: boolean;
658
+ }): Promise<AnyIntersection | undefined>;
659
+ private isIntersecting360Icon;
655
660
  /**
656
661
  * Check for intersections with 360 annotations through the given pixel.
657
662
  * Similar to {getIntersectionFromPixel}, but checks 360 image annotations
@@ -4,7 +4,7 @@
4
4
  import * as THREE from 'three';
5
5
  export type Corner = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
6
6
  export declare class Spinner {
7
- private static readonly stylesId;
7
+ private readonly stylesId;
8
8
  private static readonly classnames;
9
9
  private static readonly titles;
10
10
  private _loading;
@@ -24,13 +24,13 @@ export declare class MetricsLogger {
24
24
  * @param nodeCount Number of nodes affected by the transform override
25
25
  * @param matrix Matrix used to override the node transform
26
26
  */
27
- static readonly trackCadNodeTransformOverridden: import("lodash").DebouncedFunc<(nodeCount: number, matrix: THREE.Matrix4) => void>;
27
+ static readonly trackCadNodeTransformOverridden: import("lodash").DebouncedFuncLeading<(nodeCount: number, matrix: THREE.Matrix4) => void>;
28
28
  private static trackCadNodeTransformOverriddenImpl;
29
29
  /**
30
30
  * Track camera navigation events. Note that the metric is throttled and will only trigger
31
31
  * once per second.
32
32
  */
33
- static readonly trackCameraNavigation: import("lodash").DebouncedFunc<(eventProps: EventProps) => void>;
33
+ static readonly trackCameraNavigation: import("lodash").DebouncedFuncLeading<(eventProps: EventProps) => void>;
34
34
  private static trackCameraNavigationImpl;
35
35
  static trackError(error: Error, eventProps: EventProps): void;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/reveal",
3
- "version": "4.14.3",
3
+ "version": "4.14.4",
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": {
@@ -106,7 +106,7 @@
106
106
  "eslint-config-prettier": "^9.1.0",
107
107
  "eslint-plugin-header": "^3.1.1",
108
108
  "eslint-plugin-jsdoc": "^48.2.3",
109
- "eslint-plugin-lodash": "^7.4.0",
109
+ "eslint-plugin-lodash": "^8.0.0",
110
110
  "eslint-plugin-prettier": "^5.1.3",
111
111
  "eslint-plugin-unused-imports": "^3.1.0",
112
112
  "file-loader": "^6.2.0",