bruce-cesium 2.2.4 → 2.2.6

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.
@@ -26,4 +26,4 @@ export * from "./utils/view-utils";
26
26
  export * from "./utils/drawing-utils";
27
27
  export * from "./utils/measure-utils";
28
28
  export * from "./utils/entity-utils";
29
- export declare const VERSION = "2.2.4";
29
+ export declare const VERSION = "2.2.6";
@@ -36,4 +36,11 @@ export declare namespace DrawingUtils {
36
36
  desiredHeightRef: Cesium.HeightReference;
37
37
  heightRef: Cesium.HeightReference;
38
38
  }): Cesium.Cartesian3;
39
+ /**
40
+ * Returns an accurate 3d position from a given screen position.
41
+ * @param viewer
42
+ * @param cursor
43
+ * @returns
44
+ */
45
+ const GetAccuratePosition: (viewer: Cesium.Viewer, cursor: Cesium.Cartesian2, pickOnly?: boolean) => any;
39
46
  }
@@ -29,4 +29,17 @@ export declare namespace ViewUtils {
29
29
  function GetTerrainWireframeStatus(params: {
30
30
  viewer: Cesium.Viewer;
31
31
  }): any;
32
+ /**
33
+ * Changes between perspective and orthographic view.
34
+ * When Cesium stops being bad at picking positions in 2d mode we'll use the flat earth mode instead.
35
+ * @param params
36
+ */
37
+ function Set2dStatus(params: {
38
+ viewer: Cesium.Viewer;
39
+ status: boolean;
40
+ moveCamera?: boolean;
41
+ }): void;
42
+ function Get2dStatus(params: {
43
+ viewer: Cesium.Viewer;
44
+ }): boolean;
32
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-cesium",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-cesium.umd.js",