@openglobus/og 0.11.6 → 0.11.7
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/package.json +11 -11
- package/src/og/Globe.js +8 -5
- package/src/og/Popup.js +3 -2
- package/src/og/camera/PlanetCamera.js +9 -4
- package/src/og/control/Lighting.js +33 -2
- package/src/og/ellipsoid/Ellipsoid.js +1 -1
- package/src/og/entity/BaseBillboard.js +67 -76
- package/src/og/entity/BillboardHandler.js +15 -8
- package/src/og/entity/Label.js +44 -47
- package/src/og/entity/LabelHandler.js +25 -25
- package/src/og/entity/LabelWorker.js +21 -16
- package/src/og/layer/Layer.js +28 -15
- package/src/og/layer/Material.js +1 -1
- package/src/og/quadTree/Node.js +16 -30
- package/src/og/renderer/Renderer.js +19 -29
- package/src/og/renderer/RendererEvents.js +41 -21
- package/src/og/scene/Planet.js +11 -28
- package/src/og/shaders/drawnode.js +135 -142
- package/src/og/shaders/toneMapping.js +1 -0
- package/src/og/shapes/BaseShape.js +1 -1
- package/src/og/utils/FontAtlas.js +6 -2
- package/src/og/utils/TextureAtlas.js +2 -2
- package/src/og/utils/VectorTileCreator.js +1 -3
- package/src/og/utils/shared.js +1 -1
- package/src/og/webgl/Handler.js +152 -118
- package/types/Clock.d.ts +0 -94
- package/types/Deferred.d.ts +0 -6
- package/types/Events.d.ts +0 -77
- package/types/Extent.d.ts +0 -166
- package/types/Globe.d.ts +0 -82
- package/types/ImageCanvas.d.ts +0 -123
- package/types/Lock.d.ts +0 -12
- package/types/LonLat.d.ts +0 -108
- package/types/Popup.d.ts +0 -42
- package/types/QueueArray.d.ts +0 -19
- package/types/Rectangle.d.ts +0 -80
- package/types/Stack.d.ts +0 -19
- package/types/ajax.d.ts +0 -24
- package/types/arial.d.ts +0 -48
- package/types/astro/astro.d.ts +0 -38
- package/types/astro/earth.d.ts +0 -7
- package/types/astro/jd.d.ts +0 -254
- package/types/bv/Box.d.ts +0 -30
- package/types/bv/Sphere.d.ts +0 -38
- package/types/bv/index.d.ts +0 -3
- package/types/camera/Camera.d.ts +0 -312
- package/types/camera/Frustum.d.ts +0 -133
- package/types/camera/PlanetCamera.d.ts +0 -218
- package/types/camera/index.d.ts +0 -3
- package/types/cons.d.ts +0 -40
- package/types/control/CompassButton.d.ts +0 -17
- package/types/control/Control.d.ts +0 -104
- package/types/control/DebugInfo.d.ts +0 -15
- package/types/control/EarthCoordinates.d.ts +0 -47
- package/types/control/EarthNavigation.d.ts +0 -42
- package/types/control/GeoImageDragControl.d.ts +0 -6
- package/types/control/KeyboardNavigation.d.ts +0 -21
- package/types/control/LayerSwitcher.d.ts +0 -21
- package/types/control/Lighting.d.ts +0 -16
- package/types/control/MouseNavigation.d.ts +0 -47
- package/types/control/ScaleControl.d.ts +0 -22
- package/types/control/ShowFps.d.ts +0 -11
- package/types/control/SimpleNavigation.d.ts +0 -25
- package/types/control/Sun.d.ts +0 -50
- package/types/control/ToggleWireframe.d.ts +0 -12
- package/types/control/TouchNavigation.d.ts +0 -48
- package/types/control/ZoomControl.d.ts +0 -27
- package/types/control/index.d.ts +0 -17
- package/types/ellipsoid/Ellipsoid.d.ts +0 -146
- package/types/ellipsoid/index.d.ts +0 -3
- package/types/ellipsoid/wgs84.d.ts +0 -6
- package/types/entity/BaseBillboard.d.ts +0 -215
- package/types/entity/Billboard.d.ts +0 -94
- package/types/entity/BillboardHandler.d.ts +0 -78
- package/types/entity/Entity.d.ts +0 -348
- package/types/entity/EntityCollection.d.ts +0 -317
- package/types/entity/GeoObject.d.ts +0 -111
- package/types/entity/GeoObjectHandler.d.ts +0 -77
- package/types/entity/Geometry.d.ts +0 -74
- package/types/entity/GeometryHandler.d.ts +0 -76
- package/types/entity/Label.d.ts +0 -189
- package/types/entity/LabelHandler.d.ts +0 -31
- package/types/entity/LabelWorker.d.ts +0 -9
- package/types/entity/PointCloud.d.ts +0 -174
- package/types/entity/PointCloudHandler.d.ts +0 -38
- package/types/entity/Polyline.d.ts +0 -306
- package/types/entity/PolylineHandler.d.ts +0 -18
- package/types/entity/Ray.d.ts +0 -124
- package/types/entity/RayHandler.d.ts +0 -67
- package/types/entity/ShapeHandler.d.ts +0 -22
- package/types/entity/Strip.d.ts +0 -119
- package/types/entity/StripHandler.d.ts +0 -38
- package/types/entity/index.d.ts +0 -8
- package/types/index.core.d.ts +0 -65
- package/types/index.d.ts +0 -45
- package/types/index.webgl.d.ts +0 -7
- package/types/input/KeyboardHandler.d.ts +0 -10
- package/types/input/MouseHandler.d.ts +0 -5
- package/types/input/TouchHandler.d.ts +0 -5
- package/types/input/input.d.ts +0 -34
- package/types/layer/BaseGeoImage.d.ts +0 -94
- package/types/layer/CanvasTiles.d.ts +0 -68
- package/types/layer/GeoImage.d.ts +0 -52
- package/types/layer/GeoTexture2d.d.ts +0 -8
- package/types/layer/GeoVideo.d.ts +0 -55
- package/types/layer/KML.d.ts +0 -63
- package/types/layer/Layer.d.ts +0 -326
- package/types/layer/Material.d.ts +0 -45
- package/types/layer/Vector.d.ts +0 -208
- package/types/layer/WMS.d.ts +0 -63
- package/types/layer/XYZ.d.ts +0 -120
- package/types/layer/index.d.ts +0 -10
- package/types/light/LightSource.d.ts +0 -178
- package/types/math/Line2.d.ts +0 -11
- package/types/math/Line3.d.ts +0 -10
- package/types/math/Mat3.d.ts +0 -65
- package/types/math/Mat4.d.ts +0 -176
- package/types/math/Plane.d.ts +0 -18
- package/types/math/Quat.d.ts +0 -379
- package/types/math/Ray.d.ts +0 -82
- package/types/math/Vec2.d.ts +0 -309
- package/types/math/Vec3.d.ts +0 -460
- package/types/math/Vec4.d.ts +0 -162
- package/types/math/coder.d.ts +0 -43
- package/types/math/index.d.ts +0 -11
- package/types/math.d.ts +0 -261
- package/types/mercator.d.ts +0 -92
- package/types/proj/EPSG3857.d.ts +0 -6
- package/types/proj/EPSG4326.d.ts +0 -6
- package/types/proj/Proj.d.ts +0 -42
- package/types/quadTree/EntityCollectionNode.d.ts +0 -34
- package/types/quadTree/Node.d.ts +0 -61
- package/types/quadTree/quadTree.d.ts +0 -40
- package/types/renderer/Renderer.d.ts +0 -300
- package/types/renderer/RendererEvents.d.ts +0 -233
- package/types/res/images.d.ts +0 -3
- package/types/scene/Axes.d.ts +0 -11
- package/types/scene/BaseNode.d.ts +0 -60
- package/types/scene/Planet.d.ts +0 -577
- package/types/scene/RenderNode.d.ts +0 -142
- package/types/scene/SkyBox.d.ts +0 -10
- package/types/scene/index.d.ts +0 -4
- package/types/segment/Segment.d.ts +0 -279
- package/types/segment/SegmentLonLat.d.ts +0 -16
- package/types/segment/segmentHelper.d.ts +0 -13
- package/types/shaders/billboard.d.ts +0 -3
- package/types/shaders/depth.d.ts +0 -2
- package/types/shaders/drawnode.d.ts +0 -7
- package/types/shaders/geoObject.d.ts +0 -3
- package/types/shaders/label.d.ts +0 -4
- package/types/shaders/pointCloud.d.ts +0 -2
- package/types/shaders/polyline.d.ts +0 -3
- package/types/shaders/ray.d.ts +0 -2
- package/types/shaders/screenFrame.d.ts +0 -2
- package/types/shaders/shape.d.ts +0 -4
- package/types/shaders/skybox.d.ts +0 -2
- package/types/shaders/toneMapping.d.ts +0 -2
- package/types/shapes/BaseShape.d.ts +0 -250
- package/types/shapes/Sphere.d.ts +0 -41
- package/types/terrain/BilTerrain.d.ts +0 -7
- package/types/terrain/EmptyTerrain.d.ts +0 -72
- package/types/terrain/Geoid.d.ts +0 -26
- package/types/terrain/GlobusTerrain.d.ts +0 -116
- package/types/terrain/MapboxTerrain.d.ts +0 -7
- package/types/terrain/index.d.ts +0 -5
- package/types/utils/FontAtlas.d.ts +0 -14
- package/types/utils/GeoImageCreator.d.ts +0 -30
- package/types/utils/ImagesCacheManager.d.ts +0 -10
- package/types/utils/Loader.d.ts +0 -25
- package/types/utils/NormalMapCreator.d.ts +0 -39
- package/types/utils/PlainSegmentWorker.d.ts +0 -10
- package/types/utils/TerrainWorker.d.ts +0 -9
- package/types/utils/TextureAtlas.d.ts +0 -111
- package/types/utils/VectorTileCreator.d.ts +0 -16
- package/types/utils/colorTable.d.ts +0 -143
- package/types/utils/earcut.d.ts +0 -6
- package/types/utils/shared.d.ts +0 -231
- package/types/webgl/Framebuffer.d.ts +0 -135
- package/types/webgl/Handler.d.ts +0 -397
- package/types/webgl/Multisample.d.ts +0 -89
- package/types/webgl/Program.d.ts +0 -161
- package/types/webgl/ProgramController.d.ts +0 -89
- package/types/webgl/callbacks.d.ts +0 -1
- package/types/webgl/index.d.ts +0 -6
- package/types/webgl/types.d.ts +0 -2
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export function compassButton(options: any): CompassButton;
|
|
2
|
-
/**
|
|
3
|
-
* Planet compass button
|
|
4
|
-
* @class
|
|
5
|
-
* @extends {Control}
|
|
6
|
-
* @params {Object} [options] - Control options.
|
|
7
|
-
*/
|
|
8
|
-
export class CompassButton extends Control {
|
|
9
|
-
planet: any;
|
|
10
|
-
compassSvg: any;
|
|
11
|
-
_heading: any;
|
|
12
|
-
_svg: any;
|
|
13
|
-
_onClick(): void;
|
|
14
|
-
_draw(e: any): void;
|
|
15
|
-
setHeading(heading: any): void;
|
|
16
|
-
}
|
|
17
|
-
import { Control } from "./Control.js";
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base control class for implementing renderer controls.
|
|
3
|
-
* All other controls extend from this class.
|
|
4
|
-
* @class
|
|
5
|
-
* @param {Object} [options] - Control activation options:
|
|
6
|
-
* @param {Boolean} [options.autoActivated=true] - If true - calls initialize function after the renderer assigning.
|
|
7
|
-
*/
|
|
8
|
-
export class Control {
|
|
9
|
-
static set __staticCounter(arg: any);
|
|
10
|
-
static get __staticCounter(): any;
|
|
11
|
-
/**
|
|
12
|
-
* @param {Object} [options] - Control activation options:
|
|
13
|
-
*/
|
|
14
|
-
constructor(options?: any);
|
|
15
|
-
_id: number;
|
|
16
|
-
_name: any;
|
|
17
|
-
/**
|
|
18
|
-
* Control initialized.
|
|
19
|
-
* @protected
|
|
20
|
-
* @type {Boolean}
|
|
21
|
-
*/
|
|
22
|
-
protected _initialized: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Assigned renderer.
|
|
25
|
-
* @public
|
|
26
|
-
* @type {Renderer}
|
|
27
|
-
*/
|
|
28
|
-
public renderer: Renderer;
|
|
29
|
-
/**
|
|
30
|
-
* Auto activation flag.
|
|
31
|
-
* @public
|
|
32
|
-
* @type {Boolean}
|
|
33
|
-
*/
|
|
34
|
-
public autoActivate: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Control activity.
|
|
37
|
-
* @protected
|
|
38
|
-
* @type {Boolean}
|
|
39
|
-
*/
|
|
40
|
-
protected _active: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Returns control name.
|
|
43
|
-
* @public
|
|
44
|
-
* @virtual
|
|
45
|
-
*/
|
|
46
|
-
public get name(): any;
|
|
47
|
-
/**
|
|
48
|
-
* Control initialization function have to be overriden.
|
|
49
|
-
* @public
|
|
50
|
-
* @virtual
|
|
51
|
-
*/
|
|
52
|
-
public oninit(): void;
|
|
53
|
-
/**
|
|
54
|
-
* Control renderer assigning function have to be overriden.
|
|
55
|
-
* @public
|
|
56
|
-
* @virtual
|
|
57
|
-
*/
|
|
58
|
-
public onadd(): void;
|
|
59
|
-
/**
|
|
60
|
-
* Control remove function have to be overriden.
|
|
61
|
-
* @public
|
|
62
|
-
* @virtual
|
|
63
|
-
*/
|
|
64
|
-
public onremove(): void;
|
|
65
|
-
/**
|
|
66
|
-
* Control activation function have to be overriden.
|
|
67
|
-
* @public
|
|
68
|
-
* @virtual
|
|
69
|
-
*/
|
|
70
|
-
public onactivate(): void;
|
|
71
|
-
/**
|
|
72
|
-
* Control deactivation function have to be overriden.
|
|
73
|
-
* @public
|
|
74
|
-
* @virtual
|
|
75
|
-
*/
|
|
76
|
-
public ondeactivate(): void;
|
|
77
|
-
/**
|
|
78
|
-
* Assign renderer to the control.
|
|
79
|
-
* @public
|
|
80
|
-
* @type {Renderer}
|
|
81
|
-
*/
|
|
82
|
-
public addTo(renderer: any): void;
|
|
83
|
-
/**
|
|
84
|
-
* Assign renderer to the control.
|
|
85
|
-
* @public
|
|
86
|
-
*/
|
|
87
|
-
public remove(): void;
|
|
88
|
-
/**
|
|
89
|
-
* Activate control.
|
|
90
|
-
* @public
|
|
91
|
-
*/
|
|
92
|
-
public activate(): void;
|
|
93
|
-
/**
|
|
94
|
-
* Deactivate control.
|
|
95
|
-
* @public
|
|
96
|
-
*/
|
|
97
|
-
public deactivate(): void;
|
|
98
|
-
/**
|
|
99
|
-
* Is control active.
|
|
100
|
-
* @public
|
|
101
|
-
*/
|
|
102
|
-
public isActive(): boolean;
|
|
103
|
-
isEqual(control: any): boolean;
|
|
104
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export function debugInfo(options: any): DebugInfo;
|
|
2
|
-
/**
|
|
3
|
-
* Debug information
|
|
4
|
-
* @class
|
|
5
|
-
* @extends {Control}
|
|
6
|
-
* @param {Object} [options] - Control options.
|
|
7
|
-
*/
|
|
8
|
-
export class DebugInfo extends Control {
|
|
9
|
-
el: HTMLDivElement;
|
|
10
|
-
_watch: any;
|
|
11
|
-
addWatches(watches: any): void;
|
|
12
|
-
addWatch(watch: any): void;
|
|
13
|
-
_frame(): void;
|
|
14
|
-
}
|
|
15
|
-
import { Control } from "./Control.js";
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export function earthCoordinates(options: any): EarthCoordinates;
|
|
2
|
-
/**
|
|
3
|
-
* Control displays mouse or screen center Earth coordinates.
|
|
4
|
-
* @class
|
|
5
|
-
* @extends {Control}
|
|
6
|
-
* @param {Object} [options] - Options:
|
|
7
|
-
* @param {Boolean} [options.center] - Earth coordiantes by screen center otherwise mouse pointer. False is default.
|
|
8
|
-
* @param {Boolean} [options.type] - Coordinates shown: 0 - is decimal degrees, 1 - degrees, 2 - mercator geodetic coordinates.
|
|
9
|
-
*/
|
|
10
|
-
export class EarthCoordinates extends Control {
|
|
11
|
-
/**
|
|
12
|
-
* Display type.
|
|
13
|
-
* @private
|
|
14
|
-
* @type {Boolean}
|
|
15
|
-
*/
|
|
16
|
-
private _displayType;
|
|
17
|
-
/**
|
|
18
|
-
* Current coordinates type converter.
|
|
19
|
-
* @private
|
|
20
|
-
* @function
|
|
21
|
-
*/
|
|
22
|
-
private _converter;
|
|
23
|
-
/**
|
|
24
|
-
* Display dom element.
|
|
25
|
-
* @private
|
|
26
|
-
* @type {Object}
|
|
27
|
-
*/
|
|
28
|
-
private _display;
|
|
29
|
-
_center: any;
|
|
30
|
-
_centerDiv: HTMLDivElement;
|
|
31
|
-
/**
|
|
32
|
-
* Current position.
|
|
33
|
-
* @public
|
|
34
|
-
* @type {Vec3}
|
|
35
|
-
*/
|
|
36
|
-
public position: Vec3;
|
|
37
|
-
/**
|
|
38
|
-
* Sets coordinates capturing type.
|
|
39
|
-
* @public
|
|
40
|
-
* @param {Boolean} center - True - capture screen center, false - mouse pointer.
|
|
41
|
-
*/
|
|
42
|
-
public setCenter(center: boolean): void;
|
|
43
|
-
_showPosition(): void;
|
|
44
|
-
_grabCoordinates(): void;
|
|
45
|
-
_onMouseMove(): void;
|
|
46
|
-
}
|
|
47
|
-
import { Control } from "./Control.js";
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export class EarthNavigation extends Control {
|
|
2
|
-
grabbedPoint: Vec3;
|
|
3
|
-
inertia: number;
|
|
4
|
-
grabbedSpheroid: Sphere;
|
|
5
|
-
planet: any;
|
|
6
|
-
_vRot: Quat;
|
|
7
|
-
_hRot: Quat;
|
|
8
|
-
_a: number;
|
|
9
|
-
scaleRot: number;
|
|
10
|
-
currState: number;
|
|
11
|
-
positionState: {
|
|
12
|
-
h: number;
|
|
13
|
-
max: number;
|
|
14
|
-
min: number;
|
|
15
|
-
}[];
|
|
16
|
-
touches: Touch[];
|
|
17
|
-
switchZoomState(wheelDelta: any): void;
|
|
18
|
-
onMouseWheel(event: any): void;
|
|
19
|
-
onTouchStart(e: any): void;
|
|
20
|
-
onTouchEnd(e: any): void;
|
|
21
|
-
onTouchMove(e: any): void;
|
|
22
|
-
onMouseLeftButtonClick(): void;
|
|
23
|
-
stopRotation(): void;
|
|
24
|
-
onMouseLeftButtonUp(e: any): void;
|
|
25
|
-
onMouseLeftButtonDown(e: any): void;
|
|
26
|
-
onDraw(e: any): void;
|
|
27
|
-
}
|
|
28
|
-
import { Control } from "./Control.js";
|
|
29
|
-
import { Vec3 } from "../math/Vec3.js";
|
|
30
|
-
import { Sphere } from "../bv/Sphere.js";
|
|
31
|
-
import { Quat } from "../math/Quat.js";
|
|
32
|
-
declare class Touch {
|
|
33
|
-
x: number;
|
|
34
|
-
y: number;
|
|
35
|
-
prev_x: number;
|
|
36
|
-
prev_y: number;
|
|
37
|
-
grabbedPoint: Vec3;
|
|
38
|
-
grabbedSpheroid: Sphere;
|
|
39
|
-
dX: () => number;
|
|
40
|
-
dY: () => number;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export function keyboardNavigation(options: any): KeyboardNavigation;
|
|
2
|
-
/**
|
|
3
|
-
* Planet camera keyboard navigation. Use W,S,A,D and left shift key for fly around a planet.
|
|
4
|
-
* @class
|
|
5
|
-
* @extends {Control}
|
|
6
|
-
* @param {Object} [options] - Control options.
|
|
7
|
-
*/
|
|
8
|
-
export class KeyboardNavigation extends Control {
|
|
9
|
-
step: any;
|
|
10
|
-
onCameraMoveForward(event: any): void;
|
|
11
|
-
onCameraMoveBackward(event: any): void;
|
|
12
|
-
onCameraStrifeLeft(event: any): void;
|
|
13
|
-
onCameraStrifeRight(event: any): void;
|
|
14
|
-
onCameraLookUp(event: any): void;
|
|
15
|
-
onCameraLookDown(event: any): void;
|
|
16
|
-
onCameraTurnLeft(event: any): void;
|
|
17
|
-
onCameraTurnRight(event: any): void;
|
|
18
|
-
onCameraRollLeft(event: any): void;
|
|
19
|
-
onCameraRollRight(event: any): void;
|
|
20
|
-
}
|
|
21
|
-
import { Control } from "./Control.js";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Simple(OpenLayers like)layer switcher, includes base layers, overlays, geo images etc. groups.
|
|
3
|
-
* @class
|
|
4
|
-
* @extends {Control}
|
|
5
|
-
* @param {Object} [options] - Control options.
|
|
6
|
-
*/
|
|
7
|
-
export class LayerSwitcher extends Control {
|
|
8
|
-
static set numSwitches(arg: any);
|
|
9
|
-
static get numSwitches(): any;
|
|
10
|
-
dialog: HTMLDivElement;
|
|
11
|
-
baseLayersDiv: HTMLDivElement;
|
|
12
|
-
overlaysDiv: HTMLDivElement;
|
|
13
|
-
onLayerAdded(layer: any): void;
|
|
14
|
-
onLayerRemoved(layer: any): void;
|
|
15
|
-
addSwitcher(type: any, obj: any, container: any, id: any): void;
|
|
16
|
-
createBaseLayersContainer(): void;
|
|
17
|
-
createOverlaysContainer(): void;
|
|
18
|
-
createDialog(): void;
|
|
19
|
-
createSwitcher(): void;
|
|
20
|
-
}
|
|
21
|
-
import { Control } from "./Control.js";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export function lighting(options: any): Lighting;
|
|
2
|
-
/**
|
|
3
|
-
* Helps to setup lighting.
|
|
4
|
-
* @class
|
|
5
|
-
* @extends {Control}
|
|
6
|
-
* @param {Object} [options] -
|
|
7
|
-
*/
|
|
8
|
-
export class Lighting extends Control {
|
|
9
|
-
constructor(options?: {});
|
|
10
|
-
_selectedLayer: any;
|
|
11
|
-
bindLayer(layer: any): void;
|
|
12
|
-
_fetchLayers(): void;
|
|
13
|
-
_onLayerAdd(e: any): void;
|
|
14
|
-
_onLayerRemove(e: any): void;
|
|
15
|
-
}
|
|
16
|
-
import { Control } from "./Control.js";
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mouse planet camera dragging control.
|
|
3
|
-
* @class
|
|
4
|
-
* @extends {Control}
|
|
5
|
-
* @param {Object} [options] - Control options.
|
|
6
|
-
*/
|
|
7
|
-
export class MouseNavigation extends Control {
|
|
8
|
-
static getMovePointsFromPixelTerrain(cam: any, planet: any, stepsCount: any, delta: any, point: any, forward: any, dir: any): {}[];
|
|
9
|
-
grabbedPoint: Vec3;
|
|
10
|
-
_eye0: Vec3;
|
|
11
|
-
pointOnEarth: Vec3;
|
|
12
|
-
earthUp: Vec3;
|
|
13
|
-
inertia: number;
|
|
14
|
-
grabbedSpheroid: Sphere;
|
|
15
|
-
planet: any;
|
|
16
|
-
qRot: Quat;
|
|
17
|
-
scaleRot: number;
|
|
18
|
-
distDiff: number;
|
|
19
|
-
stepsCount: number;
|
|
20
|
-
stepsForward: {}[];
|
|
21
|
-
stepIndex: number;
|
|
22
|
-
_lmbDoubleClickActive: boolean;
|
|
23
|
-
minSlope: any;
|
|
24
|
-
_keyLock: Key;
|
|
25
|
-
activateDoubleClickZoom(): void;
|
|
26
|
-
deactivateDoubleClickZoom(): void;
|
|
27
|
-
onMouseEnter(e: any): void;
|
|
28
|
-
onMouseLeave(e: any): void;
|
|
29
|
-
onMouseWheel(event: any): void;
|
|
30
|
-
_deactivate: boolean;
|
|
31
|
-
onMouseLeftButtonDoubleClick(): void;
|
|
32
|
-
onMouseLeftButtonClick(): void;
|
|
33
|
-
stopRotation(): void;
|
|
34
|
-
onMouseLeftButtonUp(e: any): void;
|
|
35
|
-
onMouseLeftButtonDown(e: any): void;
|
|
36
|
-
onMouseRightButtonClick(e: any): void;
|
|
37
|
-
onMouseRightButtonDown(e: any): void;
|
|
38
|
-
onShiftFree(): void;
|
|
39
|
-
_shiftBusy: boolean;
|
|
40
|
-
onMouseMove(e: any): void;
|
|
41
|
-
onDraw(e: any): void;
|
|
42
|
-
}
|
|
43
|
-
import { Control } from "./Control.js";
|
|
44
|
-
import { Vec3 } from "../math/Vec3.js";
|
|
45
|
-
import { Sphere } from "../bv/Sphere.js";
|
|
46
|
-
import { Quat } from "../math/Quat.js";
|
|
47
|
-
import { Key } from "../Lock.js";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export function scaleControl(options: any): ScaleControl;
|
|
2
|
-
/**
|
|
3
|
-
* Planet zoom buttons control.
|
|
4
|
-
* @class
|
|
5
|
-
* @extends {Control}
|
|
6
|
-
* @params {Object} [options] - Control options.
|
|
7
|
-
*/
|
|
8
|
-
export class ScaleControl extends Control {
|
|
9
|
-
constructor(options?: {});
|
|
10
|
-
_template: string;
|
|
11
|
-
planet: any;
|
|
12
|
-
_minWidth: number;
|
|
13
|
-
_maxWidth: number;
|
|
14
|
-
_renderTemplate(): ChildNode;
|
|
15
|
-
el: ChildNode;
|
|
16
|
-
_scaleLabelEl: any;
|
|
17
|
-
_draw(e: any): void;
|
|
18
|
-
_mPx: number;
|
|
19
|
-
currWidth: number;
|
|
20
|
-
_metersInMinSize: number;
|
|
21
|
-
}
|
|
22
|
-
import { Control } from "./Control.js";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export function showFps(options: any): ShowFps;
|
|
2
|
-
/**
|
|
3
|
-
* Frame per second(FPS) display control.
|
|
4
|
-
* @class
|
|
5
|
-
* @extends {Control}
|
|
6
|
-
* @param {Object} [options] - Control options.
|
|
7
|
-
*/
|
|
8
|
-
export class ShowFps extends Control {
|
|
9
|
-
_draw(): void;
|
|
10
|
-
}
|
|
11
|
-
import { Control } from "./Control.js";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates simple navigation control instance.
|
|
3
|
-
*/
|
|
4
|
-
export function simpleNavigation(options: any): SimpleNavigation;
|
|
5
|
-
/**
|
|
6
|
-
* Simple keyboard camera navigation with W,S,A,D and shift keys to fly around the scene.
|
|
7
|
-
* @class
|
|
8
|
-
* @extends {Control}
|
|
9
|
-
* @param {Object} [options] - Control options.
|
|
10
|
-
*/
|
|
11
|
-
export class SimpleNavigation extends Control {
|
|
12
|
-
camera: any;
|
|
13
|
-
speed: any;
|
|
14
|
-
onCameraMoveForward(): void;
|
|
15
|
-
onCameraMoveBackward(): void;
|
|
16
|
-
onCameraStrifeLeft(): void;
|
|
17
|
-
onCameraStrifeRight(): void;
|
|
18
|
-
onCameraLookUp(): void;
|
|
19
|
-
onCameraLookDown(): void;
|
|
20
|
-
onCameraTurnLeft(): void;
|
|
21
|
-
onCameraTurnRight(): void;
|
|
22
|
-
onCameraRollLeft(): void;
|
|
23
|
-
onCameraRollRight(): void;
|
|
24
|
-
}
|
|
25
|
-
import { Control } from "./Control.js";
|
package/types/control/Sun.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export function sun(options: any): any;
|
|
2
|
-
/**
|
|
3
|
-
* Real Sun geocentric position control that place the Sun on the right place by the Earth.
|
|
4
|
-
* @class
|
|
5
|
-
* @extends {Control}
|
|
6
|
-
* @param {Object} [options] - Control options.
|
|
7
|
-
*/
|
|
8
|
-
export class Sun extends Control {
|
|
9
|
-
/**
|
|
10
|
-
* Earth planet node.
|
|
11
|
-
* @public
|
|
12
|
-
* @type {Planet}
|
|
13
|
-
*/
|
|
14
|
-
public planet: Planet;
|
|
15
|
-
/**
|
|
16
|
-
* Sunlight position placed in the camera eye.
|
|
17
|
-
* @private
|
|
18
|
-
* @type {boolean}
|
|
19
|
-
*/
|
|
20
|
-
private offsetVertical;
|
|
21
|
-
offsetHorizontal: any;
|
|
22
|
-
/**
|
|
23
|
-
* Light source.
|
|
24
|
-
* @public
|
|
25
|
-
* @type {LightSource}
|
|
26
|
-
*/
|
|
27
|
-
public sunlight: LightSource;
|
|
28
|
-
/**
|
|
29
|
-
* Current frame handler clock date and time.
|
|
30
|
-
* @private
|
|
31
|
-
* @type {Number}
|
|
32
|
-
*/
|
|
33
|
-
private _currDate;
|
|
34
|
-
/**
|
|
35
|
-
* Previous frame handler clock date and time.
|
|
36
|
-
* @private
|
|
37
|
-
* @type {Number}
|
|
38
|
-
*/
|
|
39
|
-
private _prevDate;
|
|
40
|
-
_clockPtr: any;
|
|
41
|
-
_lightOn: boolean;
|
|
42
|
-
_stopped: any;
|
|
43
|
-
stop(): void;
|
|
44
|
-
bindClock(clock: any): void;
|
|
45
|
-
_draw(): void;
|
|
46
|
-
_f: number;
|
|
47
|
-
_k: number;
|
|
48
|
-
}
|
|
49
|
-
import { Control } from "./Control.js";
|
|
50
|
-
import { LightSource } from "../light/LightSource.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Planet GL draw mode(TRIANGLE_STRIP/LINE_STRING) changer.
|
|
3
|
-
* @class
|
|
4
|
-
* @extends {Control}
|
|
5
|
-
* @param {Object} [options] - Control options.
|
|
6
|
-
*/
|
|
7
|
-
export class ToggleWireframe extends Control {
|
|
8
|
-
constructor(options?: {});
|
|
9
|
-
_isActive: any;
|
|
10
|
-
toogleWireframe(e: any): void;
|
|
11
|
-
}
|
|
12
|
-
import { Control } from "./Control.js";
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Touch pad planet camera dragging control.
|
|
3
|
-
* @class
|
|
4
|
-
* @extends {Control}
|
|
5
|
-
* @param {Object} [options] - Control options.
|
|
6
|
-
*/
|
|
7
|
-
export class TouchNavigation extends Control {
|
|
8
|
-
grabbedPoint: Vec3;
|
|
9
|
-
inertia: number;
|
|
10
|
-
grabbedSpheroid: Sphere;
|
|
11
|
-
planet: any;
|
|
12
|
-
qRot: Quat;
|
|
13
|
-
scaleRot: number;
|
|
14
|
-
rot: number;
|
|
15
|
-
_eye0: Vec3;
|
|
16
|
-
stepsCount: number;
|
|
17
|
-
stepsForward: any;
|
|
18
|
-
stepIndex: number;
|
|
19
|
-
pointOnEarth: any;
|
|
20
|
-
earthUp: any;
|
|
21
|
-
touches: Touch[];
|
|
22
|
-
_keyLock: Key;
|
|
23
|
-
onTouchStart(e: any): void;
|
|
24
|
-
_touching: boolean;
|
|
25
|
-
_startTouchOne(e: any): void;
|
|
26
|
-
stopRotation(): void;
|
|
27
|
-
onDoubleTouch(e: any): void;
|
|
28
|
-
onTouchEnd(e: any): void;
|
|
29
|
-
onTouchCancel(e: any): void;
|
|
30
|
-
onTouchMove(e: any): void;
|
|
31
|
-
onDraw(e: any): void;
|
|
32
|
-
}
|
|
33
|
-
import { Control } from "./Control.js";
|
|
34
|
-
import { Vec3 } from "../math/Vec3.js";
|
|
35
|
-
import { Sphere } from "../bv/Sphere.js";
|
|
36
|
-
import { Quat } from "../math/Quat.js";
|
|
37
|
-
declare class Touch {
|
|
38
|
-
x: number;
|
|
39
|
-
y: number;
|
|
40
|
-
prev_x: number;
|
|
41
|
-
prev_y: number;
|
|
42
|
-
grabbedPoint: Vec3;
|
|
43
|
-
grabbedSpheroid: Sphere;
|
|
44
|
-
dX: () => number;
|
|
45
|
-
dY: () => number;
|
|
46
|
-
}
|
|
47
|
-
import { Key } from "../Lock.js";
|
|
48
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export function zoomControl(options: any): ZoomControl;
|
|
2
|
-
/**
|
|
3
|
-
* Planet zoom buttons control.
|
|
4
|
-
* @class
|
|
5
|
-
* @extends {Control}
|
|
6
|
-
* @params {Object} [options] - Control options.
|
|
7
|
-
*/
|
|
8
|
-
export class ZoomControl extends Control {
|
|
9
|
-
_keyLock: Key;
|
|
10
|
-
planet: any;
|
|
11
|
-
_move: number;
|
|
12
|
-
/**
|
|
13
|
-
* Planet zoom in.
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
public zoomIn(): void;
|
|
17
|
-
_targetPoint: any;
|
|
18
|
-
/**
|
|
19
|
-
* Planet zoom out.
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
public zoomOut(): void;
|
|
23
|
-
stopZoom(): void;
|
|
24
|
-
_draw(e: any): void;
|
|
25
|
-
}
|
|
26
|
-
import { Control } from "./Control.js";
|
|
27
|
-
import { Key } from "../Lock.js";
|
package/types/control/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Control } from "./Control.js";
|
|
2
|
-
import { CompassButton } from "./CompassButton.js";
|
|
3
|
-
import { DebugInfo } from "./DebugInfo";
|
|
4
|
-
import { EarthNavigation } from "./EarthNavigation.js";
|
|
5
|
-
import { EarthCoordinates } from "./EarthCoordinates.js";
|
|
6
|
-
import { GeoImageDragControl } from "./GeoImageDragControl.js";
|
|
7
|
-
import { KeyboardNavigation } from "./KeyboardNavigation.js";
|
|
8
|
-
import { LayerSwitcher } from "./LayerSwitcher.js";
|
|
9
|
-
import { MouseNavigation } from "./MouseNavigation.js";
|
|
10
|
-
import { ToggleWireframe } from "./ToggleWireframe.js";
|
|
11
|
-
import { TouchNavigation } from "./TouchNavigation.js";
|
|
12
|
-
import { SimpleNavigation } from "./SimpleNavigation.js";
|
|
13
|
-
import { ShowFps } from "./ShowFps.js";
|
|
14
|
-
import { Sun } from "./Sun.js";
|
|
15
|
-
import { ZoomControl } from "./ZoomControl.js";
|
|
16
|
-
import { Lighting } from "./Lighting.js";
|
|
17
|
-
export { Control, CompassButton, DebugInfo, EarthNavigation, EarthCoordinates, GeoImageDragControl, KeyboardNavigation, LayerSwitcher, MouseNavigation, ToggleWireframe, TouchNavigation, SimpleNavigation, ShowFps, Sun, ZoomControl, Lighting };
|