@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/Extent.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Represents geographical coordinates extent.
|
|
3
3
|
* @class
|
|
4
|
-
* @param {
|
|
5
|
-
* @param {
|
|
4
|
+
* @param {LonLat} [sw] - South West extent corner coordiantes.
|
|
5
|
+
* @param {LonLat} [ne] - North East extent corner coordiantes.
|
|
6
6
|
*/
|
|
7
7
|
export class Extent {
|
|
8
8
|
/**
|
|
@@ -24,23 +24,23 @@ export class Extent {
|
|
|
24
24
|
* Creates extent instance from values in array.
|
|
25
25
|
* @static
|
|
26
26
|
* @param {Array.<number>} arr - South west and north east longitude and latidudes packed in array. (exactly 4 entries)
|
|
27
|
-
* @return {
|
|
27
|
+
* @return {Extent} Extent object.
|
|
28
28
|
*/
|
|
29
|
-
static createFromArray(arr: Array<number>):
|
|
29
|
+
static createFromArray(arr: Array<number>): Extent;
|
|
30
30
|
/**
|
|
31
31
|
* Creates bound extent instance by coordinate array.
|
|
32
32
|
* @static
|
|
33
|
-
* @param {Array.<
|
|
34
|
-
* @return {
|
|
33
|
+
* @param {Array.<LonLat>} arr - Coordinate array.
|
|
34
|
+
* @return {Extent} Extent object.
|
|
35
35
|
*/
|
|
36
|
-
static createByCoordinates(arr: Array<
|
|
36
|
+
static createByCoordinates(arr: Array<LonLat>): Extent;
|
|
37
37
|
/**
|
|
38
38
|
* Creates bound extent instance by coordinate array.
|
|
39
39
|
* @static
|
|
40
|
-
* @param {Array.<Array<number
|
|
41
|
-
* @return {
|
|
40
|
+
* @param {Array.<Array<number>>} arr - Coordinate array. (exactly 2 entries)
|
|
41
|
+
* @return {Extent} Extent object.
|
|
42
42
|
*/
|
|
43
|
-
static createByCoordinatesArr(arr: Array<Array<number
|
|
43
|
+
static createByCoordinatesArr(arr: Array<Array<number>>): Extent;
|
|
44
44
|
/**
|
|
45
45
|
* Creates extent by meractor grid tile coordinates.
|
|
46
46
|
* @static
|
|
@@ -49,25 +49,29 @@ export class Extent {
|
|
|
49
49
|
* @param {number} z -
|
|
50
50
|
* @param {number} width -
|
|
51
51
|
* @param {number} height -
|
|
52
|
-
* @returns {
|
|
52
|
+
* @returns {Extent} -
|
|
53
53
|
*/
|
|
54
|
-
static fromTile(x: number, y: number, z: number, width: number, height: number):
|
|
55
|
-
|
|
54
|
+
static fromTile(x: number, y: number, z: number, width: number, height: number): Extent;
|
|
55
|
+
/**
|
|
56
|
+
* @param {LonLat} [sw] - South West extent corner coordiantes.
|
|
57
|
+
* @param {LonLat} [ne] - North East extent corner coordiantes.
|
|
58
|
+
*/
|
|
59
|
+
constructor(sw?: LonLat, ne?: LonLat);
|
|
56
60
|
/**
|
|
57
61
|
* @public
|
|
58
62
|
*/
|
|
59
|
-
public southWest:
|
|
63
|
+
public southWest: LonLat;
|
|
60
64
|
/**
|
|
61
65
|
* @public
|
|
62
66
|
*/
|
|
63
|
-
public northEast:
|
|
67
|
+
public northEast: LonLat;
|
|
64
68
|
/**
|
|
65
69
|
* Sets current bounding extent object by coordinate array.
|
|
66
70
|
* @public
|
|
67
|
-
* @param {Array.<
|
|
68
|
-
* @return {
|
|
71
|
+
* @param {Array.<LonLat>} arr - Coordinate array.
|
|
72
|
+
* @return {Extent} Current extent.
|
|
69
73
|
*/
|
|
70
|
-
public setByCoordinates(arr: Array<
|
|
74
|
+
public setByCoordinates(arr: Array<LonLat>): Extent;
|
|
71
75
|
/**
|
|
72
76
|
* Determines if point inside extent.
|
|
73
77
|
* @public
|
|
@@ -97,9 +101,9 @@ export class Extent {
|
|
|
97
101
|
/**
|
|
98
102
|
* Creates clone instance of the current extent.
|
|
99
103
|
* @public
|
|
100
|
-
* @return {
|
|
104
|
+
* @return {Extent} Extent clone.
|
|
101
105
|
*/
|
|
102
|
-
public clone():
|
|
106
|
+
public clone(): Extent;
|
|
103
107
|
/**
|
|
104
108
|
* Gets the center coordinate of the extent.
|
|
105
109
|
* @public
|
|
@@ -122,41 +126,41 @@ export class Extent {
|
|
|
122
126
|
/**
|
|
123
127
|
* @public
|
|
124
128
|
*/
|
|
125
|
-
public getNorth():
|
|
126
|
-
getEast():
|
|
129
|
+
public getNorth(): number;
|
|
130
|
+
getEast(): number;
|
|
127
131
|
/**
|
|
128
132
|
* @public
|
|
129
133
|
*/
|
|
130
|
-
public getWest():
|
|
134
|
+
public getWest(): number;
|
|
131
135
|
/**
|
|
132
136
|
* @public
|
|
133
137
|
*/
|
|
134
|
-
public getSouth():
|
|
138
|
+
public getSouth(): number;
|
|
135
139
|
/**
|
|
136
140
|
* Returns extents are equals.
|
|
137
|
-
* @param {
|
|
141
|
+
* @param {Extent} extent - Extent.
|
|
138
142
|
* @returns {boolean} -
|
|
139
143
|
*/
|
|
140
|
-
equals(extent:
|
|
144
|
+
equals(extent: Extent): boolean;
|
|
141
145
|
/**
|
|
142
146
|
* Converts extent coordinates to mercator projection coordinates.
|
|
143
147
|
* @public
|
|
144
|
-
* @return {
|
|
148
|
+
* @return {Extent} New instance of the current extent.
|
|
145
149
|
*/
|
|
146
|
-
public forwardMercator():
|
|
150
|
+
public forwardMercator(): Extent;
|
|
147
151
|
/**
|
|
148
152
|
* Converts extent coordinates from mercator projection to degrees.
|
|
149
153
|
* @public
|
|
150
|
-
* @return {
|
|
154
|
+
* @return {Extent} New instance of the current extent.
|
|
151
155
|
*/
|
|
152
|
-
public inverseMercator():
|
|
156
|
+
public inverseMercator(): Extent;
|
|
153
157
|
/**
|
|
154
158
|
* Gets cartesian bounding bounds of the current ellipsoid.
|
|
155
159
|
* @public
|
|
156
|
-
* @param {
|
|
157
|
-
* @return {Array.<number
|
|
160
|
+
* @param {Ellipsoid} ellipsoid - Ellipsoid.
|
|
161
|
+
* @return {Array.<number>} Cartesian 3d coordinate array. (exactly 6 entries)
|
|
158
162
|
*/
|
|
159
|
-
public getCartesianBounds(ellipsoid:
|
|
163
|
+
public getCartesianBounds(ellipsoid: Ellipsoid): Array<number>;
|
|
160
164
|
toString(): string;
|
|
161
165
|
}
|
|
162
166
|
import { LonLat } from "./LonLat.js";
|
package/types/Globe.d.ts
CHANGED
|
@@ -25,35 +25,36 @@
|
|
|
25
25
|
*
|
|
26
26
|
* @param {object} options - Options:
|
|
27
27
|
* @param {string} options.target - HTML element id where planet canvas have to be created.
|
|
28
|
-
* @param {
|
|
28
|
+
* @param {RenderNode} [options.skybox] - Render skybox. null - default.
|
|
29
29
|
* @param {string} [options.name] - Planet name. Default is unic identifier.
|
|
30
|
-
* @param {
|
|
31
|
-
* @param {Array.<
|
|
32
|
-
* @param {Array.<
|
|
33
|
-
* @param {
|
|
30
|
+
* @param {Terrain} [options.terrain] - Terrain provider. Default no terrain - og.terrain.EmptyTerrain.
|
|
31
|
+
* @param {Array.<control.Control>} [options.controls] - Renderer controls array.
|
|
32
|
+
* @param {Array.<Layer>} [options.layers] - Planet layers.
|
|
33
|
+
* @param {Extent} [options.viewExtent] - Viewable starting extent.
|
|
34
34
|
* @param {boolean} [options.autoActivate] - Globe rendering auto activation flag. True is default.
|
|
35
35
|
* @param {DOMElement} [options.attributionContainer] - Container for attribution list.
|
|
36
36
|
* @param {Number} [options.maxGridSize] = Maximal segment grid size. 128 is default
|
|
37
37
|
* @param {boolean} [options.useSpecularTexture] - use specular water mask
|
|
38
38
|
* @param {boolean} [options.useNightTexture] - show night cities
|
|
39
|
+
* @param {Number} [options.maxEqualZoomAltitude=850000.0] - Maximal altitude since segments on the screen bacame the same zoom level
|
|
40
|
+
* @param {Number} [options.minEqualZoomAltitude=10000.0] - Minimal altitude since segments on the screen bacame the same zoom level
|
|
41
|
+
* @param {Number} [options.minEqualZoomCameraSlope=0.8] - Minimal camera slope above te globe where segments on the screen bacame the same zoom level
|
|
39
42
|
*/
|
|
40
43
|
export class Globe {
|
|
41
44
|
static set _staticCounter(arg: any);
|
|
42
45
|
static get _staticCounter(): any;
|
|
43
|
-
constructor(options: any);
|
|
44
|
-
_canvas: HTMLCanvasElement;
|
|
45
46
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @public
|
|
48
|
-
* @type {Element}
|
|
47
|
+
* @param {*} options
|
|
49
48
|
*/
|
|
50
|
-
|
|
49
|
+
constructor(options: any);
|
|
50
|
+
_canvas: HTMLCanvasElement;
|
|
51
|
+
div: any;
|
|
51
52
|
/**
|
|
52
53
|
* Interface for the renderer context(events, input states, renderer nodes etc.)
|
|
53
54
|
* @public
|
|
54
|
-
* @type {
|
|
55
|
+
* @type {Renderer}
|
|
55
56
|
*/
|
|
56
|
-
public renderer:
|
|
57
|
+
public renderer: Renderer;
|
|
57
58
|
/**
|
|
58
59
|
* Planet node name. Access with this.renderer.<name>
|
|
59
60
|
* @private
|
|
@@ -77,4 +78,5 @@ export class Globe {
|
|
|
77
78
|
*/
|
|
78
79
|
public fadeOut(): void;
|
|
79
80
|
}
|
|
81
|
+
import { Renderer } from "./renderer/Renderer.js";
|
|
80
82
|
import { Planet } from "./scene/Planet.js";
|
package/types/ImageCanvas.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Usefull class for working with JS canvas object.
|
|
3
3
|
* @class
|
|
4
|
-
* @param {number} [width] - Canvas width. Default 256.
|
|
5
|
-
* @param {number} [height] - Canvas height. Default 256.
|
|
6
4
|
*/
|
|
7
5
|
export class ImageCanvas {
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @param {number} [width] - Canvas width. Default 256.
|
|
8
|
+
* @param {number} [height] - Canvas height. Default 256.
|
|
9
|
+
*/
|
|
10
|
+
constructor(width?: number, height?: number);
|
|
9
11
|
/**
|
|
10
12
|
* Canvas object.
|
|
11
13
|
* @protected
|
package/types/LonLat.d.ts
CHANGED
|
@@ -10,38 +10,38 @@ export class LonLat {
|
|
|
10
10
|
* Creates coordinates array.
|
|
11
11
|
* @static
|
|
12
12
|
* @param{Array.<Array<number>>} arr - Coordinates array data. (exactly 3 entries)
|
|
13
|
-
* @return{Array.<
|
|
13
|
+
* @return{Array.<LonLat>} the same coordinates array but each element is LonLat instance.
|
|
14
14
|
*/
|
|
15
|
-
static join(arr: Array<Array<number>>): Array<
|
|
15
|
+
static join(arr: Array<Array<number>>): Array<LonLat>;
|
|
16
16
|
/**
|
|
17
17
|
* Creates an object by coordinate array.
|
|
18
18
|
* @static
|
|
19
19
|
* @param {Array.<number>} arr - Coordiante array, where first is longitude, second is latitude and third is a height. (exactly 3 entries)
|
|
20
|
-
* @returns {
|
|
20
|
+
* @returns {LonLat} -
|
|
21
21
|
*/
|
|
22
|
-
static createFromArray(arr: Array<number>):
|
|
22
|
+
static createFromArray(arr: Array<number>): LonLat;
|
|
23
23
|
/**
|
|
24
24
|
* Converts degrees to mercator coordinates.
|
|
25
25
|
* @static
|
|
26
26
|
* @param {number} lon - Degrees longitude.
|
|
27
27
|
* @param {number} lat - Degrees latitude.
|
|
28
28
|
* @param {number} [height] - Height.
|
|
29
|
-
* @returns {
|
|
29
|
+
* @returns {LonLat} -
|
|
30
30
|
*/
|
|
31
|
-
static forwardMercator(lon: number, lat: number, height?: number):
|
|
31
|
+
static forwardMercator(lon: number, lat: number, height?: number): LonLat;
|
|
32
32
|
/**
|
|
33
33
|
* Converts mercator to degrees coordinates.
|
|
34
34
|
* @static
|
|
35
35
|
* @param {number} x - Mercator longitude.
|
|
36
36
|
* @param {number} y - Mercator latitude.
|
|
37
37
|
* @param {number} [height] - Height.
|
|
38
|
-
* @returns {
|
|
38
|
+
* @returns {LonLat} -
|
|
39
39
|
*/
|
|
40
|
-
static inverseMercator(x: number, y: number, height?: number):
|
|
40
|
+
static inverseMercator(x: number, y: number, height?: number): LonLat;
|
|
41
41
|
/**
|
|
42
|
-
* @param {number} [lon]
|
|
43
|
-
* @param {number} [lat]
|
|
44
|
-
* @param {number} [height]
|
|
42
|
+
* @param {number} [lon] - Longitude.
|
|
43
|
+
* @param {number} [lat] - Latitude.
|
|
44
|
+
* @param {number} [height] - Height over the surface.
|
|
45
45
|
*/
|
|
46
46
|
constructor(lon?: number, lat?: number, height?: number);
|
|
47
47
|
/**
|
|
@@ -69,40 +69,40 @@ export class LonLat {
|
|
|
69
69
|
* @param {number} [lon] - Longitude.
|
|
70
70
|
* @param {number} [lat] - Latitude.
|
|
71
71
|
* @param {number} [height] - Height.
|
|
72
|
-
* @returns {
|
|
72
|
+
* @returns {LonLat} -
|
|
73
73
|
*/
|
|
74
|
-
public set(lon?: number, lat?: number, height?: number):
|
|
74
|
+
public set(lon?: number, lat?: number, height?: number): LonLat;
|
|
75
75
|
/**
|
|
76
76
|
* Copy coordinates.
|
|
77
77
|
* @public
|
|
78
|
-
* @param {
|
|
79
|
-
* @returns {
|
|
78
|
+
* @param {LonLat} [lonLat] - Coordinates to copy.
|
|
79
|
+
* @returns {LonLat} -
|
|
80
80
|
*/
|
|
81
|
-
public copy(lonLat?:
|
|
81
|
+
public copy(lonLat?: LonLat): LonLat;
|
|
82
82
|
/**
|
|
83
83
|
* Clone the coordiante.
|
|
84
84
|
* @public
|
|
85
|
-
* @returns {
|
|
85
|
+
* @returns {LonLat} -
|
|
86
86
|
*/
|
|
87
|
-
public clone():
|
|
87
|
+
public clone(): LonLat;
|
|
88
88
|
/**
|
|
89
89
|
* Converts to mercator coordinates.
|
|
90
90
|
* @public
|
|
91
|
-
* @returns {
|
|
91
|
+
* @returns {LonLat} -
|
|
92
92
|
*/
|
|
93
|
-
public forwardMercator():
|
|
93
|
+
public forwardMercator(): LonLat;
|
|
94
94
|
forwardMercatorEPS01(): LonLat;
|
|
95
95
|
/**
|
|
96
96
|
* Converts from mercator coordinates.
|
|
97
97
|
* @public
|
|
98
|
-
* @returns {
|
|
98
|
+
* @returns {LonLat} -
|
|
99
99
|
*/
|
|
100
|
-
public inverseMercator():
|
|
100
|
+
public inverseMercator(): LonLat;
|
|
101
101
|
/**
|
|
102
102
|
* Compares coordinates.
|
|
103
103
|
* @public
|
|
104
|
-
* @param {
|
|
104
|
+
* @param {LonLat} b - Coordinate to compare with.
|
|
105
105
|
* @returns {boolean} -
|
|
106
106
|
*/
|
|
107
|
-
public equal(b:
|
|
107
|
+
public equal(b: LonLat): boolean;
|
|
108
108
|
}
|
package/types/Popup.d.ts
CHANGED
package/types/QueueArray.d.ts
CHANGED
package/types/Rectangle.d.ts
CHANGED
|
@@ -5,9 +5,15 @@
|
|
|
5
5
|
* @param {number} [top] - Top coordinate. 0 - default.
|
|
6
6
|
* @param {number} [right] - Right coordinate. 0 - default.
|
|
7
7
|
* @param {number} [bottom] - Bottom coordinate. 0 - default.
|
|
8
|
-
*/
|
|
8
|
+
*/
|
|
9
9
|
export class Rectangle {
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @param {number} [left] - Left coordinate. 0 - default.
|
|
12
|
+
* @param {number} [top] - Top coordinate. 0 - default.
|
|
13
|
+
* @param {number} [right] - Right coordinate. 0 - default.
|
|
14
|
+
* @param {number} [bottom] - Bottom coordinate. 0 - default.
|
|
15
|
+
*/
|
|
16
|
+
constructor(left?: number, top?: number, right?: number, bottom?: number);
|
|
11
17
|
/**
|
|
12
18
|
* Left coordinate.
|
|
13
19
|
* @public
|
|
@@ -35,9 +41,9 @@ export class Rectangle {
|
|
|
35
41
|
/**
|
|
36
42
|
* Clone rectangle object.
|
|
37
43
|
* @public
|
|
38
|
-
* @returns {
|
|
44
|
+
* @returns {Rectangle}
|
|
39
45
|
*/
|
|
40
|
-
public clone():
|
|
46
|
+
public clone(): Rectangle;
|
|
41
47
|
/**
|
|
42
48
|
* Returns rectangle width.
|
|
43
49
|
* @public
|
package/types/Stack.d.ts
CHANGED
package/types/ajax.d.ts
CHANGED
package/types/astro/earth.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns Sun position in the geocentric coordinate system by the time.
|
|
3
3
|
* @param {Number} jDate - Julian date time.
|
|
4
|
-
* @returns {
|
|
4
|
+
* @returns {Vec3} - Sun geocentric coordinates.
|
|
5
5
|
*/
|
|
6
|
-
export function getSunPosition(jDate: number):
|
|
6
|
+
export function getSunPosition(jDate: number): Vec3;
|
|
7
|
+
import { Vec3 } from "../math/Vec3.js";
|
package/types/bv/Box.d.ts
CHANGED
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
* @class
|
|
4
4
|
*/
|
|
5
5
|
export class Box {
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param {*} boundsArr
|
|
9
|
+
*/
|
|
6
10
|
constructor(boundsArr: any);
|
|
7
11
|
/**
|
|
8
12
|
* Vertices array.
|
|
9
13
|
* @public
|
|
10
|
-
* @type{Array.<
|
|
14
|
+
* @type{Array.<Vec3>}
|
|
11
15
|
*/
|
|
12
|
-
public vertices: Array<
|
|
16
|
+
public vertices: Array<Vec3>;
|
|
13
17
|
copy(bbox: any): void;
|
|
14
18
|
/**
|
|
15
19
|
* Sets bounding box coordinates by the bounds array.
|
|
@@ -18,8 +22,9 @@ export class Box {
|
|
|
18
22
|
setFromBoundsArr(bounds: Array<number>): void;
|
|
19
23
|
/**
|
|
20
24
|
* Sets bounding box coordiantes by ellipsoid geodetic extend.
|
|
21
|
-
* @param {
|
|
22
|
-
* @param {
|
|
25
|
+
* @param {Ellipsoid} ellipsoid - Ellipsoid.
|
|
26
|
+
* @param {Extent} extent - Geodetic extent.
|
|
23
27
|
*/
|
|
24
|
-
setFromExtent(ellipsoid:
|
|
28
|
+
setFromExtent(ellipsoid: Ellipsoid, extent: Extent): void;
|
|
25
29
|
}
|
|
30
|
+
import { Vec3 } from "../math/Vec3.js";
|
package/types/bv/Sphere.d.ts
CHANGED
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
* Bounding sphere class.
|
|
3
3
|
* @class
|
|
4
4
|
* @param {Number} [radius] - Bounding sphere radius.
|
|
5
|
-
* @param {
|
|
5
|
+
* @param {Vec3} [center] - Bounding sphere coordiantes.
|
|
6
6
|
*/
|
|
7
7
|
export class Sphere {
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param {number} radius
|
|
11
|
+
* @param {Vec3} center
|
|
12
|
+
*/
|
|
13
|
+
constructor(radius: number, center: Vec3);
|
|
9
14
|
/**
|
|
10
15
|
* Sphere radius.
|
|
11
16
|
* @public
|
|
@@ -15,9 +20,9 @@ export class Sphere {
|
|
|
15
20
|
/**
|
|
16
21
|
* Sphere coordiantes.
|
|
17
22
|
* @public
|
|
18
|
-
* @type {
|
|
23
|
+
* @type {Vec3}
|
|
19
24
|
*/
|
|
20
|
-
public center:
|
|
25
|
+
public center: Vec3;
|
|
21
26
|
/**
|
|
22
27
|
* Sets bounding sphere coordinates by the bounds array.
|
|
23
28
|
* @param {Array.<number>} bounds - Bounds is an array where [minX, minY, minZ, maxX, maxY, maxZ]
|
|
@@ -25,8 +30,9 @@ export class Sphere {
|
|
|
25
30
|
setFromBounds(bounds: Array<number>): void;
|
|
26
31
|
/**
|
|
27
32
|
* Sets bounding sphere coordiantes by ellipsoid geodetic extend.
|
|
28
|
-
* @param {
|
|
29
|
-
* @param {
|
|
33
|
+
* @param {Ellipsoid} ellipsoid - Ellipsoid.
|
|
34
|
+
* @param {Extent} extent - Geodetic extent.
|
|
30
35
|
*/
|
|
31
|
-
setFromExtent(ellipsoid:
|
|
36
|
+
setFromExtent(ellipsoid: Ellipsoid, extent: Extent): void;
|
|
32
37
|
}
|
|
38
|
+
import { Vec3 } from "../math/Vec3.js";
|