@openglobus/og 0.27.13 → 0.27.15
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.
|
@@ -8,7 +8,21 @@ import { Vec3 } from "../math/Vec3";
|
|
|
8
8
|
import type { ITouchState } from "../renderer/RendererEvents";
|
|
9
9
|
import { EventsHandler } from "../Events";
|
|
10
10
|
interface ITouchNavigationParams extends IControlParams {
|
|
11
|
+
/**
|
|
12
|
+
* Inertia factor.
|
|
13
|
+
* Default: 0.007
|
|
14
|
+
*/
|
|
11
15
|
inertia?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Limit for tilt angle.
|
|
18
|
+
* Default: 0.1
|
|
19
|
+
*/
|
|
20
|
+
minSlope?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Limit for touch jerk speed to prevent unexpected camera zooming.
|
|
23
|
+
* Default: 0.3
|
|
24
|
+
*/
|
|
25
|
+
jerkLimit?: number;
|
|
12
26
|
}
|
|
13
27
|
export type TouchNavigationEventsList = [
|
|
14
28
|
"inertiamove",
|
|
@@ -34,8 +48,10 @@ declare class TouchExt {
|
|
|
34
48
|
* Touch pad planet camera dragging control.
|
|
35
49
|
* @class
|
|
36
50
|
* @extends {Control}
|
|
37
|
-
* @param {ITouchNavigationParams} [options] -
|
|
51
|
+
* @param {ITouchNavigationParams} [options] - Touch navigation options:
|
|
38
52
|
* @param {number} [options.inertia] - inertia factor. Default is 0.007
|
|
53
|
+
* @param {number} [options.minSlope] - minimal slope for vertical camera movement. Default is 0.1
|
|
54
|
+
* @param {number} [options.jerkLimit] - limit for touch jerk speed to prevent unexpected camera movement. Default is 0.08
|
|
39
55
|
* @fires og.TouchNavigation#inertiamove
|
|
40
56
|
* @fires og.TouchNavigation#drag
|
|
41
57
|
* @fires og.TouchNavigation#doubletapzoom
|
|
@@ -43,6 +59,8 @@ declare class TouchExt {
|
|
|
43
59
|
export declare class TouchNavigation extends Control {
|
|
44
60
|
grabbedPoint: Vec3;
|
|
45
61
|
inertia: number;
|
|
62
|
+
minSlope: number;
|
|
63
|
+
jerkLimit: number;
|
|
46
64
|
events: EventsHandler<TouchNavigationEventsList>;
|
|
47
65
|
protected grabbedSpheroid: Sphere;
|
|
48
66
|
protected qRot: Quat;
|
|
@@ -19,6 +19,7 @@ export interface IAtmosphereParams extends IControlParams {
|
|
|
19
19
|
sunIntensity?: number;
|
|
20
20
|
ozoneDensityHeight?: number;
|
|
21
21
|
ozoneDensityWide?: number;
|
|
22
|
+
disableSunDisk?: boolean;
|
|
22
23
|
}
|
|
23
24
|
export declare class Atmosphere extends Control {
|
|
24
25
|
_transmittanceBuffer: Framebuffer | null;
|