@openglobus/og 0.26.3 → 0.26.5
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/lib/camera/Camera.d.ts +54 -1
- package/lib/camera/PlanetCamera.d.ts +16 -76
- package/lib/control/MouseNavigation.d.ts +34 -5
- package/lib/control/TouchNavigation.d.ts +15 -0
- package/lib/entity/Entity.d.ts +8 -0
- package/lib/og.es.js +1 -1
- package/lib/og.es.js.map +1 -1
- package/lib/scene/Planet.d.ts +9 -30
- package/package.json +1 -1
package/lib/scene/Planet.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { LonLat } from "../LonLat";
|
|
|
16
16
|
import { Node } from "../quadTree/Node";
|
|
17
17
|
import { NormalMapCreator } from "../utils/NormalMapCreator";
|
|
18
18
|
import { PlainSegmentWorker } from "../utils/PlainSegmentWorker";
|
|
19
|
-
import { PlanetCamera } from "../camera/PlanetCamera";
|
|
19
|
+
import { IPlanetFlyCartesianParams, PlanetCamera } from "../camera/PlanetCamera";
|
|
20
20
|
import { Quat } from "../math/Quat";
|
|
21
21
|
import { QuadTreeStrategy } from "../quadTree/QuadTreeStrategy";
|
|
22
22
|
import { Ray } from "../math/Ray";
|
|
@@ -31,7 +31,6 @@ import type { WebGLBufferExt, WebGLTextureExt, IDefaultTextureParams } from "../
|
|
|
31
31
|
import { Program } from "../webgl/Program";
|
|
32
32
|
import { Segment } from "../segment/Segment";
|
|
33
33
|
import type { AtmosphereParameters } from "../shaders/atmos/atmos";
|
|
34
|
-
import { EasingFunction } from "../utils/easing";
|
|
35
34
|
export interface IPlanetParams {
|
|
36
35
|
name?: string;
|
|
37
36
|
ellipsoid?: Ellipsoid;
|
|
@@ -597,43 +596,23 @@ export declare class Planet extends RenderNode {
|
|
|
597
596
|
* @public
|
|
598
597
|
* @param {Extent} extent - Geographical extent.
|
|
599
598
|
* @param {Number} [height] - Height on the end of the flight route.
|
|
600
|
-
* @param {
|
|
601
|
-
* @param {Number} [ampl] - Altitude amplitude factor.
|
|
602
|
-
* @param {Number} [duration] - Animation duration
|
|
603
|
-
* @param {EasingFunction} [ease] - Animation easing
|
|
604
|
-
* @param {Function} [startCallback] - Callback that calls before the flying begins.
|
|
605
|
-
* @param {Function} [completeCallback] - Callback that calls after flying when flying is finished.
|
|
606
|
-
* @param {Function} [frameCallback] - Each frame callback
|
|
599
|
+
* @param {IPlanetFlyCartesianParams} params - Flight parameters.
|
|
607
600
|
*/
|
|
608
|
-
flyExtent(extent: Extent, height?: number,
|
|
601
|
+
flyExtent(extent: Extent, height?: number, params?: IPlanetFlyCartesianParams): void;
|
|
609
602
|
/**
|
|
610
603
|
* Fly camera to the point.
|
|
611
604
|
* @public
|
|
612
|
-
* @param {Vec3} cartesian -
|
|
613
|
-
* @param {
|
|
614
|
-
* @param {Vec3} [up] - Camera UP vector on the end of a flying.
|
|
615
|
-
* @param {Number} [ampl] - Altitude amplitude factor.
|
|
616
|
-
* @param {Number} [duration] - Animation duration
|
|
617
|
-
* @param {EasingFunction} [ease] - Animation easing
|
|
618
|
-
* @param {Function} [completeCallback] - Call the function in the end of flight
|
|
619
|
-
* @param {Function} [startCallback] - Call the function in the beginning
|
|
620
|
-
* @param {Function} [frameCallback] - Each frame callback
|
|
605
|
+
* @param {Vec3} cartesian - Fly cartesian coordinates.
|
|
606
|
+
* @param {IPlanetFlyCartesianParams} params - Flight parameters.
|
|
621
607
|
*/
|
|
622
|
-
flyCartesian(cartesian: Vec3,
|
|
608
|
+
flyCartesian(cartesian: Vec3, params?: IPlanetFlyCartesianParams): void;
|
|
623
609
|
/**
|
|
624
610
|
* Fly camera to the geodetic position.
|
|
625
611
|
* @public
|
|
626
612
|
* @param {LonLat} lonlat - Fly geographical coordinates.
|
|
627
|
-
* @param {
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
* @param {Number} [duration] - Animation duration
|
|
631
|
-
* @param {EasingFunction} [ease] - Animation easing
|
|
632
|
-
* @param {Function} [completeCallback] - Call the function in the end of flight
|
|
633
|
-
* @param {Function} [startCallback] - Call the function in the beginning
|
|
634
|
-
* @param {Function} [frameCallback] - Each frame callback
|
|
635
|
-
*/
|
|
636
|
-
flyLonLat(lonlat: LonLat, look?: Vec3 | LonLat, up?: Vec3, ampl?: number, duration?: number, ease?: EasingFunction, completeCallback?: Function, startCallback?: Function, frameCallback?: Function): void;
|
|
613
|
+
* @param {IPlanetFlyCartesianParams} params - Flight parameters.
|
|
614
|
+
*/
|
|
615
|
+
flyLonLat(lonlat: LonLat, params?: IPlanetFlyCartesianParams): void;
|
|
637
616
|
/**
|
|
638
617
|
* Stop current flight.
|
|
639
618
|
* @public
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openglobus/og",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.5",
|
|
4
4
|
"description": "[openglobus](https://www.openglobus.org/) is a javascript/typescript library designed to display interactive 3d maps and planets with map tiles, imagery and vector data, markers, and 3D objects. It uses the WebGL technology, open source, and completely free.",
|
|
5
5
|
"main": "lib/og.es.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|