@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
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * BaseGeoImage layer represents square imagery layer that could be an static image, or animated video or webgl buffer object displayed on the globe.
3
3
  * @class
4
- * @extends {og.Layer}
4
+ * @extends {Layer}
5
5
  */
6
- export class BaseGeoImage {
6
+ export class BaseGeoImage extends Layer {
7
7
  constructor(name: any, options: any);
8
8
  _projType: number;
9
9
  _frameWidth: number;
@@ -12,7 +12,7 @@ export class BaseGeoImage {
12
12
  _sourceTexture: any;
13
13
  _materialTexture: any;
14
14
  _gridBuffer: any;
15
- _extentWgs84Params: any[];
15
+ _extentWgs84Params: number[];
16
16
  _refreshFrame: boolean;
17
17
  _frameCreated: boolean;
18
18
  _sourceCreated: boolean;
@@ -21,75 +21,61 @@ export class BaseGeoImage {
21
21
  _creationProceeding: boolean;
22
22
  _isRendering: boolean;
23
23
  _extentWgs84: Extent;
24
- _cornersWgs84: any[];
24
+ _cornersWgs84: number[] | LonLat[];
25
25
  rendering: any;
26
- get instanceName(): string;
27
26
  /**
28
27
  * Gets corners coordinates.
29
28
  * @public
30
- * @return {Array.<og.LonLat,og.LonLat,og.LonLat,og.LonLat>} -
29
+ * @return {Array.<LonLat>} - (exactly 4 entries)
31
30
  */
32
- public getCornersLonLat(): Array<any, any, any, any>;
31
+ public getCornersLonLat(): Array<LonLat>;
33
32
  /**
34
33
  * Gets corners coordinates.
35
34
  * @public
36
- * @return {Array.<Array<number,number,number>>} -
35
+ * @return {Array.<Array<number>>} - (exactly 3 entries)
37
36
  */
38
- public getCorners(): Array<Array<number, number, number>>;
37
+ public getCorners(): Array<Array<number>>;
39
38
  /**
40
39
  * Sets geoImage geographical corners coordinates.
41
40
  * @public
42
- * @param {Array.<Array.<number,number,number>>} corners - GeoImage corners coordinates. Where first coordinate
41
+ * @param {Array.<Array.<number>>} corners - GeoImage corners coordinates. Where first coordinate (exactly 3 entries)
43
42
  * coincedents to the left top image corner, secont to the right top image corner, third to the right bottom
44
43
  * and fourth - left bottom image corner.
45
44
  */
46
- public setCorners(corners: Array<Array<number, number, number>>): void;
45
+ public setCorners(corners: Array<Array<number>>): void;
47
46
  /**
48
47
  * Sets geoImage geographical corners coordinates.
49
48
  * @public
50
- * @param {Array.<og.LonLat, og.LonLat, og.LonLat, og.LonLat>} corners - GeoImage corners coordinates. Where first coordinate
49
+ * @param {Array.<LonLat>} corners - GeoImage corners coordinates. Where first coordinate
51
50
  * coincedents to the left top image corner, secont to the right top image corner, third to the right bottom
52
- * and fourth - left bottom image corner.
51
+ * and fourth - left bottom image corner. (exactly 4 entries)
53
52
  */
54
- public setCornersLonLat(corners: Array<any, any, any, any>): void;
53
+ public setCornersLonLat(corners: Array<LonLat>): void;
55
54
  /**
56
55
  * Creates geoImage frame.
57
56
  * @protected
58
57
  */
59
58
  protected _createFrame(): void;
60
59
  _cornersMerc: any[];
61
- _extentMerc: Extent;
62
- _extentMercParams: any[];
63
- /**
64
- * @virtual
65
- * @param {og.planetSegment.Material} material - GeoImage material.
66
- */
67
- abortMaterialLoading(material: any): void;
60
+ _extentMercParams: number[];
68
61
  /**
69
- * Clear layer material.
70
- * @virtual
71
- */
72
- clear(): void;
73
- /**
74
- * Sets layer visibility.
75
- * @public
76
62
  * @virtual
77
- * @param {boolean} visibility - GeoImage visibility.
63
+ * @param {Material} material - GeoImage material.
78
64
  */
79
- public setVisibility(visibility: boolean): void;
65
+ abortMaterialLoading(material: Material): void;
80
66
  /**
81
67
  * @virtual
82
68
  * @protected
83
- * @param {og.planetSegment.Material} material - GeoImage material.
69
+ * @param {Material} material - GeoImage material.
84
70
  */
85
- protected clearMaterial(material: any): void;
71
+ protected clearMaterial(material: Material): void;
86
72
  /**
87
73
  * @virtual
88
74
  * @protected
89
- * @param {og.planetSegment.Material} material - GeoImage material.
90
- * @returns {Array<Number, Number, Number, Number> } -
75
+ * @param {Material} material - GeoImage material.
76
+ * @returns {Array<number> } -
91
77
  */
92
- protected applyMaterial(material: any): Array<number, number, number, number>;
78
+ protected applyMaterial(material: Material): Array<number>;
93
79
  /**
94
80
  * Gets frame width size in pixels.
95
81
  * @public
@@ -103,4 +89,6 @@ export class BaseGeoImage {
103
89
  */
104
90
  public get getFrameHeight(): number;
105
91
  }
92
+ import { Layer } from "./Layer.js";
106
93
  import { Extent } from "../Extent.js";
94
+ import { LonLat } from "../LonLat.js";
@@ -1,22 +1,22 @@
1
1
  /**
2
2
  * Layer used to rendering each tile as a separate canvas object.
3
3
  * @class
4
- * @extends {og.Layer}
4
+ * @extends {Layer}
5
5
  * //TODO: make asynchronous handler.
6
6
  * @param {String} [name="noname"] - Layer name.
7
7
  * @param {Object} options:
8
8
  * @param {number} [options.opacity=1.0] - Layer opacity.
9
- * @param {Array.<number,number,number>} [options.transparentColor=[-1,-1,-1]] - RGB color that defines transparent color.
9
+ * @param {Array.<number>} [options.transparentColor=[-1,-1,-1]] - RGB color that defines transparent color. (exactly 3 entries)
10
10
  * @param {number} [options.minZoom=0] - Minimal visibility zoom level.
11
11
  * @param {number} [options.maxZoom=0] - Maximal visibility zoom level.
12
12
  * @param {string} [options.attribution] - Layer attribution that displayed in the attribution area on the screen.
13
13
  * @param {boolean} [options.isBaseLayer=false] - Base layer flag.
14
14
  * @param {boolean} [options.visibility=true] - Layer visibility.
15
- * @param {og.layer.CanvasTiles~drawTileCallback} [options.drawTile] - Draw tile callback.
15
+ * @param {layer.CanvasTiles~drawTileCallback} [options.drawTile] - Draw tile callback.
16
16
  * @fires og.layer.CanvasTiles#load
17
17
  * @fires og.layer.CanvasTiles#loadend
18
18
  */
19
- export class CanvasTiles {
19
+ export class CanvasTiles extends Layer {
20
20
  constructor(name: any, options: any);
21
21
  /**
22
22
  * Current creating tiles couter.
@@ -27,49 +27,42 @@ export class CanvasTiles {
27
27
  /**
28
28
  * Tile pending queue that waiting for create.
29
29
  * @protected
30
- * @type {Array.<og.planetSegment.Material>}
30
+ * @type {Array.<planetSegment.Material>}
31
31
  */
32
- protected _pendingsQueue: Array<any>;
32
+ protected _pendingsQueue: Array<planetSegment.Material>;
33
33
  /**
34
34
  * Draw tile callback.
35
- * @type {og.layer.CanvasTiles~drawTileCallback}
35
+ * @type {layer.CanvasTiles~drawTileCallback}
36
36
  * @public
37
37
  */
38
- public drawTile: any;
39
- get instanceName(): string;
38
+ public drawTile: layer.CanvasTiles;
40
39
  /**
41
40
  * Abort loading tiles.
42
41
  * @public
43
42
  */
44
43
  public abortLoading(): void;
45
- /**
46
- * Sets layer visibility.
47
- * @public
48
- * @param {boolean} visibility - Layer visibility.
49
- */
50
- public setVisibility(visibility: boolean): void;
51
- _visibility: any;
52
44
  /**
53
45
  * Start to load tile material.
54
46
  * @public
55
47
  * @virtual
56
- * @param {og.planetSegment.Material} material -
48
+ * @param {Material} material -
57
49
  */
58
- public loadMaterial(material: any): void;
50
+ public loadMaterial(material: Material): void;
59
51
  /**
60
52
  * Loads material image and apply it to the planet segment.
61
53
  * @protected
62
- * @param {og.planetSegment.Material} material - Loads material image.
54
+ * @param {Material} material - Loads material image.
63
55
  */
64
- protected _exec(material: any): void;
56
+ protected _exec(material: Material): void;
65
57
  /**
66
58
  * Abort exact material loading.
67
59
  * @public
68
- * @param {og.planetSegment.Material} material - Segment material.
60
+ * @param {Material} material - Segment material.
69
61
  */
70
- public abortMaterialLoading(material: any): void;
62
+ public abortMaterialLoading(material: Material): void;
71
63
  _dequeueRequest(): void;
72
64
  _whilePendings(): any;
73
65
  applyMaterial(material: any): number[];
74
66
  clearMaterial(material: any): void;
75
67
  }
68
+ import { Layer } from "./Layer.js";
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * Used to load and display a single image over specific corner coordinates on the globe, implements og.layer.BaseGeoImage interface.
3
3
  * @class
4
- * @extends {og.layer.BaseGeoImage}
4
+ * @extends {BaseGeoImage}
5
5
  */
6
- export class GeoImage {
7
- constructor(name: any, options: any);
6
+ export class GeoImage extends BaseGeoImage {
8
7
  /**
9
8
  * Image object.
10
9
  * @private
@@ -17,14 +16,12 @@ export class GeoImage {
17
16
  * @type {String}
18
17
  */
19
18
  private _src;
20
- get instanceName(): string;
21
19
  /**
22
20
  * Sets image source url path.
23
21
  * @public
24
22
  * @param {String} srs - Image url path.
25
23
  */
26
24
  public setSrc(src: any): void;
27
- _sourceReady: boolean;
28
25
  /**
29
26
  * Sets image object.
30
27
  * @public
@@ -37,29 +34,19 @@ export class GeoImage {
37
34
  * @protected
38
35
  */
39
36
  protected _createSourceTexture(): void;
40
- _sourceTexture: any;
41
- _sourceCreated: boolean;
42
37
  /**
43
38
  * @private
44
39
  * @param {Image} img
45
40
  */
46
41
  private _onLoad;
47
- _frameWidth: any;
48
- _frameHeight: any;
49
42
  /**
50
43
  * Loads planet segment material. In this case - GeoImage source image.
51
44
  * @virtual
52
45
  * @public
53
- * @param {og.planetSegment.Material} material - GeoImage planet material.
46
+ * @param {Material} material - GeoImage planet material.
54
47
  */
55
- public loadMaterial(material: any): void;
56
- _creationProceeding: boolean;
57
- /**
58
- * @virtual
59
- * @param {og.planetSegment.Material} material - GeoImage material.
60
- */
61
- abortMaterialLoading(material: any): void;
48
+ public loadMaterial(material: Material): void;
62
49
  _renderingProjType1(): void;
63
- _ready: boolean;
64
50
  _renderingProjType0(): void;
65
51
  }
52
+ import { BaseGeoImage } from "./BaseGeoImage.js";
@@ -1,16 +1,9 @@
1
1
  /**
2
2
  * Used to load and display a video stream by specific corners coordinates on the globe, implements og.layer.BaseGeoImage interface.
3
3
  * @class
4
- * @extends {og.layer.BaseGeoImage}
4
+ * @extends {BaseGeoImage}
5
5
  */
6
- export class GeoVideo {
7
- constructor(name: any, options: any);
8
- /**
9
- * @protected
10
- * @const
11
- * @type {Boolean}
12
- */
13
- protected _animate: boolean;
6
+ export class GeoVideo extends BaseGeoImage {
14
7
  /**
15
8
  * HTML5 video element object.
16
9
  * @private
@@ -23,40 +16,28 @@ export class GeoVideo {
23
16
  * @type {String}
24
17
  */
25
18
  private _src;
26
- get instanceName(): string;
27
19
  /**
28
20
  * Sets video source url path.
29
21
  * @public
30
22
  * @param {String} srs - Video url path.
31
23
  */
32
24
  public setSrc(src: any): void;
33
- _sourceReady: boolean;
34
25
  /**
35
26
  * Sets HTML5 video object.
36
27
  * @public
37
28
  * @param {Object} video - HTML5 video element object.
38
29
  */
39
30
  public setVideoElement(video: any): void;
40
- /**
41
- * Sets layer visibility.
42
- * @public
43
- * @param {boolean} visibility - Layer visibility.
44
- */
45
- public setVisibility(visibility: boolean): void;
46
31
  /**
47
32
  * Creates or refresh source video GL texture.
48
33
  * @virtual
49
34
  * @protected
50
35
  */
51
36
  protected _createSourceTexture(): void;
52
- _sourceTexture: any;
53
- _sourceCreated: boolean;
54
37
  /**
55
38
  * @private
56
39
  */
57
40
  private _onCanPlay;
58
- _frameWidth: any;
59
- _frameHeight: any;
60
41
  /**
61
42
  * @private
62
43
  */
@@ -65,16 +46,10 @@ export class GeoVideo {
65
46
  * Loads planet segment material. In this case - GeoImage source video.
66
47
  * @virtual
67
48
  * @public
68
- * @param {og.planetSegment.Material} material - GeoImage planet material.
69
- */
70
- public loadMaterial(material: any): void;
71
- _creationProceeding: boolean;
72
- /**
73
- * @virtual
74
- * @param {og.planetSegment.Material} material - GeoImage material.
49
+ * @param {Material} material - GeoImage planet material.
75
50
  */
76
- abortMaterialLoading(material: any): void;
51
+ public loadMaterial(material: Material): void;
77
52
  _renderingProjType1(): void;
78
- _ready: boolean;
79
53
  _renderingProjType0(): void;
80
54
  }
55
+ import { BaseGeoImage } from "./BaseGeoImage.js";
@@ -1,19 +1,14 @@
1
1
  /**
2
2
  * Layer to render KMLs files
3
3
  * @class
4
- * @extends {og.Vector}
4
+ * @extends {Vector}
5
5
  */
6
- export class KML {
6
+ export class KML extends Vector {
7
+ _billboard: any;
7
8
  /**
8
- *
9
- * @param {string} name
10
- * @param {*} [options]
9
+ * @type {string}
11
10
  */
12
- constructor(name: string, options?: any);
13
- _extent: any;
14
- _billboard: any;
15
- _color: any;
16
- get instanceName(): string;
11
+ _color: string;
17
12
  /**
18
13
  * @private
19
14
  */
@@ -23,11 +18,12 @@ export class KML {
23
18
  * @private
24
19
  * @param {Array} coordonates
25
20
  * @param {string} color
26
- * @returns {Array<og.Entity>}
21
+ * @returns {Array<Entity>}
27
22
  */
28
23
  private _convertCoordonatesIntoEntities;
29
24
  /**
30
25
  * @private
26
+ * @returns {Document}
31
27
  */
32
28
  private _getXmlContent;
33
29
  /**
@@ -37,9 +33,12 @@ export class KML {
37
33
  /**
38
34
  * @public
39
35
  * @param {File[]} kmls
40
- * @returns {Promise}
36
+ * @returns {Promise<{entities: Entity[], extent: Extent}>}
41
37
  */
42
- public addKmlFromFiles(kmls: File[]): Promise<any>;
38
+ public addKmlFromFiles(kmls: File[]): Promise<{
39
+ entities: Entity[];
40
+ extent: Extent;
41
+ }>;
43
42
  /**
44
43
  * @param {string} color
45
44
  * @public
@@ -52,7 +51,13 @@ export class KML {
52
51
  /**
53
52
  * @public
54
53
  * @param {string} url - Url of the KML to display. './myFile.kml' or 'http://mySite/myFile.kml' for example.
55
- * @returns {Promise}
54
+ * @returns {Promise<{entities: Entity[], extent: Extent}>}
56
55
  */
57
- public addKmlFromUrl(url: string): Promise<any>;
56
+ public addKmlFromUrl(url: string): Promise<{
57
+ entities: Entity[];
58
+ extent: Extent;
59
+ }>;
58
60
  }
61
+ import { Vector } from "./Vector.js";
62
+ import { Entity } from "../entity/Entity.js";
63
+ import { Extent } from "../Extent.js";