@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.
Files changed (255) hide show
  1. package/package.json +18 -20
  2. package/src/og/Clock.js +11 -11
  3. package/src/og/Deferred.js +1 -1
  4. package/src/og/Events.js +9 -7
  5. package/src/og/Extent.js +117 -72
  6. package/src/og/Globe.js +35 -22
  7. package/src/og/ImageCanvas.js +24 -18
  8. package/src/og/Lock.js +2 -2
  9. package/src/og/LonLat.js +40 -37
  10. package/src/og/Popup.js +21 -15
  11. package/src/og/QueueArray.js +7 -3
  12. package/src/og/Rectangle.js +11 -6
  13. package/src/og/Stack.js +8 -5
  14. package/src/og/ajax.js +21 -33
  15. package/src/og/astro/astro.js +5 -5
  16. package/src/og/astro/earth.js +23 -17
  17. package/src/og/astro/jd.js +44 -39
  18. package/src/og/astro/orbit.js +20 -18
  19. package/src/og/astro/rotation.js +17 -8
  20. package/src/og/bv/Box.js +7 -3
  21. package/src/og/bv/Sphere.js +17 -9
  22. package/src/og/camera/Camera.js +137 -86
  23. package/src/og/camera/Frustum.js +30 -19
  24. package/src/og/camera/PlanetCamera.js +30 -26
  25. package/src/og/control/CompassButton.js +8 -2
  26. package/src/og/control/Control.js +13 -11
  27. package/src/og/control/DebugInfo.js +4 -1
  28. package/src/og/control/EarthCoordinates.js +62 -41
  29. package/src/og/control/EarthNavigation.js +20 -22
  30. package/src/og/control/GeoImageDragControl.js +1 -1
  31. package/src/og/control/KeyboardNavigation.js +12 -12
  32. package/src/og/control/LayerSwitcher.js +24 -23
  33. package/src/og/control/Lighting.js +1 -1
  34. package/src/og/control/MouseNavigation.js +1 -1
  35. package/src/og/control/ScaleControl.js +1 -1
  36. package/src/og/control/SegmentBoundVisualization.js +8 -9
  37. package/src/og/control/ShowFps.js +15 -10
  38. package/src/og/control/SimpleNavigation.js +8 -10
  39. package/src/og/control/Sun.js +25 -15
  40. package/src/og/control/ToggleWireframe.js +5 -5
  41. package/src/og/control/TouchNavigation.js +58 -45
  42. package/src/og/control/ZoomControl.js +41 -25
  43. package/src/og/control/index.js +4 -0
  44. package/src/og/ellipsoid/Ellipsoid.js +181 -85
  45. package/src/og/ellipsoid/wgs84.js +4 -4
  46. package/src/og/entity/BaseBillboard.js +97 -44
  47. package/src/og/entity/Billboard.js +15 -11
  48. package/src/og/entity/BillboardHandler.js +314 -64
  49. package/src/og/entity/Entity.js +106 -74
  50. package/src/og/entity/EntityCollection.js +72 -49
  51. package/src/og/entity/GeoObject.js +228 -0
  52. package/src/og/entity/GeoObjectHandler.js +910 -0
  53. package/src/og/entity/Geometry.js +29 -26
  54. package/src/og/entity/GeometryHandler.js +598 -126
  55. package/src/og/entity/Label.js +74 -40
  56. package/src/og/entity/LabelHandler.js +47 -246
  57. package/src/og/entity/LabelWorker.js +213 -0
  58. package/src/og/entity/Object3d.js +504 -0
  59. package/src/og/entity/PointCloud.js +81 -33
  60. package/src/og/entity/PointCloudHandler.js +9 -9
  61. package/src/og/entity/Polyline.js +39 -39
  62. package/src/og/entity/Ray.js +61 -28
  63. package/src/og/entity/ShapeHandler.js +1 -1
  64. package/src/og/entity/Strip.js +77 -48
  65. package/src/og/entity/StripHandler.js +27 -27
  66. package/src/og/entity/index.js +8 -16
  67. package/src/og/input/KeyboardHandler.js +107 -104
  68. package/src/og/input/MouseHandler.js +81 -78
  69. package/src/og/input/TouchHandler.js +55 -51
  70. package/src/og/layer/BaseGeoImage.js +61 -30
  71. package/src/og/layer/CanvasTiles.js +26 -24
  72. package/src/og/layer/GeoImage.js +10 -10
  73. package/src/og/layer/GeoTexture2d.js +1 -1
  74. package/src/og/layer/GeoVideo.js +3 -3
  75. package/src/og/layer/KML.js +66 -40
  76. package/src/og/layer/Layer.js +27 -17
  77. package/src/og/layer/Material.js +93 -61
  78. package/src/og/layer/Vector.js +118 -72
  79. package/src/og/layer/WMS.js +36 -19
  80. package/src/og/layer/XYZ.js +55 -48
  81. package/src/og/light/LightSource.js +47 -40
  82. package/src/og/math/Line2.js +24 -24
  83. package/src/og/math/Line3.js +103 -102
  84. package/src/og/math/Mat3.js +134 -121
  85. package/src/og/math/Mat4.js +603 -459
  86. package/src/og/math/Plane.js +21 -20
  87. package/src/og/math/Quat.js +980 -927
  88. package/src/og/math/Ray.js +195 -187
  89. package/src/og/math/Vec2.js +127 -117
  90. package/src/og/math/Vec3.js +206 -176
  91. package/src/og/math/Vec4.js +49 -53
  92. package/src/og/math/coder.js +18 -18
  93. package/src/og/math.js +12 -12
  94. package/src/og/mercator.js +11 -11
  95. package/src/og/proj/EPSG3857.js +4 -4
  96. package/src/og/proj/EPSG4326.js +4 -4
  97. package/src/og/proj/Proj.js +31 -31
  98. package/src/og/quadTree/EntityCollectionNode.js +310 -300
  99. package/src/og/quadTree/Node.js +1008 -993
  100. package/src/og/renderer/Renderer.js +768 -747
  101. package/src/og/renderer/RendererEvents.js +9 -6
  102. package/src/og/scene/Axes.js +1 -1
  103. package/src/og/scene/BaseNode.js +8 -9
  104. package/src/og/scene/Planet.js +115 -87
  105. package/src/og/scene/RenderNode.js +29 -22
  106. package/src/og/scene/SkyBox.js +1 -1
  107. package/src/og/segment/Segment.js +1886 -1878
  108. package/src/og/segment/SegmentLonLat.js +298 -268
  109. package/src/og/segment/segmentHelper.js +11 -11
  110. package/src/og/shaders/bloom.js +1 -1
  111. package/src/og/shaders/blur.js +2 -2
  112. package/src/og/shaders/depth.js +1 -1
  113. package/src/og/shaders/geoObject.js +211 -0
  114. package/src/og/shaders/label.js +1 -1
  115. package/src/og/shaders/lumFilter.js +1 -1
  116. package/src/og/shaders/pointCloud.js +42 -42
  117. package/src/og/shaders/screenFrame.js +1 -1
  118. package/src/og/shaders/shape.js +15 -21
  119. package/src/og/shaders/skybox.js +37 -37
  120. package/src/og/shaders/toneMapping.js +1 -1
  121. package/src/og/shapes/BaseShape.js +129 -57
  122. package/src/og/shapes/Icosphere.js +30 -15
  123. package/src/og/shapes/Sphere.js +13 -16
  124. package/src/og/terrain/BilTerrain.js +2 -1
  125. package/src/og/terrain/EmptyTerrain.js +2 -2
  126. package/src/og/terrain/Geoid.js +2 -2
  127. package/src/og/terrain/GlobusTerrain.js +10 -10
  128. package/src/og/terrain/MapboxTerrain.js +1 -1
  129. package/src/og/utils/GeoImageCreator.js +9 -9
  130. package/src/og/utils/Loader.js +6 -6
  131. package/src/og/utils/NormalMapCreator.js +13 -13
  132. package/src/og/utils/TerrainWorker.js +1 -1
  133. package/src/og/utils/TextureAtlas.js +20 -22
  134. package/src/og/utils/VectorTileCreator.js +5 -5
  135. package/src/og/utils/earcut.js +1 -1
  136. package/src/og/utils/shared.js +15 -15
  137. package/src/og/webgl/Framebuffer.js +101 -53
  138. package/src/og/webgl/Handler.js +125 -85
  139. package/src/og/webgl/Multisample.js +55 -27
  140. package/src/og/webgl/Program.js +80 -35
  141. package/src/og/webgl/ProgramController.js +27 -23
  142. package/src/og/webgl/callbacks.js +8 -8
  143. package/types/Clock.d.ts +6 -2
  144. package/types/Deferred.d.ts +1 -1
  145. package/types/Events.d.ts +8 -4
  146. package/types/Extent.d.ts +37 -33
  147. package/types/Globe.d.ts +15 -13
  148. package/types/ImageCanvas.d.ts +5 -3
  149. package/types/LonLat.d.ts +24 -24
  150. package/types/Popup.d.ts +4 -0
  151. package/types/QueueArray.d.ts +6 -2
  152. package/types/Rectangle.d.ts +10 -4
  153. package/types/Stack.d.ts +4 -0
  154. package/types/ajax.d.ts +1 -1
  155. package/types/astro/earth.d.ts +3 -2
  156. package/types/bv/Box.d.ts +10 -5
  157. package/types/bv/Sphere.d.ts +13 -7
  158. package/types/camera/Camera.d.ts +90 -81
  159. package/types/camera/Frustum.d.ts +26 -22
  160. package/types/camera/PlanetCamera.d.ts +49 -53
  161. package/types/control/CompassButton.d.ts +4 -4
  162. package/types/control/Control.d.ts +7 -4
  163. package/types/control/DebugInfo.d.ts +3 -4
  164. package/types/control/EarthCoordinates.d.ts +6 -6
  165. package/types/control/EarthNavigation.d.ts +42 -0
  166. package/types/control/KeyboardNavigation.d.ts +3 -4
  167. package/types/control/LayerSwitcher.d.ts +3 -5
  168. package/types/control/Lighting.d.ts +3 -3
  169. package/types/control/MouseNavigation.d.ts +47 -0
  170. package/types/control/ScaleControl.d.ts +3 -3
  171. package/types/control/ShowFps.d.ts +3 -4
  172. package/types/control/SimpleNavigation.d.ts +3 -6
  173. package/types/control/Sun.d.ts +8 -10
  174. package/types/control/ToggleWireframe.d.ts +3 -3
  175. package/types/control/TouchNavigation.d.ts +48 -0
  176. package/types/control/ZoomControl.d.ts +3 -4
  177. package/types/control/index.d.ts +3 -1
  178. package/types/ellipsoid/Ellipsoid.d.ts +47 -43
  179. package/types/ellipsoid/wgs84.d.ts +3 -2
  180. package/types/entity/BaseBillboard.d.ts +41 -34
  181. package/types/entity/Billboard.d.ts +7 -7
  182. package/types/entity/BillboardHandler.d.ts +4 -0
  183. package/types/entity/Entity.d.ts +101 -83
  184. package/types/entity/EntityCollection.d.ts +57 -43
  185. package/types/entity/GeoObject.d.ts +111 -0
  186. package/types/entity/GeoObjectHandler.d.ts +77 -0
  187. package/types/entity/Geometry.d.ts +9 -7
  188. package/types/entity/GeometryHandler.d.ts +2 -2
  189. package/types/entity/Label.d.ts +24 -29
  190. package/types/entity/LabelHandler.d.ts +9 -2
  191. package/types/entity/LabelWorker.d.ts +9 -0
  192. package/types/entity/PointCloud.d.ts +8 -8
  193. package/types/entity/PointCloudHandler.d.ts +3 -3
  194. package/types/entity/Polyline.d.ts +58 -55
  195. package/types/entity/Ray.d.ts +19 -18
  196. package/types/entity/Strip.d.ts +8 -7
  197. package/types/entity/StripHandler.d.ts +3 -3
  198. package/types/entity/index.d.ts +7 -7
  199. package/types/input/KeyboardHandler.d.ts +10 -0
  200. package/types/input/MouseHandler.d.ts +5 -0
  201. package/types/input/TouchHandler.d.ts +5 -0
  202. package/types/layer/BaseGeoImage.d.ts +23 -35
  203. package/types/layer/CanvasTiles.d.ts +15 -22
  204. package/types/layer/GeoImage.d.ts +5 -18
  205. package/types/layer/GeoVideo.d.ts +5 -30
  206. package/types/layer/KML.d.ts +20 -15
  207. package/types/layer/Layer.d.ts +326 -0
  208. package/types/layer/Material.d.ts +45 -0
  209. package/types/layer/Vector.d.ts +208 -0
  210. package/types/layer/WMS.d.ts +4 -7
  211. package/types/layer/XYZ.d.ts +19 -25
  212. package/types/light/LightSource.d.ts +54 -53
  213. package/types/math/Line2.d.ts +11 -0
  214. package/types/math/Line3.d.ts +10 -0
  215. package/types/math/Mat3.d.ts +30 -18
  216. package/types/math/Mat4.d.ts +71 -52
  217. package/types/math/Plane.d.ts +5 -4
  218. package/types/math/Quat.d.ts +379 -0
  219. package/types/math/Ray.d.ts +82 -0
  220. package/types/math/Vec2.d.ts +102 -101
  221. package/types/math/Vec3.d.ts +143 -142
  222. package/types/math/Vec4.d.ts +40 -39
  223. package/types/math/coder.d.ts +12 -11
  224. package/types/math.d.ts +8 -8
  225. package/types/mercator.d.ts +3 -3
  226. package/types/proj/EPSG3857.d.ts +3 -2
  227. package/types/proj/EPSG4326.d.ts +3 -2
  228. package/types/proj/Proj.d.ts +42 -0
  229. package/types/quadTree/EntityCollectionNode.d.ts +34 -0
  230. package/types/quadTree/Node.d.ts +61 -0
  231. package/types/renderer/Renderer.d.ts +300 -0
  232. package/types/renderer/RendererEvents.d.ts +10 -7
  233. package/types/scene/BaseNode.d.ts +9 -9
  234. package/types/scene/Planet.d.ts +131 -126
  235. package/types/scene/RenderNode.d.ts +22 -23
  236. package/types/segment/Segment.d.ts +279 -0
  237. package/types/segment/SegmentLonLat.d.ts +16 -0
  238. package/types/shaders/geoObject.d.ts +3 -0
  239. package/types/shapes/BaseShape.d.ts +43 -40
  240. package/types/shapes/Sphere.d.ts +7 -7
  241. package/types/terrain/BilTerrain.d.ts +0 -1
  242. package/types/terrain/EmptyTerrain.d.ts +4 -4
  243. package/types/terrain/GlobusTerrain.d.ts +17 -54
  244. package/types/terrain/MapboxTerrain.d.ts +0 -1
  245. package/types/utils/GeoImageCreator.d.ts +3 -2
  246. package/types/utils/TextureAtlas.d.ts +8 -8
  247. package/types/utils/shared.d.ts +25 -24
  248. package/types/webgl/Framebuffer.d.ts +5 -5
  249. package/types/webgl/Handler.d.ts +68 -43
  250. package/types/webgl/Multisample.d.ts +5 -5
  251. package/types/webgl/Program.d.ts +8 -2
  252. package/types/webgl/ProgramController.d.ts +18 -13
  253. package/src/og/inherits.js +0 -8
  254. package/src/og/utils/polylabel.js +0 -176
  255. 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 {og.LonLat} [sw] - South West extent corner coordiantes.
5
- * @param {og.LonLat} [ne] - North East extent corner coordiantes.
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 {og.Extent} Extent object.
27
+ * @return {Extent} Extent object.
28
28
  */
29
- static createFromArray(arr: Array<number>): any;
29
+ static createFromArray(arr: Array<number>): Extent;
30
30
  /**
31
31
  * Creates bound extent instance by coordinate array.
32
32
  * @static
33
- * @param {Array.<og.LonLat>} arr - Coordinate array.
34
- * @return {og.Extent} Extent object.
33
+ * @param {Array.<LonLat>} arr - Coordinate array.
34
+ * @return {Extent} Extent object.
35
35
  */
36
- static createByCoordinates(arr: Array<any>): any;
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,number>>} arr - Coordinate array.
41
- * @return {og.Extent} Extent object.
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, number>>): any;
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 {og.Extent} -
52
+ * @returns {Extent} -
53
53
  */
54
- static fromTile(x: number, y: number, z: number, width: number, height: number): any;
55
- constructor(sw: any, ne: any);
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: any;
63
+ public southWest: LonLat;
60
64
  /**
61
65
  * @public
62
66
  */
63
- public northEast: any;
67
+ public northEast: LonLat;
64
68
  /**
65
69
  * Sets current bounding extent object by coordinate array.
66
70
  * @public
67
- * @param {Array.<og.LonLat>} arr - Coordinate array.
68
- * @return {og.Extent} Current extent.
71
+ * @param {Array.<LonLat>} arr - Coordinate array.
72
+ * @return {Extent} Current extent.
69
73
  */
70
- public setByCoordinates(arr: Array<any>): any;
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 {og.Extent} Extent clone.
104
+ * @return {Extent} Extent clone.
101
105
  */
102
- public clone(): any;
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(): any;
126
- getEast(): any;
129
+ public getNorth(): number;
130
+ getEast(): number;
127
131
  /**
128
132
  * @public
129
133
  */
130
- public getWest(): any;
134
+ public getWest(): number;
131
135
  /**
132
136
  * @public
133
137
  */
134
- public getSouth(): any;
138
+ public getSouth(): number;
135
139
  /**
136
140
  * Returns extents are equals.
137
- * @param {og.Extent} extent - Extent.
141
+ * @param {Extent} extent - Extent.
138
142
  * @returns {boolean} -
139
143
  */
140
- equals(extent: any): boolean;
144
+ equals(extent: Extent): boolean;
141
145
  /**
142
146
  * Converts extent coordinates to mercator projection coordinates.
143
147
  * @public
144
- * @return {og.Extent} New instance of the current extent.
148
+ * @return {Extent} New instance of the current extent.
145
149
  */
146
- public forwardMercator(): any;
150
+ public forwardMercator(): Extent;
147
151
  /**
148
152
  * Converts extent coordinates from mercator projection to degrees.
149
153
  * @public
150
- * @return {og.Extent} New instance of the current extent.
154
+ * @return {Extent} New instance of the current extent.
151
155
  */
152
- public inverseMercator(): any;
156
+ public inverseMercator(): Extent;
153
157
  /**
154
158
  * Gets cartesian bounding bounds of the current ellipsoid.
155
159
  * @public
156
- * @param {og.Ellipsoid} ellipsoid - Ellipsoid.
157
- * @return {Array.<number,number,number,number,number,number>} Cartesian 3d coordinate array.
160
+ * @param {Ellipsoid} ellipsoid - Ellipsoid.
161
+ * @return {Array.<number>} Cartesian 3d coordinate array. (exactly 6 entries)
158
162
  */
159
- public getCartesianBounds(ellipsoid: any): Array<number, number, number, number, number, number>;
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 {og.scene.RenderNode} [options.skybox] - Render skybox. null - default.
28
+ * @param {RenderNode} [options.skybox] - Render skybox. null - default.
29
29
  * @param {string} [options.name] - Planet name. Default is unic identifier.
30
- * @param {og.terrain.Terrain} [options.terrain] - Terrain provider. Default no terrain - og.terrain.EmptyTerrain.
31
- * @param {Array.<og.control.Control>} [options.controls] - Renderer controls array.
32
- * @param {Array.<og.Layer>} [options.layers] - Planet layers.
33
- * @param {og.Extent} [options.viewExtent] - Viewable starting extent.
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
- * Dom element where WebGL canvas creates
47
- * @public
48
- * @type {Element}
47
+ * @param {*} options
49
48
  */
50
- public div: Element;
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 {og.Renderer}
55
+ * @type {Renderer}
55
56
  */
56
- public renderer: any;
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";
@@ -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
- constructor(width: any, height: any);
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.<og.LonLat>} the same coordinates array but each element is LonLat instance.
13
+ * @return{Array.<LonLat>} the same coordinates array but each element is LonLat instance.
14
14
  */
15
- static join(arr: Array<Array<number>>): Array<any>;
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 {og.LonLat} -
20
+ * @returns {LonLat} -
21
21
  */
22
- static createFromArray(arr: Array<number>): any;
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 {og.LonLat} -
29
+ * @returns {LonLat} -
30
30
  */
31
- static forwardMercator(lon: number, lat: number, height?: number): any;
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 {og.LonLat} -
38
+ * @returns {LonLat} -
39
39
  */
40
- static inverseMercator(x: number, y: number, height?: number): any;
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 {og.LonLat} -
72
+ * @returns {LonLat} -
73
73
  */
74
- public set(lon?: number, lat?: number, height?: number): any;
74
+ public set(lon?: number, lat?: number, height?: number): LonLat;
75
75
  /**
76
76
  * Copy coordinates.
77
77
  * @public
78
- * @param {og.LonLat} [lonLat] - Coordinates to copy.
79
- * @returns {og.LonLat} -
78
+ * @param {LonLat} [lonLat] - Coordinates to copy.
79
+ * @returns {LonLat} -
80
80
  */
81
- public copy(lonLat?: any): any;
81
+ public copy(lonLat?: LonLat): LonLat;
82
82
  /**
83
83
  * Clone the coordiante.
84
84
  * @public
85
- * @returns {og.LonLat} -
85
+ * @returns {LonLat} -
86
86
  */
87
- public clone(): any;
87
+ public clone(): LonLat;
88
88
  /**
89
89
  * Converts to mercator coordinates.
90
90
  * @public
91
- * @returns {og.LonLat} -
91
+ * @returns {LonLat} -
92
92
  */
93
- public forwardMercator(): any;
93
+ public forwardMercator(): LonLat;
94
94
  forwardMercatorEPS01(): LonLat;
95
95
  /**
96
96
  * Converts from mercator coordinates.
97
97
  * @public
98
- * @returns {og.LonLat} -
98
+ * @returns {LonLat} -
99
99
  */
100
- public inverseMercator(): any;
100
+ public inverseMercator(): LonLat;
101
101
  /**
102
102
  * Compares coordinates.
103
103
  * @public
104
- * @param {og.LonLat} b - Coordinate to compare with.
104
+ * @param {LonLat} b - Coordinate to compare with.
105
105
  * @returns {boolean} -
106
106
  */
107
- public equal(b: any): boolean;
107
+ public equal(b: LonLat): boolean;
108
108
  }
package/types/Popup.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  export class Popup {
2
2
  static set _staticCounter(arg: any);
3
3
  static get _staticCounter(): any;
4
+ /**
5
+ *
6
+ * @param {*} options
7
+ */
4
8
  constructor(options: any);
5
9
  _id: number;
6
10
  events: Events;
@@ -1,6 +1,10 @@
1
1
  export class QueueArray {
2
- constructor(size: any);
3
- _size: any;
2
+ /**
3
+ *
4
+ * @param {number} [size]
5
+ */
6
+ constructor(size?: number);
7
+ _size: number;
4
8
  _array: any[];
5
9
  _popIndex: number;
6
10
  _shiftIndex: number;
@@ -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
- constructor(left: any, top: any, right: any, bottom: any);
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 {og.Rectangle}
44
+ * @returns {Rectangle}
39
45
  */
40
- public clone(): any;
46
+ public clone(): Rectangle;
41
47
  /**
42
48
  * Returns rectangle width.
43
49
  * @public
package/types/Stack.d.ts CHANGED
@@ -1,4 +1,8 @@
1
1
  export class Stack {
2
+ /**
3
+ *
4
+ * @param {number} [size]
5
+ */
2
6
  constructor(size?: number);
3
7
  _current: Node;
4
8
  _head: Node;
package/types/ajax.d.ts CHANGED
@@ -20,5 +20,5 @@ export namespace ajax {
20
20
  data?: any;
21
21
  sender?: any;
22
22
  responseType?: string;
23
- }): any;
23
+ }): ajax.Xhr;
24
24
  }
@@ -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 {og.Vec3} - Sun geocentric coordinates.
4
+ * @returns {Vec3} - Sun geocentric coordinates.
5
5
  */
6
- export function getSunPosition(jDate: number): any;
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.<og.Vec3>}
14
+ * @type{Array.<Vec3>}
11
15
  */
12
- public vertices: Array<any>;
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 {og.Ellipsoid} ellipsoid - Ellipsoid.
22
- * @param {og.Extent} extent - Geodetic extent.
25
+ * @param {Ellipsoid} ellipsoid - Ellipsoid.
26
+ * @param {Extent} extent - Geodetic extent.
23
27
  */
24
- setFromExtent(ellipsoid: any, extent: any): void;
28
+ setFromExtent(ellipsoid: Ellipsoid, extent: Extent): void;
25
29
  }
30
+ import { Vec3 } from "../math/Vec3.js";
@@ -2,10 +2,15 @@
2
2
  * Bounding sphere class.
3
3
  * @class
4
4
  * @param {Number} [radius] - Bounding sphere radius.
5
- * @param {og.Vec3} [center] - Bounding sphere coordiantes.
5
+ * @param {Vec3} [center] - Bounding sphere coordiantes.
6
6
  */
7
7
  export class Sphere {
8
- constructor(radius: any, center: any);
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 {og.Vec3}
23
+ * @type {Vec3}
19
24
  */
20
- public center: any;
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 {og.Ellipsoid} ellipsoid - Ellipsoid.
29
- * @param {og.Extent} extent - Geodetic extent.
33
+ * @param {Ellipsoid} ellipsoid - Ellipsoid.
34
+ * @param {Extent} extent - Geodetic extent.
30
35
  */
31
- setFromExtent(ellipsoid: any, extent: any): void;
36
+ setFromExtent(ellipsoid: Ellipsoid, extent: Extent): void;
32
37
  }
38
+ import { Vec3 } from "../math/Vec3.js";