@openglobus/og 0.11.1 → 0.11.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.
- package/package.json +18 -20
- package/src/og/Clock.js +11 -11
- package/src/og/Deferred.js +1 -1
- package/src/og/Events.js +9 -7
- package/src/og/Extent.js +117 -72
- package/src/og/Globe.js +35 -22
- package/src/og/ImageCanvas.js +24 -18
- package/src/og/Lock.js +2 -2
- package/src/og/LonLat.js +40 -37
- package/src/og/Popup.js +21 -15
- package/src/og/QueueArray.js +7 -3
- package/src/og/Rectangle.js +11 -6
- package/src/og/Stack.js +8 -5
- package/src/og/ajax.js +21 -33
- package/src/og/astro/astro.js +5 -5
- package/src/og/astro/earth.js +23 -17
- package/src/og/astro/jd.js +44 -39
- package/src/og/astro/orbit.js +20 -18
- package/src/og/astro/rotation.js +17 -8
- package/src/og/bv/Box.js +7 -3
- package/src/og/bv/Sphere.js +17 -9
- package/src/og/camera/Camera.js +137 -86
- package/src/og/camera/Frustum.js +30 -19
- package/src/og/camera/PlanetCamera.js +30 -26
- package/src/og/control/CompassButton.js +8 -2
- package/src/og/control/Control.js +13 -11
- package/src/og/control/DebugInfo.js +4 -1
- package/src/og/control/EarthCoordinates.js +62 -41
- package/src/og/control/EarthNavigation.js +20 -22
- package/src/og/control/GeoImageDragControl.js +1 -1
- package/src/og/control/KeyboardNavigation.js +12 -12
- package/src/og/control/LayerSwitcher.js +24 -23
- package/src/og/control/Lighting.js +1 -1
- package/src/og/control/MouseNavigation.js +1 -1
- package/src/og/control/ScaleControl.js +1 -1
- package/src/og/control/SegmentBoundVisualization.js +8 -9
- package/src/og/control/ShowFps.js +15 -10
- package/src/og/control/SimpleNavigation.js +8 -10
- package/src/og/control/Sun.js +25 -15
- package/src/og/control/ToggleWireframe.js +5 -5
- package/src/og/control/TouchNavigation.js +58 -45
- package/src/og/control/ZoomControl.js +41 -25
- package/src/og/control/index.js +4 -0
- package/src/og/ellipsoid/Ellipsoid.js +181 -85
- package/src/og/ellipsoid/wgs84.js +4 -4
- package/src/og/entity/BaseBillboard.js +97 -44
- package/src/og/entity/Billboard.js +15 -11
- package/src/og/entity/BillboardHandler.js +314 -64
- package/src/og/entity/Entity.js +106 -74
- package/src/og/entity/EntityCollection.js +72 -49
- package/src/og/entity/GeoObject.js +228 -0
- package/src/og/entity/GeoObjectHandler.js +910 -0
- package/src/og/entity/Geometry.js +29 -26
- package/src/og/entity/GeometryHandler.js +598 -126
- package/src/og/entity/Label.js +74 -40
- package/src/og/entity/LabelHandler.js +47 -246
- package/src/og/entity/LabelWorker.js +213 -0
- package/src/og/entity/Object3d.js +504 -0
- package/src/og/entity/PointCloud.js +81 -33
- package/src/og/entity/PointCloudHandler.js +9 -9
- package/src/og/entity/Polyline.js +39 -39
- package/src/og/entity/Ray.js +61 -28
- package/src/og/entity/ShapeHandler.js +1 -1
- package/src/og/entity/Strip.js +77 -48
- package/src/og/entity/StripHandler.js +27 -27
- package/src/og/entity/index.js +8 -16
- package/src/og/input/KeyboardHandler.js +107 -104
- package/src/og/input/MouseHandler.js +81 -78
- package/src/og/input/TouchHandler.js +55 -51
- package/src/og/layer/BaseGeoImage.js +61 -30
- package/src/og/layer/CanvasTiles.js +26 -24
- package/src/og/layer/GeoImage.js +10 -10
- package/src/og/layer/GeoTexture2d.js +1 -1
- package/src/og/layer/GeoVideo.js +3 -3
- package/src/og/layer/KML.js +66 -40
- package/src/og/layer/Layer.js +27 -17
- package/src/og/layer/Material.js +93 -61
- package/src/og/layer/Vector.js +118 -72
- package/src/og/layer/WMS.js +36 -19
- package/src/og/layer/XYZ.js +55 -48
- package/src/og/light/LightSource.js +47 -40
- package/src/og/math/Line2.js +24 -24
- package/src/og/math/Line3.js +103 -102
- package/src/og/math/Mat3.js +134 -121
- package/src/og/math/Mat4.js +603 -459
- package/src/og/math/Plane.js +21 -20
- package/src/og/math/Quat.js +980 -927
- package/src/og/math/Ray.js +195 -187
- package/src/og/math/Vec2.js +127 -117
- package/src/og/math/Vec3.js +206 -176
- package/src/og/math/Vec4.js +49 -53
- package/src/og/math/coder.js +18 -18
- package/src/og/math.js +12 -12
- package/src/og/mercator.js +11 -11
- package/src/og/proj/EPSG3857.js +4 -4
- package/src/og/proj/EPSG4326.js +4 -4
- package/src/og/proj/Proj.js +31 -31
- package/src/og/quadTree/EntityCollectionNode.js +310 -300
- package/src/og/quadTree/Node.js +1008 -993
- package/src/og/renderer/Renderer.js +768 -747
- package/src/og/renderer/RendererEvents.js +9 -6
- package/src/og/scene/Axes.js +1 -1
- package/src/og/scene/BaseNode.js +8 -9
- package/src/og/scene/Planet.js +115 -87
- package/src/og/scene/RenderNode.js +29 -22
- package/src/og/scene/SkyBox.js +1 -1
- package/src/og/segment/Segment.js +1886 -1878
- package/src/og/segment/SegmentLonLat.js +298 -268
- package/src/og/segment/segmentHelper.js +11 -11
- package/src/og/shaders/bloom.js +1 -1
- package/src/og/shaders/blur.js +2 -2
- package/src/og/shaders/depth.js +1 -1
- package/src/og/shaders/geoObject.js +211 -0
- package/src/og/shaders/label.js +1 -1
- package/src/og/shaders/lumFilter.js +1 -1
- package/src/og/shaders/pointCloud.js +42 -42
- package/src/og/shaders/screenFrame.js +1 -1
- package/src/og/shaders/shape.js +15 -21
- package/src/og/shaders/skybox.js +37 -37
- package/src/og/shaders/toneMapping.js +1 -1
- package/src/og/shapes/BaseShape.js +129 -57
- package/src/og/shapes/Icosphere.js +30 -15
- package/src/og/shapes/Sphere.js +13 -16
- package/src/og/terrain/BilTerrain.js +2 -1
- package/src/og/terrain/EmptyTerrain.js +2 -2
- package/src/og/terrain/Geoid.js +2 -2
- package/src/og/terrain/GlobusTerrain.js +10 -10
- package/src/og/terrain/MapboxTerrain.js +1 -1
- package/src/og/utils/GeoImageCreator.js +9 -9
- package/src/og/utils/Loader.js +6 -6
- package/src/og/utils/NormalMapCreator.js +13 -13
- package/src/og/utils/TerrainWorker.js +1 -1
- package/src/og/utils/TextureAtlas.js +20 -22
- package/src/og/utils/VectorTileCreator.js +5 -5
- package/src/og/utils/earcut.js +1 -1
- package/src/og/utils/shared.js +15 -15
- package/src/og/webgl/Framebuffer.js +101 -53
- package/src/og/webgl/Handler.js +125 -85
- package/src/og/webgl/Multisample.js +55 -27
- package/src/og/webgl/Program.js +80 -35
- package/src/og/webgl/ProgramController.js +27 -23
- package/src/og/webgl/callbacks.js +8 -8
- package/types/Clock.d.ts +6 -2
- package/types/Deferred.d.ts +1 -1
- package/types/Events.d.ts +8 -4
- package/types/Extent.d.ts +37 -33
- package/types/Globe.d.ts +15 -13
- package/types/ImageCanvas.d.ts +5 -3
- package/types/LonLat.d.ts +24 -24
- package/types/Popup.d.ts +4 -0
- package/types/QueueArray.d.ts +6 -2
- package/types/Rectangle.d.ts +10 -4
- package/types/Stack.d.ts +4 -0
- package/types/ajax.d.ts +1 -1
- package/types/astro/earth.d.ts +3 -2
- package/types/bv/Box.d.ts +10 -5
- package/types/bv/Sphere.d.ts +13 -7
- package/types/camera/Camera.d.ts +90 -81
- package/types/camera/Frustum.d.ts +26 -22
- package/types/camera/PlanetCamera.d.ts +49 -53
- package/types/control/CompassButton.d.ts +4 -4
- package/types/control/Control.d.ts +7 -4
- package/types/control/DebugInfo.d.ts +3 -4
- package/types/control/EarthCoordinates.d.ts +6 -6
- package/types/control/EarthNavigation.d.ts +42 -0
- package/types/control/KeyboardNavigation.d.ts +3 -4
- package/types/control/LayerSwitcher.d.ts +3 -5
- package/types/control/Lighting.d.ts +3 -3
- package/types/control/MouseNavigation.d.ts +47 -0
- package/types/control/ScaleControl.d.ts +3 -3
- package/types/control/ShowFps.d.ts +3 -4
- package/types/control/SimpleNavigation.d.ts +3 -6
- package/types/control/Sun.d.ts +8 -10
- package/types/control/ToggleWireframe.d.ts +3 -3
- package/types/control/TouchNavigation.d.ts +48 -0
- package/types/control/ZoomControl.d.ts +3 -4
- package/types/control/index.d.ts +3 -1
- package/types/ellipsoid/Ellipsoid.d.ts +47 -43
- package/types/ellipsoid/wgs84.d.ts +3 -2
- package/types/entity/BaseBillboard.d.ts +41 -34
- package/types/entity/Billboard.d.ts +7 -7
- package/types/entity/BillboardHandler.d.ts +4 -0
- package/types/entity/Entity.d.ts +101 -83
- package/types/entity/EntityCollection.d.ts +57 -43
- package/types/entity/GeoObject.d.ts +111 -0
- package/types/entity/GeoObjectHandler.d.ts +77 -0
- package/types/entity/Geometry.d.ts +9 -7
- package/types/entity/GeometryHandler.d.ts +2 -2
- package/types/entity/Label.d.ts +24 -29
- package/types/entity/LabelHandler.d.ts +9 -2
- package/types/entity/LabelWorker.d.ts +9 -0
- package/types/entity/PointCloud.d.ts +8 -8
- package/types/entity/PointCloudHandler.d.ts +3 -3
- package/types/entity/Polyline.d.ts +58 -55
- package/types/entity/Ray.d.ts +19 -18
- package/types/entity/Strip.d.ts +8 -7
- package/types/entity/StripHandler.d.ts +3 -3
- package/types/entity/index.d.ts +7 -7
- package/types/input/KeyboardHandler.d.ts +10 -0
- package/types/input/MouseHandler.d.ts +5 -0
- package/types/input/TouchHandler.d.ts +5 -0
- package/types/layer/BaseGeoImage.d.ts +23 -35
- package/types/layer/CanvasTiles.d.ts +15 -22
- package/types/layer/GeoImage.d.ts +5 -18
- package/types/layer/GeoVideo.d.ts +5 -30
- package/types/layer/KML.d.ts +20 -15
- package/types/layer/Layer.d.ts +326 -0
- package/types/layer/Material.d.ts +45 -0
- package/types/layer/Vector.d.ts +208 -0
- package/types/layer/WMS.d.ts +4 -7
- package/types/layer/XYZ.d.ts +19 -25
- package/types/light/LightSource.d.ts +54 -53
- package/types/math/Line2.d.ts +11 -0
- package/types/math/Line3.d.ts +10 -0
- package/types/math/Mat3.d.ts +30 -18
- package/types/math/Mat4.d.ts +71 -52
- package/types/math/Plane.d.ts +5 -4
- package/types/math/Quat.d.ts +379 -0
- package/types/math/Ray.d.ts +82 -0
- package/types/math/Vec2.d.ts +102 -101
- package/types/math/Vec3.d.ts +143 -142
- package/types/math/Vec4.d.ts +40 -39
- package/types/math/coder.d.ts +12 -11
- package/types/math.d.ts +8 -8
- package/types/mercator.d.ts +3 -3
- package/types/proj/EPSG3857.d.ts +3 -2
- package/types/proj/EPSG4326.d.ts +3 -2
- package/types/proj/Proj.d.ts +42 -0
- package/types/quadTree/EntityCollectionNode.d.ts +34 -0
- package/types/quadTree/Node.d.ts +61 -0
- package/types/renderer/Renderer.d.ts +300 -0
- package/types/renderer/RendererEvents.d.ts +10 -7
- package/types/scene/BaseNode.d.ts +9 -9
- package/types/scene/Planet.d.ts +131 -126
- package/types/scene/RenderNode.d.ts +22 -23
- package/types/segment/Segment.d.ts +279 -0
- package/types/segment/SegmentLonLat.d.ts +16 -0
- package/types/shaders/geoObject.d.ts +3 -0
- package/types/shapes/BaseShape.d.ts +43 -40
- package/types/shapes/Sphere.d.ts +7 -7
- package/types/terrain/BilTerrain.d.ts +0 -1
- package/types/terrain/EmptyTerrain.d.ts +4 -4
- package/types/terrain/GlobusTerrain.d.ts +17 -54
- package/types/terrain/MapboxTerrain.d.ts +0 -1
- package/types/utils/GeoImageCreator.d.ts +3 -2
- package/types/utils/TextureAtlas.d.ts +8 -8
- package/types/utils/shared.d.ts +25 -24
- package/types/webgl/Framebuffer.d.ts +5 -5
- package/types/webgl/Handler.d.ts +68 -43
- package/types/webgl/Multisample.d.ts +5 -5
- package/types/webgl/Program.d.ts +8 -2
- package/types/webgl/ProgramController.d.ts +18 -13
- package/src/og/inherits.js +0 -8
- package/src/og/utils/polylabel.js +0 -176
- package/types/inherits.d.ts +0 -4
package/types/camera/Camera.d.ts
CHANGED
|
@@ -1,50 +1,54 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Camera class.
|
|
3
3
|
* @class
|
|
4
|
-
* @param {
|
|
4
|
+
* @param {Renderer} [renderer] - Renderer uses the camera instance.
|
|
5
5
|
* @param {Object} [options] - Camera options:
|
|
6
6
|
* @param {Object} [options.name] - Camera name.
|
|
7
7
|
* @param {number} [options.viewAngle=38] - Camera angle of view. Default is 30.0
|
|
8
8
|
* @param {number} [options.near=1] - Camera near plane distance. Default is 1.0
|
|
9
9
|
* @param {number} [options.far=og.math.MAX] - Camera far plane distance. Deafult is og.math.MAX
|
|
10
|
-
* @param {
|
|
11
|
-
* @param {
|
|
12
|
-
* @param {
|
|
10
|
+
* @param {Vec3} [options.eye=[0,0,0]] - Camera eye position. Default (0,0,0)
|
|
11
|
+
* @param {Vec3} [options.look=[0,0,0]] - Camera look position. Default (0,0,0)
|
|
12
|
+
* @param {Vec3} [options.up=[0,1,0]] - Camera eye position. Default (0,1,0)
|
|
13
13
|
*
|
|
14
14
|
* @fires og.Camera#viewchange
|
|
15
15
|
*/
|
|
16
16
|
export class Camera {
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @param {Renderer} [renderer] - Renderer uses the camera instance.
|
|
19
|
+
* @param {Object} [options] - Camera options:
|
|
20
|
+
*/
|
|
21
|
+
constructor(renderer?: Renderer, options?: any);
|
|
18
22
|
/**
|
|
19
23
|
* Assigned renderer
|
|
20
24
|
* @public
|
|
21
|
-
* @type {
|
|
25
|
+
* @type {Renderer}
|
|
22
26
|
*/
|
|
23
|
-
public renderer:
|
|
27
|
+
public renderer: Renderer;
|
|
24
28
|
/**
|
|
25
29
|
* Camera events handler
|
|
26
30
|
* @public
|
|
27
|
-
* @type {
|
|
31
|
+
* @type {Events}
|
|
28
32
|
*/
|
|
29
|
-
public events:
|
|
33
|
+
public events: Events;
|
|
30
34
|
/**
|
|
31
35
|
* Camera position.
|
|
32
36
|
* @public
|
|
33
|
-
* @type {
|
|
37
|
+
* @type {Vec3}
|
|
34
38
|
*/
|
|
35
|
-
public eye:
|
|
39
|
+
public eye: Vec3;
|
|
36
40
|
/**
|
|
37
41
|
* Camera RTE high position
|
|
38
42
|
* @public
|
|
39
|
-
* @type {
|
|
43
|
+
* @type {Vec3}
|
|
40
44
|
*/
|
|
41
|
-
public eyeHigh:
|
|
45
|
+
public eyeHigh: Vec3;
|
|
42
46
|
/**
|
|
43
47
|
* Camera RTE low position
|
|
44
48
|
* @public
|
|
45
|
-
* @type {
|
|
49
|
+
* @type {Vec3}
|
|
46
50
|
*/
|
|
47
|
-
public eyeLow:
|
|
51
|
+
public eyeLow: Vec3;
|
|
48
52
|
/**
|
|
49
53
|
* Aspect ratio.
|
|
50
54
|
* @protected
|
|
@@ -60,38 +64,38 @@ export class Camera {
|
|
|
60
64
|
/**
|
|
61
65
|
* Camera normal matrix.
|
|
62
66
|
* @protected
|
|
63
|
-
* @type {
|
|
67
|
+
* @type {Mat3}
|
|
64
68
|
*/
|
|
65
|
-
protected _normalMatrix:
|
|
69
|
+
protected _normalMatrix: Mat3;
|
|
66
70
|
/**
|
|
67
71
|
* Camera view matrix.
|
|
68
72
|
* @protected
|
|
69
|
-
* @type {
|
|
73
|
+
* @type {Mat4}
|
|
70
74
|
*/
|
|
71
|
-
protected _viewMatrix:
|
|
75
|
+
protected _viewMatrix: Mat4;
|
|
72
76
|
/**
|
|
73
77
|
* Camera right vector.
|
|
74
78
|
* @protected
|
|
75
|
-
* @type {
|
|
79
|
+
* @type {Vec3}
|
|
76
80
|
*/
|
|
77
|
-
protected _u:
|
|
81
|
+
protected _u: Vec3;
|
|
78
82
|
/**
|
|
79
83
|
* Camera up vector.
|
|
80
84
|
* @protected
|
|
81
|
-
* @type {
|
|
85
|
+
* @type {Vec3}
|
|
82
86
|
*/
|
|
83
|
-
protected _v:
|
|
87
|
+
protected _v: Vec3;
|
|
84
88
|
/**
|
|
85
89
|
* Camera forward vector.
|
|
86
90
|
* @protected
|
|
87
|
-
* @type {
|
|
88
|
-
*/
|
|
89
|
-
protected _n:
|
|
90
|
-
_pu:
|
|
91
|
-
_pv:
|
|
92
|
-
_pn:
|
|
93
|
-
_peye:
|
|
94
|
-
|
|
91
|
+
* @type {Vec3}
|
|
92
|
+
*/
|
|
93
|
+
protected _n: Vec3;
|
|
94
|
+
_pu: Vec3;
|
|
95
|
+
_pv: Vec3;
|
|
96
|
+
_pn: Vec3;
|
|
97
|
+
_peye: Vec3;
|
|
98
|
+
isMoved: boolean;
|
|
95
99
|
_tanViewAngle_hrad: number;
|
|
96
100
|
_tanViewAngle_hradOneByHeight: number;
|
|
97
101
|
frustums: Frustum[];
|
|
@@ -103,29 +107,29 @@ export class Camera {
|
|
|
103
107
|
/**
|
|
104
108
|
* Camera initialization.
|
|
105
109
|
* @public
|
|
106
|
-
* @param {
|
|
110
|
+
* @param {Renderer} renderer - OpenGlobus renderer object.
|
|
107
111
|
* @param {Object} [options] - Camera options:
|
|
108
112
|
* @param {number} [options.viewAngle] - Camera angle of view. Default is 30.0
|
|
109
113
|
* @param {number} [options.near] - Camera near plane distance. Default is 1.0
|
|
110
114
|
* @param {number} [options.far] - Camera far plane distance. Deafult is og.math.MAX
|
|
111
|
-
* @param {
|
|
112
|
-
* @param {
|
|
113
|
-
* @param {
|
|
115
|
+
* @param {Vec3} [options.eye] - Camera eye position. Default (0,0,0)
|
|
116
|
+
* @param {Vec3} [options.look] - Camera look position. Default (0,0,0)
|
|
117
|
+
* @param {Vec3} [options.up] - Camera eye position. Default (0,1,0)
|
|
114
118
|
*/
|
|
115
119
|
public _init(options?: {
|
|
116
120
|
viewAngle?: number;
|
|
117
121
|
near?: number;
|
|
118
122
|
far?: number;
|
|
119
|
-
eye?:
|
|
120
|
-
look?:
|
|
121
|
-
up?:
|
|
123
|
+
eye?: Vec3;
|
|
124
|
+
look?: Vec3;
|
|
125
|
+
up?: Vec3;
|
|
122
126
|
}): void;
|
|
123
|
-
getUp():
|
|
124
|
-
getDown():
|
|
125
|
-
getRight():
|
|
126
|
-
getLeft():
|
|
127
|
-
getForward():
|
|
128
|
-
getBackward():
|
|
127
|
+
getUp(): Vec3;
|
|
128
|
+
getDown(): Vec3;
|
|
129
|
+
getRight(): Vec3;
|
|
130
|
+
getLeft(): Vec3;
|
|
131
|
+
getForward(): Vec3;
|
|
132
|
+
getBackward(): Vec3;
|
|
129
133
|
/**
|
|
130
134
|
* Updates camera view space
|
|
131
135
|
* @public
|
|
@@ -155,7 +159,7 @@ export class Camera {
|
|
|
155
159
|
* @param {nnumber} angle - Camera's view angle
|
|
156
160
|
* @param {number} aspect - Screen aspect ration
|
|
157
161
|
*/
|
|
158
|
-
public _setProj(angle:
|
|
162
|
+
public _setProj(angle: nnumber, aspect: number): void;
|
|
159
163
|
_projSizeConst: number;
|
|
160
164
|
/**
|
|
161
165
|
* Sets camera view angle in degrees
|
|
@@ -172,19 +176,19 @@ export class Camera {
|
|
|
172
176
|
/**
|
|
173
177
|
* Sets camera to eye position
|
|
174
178
|
* @public
|
|
175
|
-
* @param {
|
|
176
|
-
* @param {
|
|
177
|
-
* @param {
|
|
178
|
-
* @returns {
|
|
179
|
+
* @param {Vec3} eye - Camera position
|
|
180
|
+
* @param {Vec3} look - Look point
|
|
181
|
+
* @param {Vec3} up - Camera up vector
|
|
182
|
+
* @returns {Camera} - This camera
|
|
179
183
|
*/
|
|
180
|
-
public set(eye:
|
|
184
|
+
public set(eye: Vec3, look: Vec3, up: Vec3): Camera;
|
|
181
185
|
/**
|
|
182
186
|
* Sets camera look point
|
|
183
187
|
* @public
|
|
184
|
-
* @param {
|
|
185
|
-
* @param {
|
|
188
|
+
* @param {Vec3} look - Look point
|
|
189
|
+
* @param {Vec3} [up] - Camera up vector otherwise camera current up vector(this._v)
|
|
186
190
|
*/
|
|
187
|
-
public look(look:
|
|
191
|
+
public look(look: Vec3, up?: Vec3): void;
|
|
188
192
|
/**
|
|
189
193
|
* Slides camera to vector d - (du, dv, dn)
|
|
190
194
|
* @public
|
|
@@ -216,88 +220,93 @@ export class Camera {
|
|
|
216
220
|
* @public
|
|
217
221
|
* @param {number} x - Scren X coordinate
|
|
218
222
|
* @param {number} y - Scren Y coordinate
|
|
219
|
-
* @returns {
|
|
223
|
+
* @returns {Vec3} - Direction vector
|
|
220
224
|
*/
|
|
221
|
-
public unproject(x: number, y: number):
|
|
225
|
+
public unproject(x: number, y: number): Vec3;
|
|
222
226
|
/**
|
|
223
227
|
* Gets projected 3d point to the 2d screen coordiantes
|
|
224
228
|
* @public
|
|
225
|
-
* @param {
|
|
226
|
-
* @returns {
|
|
229
|
+
* @param {Vec3} v - Cartesian 3d coordiantes
|
|
230
|
+
* @returns {Vec2} - Screen point coordinates
|
|
227
231
|
*/
|
|
228
|
-
public project(v:
|
|
232
|
+
public project(v: Vec3): Vec2;
|
|
229
233
|
/**
|
|
230
234
|
* Rotates camera around center point
|
|
231
235
|
* @public
|
|
232
236
|
* @param {number} angle - Rotation angle in radians
|
|
233
237
|
* @param {boolean} isArc - If true camera up vector gets from current up vector every frame,
|
|
234
238
|
* otherwise up is always input parameter.
|
|
235
|
-
* @param {
|
|
236
|
-
* @param {
|
|
239
|
+
* @param {Vec3} center - Point that the camera rotates around
|
|
240
|
+
* @param {Vecto3} [up] - Camera up vector
|
|
237
241
|
*/
|
|
238
|
-
public rotateAround(angle: number, isArc: boolean, center:
|
|
242
|
+
public rotateAround(angle: number, isArc: boolean, center: Vec3, up?: Vecto3): void;
|
|
239
243
|
/**
|
|
240
244
|
* Rotates camera around center point by horizontal.
|
|
241
245
|
* @public
|
|
242
246
|
* @param {number} angle - Rotation angle in radians.
|
|
243
247
|
* @param {boolaen} isArc - If true camera up vector gets from current up vector every frame,
|
|
244
248
|
* otherwise up is always input parameter.
|
|
245
|
-
* @param {
|
|
246
|
-
* @param {
|
|
249
|
+
* @param {Vec3} center - Point that the camera rotates around.
|
|
250
|
+
* @param {Vec3} [up] - Camera up vector.
|
|
247
251
|
*/
|
|
248
|
-
public rotateHorizontal(angle: number, isArc:
|
|
252
|
+
public rotateHorizontal(angle: number, isArc: boolaen, center: Vec3, up?: Vec3): void;
|
|
249
253
|
/**
|
|
250
254
|
* Rotates camera around center point by vecrtical.
|
|
251
255
|
* @param {number} angle - Rotation angle in radians.
|
|
252
|
-
* @param {
|
|
256
|
+
* @param {Vec3} center - Point that the camera rotates around.
|
|
253
257
|
*/
|
|
254
|
-
rotateVertical(angle: number, center:
|
|
258
|
+
rotateVertical(angle: number, center: Vec3): void;
|
|
255
259
|
/**
|
|
256
260
|
* Gets 3d size factor. Uses in LOD distance calculation.
|
|
257
261
|
* @public
|
|
258
|
-
* @param {
|
|
259
|
-
* @param {
|
|
262
|
+
* @param {Vec3} p - Far point.
|
|
263
|
+
* @param {Vec3} r - Far point.
|
|
260
264
|
* @returns {number} - Size factor.
|
|
261
265
|
*/
|
|
262
|
-
public projectedSize(p:
|
|
266
|
+
public projectedSize(p: Vec3, r: Vec3): number;
|
|
263
267
|
/**
|
|
264
268
|
* Returns normal matrix.
|
|
265
269
|
* @public
|
|
266
|
-
* @returns {
|
|
270
|
+
* @returns {Mat3} - Normal matrix.
|
|
267
271
|
*/
|
|
268
|
-
public getNormalMatrix():
|
|
272
|
+
public getNormalMatrix(): Mat3;
|
|
269
273
|
/**
|
|
270
274
|
* Returns model matrix.
|
|
271
275
|
* @public
|
|
272
|
-
* @returns {
|
|
276
|
+
* @returns {Mat4} - View matrix.
|
|
273
277
|
*/
|
|
274
|
-
public getViewMatrix():
|
|
278
|
+
public getViewMatrix(): Mat4;
|
|
275
279
|
setCurrentFrustum(k: any): void;
|
|
276
280
|
getCurrentFrustum(): number;
|
|
277
281
|
get frustum(): Frustum;
|
|
278
282
|
/**
|
|
279
283
|
* Returns projection matrix.
|
|
280
284
|
* @public
|
|
281
|
-
* @returns {
|
|
285
|
+
* @returns {Mat4} - Projection matrix.
|
|
282
286
|
*/
|
|
283
|
-
public getProjectionMatrix():
|
|
287
|
+
public getProjectionMatrix(): Mat4;
|
|
284
288
|
/**
|
|
285
289
|
* Returns projection and model matrix product.
|
|
286
290
|
* @public
|
|
287
|
-
* @return {
|
|
291
|
+
* @return {Mat4} - Projection-view matrix.
|
|
288
292
|
*/
|
|
289
|
-
public getProjectionViewMatrix():
|
|
293
|
+
public getProjectionViewMatrix(): Mat4;
|
|
290
294
|
/**
|
|
291
295
|
* Returns inverse projection and model matrix product.
|
|
292
296
|
* @public
|
|
293
|
-
* @returns {
|
|
297
|
+
* @returns {Mat4} - Inversed projection-view matrix.
|
|
294
298
|
*/
|
|
295
|
-
public getInverseProjectionViewMatrix():
|
|
299
|
+
public getInverseProjectionViewMatrix(): Mat4;
|
|
296
300
|
/**
|
|
297
301
|
* Returns inverse projection matrix.
|
|
298
302
|
* @public
|
|
299
|
-
* @returns {
|
|
303
|
+
* @returns {Mat4} - Inversed projection-view matrix.
|
|
300
304
|
*/
|
|
301
|
-
public getInverseProjectionMatrix():
|
|
305
|
+
public getInverseProjectionMatrix(): Mat4;
|
|
302
306
|
}
|
|
307
|
+
import { Events } from "../Events.js";
|
|
308
|
+
import { Vec3 } from "../math/Vec3.js";
|
|
309
|
+
import { Mat3 } from "../math/Mat3.js";
|
|
310
|
+
import { Mat4 } from "../math/Mat4.js";
|
|
303
311
|
import { Frustum } from "./Frustum.js";
|
|
312
|
+
import { Vec2 } from "../math/Vec2.js";
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
* @class
|
|
4
4
|
*/
|
|
5
5
|
export class Frustum {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @param {*} options
|
|
8
|
+
*/
|
|
9
|
+
constructor(options?: any);
|
|
7
10
|
/**
|
|
8
11
|
* Frustum planes.
|
|
9
12
|
* @private
|
|
@@ -13,27 +16,27 @@ export class Frustum {
|
|
|
13
16
|
/**
|
|
14
17
|
* Camera projection matrix.
|
|
15
18
|
* @protected
|
|
16
|
-
* @type {
|
|
19
|
+
* @type {Mat4}
|
|
17
20
|
*/
|
|
18
|
-
protected _projectionMatrix:
|
|
21
|
+
protected _projectionMatrix: Mat4;
|
|
19
22
|
/**
|
|
20
23
|
* Camera inverse projection matrix.
|
|
21
24
|
* @protected
|
|
22
|
-
* @type {
|
|
25
|
+
* @type {Mat4}
|
|
23
26
|
*/
|
|
24
|
-
protected _inverseProjectionMatrix:
|
|
27
|
+
protected _inverseProjectionMatrix: Mat4;
|
|
25
28
|
/**
|
|
26
29
|
* Product of projection and view matrices.
|
|
27
30
|
* @protected
|
|
28
|
-
* @type {
|
|
31
|
+
* @type {Mat4}
|
|
29
32
|
*/
|
|
30
|
-
protected _projectionViewMatrix:
|
|
33
|
+
protected _projectionViewMatrix: Mat4;
|
|
31
34
|
/**
|
|
32
35
|
* Inverse projectionView Matrix.
|
|
33
36
|
* @protected
|
|
34
|
-
* @type {
|
|
37
|
+
* @type {Mat4}
|
|
35
38
|
*/
|
|
36
|
-
protected _inverseProjectionViewMatrix:
|
|
39
|
+
protected _inverseProjectionViewMatrix: Mat4;
|
|
37
40
|
/**
|
|
38
41
|
* Projection frustum left value.
|
|
39
42
|
* @public
|
|
@@ -71,9 +74,9 @@ export class Frustum {
|
|
|
71
74
|
getTopPlane(): number[];
|
|
72
75
|
getBackwardPlane(): number[];
|
|
73
76
|
getForwardPlane(): number[];
|
|
74
|
-
getProjectionViewMatrix():
|
|
75
|
-
getProjectionMatrix():
|
|
76
|
-
getInverseProjectionMatrix():
|
|
77
|
+
getProjectionViewMatrix(): number[];
|
|
78
|
+
getProjectionMatrix(): number[];
|
|
79
|
+
getInverseProjectionMatrix(): number[];
|
|
77
80
|
/**
|
|
78
81
|
* Sets up camera projection matrix.
|
|
79
82
|
* @public
|
|
@@ -82,7 +85,7 @@ export class Frustum {
|
|
|
82
85
|
* @param {number} near - Near camera distance.
|
|
83
86
|
* @param {number} far - Far camera distance.
|
|
84
87
|
*/
|
|
85
|
-
public setProjectionMatrix(angle:
|
|
88
|
+
public setProjectionMatrix(angle: nnumber, aspect: number, near: number, far: number): void;
|
|
86
89
|
/**
|
|
87
90
|
* Camera's projection matrix values.
|
|
88
91
|
* @public
|
|
@@ -92,25 +95,25 @@ export class Frustum {
|
|
|
92
95
|
/**
|
|
93
96
|
* Returns true if a point in the frustum.
|
|
94
97
|
* @public
|
|
95
|
-
* @param {
|
|
98
|
+
* @param {Vec3} point - Cartesian point.
|
|
96
99
|
* @returns {boolean} -
|
|
97
100
|
*/
|
|
98
|
-
public containsPoint(point:
|
|
101
|
+
public containsPoint(point: Vec3): boolean;
|
|
99
102
|
/**
|
|
100
103
|
* Returns true if the frustum contains a bonding sphere, but bottom plane exclude.
|
|
101
104
|
* @public
|
|
102
|
-
* @param {
|
|
105
|
+
* @param {Sphere} sphere - Bounding sphere.
|
|
103
106
|
* @returns {boolean} -
|
|
104
107
|
*/
|
|
105
|
-
public containsSphereBottomExc(sphere:
|
|
108
|
+
public containsSphereBottomExc(sphere: Sphere): boolean;
|
|
106
109
|
containsSphereButtom(sphere: any): boolean;
|
|
107
110
|
/**
|
|
108
111
|
* Returns true if the frustum contains a bonding sphere.
|
|
109
112
|
* @public
|
|
110
|
-
* @param {
|
|
113
|
+
* @param {Sphere} sphere - Bounding sphere.
|
|
111
114
|
* @returns {boolean} -
|
|
112
115
|
*/
|
|
113
|
-
public containsSphere(sphere:
|
|
116
|
+
public containsSphere(sphere: Sphere): boolean;
|
|
114
117
|
/**
|
|
115
118
|
* Returns true if the frustum contains a bonding sphere.
|
|
116
119
|
* @public
|
|
@@ -118,12 +121,13 @@ export class Frustum {
|
|
|
118
121
|
* @param {number} radius - Sphere radius.
|
|
119
122
|
* @returns {boolean} -
|
|
120
123
|
*/
|
|
121
|
-
public containsSphere2(center:
|
|
124
|
+
public containsSphere2(center: Vec3, radius: number): boolean;
|
|
122
125
|
/**
|
|
123
126
|
* Returns true if the frustum contains a bounding box.
|
|
124
127
|
* @public
|
|
125
|
-
* @param {
|
|
128
|
+
* @param {Box} box - Bounding box.
|
|
126
129
|
* @returns {boolean} -
|
|
127
130
|
*/
|
|
128
|
-
public containsBox(box:
|
|
131
|
+
public containsBox(box: Box): boolean;
|
|
129
132
|
}
|
|
133
|
+
import { Mat4 } from "../math/Mat4.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Planet camera.
|
|
3
3
|
* @class
|
|
4
|
-
* @extends {
|
|
5
|
-
* @param {
|
|
4
|
+
* @extends {Camera}
|
|
5
|
+
* @param {RenderNode} planet - Planet render node.
|
|
6
6
|
* @param {Object} [options] - Planet camera options:
|
|
7
7
|
* @param {Object} [options.name] - Camera name.
|
|
8
8
|
* @param {number} [options.viewAngle=37] - Camera angle of view. Default is 35.0
|
|
@@ -10,18 +10,22 @@
|
|
|
10
10
|
* @param {number} [options.far] - Camera far plane distance. Deafult is og.math.MAX
|
|
11
11
|
* @param {number} [options.minAltitude] - Minimal altitude for the camera. Deafult is 1
|
|
12
12
|
* @param {number} [options.maxAltitude] - Maximal altitude for the camera. Deafult is 20000000
|
|
13
|
-
* @param {
|
|
14
|
-
* @param {
|
|
15
|
-
* @param {
|
|
13
|
+
* @param {Vec3} [options.eye] - Camera eye position. Default (0,0,0)
|
|
14
|
+
* @param {Vec3} [options.look] - Camera look position. Default (0,0,0)
|
|
15
|
+
* @param {Vec3} [options.up] - Camera eye position. Default (0,1,0)
|
|
16
16
|
*/
|
|
17
|
-
export class PlanetCamera {
|
|
18
|
-
|
|
17
|
+
export class PlanetCamera extends Camera {
|
|
18
|
+
/**
|
|
19
|
+
* @param {RenderNode} planet - Planet render node.
|
|
20
|
+
* @param {Object} [options] - Planet camera options:
|
|
21
|
+
*/
|
|
22
|
+
constructor(planet: RenderNode, options?: any);
|
|
19
23
|
/**
|
|
20
24
|
* Assigned camera's planet.
|
|
21
25
|
* @public
|
|
22
|
-
* @type {
|
|
26
|
+
* @type {Planet}
|
|
23
27
|
*/
|
|
24
|
-
public planet:
|
|
28
|
+
public planet: Planet;
|
|
25
29
|
/**
|
|
26
30
|
* Minimal alltitude that camera can reach over the terrain.
|
|
27
31
|
* @public
|
|
@@ -37,15 +41,15 @@ export class PlanetCamera {
|
|
|
37
41
|
/**
|
|
38
42
|
* Current geographical degree position.
|
|
39
43
|
* @protected
|
|
40
|
-
* @type {
|
|
44
|
+
* @type {LonLat}
|
|
41
45
|
*/
|
|
42
|
-
protected _lonLat:
|
|
46
|
+
protected _lonLat: LonLat;
|
|
43
47
|
/**
|
|
44
48
|
* Current geographical mercator position.
|
|
45
49
|
* @protected
|
|
46
|
-
* @type {
|
|
50
|
+
* @type {LonLat}
|
|
47
51
|
*/
|
|
48
|
-
protected _lonLatMerc:
|
|
52
|
+
protected _lonLatMerc: LonLat;
|
|
49
53
|
/**
|
|
50
54
|
* Current altitude.
|
|
51
55
|
* @protected
|
|
@@ -55,22 +59,22 @@ export class PlanetCamera {
|
|
|
55
59
|
/**
|
|
56
60
|
* Cartesian coordinates on the terrain.
|
|
57
61
|
* @protected
|
|
58
|
-
* @type {
|
|
62
|
+
* @type {Vec3}
|
|
59
63
|
*/
|
|
60
|
-
protected _terrainPoint:
|
|
64
|
+
protected _terrainPoint: Vec3;
|
|
61
65
|
/**
|
|
62
66
|
* Quad node that camera flies over.
|
|
63
67
|
* @protected
|
|
64
|
-
* @type {
|
|
68
|
+
* @type {quadTree.Node}
|
|
65
69
|
*/
|
|
66
|
-
protected _insideSegment:
|
|
70
|
+
protected _insideSegment: quadTree.Node;
|
|
67
71
|
/**
|
|
68
72
|
* Coordinates that depends on what segment class we are fling over.
|
|
69
73
|
* It can be WGS84 or Mercator coordinates. Gets in og.quadTree.Node
|
|
70
74
|
* @protected
|
|
71
|
-
* @type {
|
|
75
|
+
* @type {LonLat}
|
|
72
76
|
*/
|
|
73
|
-
protected _insideSegmentPosition:
|
|
77
|
+
protected _insideSegmentPosition: LonLat;
|
|
74
78
|
slope: number;
|
|
75
79
|
_keyLock: Key;
|
|
76
80
|
_framesArr: any[];
|
|
@@ -78,13 +82,7 @@ export class PlanetCamera {
|
|
|
78
82
|
_numFrames: number;
|
|
79
83
|
_completeCallback: any;
|
|
80
84
|
_flying: boolean;
|
|
81
|
-
|
|
82
|
-
* Updates camera view space.
|
|
83
|
-
* @public
|
|
84
|
-
* @virtual
|
|
85
|
-
*/
|
|
86
|
-
public update(): void;
|
|
87
|
-
eyeNorm: any;
|
|
85
|
+
eyeNorm: Vec3;
|
|
88
86
|
updateGeodeticPosition(): void;
|
|
89
87
|
/**
|
|
90
88
|
* Sets altitude over the terrain.
|
|
@@ -100,17 +98,17 @@ export class PlanetCamera {
|
|
|
100
98
|
/**
|
|
101
99
|
* Places camera to view to the geographical point.
|
|
102
100
|
* @public
|
|
103
|
-
* @param {
|
|
104
|
-
* @param {
|
|
105
|
-
* @param {
|
|
101
|
+
* @param {LonLat} lonlat - New camera and camera view position.
|
|
102
|
+
* @param {LonLat} [lookLonLat] - Look up coordinates.
|
|
103
|
+
* @param {Vec3} [up] - Camera UP vector. Default (0,1,0)
|
|
106
104
|
*/
|
|
107
|
-
public setLonLat(lonlat:
|
|
105
|
+
public setLonLat(lonlat: LonLat, lookLonLat?: LonLat, up?: Vec3): void;
|
|
108
106
|
/**
|
|
109
107
|
* Returns camera geographical position.
|
|
110
108
|
* @public
|
|
111
|
-
* @returns {
|
|
109
|
+
* @returns {LonLat}
|
|
112
110
|
*/
|
|
113
|
-
public getLonLat():
|
|
111
|
+
public getLonLat(): LonLat;
|
|
114
112
|
/**
|
|
115
113
|
* Returns camera height.
|
|
116
114
|
* @public
|
|
@@ -120,54 +118,54 @@ export class PlanetCamera {
|
|
|
120
118
|
/**
|
|
121
119
|
* Gets position by viewable extent.
|
|
122
120
|
* @public
|
|
123
|
-
* @param {
|
|
121
|
+
* @param {Extent} extent - Viewable extent.
|
|
124
122
|
* @param {Number} height - Camera height
|
|
125
|
-
* @returns {
|
|
123
|
+
* @returns {Vec3}
|
|
126
124
|
*/
|
|
127
|
-
public getExtentPosition(extent:
|
|
125
|
+
public getExtentPosition(extent: Extent, height: number): Vec3;
|
|
128
126
|
/**
|
|
129
127
|
* View current extent.
|
|
130
128
|
* @public
|
|
131
|
-
* @param {
|
|
129
|
+
* @param {Extent} extent - Current extent.
|
|
132
130
|
*/
|
|
133
|
-
public viewExtent(extent:
|
|
131
|
+
public viewExtent(extent: Extent, height: any): void;
|
|
134
132
|
/**
|
|
135
133
|
* Flies to the current extent.
|
|
136
134
|
* @public
|
|
137
|
-
* @param {
|
|
138
|
-
* @param {
|
|
135
|
+
* @param {Extent} extent - Current extent.
|
|
136
|
+
* @param {Vec3} [up] - Camera UP in the end of flying. Default - (0,1,0)
|
|
139
137
|
* @param {Number} [ampl] - Altitude amplitude factor.
|
|
140
138
|
* @param {cameraCallback} [completeCallback] - Callback that calls after flying when flying is finished.
|
|
141
139
|
* @param {cameraCallback} [startCallback] - Callback that calls befor the flying begins.
|
|
142
140
|
* @param [frameCallback]
|
|
143
141
|
*/
|
|
144
|
-
public flyExtent(extent:
|
|
142
|
+
public flyExtent(extent: Extent, height: any, up?: Vec3, ampl?: number, completeCallback?: cameraCallback, startCallback?: cameraCallback, frameCallback?: any): void;
|
|
145
143
|
viewDistance(cartesian: any, distance?: number): void;
|
|
146
144
|
flyDistance(cartesian: any, distance: number, ampl: number, completeCallback: any, startCallback: any, frameCallback: any): void;
|
|
147
145
|
/**
|
|
148
146
|
* Flies to the cartesian coordinates.
|
|
149
147
|
* @public
|
|
150
|
-
* @param {
|
|
151
|
-
* @param {
|
|
152
|
-
* @param {
|
|
148
|
+
* @param {Vec3} cartesian - Finish cartesian coordinates.
|
|
149
|
+
* @param {Vec3} [look] - Camera LOOK in the end of flying. Default - (0,0,0)
|
|
150
|
+
* @param {Vec3} [up] - Camera UP vector in the end of flying. Default - (0,1,0)
|
|
153
151
|
* @param {Number} [ampl=1.0] - Altitude amplitude factor.
|
|
154
152
|
* @param {cameraCallback} [completeCallback] - Callback that calls after flying when flying is finished.
|
|
155
153
|
* @param {cameraCallback} [startCallback] - Callback that calls befor the flying begins.
|
|
156
154
|
* @param [frameCallback]
|
|
157
155
|
*/
|
|
158
|
-
public flyCartesian(cartesian:
|
|
156
|
+
public flyCartesian(cartesian: Vec3, look?: Vec3, up?: Vec3, ampl?: number, completeCallback?: cameraCallback, startCallback?: cameraCallback, frameCallback?: any): void;
|
|
159
157
|
_frameCallback: any;
|
|
160
158
|
/**
|
|
161
159
|
* Flies to the geo coordiantes.
|
|
162
160
|
* @public
|
|
163
|
-
* @param {
|
|
164
|
-
* @param {
|
|
165
|
-
* @param {
|
|
161
|
+
* @param {LonLat} lonlat - Finish coordinates.
|
|
162
|
+
* @param {Vec3} [look] - Camera LOOK in the end of flying. Default - (0,0,0)
|
|
163
|
+
* @param {Vec3} [up] - Camera UP vector in the end of flying. Default - (0,1,0)
|
|
166
164
|
* @param {Number} [ampl] - Altitude amplitude factor.
|
|
167
165
|
* @param {cameraCallback} [completeCallback] - Callback that calls after flying when flying is finished.
|
|
168
166
|
* @param {cameraCallback} [startCallback] - Callback that calls befor the flying begins.
|
|
169
167
|
*/
|
|
170
|
-
public flyLonLat(lonlat:
|
|
168
|
+
public flyLonLat(lonlat: LonLat, look?: Vec3, up?: Vec3, ampl?: number, completeCallback?: cameraCallback, startCallback?: cameraCallback): void;
|
|
171
169
|
/**
|
|
172
170
|
* Breaks the flight.
|
|
173
171
|
* @public
|
|
@@ -205,11 +203,6 @@ export class PlanetCamera {
|
|
|
205
203
|
* @param {number} angle - Rotation angle.
|
|
206
204
|
*/
|
|
207
205
|
public rotateDown(angle: number): void;
|
|
208
|
-
rotateVertical(angle: any, center: any, minSlope?: number): void;
|
|
209
|
-
eye: any;
|
|
210
|
-
_v: any;
|
|
211
|
-
_u: any;
|
|
212
|
-
_n: any;
|
|
213
206
|
/**
|
|
214
207
|
* Prepare camera to the frame. Used in render node frame function.
|
|
215
208
|
* @public
|
|
@@ -219,4 +212,7 @@ export class PlanetCamera {
|
|
|
219
212
|
getSurfaceVisibleDistance(d: any): number;
|
|
220
213
|
getHeading(): number;
|
|
221
214
|
}
|
|
215
|
+
import { Camera } from "./Camera.js";
|
|
216
|
+
import { LonLat } from "../LonLat.js";
|
|
217
|
+
import { Vec3 } from "../math/Vec3.js";
|
|
222
218
|
import { Key } from "../Lock.js";
|
|
@@ -2,16 +2,16 @@ export function compassButton(options: any): CompassButton;
|
|
|
2
2
|
/**
|
|
3
3
|
* Planet compass button
|
|
4
4
|
* @class
|
|
5
|
-
* @extends {
|
|
5
|
+
* @extends {Control}
|
|
6
6
|
* @params {Object} [options] - Control options.
|
|
7
7
|
*/
|
|
8
|
-
export class CompassButton {
|
|
9
|
-
constructor(options: any);
|
|
8
|
+
export class CompassButton extends Control {
|
|
10
9
|
planet: any;
|
|
10
|
+
compassSvg: any;
|
|
11
11
|
_heading: any;
|
|
12
12
|
_svg: any;
|
|
13
|
-
oninit(): void;
|
|
14
13
|
_onClick(): void;
|
|
15
14
|
_draw(e: any): void;
|
|
16
15
|
setHeading(heading: any): void;
|
|
17
16
|
}
|
|
17
|
+
import { Control } from "./Control.js";
|