@openglobus/og 0.19.4 → 0.20.0

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 (308) hide show
  1. package/README.md +3 -3
  2. package/css/og.css +18 -4
  3. package/lib/@openglobus/js/Clock.d.ts +106 -0
  4. package/lib/@openglobus/js/Deferred.d.ts +6 -0
  5. package/lib/@openglobus/js/Events.d.ts +90 -0
  6. package/lib/@openglobus/js/Extent.d.ts +145 -0
  7. package/lib/@openglobus/js/Globe.d.ts +134 -0
  8. package/lib/@openglobus/js/ImageCanvas.d.ts +128 -0
  9. package/lib/@openglobus/js/Lock.d.ts +15 -0
  10. package/lib/@openglobus/js/LonLat.d.ts +128 -0
  11. package/lib/@openglobus/js/Object3d.d.ts +64 -0
  12. package/lib/@openglobus/js/Popup.d.ts +46 -0
  13. package/lib/@openglobus/js/QueueArray.d.ts +16 -0
  14. package/lib/@openglobus/js/Rectangle.d.ts +76 -0
  15. package/lib/@openglobus/js/Stack.d.ts +20 -0
  16. package/lib/@openglobus/js/astro/astro.d.ts +39 -0
  17. package/lib/@openglobus/js/astro/earth.d.ts +8 -0
  18. package/lib/@openglobus/js/astro/jd.d.ts +234 -0
  19. package/lib/@openglobus/js/astro/orbit.d.ts +5 -0
  20. package/lib/@openglobus/js/astro/rotation.d.ts +2 -0
  21. package/lib/@openglobus/js/bv/Box.d.ts +32 -0
  22. package/lib/@openglobus/js/bv/Sphere.d.ts +37 -0
  23. package/lib/@openglobus/js/bv/index.d.ts +3 -0
  24. package/lib/@openglobus/js/camera/Camera.d.ts +314 -0
  25. package/lib/@openglobus/js/camera/Frustum.d.ts +139 -0
  26. package/lib/@openglobus/js/camera/PlanetCamera.d.ts +234 -0
  27. package/lib/@openglobus/js/camera/index.d.ts +3 -0
  28. package/lib/@openglobus/js/cons.d.ts +40 -0
  29. package/lib/@openglobus/js/control/Atmosphere.d.ts +16 -0
  30. package/lib/@openglobus/js/control/CompassButton.d.ts +16 -0
  31. package/lib/@openglobus/js/control/Control.d.ts +100 -0
  32. package/lib/@openglobus/js/control/DebugInfo.d.ts +25 -0
  33. package/lib/@openglobus/js/control/DrawingSwitcher.d.ts +13 -0
  34. package/lib/@openglobus/js/control/EarthCoordinates.d.ts +41 -0
  35. package/lib/@openglobus/js/control/EarthNavigation.d.ts +50 -0
  36. package/lib/@openglobus/js/control/GeoImageDragControl.d.ts +22 -0
  37. package/lib/@openglobus/js/control/KeyboardNavigation.d.ts +28 -0
  38. package/lib/@openglobus/js/control/LayerAnimation.d.ts +71 -0
  39. package/lib/@openglobus/js/control/LayerSwitcher.d.ts +36 -0
  40. package/lib/@openglobus/js/control/Lighting.d.ts +53 -0
  41. package/lib/@openglobus/js/control/MouseNavigation.d.ts +64 -0
  42. package/lib/@openglobus/js/control/MouseWheelZoomControl.d.ts +44 -0
  43. package/lib/@openglobus/js/control/RulerSwitcher.d.ts +17 -0
  44. package/lib/@openglobus/js/control/ScaleControl.d.ts +24 -0
  45. package/lib/@openglobus/js/control/SegmentBoundVisualization.d.ts +12 -0
  46. package/lib/@openglobus/js/control/ShowFps.d.ts +9 -0
  47. package/lib/@openglobus/js/control/SimpleNavigation.d.ts +25 -0
  48. package/lib/@openglobus/js/control/SimpleSkyBackground.d.ts +17 -0
  49. package/lib/@openglobus/js/control/Sun.d.ts +33 -0
  50. package/lib/@openglobus/js/control/ToggleWireframe.d.ts +14 -0
  51. package/lib/@openglobus/js/control/TouchNavigation.d.ts +52 -0
  52. package/lib/@openglobus/js/control/ZoomControl.d.ts +27 -0
  53. package/lib/@openglobus/js/control/drawing/DrawingControl.d.ts +12 -0
  54. package/lib/@openglobus/js/control/drawing/LineStringDrawingScene.d.ts +15 -0
  55. package/lib/@openglobus/js/control/drawing/PolygonDrawingScene.d.ts +98 -0
  56. package/lib/@openglobus/js/control/elevationProfile/ElevationProfile.d.ts +77 -0
  57. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileButtonsView.d.ts +14 -0
  58. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileControl.d.ts +33 -0
  59. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileLegend.d.ts +20 -0
  60. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileScene.d.ts +80 -0
  61. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileView.d.ts +63 -0
  62. package/lib/@openglobus/js/control/elevationProfile/PointListDialog.d.ts +12 -0
  63. package/lib/@openglobus/js/control/heightRuler/HeightRuler.d.ts +7 -0
  64. package/lib/@openglobus/js/control/heightRuler/HeightRulerScene.d.ts +35 -0
  65. package/lib/@openglobus/js/control/heightRuler/HeightRulerSwitcher.d.ts +6 -0
  66. package/lib/@openglobus/js/control/index.d.ts +29 -0
  67. package/lib/@openglobus/js/control/ruler/Ruler.d.ts +13 -0
  68. package/lib/@openglobus/js/control/ruler/RulerScene.d.ts +88 -0
  69. package/lib/@openglobus/js/control/selection/Selection.d.ts +55 -0
  70. package/lib/@openglobus/js/control/selection/SelectionScene.d.ts +44 -0
  71. package/lib/@openglobus/js/control/timeline/TimelineControl.d.ts +18 -0
  72. package/lib/@openglobus/js/control/timeline/TimelineModel.d.ts +41 -0
  73. package/lib/@openglobus/js/control/timeline/TimelineView.d.ts +85 -0
  74. package/lib/@openglobus/js/control/timeline/timelineUtils.d.ts +12 -0
  75. package/lib/@openglobus/js/control/visibleExtent/drawnode.d.ts +7 -0
  76. package/lib/@openglobus/js/ellipsoid/Ellipsoid.d.ts +193 -0
  77. package/lib/@openglobus/js/ellipsoid/index.d.ts +3 -0
  78. package/lib/@openglobus/js/ellipsoid/wgs84.d.ts +6 -0
  79. package/lib/@openglobus/js/entity/BaseBillboard.d.ts +222 -0
  80. package/lib/@openglobus/js/entity/BaseBillboardHandler.d.ts +81 -0
  81. package/lib/@openglobus/js/entity/Billboard.d.ts +113 -0
  82. package/lib/@openglobus/js/entity/BillboardHandler.d.ts +15 -0
  83. package/lib/@openglobus/js/entity/Entity.d.ts +354 -0
  84. package/lib/@openglobus/js/entity/EntityCollection.d.ts +363 -0
  85. package/lib/@openglobus/js/entity/GeoObject.d.ts +152 -0
  86. package/lib/@openglobus/js/entity/GeoObjectHandler.d.ts +104 -0
  87. package/lib/@openglobus/js/entity/Geometry.d.ts +124 -0
  88. package/lib/@openglobus/js/entity/GeometryHandler.d.ts +84 -0
  89. package/lib/@openglobus/js/entity/Label.d.ts +214 -0
  90. package/lib/@openglobus/js/entity/LabelHandler.d.ts +65 -0
  91. package/lib/@openglobus/js/entity/LabelWorker.d.ts +15 -0
  92. package/lib/@openglobus/js/entity/PointCloud.d.ts +179 -0
  93. package/lib/@openglobus/js/entity/PointCloudHandler.d.ts +42 -0
  94. package/lib/@openglobus/js/entity/Polyline.d.ts +345 -0
  95. package/lib/@openglobus/js/entity/PolylineHandler.d.ts +22 -0
  96. package/lib/@openglobus/js/entity/Ray.d.ts +133 -0
  97. package/lib/@openglobus/js/entity/RayHandler.d.ts +70 -0
  98. package/lib/@openglobus/js/entity/Strip.d.ts +139 -0
  99. package/lib/@openglobus/js/entity/StripHandler.d.ts +42 -0
  100. package/lib/@openglobus/js/entity/index.d.ts +10 -0
  101. package/lib/@openglobus/js/index.d.ts +33 -0
  102. package/lib/@openglobus/js/input/KeyboardHandler.d.ts +33 -0
  103. package/lib/@openglobus/js/input/MouseHandler.d.ts +16 -0
  104. package/lib/@openglobus/js/input/TouchHandler.d.ts +11 -0
  105. package/lib/@openglobus/js/input/input.d.ts +3 -0
  106. package/lib/@openglobus/js/layer/BaseGeoImage.d.ts +145 -0
  107. package/lib/@openglobus/js/layer/Bing.d.ts +4 -0
  108. package/lib/@openglobus/js/layer/CanvasTiles.d.ts +103 -0
  109. package/lib/@openglobus/js/layer/GeoImage.d.ts +61 -0
  110. package/lib/@openglobus/js/layer/GeoTexture2d.d.ts +17 -0
  111. package/lib/@openglobus/js/layer/GeoVideo.d.ts +68 -0
  112. package/lib/@openglobus/js/layer/KML.d.ts +72 -0
  113. package/lib/@openglobus/js/layer/Layer.d.ts +415 -0
  114. package/lib/@openglobus/js/layer/Material.d.ts +34 -0
  115. package/lib/@openglobus/js/layer/OpenStreetMap.d.ts +4 -0
  116. package/lib/@openglobus/js/layer/Vector.d.ts +246 -0
  117. package/lib/@openglobus/js/layer/WMS.d.ts +75 -0
  118. package/lib/@openglobus/js/layer/XYZ.d.ts +148 -0
  119. package/lib/@openglobus/js/layer/index.d.ts +12 -0
  120. package/lib/@openglobus/js/light/LightSource.d.ts +174 -0
  121. package/lib/@openglobus/js/math/Line2.d.ts +11 -0
  122. package/lib/@openglobus/js/math/Line3.d.ts +28 -0
  123. package/lib/@openglobus/js/math/Mat3.d.ts +77 -0
  124. package/lib/@openglobus/js/math/Mat4.d.ts +195 -0
  125. package/lib/@openglobus/js/math/Plane.d.ts +20 -0
  126. package/lib/@openglobus/js/math/Quat.d.ts +373 -0
  127. package/lib/@openglobus/js/math/Ray.d.ts +76 -0
  128. package/lib/@openglobus/js/math/Vec2.d.ts +310 -0
  129. package/lib/@openglobus/js/math/Vec3.d.ts +472 -0
  130. package/lib/@openglobus/js/math/Vec4.d.ts +163 -0
  131. package/lib/@openglobus/js/math/coder.d.ts +51 -0
  132. package/lib/@openglobus/js/math/index.d.ts +11 -0
  133. package/lib/@openglobus/js/math.d.ts +266 -0
  134. package/lib/@openglobus/js/mercator.d.ts +92 -0
  135. package/lib/@openglobus/js/proj/EPSG3857.d.ts +9 -0
  136. package/lib/@openglobus/js/proj/EPSG4326.d.ts +9 -0
  137. package/lib/@openglobus/js/proj/Proj.d.ts +43 -0
  138. package/lib/@openglobus/js/quadTree/EPSG4326QuadTreeStrategy.d.ts +6 -0
  139. package/lib/@openglobus/js/quadTree/EarthQuadTreeStrategy.d.ts +9 -0
  140. package/lib/@openglobus/js/quadTree/EntityCollectionNode.d.ts +54 -0
  141. package/lib/@openglobus/js/quadTree/MarsQuadTreeStrategy.d.ts +11 -0
  142. package/lib/@openglobus/js/quadTree/Node.d.ts +80 -0
  143. package/lib/@openglobus/js/quadTree/QuadTreeStrategy.d.ts +28 -0
  144. package/lib/@openglobus/js/quadTree/Wgs84QuadTreeStrategy.d.ts +6 -0
  145. package/lib/@openglobus/js/quadTree/index.d.ts +12 -0
  146. package/lib/@openglobus/js/quadTree/quadTree.d.ts +40 -0
  147. package/lib/@openglobus/js/renderer/Renderer.d.ts +319 -0
  148. package/lib/@openglobus/js/renderer/RendererEvents.d.ts +240 -0
  149. package/lib/@openglobus/js/scene/Axes.d.ts +12 -0
  150. package/lib/@openglobus/js/scene/BaseNode.d.ts +61 -0
  151. package/lib/@openglobus/js/scene/Planet.d.ts +652 -0
  152. package/lib/@openglobus/js/scene/RenderNode.d.ts +150 -0
  153. package/lib/@openglobus/js/scene/SkyBox.d.ts +13 -0
  154. package/lib/@openglobus/js/scene/index.d.ts +5 -0
  155. package/lib/@openglobus/js/segment/Segment.d.ts +288 -0
  156. package/lib/@openglobus/js/segment/SegmentLonLat.d.ts +44 -0
  157. package/lib/@openglobus/js/segment/SegmentLonLatWgs84.d.ts +10 -0
  158. package/lib/@openglobus/js/segment/Slice.d.ts +13 -0
  159. package/lib/@openglobus/js/segment/segmentHelper.d.ts +18 -0
  160. package/lib/@openglobus/js/shaders/atmos.d.ts +4 -0
  161. package/lib/@openglobus/js/shaders/billboard.d.ts +3 -0
  162. package/lib/@openglobus/js/shaders/bloom.d.ts +2 -0
  163. package/lib/@openglobus/js/shaders/blur.d.ts +3 -0
  164. package/lib/@openglobus/js/shaders/depth.d.ts +2 -0
  165. package/lib/@openglobus/js/shaders/drawnode.d.ts +8 -0
  166. package/lib/@openglobus/js/shaders/geoObject.d.ts +3 -0
  167. package/lib/@openglobus/js/shaders/label.d.ts +4 -0
  168. package/lib/@openglobus/js/shaders/lumFilter.d.ts +2 -0
  169. package/lib/@openglobus/js/shaders/pointCloud.d.ts +2 -0
  170. package/lib/@openglobus/js/shaders/polyline.d.ts +3 -0
  171. package/lib/@openglobus/js/shaders/ray.d.ts +2 -0
  172. package/lib/@openglobus/js/shaders/screenFrame.d.ts +2 -0
  173. package/lib/@openglobus/js/shaders/skybox.d.ts +2 -0
  174. package/lib/@openglobus/js/shaders/toneMapping.d.ts +2 -0
  175. package/lib/@openglobus/js/shaders/utils.d.ts +1 -0
  176. package/lib/@openglobus/js/terrain/BilTerrain.d.ts +18 -0
  177. package/lib/@openglobus/js/terrain/EmptyTerrain.d.ts +113 -0
  178. package/lib/@openglobus/js/terrain/Geoid.d.ts +33 -0
  179. package/lib/@openglobus/js/terrain/GlobusRgbTerrain.d.ts +6 -0
  180. package/lib/@openglobus/js/terrain/GlobusTerrain.d.ts +137 -0
  181. package/lib/{js/terrain/MapboxTerrain.d.ts → @openglobus/js/terrain/RgbTerrain.d.ts} +5 -5
  182. package/lib/@openglobus/js/terrain/index.d.ts +6 -0
  183. package/lib/@openglobus/js/ui/Button.d.ts +32 -0
  184. package/lib/@openglobus/js/ui/ButtonGroup.d.ts +16 -0
  185. package/lib/@openglobus/js/ui/Color.d.ts +22 -0
  186. package/lib/@openglobus/js/ui/Dialog.d.ts +55 -0
  187. package/lib/@openglobus/js/ui/Slider.d.ts +38 -0
  188. package/lib/@openglobus/js/ui/ToggleButton.d.ts +20 -0
  189. package/lib/@openglobus/js/ui/View.d.ts +37 -0
  190. package/lib/@openglobus/js/ui/icons.d.ts +1 -0
  191. package/lib/@openglobus/js/utils/BaseWorker.d.ts +14 -0
  192. package/lib/@openglobus/js/utils/FontAtlas.d.ts +82 -0
  193. package/lib/@openglobus/js/utils/GeoImageCreator.d.ts +34 -0
  194. package/lib/@openglobus/js/utils/ImagesCacheManager.d.ts +22 -0
  195. package/lib/@openglobus/js/utils/Loader.d.ts +63 -0
  196. package/lib/@openglobus/js/utils/NormalMapCreator.d.ts +52 -0
  197. package/lib/@openglobus/js/utils/PlainSegmentWorker.d.ts +24 -0
  198. package/lib/@openglobus/js/utils/TerrainWorker.d.ts +28 -0
  199. package/lib/@openglobus/js/utils/TextureAtlas.d.ts +113 -0
  200. package/lib/@openglobus/js/utils/VectorTileCreator.d.ts +18 -0
  201. package/lib/@openglobus/js/utils/colorTable.d.ts +3 -0
  202. package/lib/@openglobus/js/utils/earcut.d.ts +7 -0
  203. package/lib/@openglobus/js/utils/objParser.d.ts +24 -0
  204. package/lib/@openglobus/js/utils/shared.d.ts +263 -0
  205. package/lib/@openglobus/js/utils/units.d.ts +16 -0
  206. package/lib/@openglobus/js/webgl/BaseFramebuffer.d.ts +53 -0
  207. package/lib/@openglobus/js/webgl/Framebuffer.d.ts +69 -0
  208. package/lib/@openglobus/js/webgl/Handler.d.ts +473 -0
  209. package/lib/@openglobus/js/webgl/Multisample.d.ts +27 -0
  210. package/lib/@openglobus/js/webgl/Program.d.ts +159 -0
  211. package/lib/@openglobus/js/webgl/ProgramController.d.ts +86 -0
  212. package/lib/@openglobus/js/webgl/index.d.ts +6 -0
  213. package/lib/@openglobus/js/webgl/types.d.ts +9 -0
  214. package/lib/@openglobus/js/webgl/variableHandlers.d.ts +22 -0
  215. package/lib/@openglobus/og.css +1 -1
  216. package/lib/@openglobus/og.esm.js +1 -1
  217. package/lib/@openglobus/og.esm.js.map +1 -1
  218. package/lib/@openglobus/og.umd.js +1 -1
  219. package/lib/@openglobus/og.umd.js.map +1 -1
  220. package/lib/js/Extent.js +2 -2
  221. package/lib/js/Globe.d.ts +1 -1
  222. package/lib/js/Object3d.d.ts +8 -1
  223. package/lib/js/Object3d.js +12 -2
  224. package/lib/js/camera/Frustum.d.ts +1 -1
  225. package/lib/js/camera/Frustum.js +3 -2
  226. package/lib/js/control/DebugInfo.js +19 -18
  227. package/lib/js/control/Lighting.d.ts +4 -0
  228. package/lib/js/control/Lighting.js +51 -12
  229. package/lib/js/control/SimpleSkyBackground.d.ts +2 -0
  230. package/lib/js/control/SimpleSkyBackground.js +13 -3
  231. package/lib/js/control/drawing/PolygonDrawingScene.js +2 -2
  232. package/lib/js/control/visibleExtent/drawnode.js +1 -1
  233. package/lib/js/entity/GeoObject.d.ts +12 -3
  234. package/lib/js/entity/GeoObject.js +34 -2
  235. package/lib/js/entity/GeoObjectHandler.d.ts +5 -0
  236. package/lib/js/entity/GeoObjectHandler.js +47 -0
  237. package/lib/js/entity/Geometry.d.ts +24 -11
  238. package/lib/js/entity/Geometry.js +17 -9
  239. package/lib/js/entity/GeometryHandler.js +5 -5
  240. package/lib/js/entity/Label.d.ts +7 -0
  241. package/lib/js/entity/Label.js +11 -0
  242. package/lib/js/entity/Polyline.d.ts +15 -7
  243. package/lib/js/entity/Polyline.js +54 -6
  244. package/lib/js/entity/Strip.d.ts +12 -0
  245. package/lib/js/entity/Strip.js +16 -0
  246. package/lib/js/entity/StripHandler.js +1 -1
  247. package/lib/js/entity/index.d.ts +10 -11
  248. package/lib/js/entity/index.js +10 -11
  249. package/lib/js/index.d.ts +5 -5
  250. package/lib/js/index.js +5 -5
  251. package/lib/js/layer/Bing.d.ts +4 -0
  252. package/lib/js/layer/Bing.js +40 -0
  253. package/lib/js/layer/GeoImage.d.ts +1 -1
  254. package/lib/js/layer/GeoVideo.d.ts +1 -1
  255. package/lib/js/layer/Layer.d.ts +1 -1
  256. package/lib/js/layer/Layer.js +2 -2
  257. package/lib/js/layer/OpenStreetMap.d.ts +4 -0
  258. package/lib/js/layer/OpenStreetMap.js +19 -0
  259. package/lib/js/layer/Vector.d.ts +3 -0
  260. package/lib/js/layer/Vector.js +3 -3
  261. package/lib/js/layer/index.d.ts +12 -11
  262. package/lib/js/layer/index.js +12 -11
  263. package/lib/js/math/Mat4.js +18 -17
  264. package/lib/js/mercator.js +2 -1
  265. package/lib/js/quadTree/EPSG4326QuadTreeStrategy.js +4 -5
  266. package/lib/js/quadTree/EarthQuadTreeStrategy.d.ts +3 -0
  267. package/lib/js/quadTree/EarthQuadTreeStrategy.js +40 -5
  268. package/lib/js/quadTree/EntityCollectionNode.d.ts +2 -2
  269. package/lib/js/quadTree/EntityCollectionNode.js +13 -14
  270. package/lib/js/quadTree/MarsQuadTreeStrategy.d.ts +5 -0
  271. package/lib/js/quadTree/MarsQuadTreeStrategy.js +31 -5
  272. package/lib/js/quadTree/Node.d.ts +2 -1
  273. package/lib/js/quadTree/Node.js +38 -28
  274. package/lib/js/quadTree/QuadTreeStrategy.d.ts +3 -0
  275. package/lib/js/quadTree/QuadTreeStrategy.js +17 -0
  276. package/lib/js/quadTree/Wgs84QuadTreeStrategy.js +3 -3
  277. package/lib/js/renderer/Renderer.js +1 -0
  278. package/lib/js/scene/Planet.js +6 -4
  279. package/lib/js/segment/Segment.d.ts +12 -9
  280. package/lib/js/segment/Segment.js +47 -24
  281. package/lib/js/segment/SegmentLonLat.d.ts +1 -5
  282. package/lib/js/segment/SegmentLonLat.js +8 -100
  283. package/lib/js/segment/SegmentLonLatWgs84.js +5 -3
  284. package/lib/js/shaders/billboard.js +4 -4
  285. package/lib/js/shaders/drawnode.js +16 -19
  286. package/lib/js/shaders/geoObject.js +4 -5
  287. package/lib/js/shaders/ray.js +7 -3
  288. package/lib/js/terrain/BilTerrain.d.ts +1 -1
  289. package/lib/js/terrain/BilTerrain.js +7 -6
  290. package/lib/js/terrain/EmptyTerrain.d.ts +7 -0
  291. package/lib/js/terrain/EmptyTerrain.js +7 -0
  292. package/lib/js/terrain/GlobusRgbTerrain.d.ts +6 -0
  293. package/lib/js/terrain/GlobusRgbTerrain.js +25 -0
  294. package/lib/js/terrain/GlobusTerrain.d.ts +5 -5
  295. package/lib/js/terrain/GlobusTerrain.js +35 -30
  296. package/lib/js/terrain/RgbTerrain.d.ts +22 -0
  297. package/lib/js/terrain/RgbTerrain.js +415 -0
  298. package/lib/js/terrain/index.d.ts +3 -2
  299. package/lib/js/terrain/index.js +3 -2
  300. package/lib/js/ui/Color.d.ts +22 -0
  301. package/lib/js/ui/Color.js +58 -0
  302. package/lib/js/utils/GeoImageCreator.js +1 -1
  303. package/lib/js/utils/NormalMapCreator.js +1 -1
  304. package/lib/js/utils/VectorTileCreator.js +3 -3
  305. package/lib/js/utils/shared.d.ts +1 -8
  306. package/lib/js/utils/shared.js +17 -8
  307. package/package.json +2 -1
  308. package/lib/js/terrain/MapboxTerrain.js +0 -305
@@ -0,0 +1,234 @@
1
+ import { Camera, ICameraParams } from "./Camera";
2
+ import { Key } from "../Lock";
3
+ import { LonLat } from "../LonLat";
4
+ import { Planet } from "../scene/Planet";
5
+ import { Vec3 } from "../math/Vec3";
6
+ import { Extent } from "../Extent";
7
+ import { Segment } from "../segment/Segment";
8
+ interface IPlanetCameraParams extends ICameraParams {
9
+ minAltitude?: number;
10
+ maxAltitude?: number;
11
+ }
12
+ type CameraFrame = {
13
+ eye: Vec3;
14
+ n: Vec3;
15
+ u: Vec3;
16
+ v: Vec3;
17
+ };
18
+ /**
19
+ * Planet camera.
20
+ * @class
21
+ * @extends {Camera}
22
+ * @param {Planet} planet - Planet render node.
23
+ * @param {IPlanetCameraParams} [options] - Planet camera options:
24
+ * @param {string} [options.name] - Camera name.
25
+ * @param {number} [options.viewAngle] - Camera angle of view.
26
+ * @param {number} [options.near] - Camera near plane distance. Default is 1.0
27
+ * @param {number} [options.far] - Camera far plane distance. Default is og.math.MAX
28
+ * @param {number} [options.minAltitude] - Minimal altitude for the camera. Default is 5
29
+ * @param {number} [options.maxAltitude] - Maximal altitude for the camera. Default is 20000000
30
+ * @param {Vec3} [options.eye] - Camera eye position. Default (0,0,0)
31
+ * @param {Vec3} [options.look] - Camera look position. Default (0,0,0)
32
+ * @param {Vec3} [options.up] - Camera eye position. Default (0,1,0)
33
+ */
34
+ declare class PlanetCamera extends Camera {
35
+ /**
36
+ * Assigned camera's planet.
37
+ * @public
38
+ * @type {Planet}
39
+ */
40
+ planet: Planet;
41
+ /**
42
+ * Minimal altitude that camera can reach over the terrain.
43
+ * @public
44
+ * @type {number}
45
+ */
46
+ minAltitude: number;
47
+ /**
48
+ * Maximal altitude that camera can reach over the globe.
49
+ * @public
50
+ * @type {number}
51
+ */
52
+ maxAltitude: number;
53
+ /**
54
+ * Current geographical degree position.
55
+ * @public
56
+ * @type {LonLat}
57
+ */
58
+ _lonLat: LonLat;
59
+ /**
60
+ * Current geographical mercator position.
61
+ * @public
62
+ * @type {LonLat}
63
+ */
64
+ _lonLatMerc: LonLat;
65
+ /**
66
+ * Current altitude.
67
+ * @protected
68
+ * @type {number}
69
+ */
70
+ protected _terrainAltitude: number;
71
+ /**
72
+ * Cartesian coordinates on the terrain.
73
+ * @protected
74
+ * @type {Vec3}
75
+ */
76
+ protected _terrainPoint: Vec3;
77
+ /**
78
+ * Quad node that camera flies over.
79
+ * @protected
80
+ * @type {Segment}
81
+ */
82
+ _insideSegment: Segment | null;
83
+ slope: number;
84
+ protected _keyLock: Key;
85
+ protected _framesArr: CameraFrame[];
86
+ protected _framesCounter: number;
87
+ protected _numFrames: number;
88
+ protected _completeCallback: Function | null;
89
+ protected _frameCallback: Function | null;
90
+ protected _flying: boolean;
91
+ protected _checkTerrainCollision: boolean;
92
+ eyeNorm: Vec3;
93
+ constructor(planet: Planet, options?: IPlanetCameraParams);
94
+ setTerrainCollisionActivity(isActive: boolean): void;
95
+ /**
96
+ * Updates camera view space.
97
+ * @public
98
+ * @virtual
99
+ */
100
+ update(): void;
101
+ updateGeodeticPosition(): void;
102
+ /**
103
+ * Sets altitude over the terrain.
104
+ * @public
105
+ * @param {number} alt - Altitude over the terrain.
106
+ */
107
+ setAltitude(alt: number): void;
108
+ /**
109
+ * Gets altitude over the terrain.
110
+ * @public
111
+ */
112
+ getAltitude(): number;
113
+ /**
114
+ * Places camera to view to the geographical point.
115
+ * @public
116
+ * @param {LonLat} lonlat - New camera and camera view position.
117
+ * @param {LonLat} [lookLonLat] - Look up coordinates.
118
+ * @param {Vec3} [up] - Camera UP vector. Default (0,1,0)
119
+ */
120
+ setLonLat(lonlat: LonLat, lookLonLat?: LonLat, up?: Vec3): void;
121
+ /**
122
+ * Returns camera geographical position.
123
+ * @public
124
+ * @returns {LonLat}
125
+ */
126
+ getLonLat(): LonLat;
127
+ /**
128
+ * Returns camera height.
129
+ * @public
130
+ * @returns {number}
131
+ */
132
+ getHeight(): number;
133
+ /**
134
+ * Gets position by viewable extent.
135
+ * @public
136
+ * @param {Extent} extent - Viewable extent.
137
+ * @param {Number} height - Camera height
138
+ * @returns {Vec3}
139
+ */
140
+ getExtentPosition(extent: Extent, height?: number | null): Vec3;
141
+ /**
142
+ * View current extent.
143
+ * @public
144
+ * @param {Extent} extent - Current extent.
145
+ * @param {number} [height]
146
+ */
147
+ viewExtent(extent: Extent, height?: number): void;
148
+ /**
149
+ * Flies to the current extent.
150
+ * @public
151
+ * @param {Extent} extent - Current extent.
152
+ * @param {number} [height] - Destination height.
153
+ * @param {Vec3} [up] - Camera UP in the end of flying. Default - (0,1,0)
154
+ * @param {Number} [ampl] - Altitude amplitude factor.
155
+ * @param {Function} [completeCallback] - Callback that calls after flying when flying is finished.
156
+ * @param {Function} [startCallback] - Callback that calls before the flying begins.
157
+ * @param {Function} [frameCallback] - Each frame callback
158
+ */
159
+ flyExtent(extent: Extent, height?: number | null, up?: Vec3 | null, ampl?: number | null, completeCallback?: Function | null, startCallback?: Function | null, frameCallback?: Function | null): void;
160
+ viewDistance(cartesian: Vec3, distance?: number): void;
161
+ flyDistance(cartesian: Vec3, distance?: number, ampl?: number, completeCallback?: Function, startCallback?: Function, frameCallback?: Function): void;
162
+ /**
163
+ * Flies to the cartesian coordinates.
164
+ * @public
165
+ * @param {Vec3} cartesian - Finish cartesian coordinates.
166
+ * @param {Vec3} [look] - Camera LOOK in the end of flying. Default - (0,0,0)
167
+ * @param {Vec3} [up] - Camera UP vector in the end of flying. Default - (0,1,0)
168
+ * @param {Number} [ampl=1.0] - Altitude amplitude factor.
169
+ * @param {Function} [completeCallback] - Callback that calls after flying when flying is finished.
170
+ * @param {Function} [startCallback] - Callback that calls before the flying begins.
171
+ * @param {Function} [frameCallback] - Each frame callback
172
+ */
173
+ flyCartesian(cartesian: Vec3, look?: Vec3 | LonLat | null, up?: Vec3 | null, ampl?: number, completeCallback?: Function | null, startCallback?: Function | null, frameCallback?: Function | null): void;
174
+ /**
175
+ * Flies to the geo coordinates.
176
+ * @public
177
+ * @param {LonLat} lonlat - Finish coordinates.
178
+ * @param {Vec3 | LonLat} [look] - Camera LOOK in the end of flying. Default - (0,0,0)
179
+ * @param {Vec3} [up] - Camera UP vector in the end of flying. Default - (0,1,0)
180
+ * @param {number} [ampl] - Altitude amplitude factor.
181
+ * @param {Function} [completeCallback] - Callback that calls after flying when flying is finished.
182
+ * @param {Function} [startCallback] - Callback that calls befor the flying begins.
183
+ * @param {Function} [frameCallback] - each frame callback
184
+ */
185
+ flyLonLat(lonlat: LonLat, look?: Vec3 | LonLat, up?: Vec3, ampl?: number, completeCallback?: Function, startCallback?: Function, frameCallbak?: Function): void;
186
+ /**
187
+ * Breaks the flight.
188
+ * @public
189
+ */
190
+ stopFlying(): void;
191
+ /**
192
+ * Returns camera is flying.
193
+ * @public
194
+ * @returns {boolean}
195
+ */
196
+ isFlying(): boolean;
197
+ /**
198
+ * Rotates around planet to the left.
199
+ * @public
200
+ * @param {number} angle - Rotation angle.
201
+ * @param {boolean} [spin] - If its true rotates around globe spin.
202
+ */
203
+ rotateLeft(angle: number, spin: boolean): void;
204
+ /**
205
+ * Rotates around planet to the right.
206
+ * @public
207
+ * @param {number} angle - Rotation angle.
208
+ * @param {boolean} [spin] - If its true rotates around globe spin.
209
+ */
210
+ rotateRight(angle: number, spin: boolean): void;
211
+ /**
212
+ * Rotates around planet to the North Pole.
213
+ * @public
214
+ * @param {number} angle - Rotation angle.
215
+ */
216
+ rotateUp(angle: number): void;
217
+ /**
218
+ * Rotates around planet to the South Pole.
219
+ * @public
220
+ * @param {number} angle - Rotation angle.
221
+ */
222
+ rotateDown(angle: number): void;
223
+ rotateVertical(angle: number, center: Vec3, minSlope?: number): void;
224
+ /**
225
+ * Prepare camera to the frame. Used in render node frame function.
226
+ * @public
227
+ */
228
+ checkFly(): void;
229
+ checkTerrainCollision(): Vec3 | undefined;
230
+ getSurfaceVisibleDistance(d: number): number;
231
+ getHeading(): number;
232
+ isVisible(poi: Vec3): boolean;
233
+ }
234
+ export { PlanetCamera };
@@ -0,0 +1,3 @@
1
+ import { Camera } from './Camera';
2
+ import { PlanetCamera } from './PlanetCamera';
3
+ export { Camera, PlanetCamera };
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Console logging singleton object.
3
+ * @class
4
+ */
5
+ export declare class Cons {
6
+ protected _container: HTMLElement;
7
+ protected _visibility: boolean;
8
+ constructor();
9
+ getVisibility(): boolean;
10
+ setVisibility(visibility: boolean): void;
11
+ /**
12
+ * Show console panel.
13
+ * @public
14
+ */
15
+ show(): void;
16
+ /**
17
+ * Hide console panel.
18
+ * @public
19
+ */
20
+ hide(): void;
21
+ /**
22
+ * Adds error text in the console.
23
+ * @public
24
+ * @param {string} str - Error text.
25
+ */
26
+ logErr(str: string): void;
27
+ /**
28
+ * Adds warning text in the console.
29
+ * @public
30
+ * @param {string} str - Warning text.
31
+ */
32
+ logWrn(str: string): void;
33
+ /**
34
+ * Adds log text in the console.
35
+ * @public
36
+ * @param {string} str - Log text.
37
+ */
38
+ log(str: string): void;
39
+ }
40
+ export declare const cons: Cons;
@@ -0,0 +1,16 @@
1
+ import { Framebuffer } from "../webgl/Framebuffer";
2
+ import { Control, IControlParams } from "./Control";
3
+ interface IAtmosphereParams extends IControlParams {
4
+ }
5
+ export declare class Atmosphere extends Control {
6
+ _transmittanceBuffer: Framebuffer | null;
7
+ _scatteringBuffer: Framebuffer | null;
8
+ opacity: number;
9
+ constructor(options?: IAtmosphereParams);
10
+ oninit(): void;
11
+ onactivate(): void;
12
+ ondeactivate(): void;
13
+ protected _drawAtmosphereTextures(): void;
14
+ protected _drawBackground(): void;
15
+ }
16
+ export {};
@@ -0,0 +1,16 @@
1
+ import { Control, IControlParams } from "./Control";
2
+ interface ICompasButtonParams extends IControlParams {
3
+ }
4
+ /**
5
+ * Planet compass button
6
+ */
7
+ export declare class CompassButton extends Control {
8
+ protected _heading: number;
9
+ protected _svg: HTMLElement | null;
10
+ constructor(options?: ICompasButtonParams);
11
+ oninit(): void;
12
+ protected _onClick(): void;
13
+ protected _draw(): void;
14
+ setHeading(heading: number): void;
15
+ }
16
+ export {};
@@ -0,0 +1,100 @@
1
+ import { Planet, Renderer } from "../index";
2
+ export interface IControlParams {
3
+ name?: string;
4
+ autoActivate?: boolean;
5
+ }
6
+ /**
7
+ * Base control class. All other controls extend from this class.
8
+ * @class Control
9
+ * @param {Boolean} [options.autoActivate=true] - If true - calls initialize function after the renderer assigning.
10
+ */
11
+ export declare class Control {
12
+ static __counter__: number;
13
+ protected __id: number;
14
+ protected _name: string;
15
+ /**
16
+ * Control activity.
17
+ * @protected
18
+ * @type {boolean}
19
+ */
20
+ protected _active: boolean;
21
+ /**
22
+ * Control initialized.
23
+ * @protected
24
+ * @type {boolean}
25
+ */
26
+ protected _initialized: boolean;
27
+ planet: Planet | null;
28
+ /**
29
+ * Assigned renderer.
30
+ * @public
31
+ * @type {Renderer}
32
+ */
33
+ renderer: Renderer | null;
34
+ /**
35
+ * Auto activation flag.
36
+ * @public
37
+ * @type {boolean}
38
+ */
39
+ autoActivate: boolean;
40
+ protected _deferredActive: boolean;
41
+ constructor(options?: IControlParams);
42
+ /**
43
+ * Returns control name.
44
+ * @public
45
+ * @return {string} -
46
+ */
47
+ get name(): string;
48
+ /**
49
+ * Control initialization function have to be overridden.
50
+ * @public
51
+ */
52
+ oninit(): void;
53
+ /**
54
+ * Control renderer assigning function have to be overridden.
55
+ * @public
56
+ */
57
+ onadd(): void;
58
+ /**
59
+ * Control remove function have to be overridden.
60
+ * @public
61
+ */
62
+ onremove(): void;
63
+ /**
64
+ * Control activation function have to be overridden.
65
+ * @public
66
+ */
67
+ onactivate(): void;
68
+ /**
69
+ * Control deactivation function have to be overriden.
70
+ * @public
71
+ */
72
+ ondeactivate(): void;
73
+ /**
74
+ * Assign renderer to the control.
75
+ * @public
76
+ * @type {Renderer}
77
+ */
78
+ addTo(renderer: Renderer): void;
79
+ /**
80
+ * Removes control.
81
+ * @public
82
+ */
83
+ remove(): void;
84
+ /**
85
+ * Activate control.
86
+ * @public
87
+ */
88
+ activate(): void;
89
+ /**
90
+ * Deactivate control.
91
+ * @public
92
+ */
93
+ deactivate(): void;
94
+ /**
95
+ * Is control active.
96
+ * @public
97
+ */
98
+ isActive(): boolean;
99
+ isEqual(control: Control): boolean;
100
+ }
@@ -0,0 +1,25 @@
1
+ import { Control, IControlParams } from "./Control";
2
+ import { Dialog } from "../ui/Dialog";
3
+ import { ToggleButton } from "../ui/ToggleButton";
4
+ import { CanvasTiles } from "../layer/CanvasTiles";
5
+ export interface IDebugInfoWatch {
6
+ label: string;
7
+ valEl?: HTMLElement;
8
+ frame?: () => string | number;
9
+ }
10
+ interface IDebugInfoParams extends IControlParams {
11
+ watch?: IDebugInfoWatch[];
12
+ }
13
+ export declare class DebugInfo extends Control {
14
+ el: HTMLElement | null;
15
+ protected _watch: IDebugInfoWatch[];
16
+ protected _toggleBtn: ToggleButton;
17
+ protected _dialog: Dialog<null>;
18
+ protected _canvasTiles: CanvasTiles;
19
+ constructor(options?: IDebugInfoParams);
20
+ addWatches(watches: IDebugInfoWatch[]): void;
21
+ addWatch(watch: IDebugInfoWatch): void;
22
+ oninit(): void;
23
+ protected _frame(): void;
24
+ }
25
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Control } from "./Control";
2
+ import { DrawingControl } from "./drawing/DrawingControl";
3
+ /**
4
+ * Activate drawing control
5
+ */
6
+ export declare class DrawingSwitcher extends Control {
7
+ drawingControl: DrawingControl;
8
+ constructor(options?: {});
9
+ oninit(): void;
10
+ onactivate(): void;
11
+ ondeactivate(): void;
12
+ protected _createMenu(): void;
13
+ }
@@ -0,0 +1,41 @@
1
+ import { Control, IControlParams } from './Control';
2
+ import { LonLat } from '../LonLat';
3
+ import { IMouseState } from "../renderer/RendererEvents";
4
+ interface IEarthCoordinatesParams extends IControlParams {
5
+ heightMode?: string;
6
+ centerMode?: boolean;
7
+ altitudeUnit?: string;
8
+ type?: number;
9
+ }
10
+ /**
11
+ * Control displays mouse or screen center Earth coordinates.
12
+ * @param {Boolean} [options.center] - Earth coordinates by screen center otherwise mouse pointer. False is default.
13
+ * @param {Boolean} [options.type] - Coordinates shown: 0 - is decimal degrees, 1 - degrees, 2 - mercator geodetic coordinates.
14
+ */
15
+ export declare class EarthCoordinates extends Control {
16
+ protected _type: number;
17
+ protected _TYPE_FUNC: ((ll?: LonLat | null) => void)[];
18
+ protected _showFn: ((ll?: LonLat | null) => void) | null;
19
+ protected _lonLat: LonLat | null;
20
+ protected _latSideEl: HTMLElement | null;
21
+ protected _lonSideEl: HTMLElement | null;
22
+ protected _latValEl: HTMLElement | null;
23
+ protected _lonValEl: HTMLElement | null;
24
+ protected _heightEl: HTMLElement | null;
25
+ protected _altUnitVal: string;
26
+ protected _heightModeVal: string;
27
+ protected _altUnit: number;
28
+ protected _heightMode: number;
29
+ protected _centerMode: boolean;
30
+ protected _el: HTMLElement | null;
31
+ constructor(options?: IEarthCoordinatesParams);
32
+ protected _SHOW_DECIMAL(ll?: LonLat | null): void;
33
+ protected _SHOW_DEGREE(ll?: LonLat | null): void;
34
+ protected _createCenterEl(): HTMLElement;
35
+ protected _updateUnits(): void;
36
+ protected _refreshCoordinates(): void;
37
+ oninit(): void;
38
+ protected _grabCoordinates(e: IMouseState): void;
39
+ protected _showHeight(): Promise<void>;
40
+ }
41
+ export {};
@@ -0,0 +1,50 @@
1
+ import { Control, IControlParams } from "./Control";
2
+ import { ITouchState } from "../renderer/RendererEvents";
3
+ import { IMouseState } from "../renderer/RendererEvents";
4
+ import { Quat } from "../math/Quat";
5
+ import { Sphere } from "../bv/Sphere";
6
+ import { Vec3 } from "../math/Vec3";
7
+ interface IEarthNavigationParams extends IControlParams {
8
+ }
9
+ declare class TouchExt {
10
+ x: number;
11
+ y: number;
12
+ prev_x: number;
13
+ prev_y: number;
14
+ grabbedPoint: Vec3 | null;
15
+ grabbedSpheroid: Sphere;
16
+ constructor();
17
+ dX(): number;
18
+ dY(): number;
19
+ }
20
+ export declare class EarthNavigation extends Control {
21
+ protected grabbedPoint: Vec3 | null;
22
+ protected grabbedDir: Vec3;
23
+ inertia: number;
24
+ protected grabbedSpheroid: Sphere;
25
+ protected _vRot: Quat;
26
+ protected _hRot: Quat;
27
+ protected _a: number;
28
+ protected scaleRot: number;
29
+ protected currState: number;
30
+ protected positionState: {
31
+ h: number;
32
+ max: number;
33
+ min: number;
34
+ }[];
35
+ protected touches: TouchExt[];
36
+ constructor(options?: IEarthNavigationParams);
37
+ switchZoomState(wheelDelta: number): void;
38
+ protected onMouseWheel(event: IMouseState): void;
39
+ oninit(): void;
40
+ onactivate(): void;
41
+ protected onTouchStart(e: ITouchState): void;
42
+ protected onTouchEnd(e: ITouchState): void;
43
+ protected onTouchMove(e: ITouchState): void;
44
+ protected onMouseLeftButtonClick(e: IMouseState): void;
45
+ stopRotation(): void;
46
+ protected onMouseLeftButtonUp(e: IMouseState): void;
47
+ protected onMouseLeftButtonDown(e: IMouseState): void;
48
+ protected onDraw(): void;
49
+ }
50
+ export {};
@@ -0,0 +1,22 @@
1
+ import { Control, IControlParams } from './Control';
2
+ import { Layer } from "../layer/Layer";
3
+ import { ToggleButton } from "../ui/ToggleButton";
4
+ import { IMouseState } from "../renderer/RendererEvents";
5
+ interface IGeoImageDragControlParams extends IControlParams {
6
+ }
7
+ export declare class GeoImageDragControl extends Control {
8
+ protected _cornerIndex: number;
9
+ protected _catchCorner: boolean;
10
+ protected _toggleBtn: ToggleButton;
11
+ constructor(options?: IGeoImageDragControlParams);
12
+ oninit(): void;
13
+ onactivate(): void;
14
+ ondeactivate(): void;
15
+ _bindLayer(layer: Layer): void;
16
+ protected _unbindLayer(layer: Layer): void;
17
+ protected _onLUp(ms: IMouseState): void;
18
+ protected _onLDown(ms: IMouseState): void;
19
+ protected _onMouseLeave(): void;
20
+ protected _onMouseMove(ms: IMouseState): void;
21
+ }
22
+ export {};
@@ -0,0 +1,28 @@
1
+ import { Control, IControlParams } from "./Control";
2
+ interface IKeyboardNavigationParams extends IControlParams {
3
+ step?: number;
4
+ }
5
+ /**
6
+ * Planet camera keyboard navigation. Use W,S,A,D and left shift key for fly around a planet.
7
+ */
8
+ export declare class KeyboardNavigation extends Control {
9
+ step: number;
10
+ constructor(options?: IKeyboardNavigationParams);
11
+ onactivate(): void;
12
+ ondeactivate(): void;
13
+ oninit(): void;
14
+ protected onCameraMoveForward(): void;
15
+ protected onCameraMoveBackward(): void;
16
+ protected onCameraStrifeLeft(): void;
17
+ protected onCameraStrifeRight(): void;
18
+ protected onCameraLookUp(): void;
19
+ protected onCameraLookDown(): void;
20
+ protected onCameraLookLeft(): void;
21
+ protected onCameraLookRight(): void;
22
+ protected onCameraTurnLeft(): void;
23
+ protected onCameraTurnRight(): void;
24
+ protected onCameraRollNorth(): void;
25
+ protected onCameraRollLeft(): void;
26
+ protected onCameraRollRight(): void;
27
+ }
28
+ export {};
@@ -0,0 +1,71 @@
1
+ import { EventsHandler } from '../Events';
2
+ import { Layer } from '../layer/Layer';
3
+ import { Control, IControlParams } from "./Control";
4
+ type LayerAnimationEventsList = ["change", "idle", "play", "pause", "stop"];
5
+ interface ILayerAnimationParams extends IControlParams {
6
+ layers?: Layer;
7
+ playInterval?: number;
8
+ frameSize?: number;
9
+ repeat?: boolean;
10
+ skipTimeout?: number;
11
+ }
12
+ export declare class LayerAnimation extends Control {
13
+ events: EventsHandler<LayerAnimationEventsList>;
14
+ protected _layersArr: Layer[];
15
+ protected _currentIndex: number;
16
+ protected _playInterval: number;
17
+ protected _playIntervalHandler: any;
18
+ protected _playIndex: number;
19
+ protected _frameSize: number;
20
+ repeat: boolean;
21
+ skipTimeout: number;
22
+ protected _timeoutStart: number;
23
+ protected _currVisibleIndex: number;
24
+ constructor(options?: ILayerAnimationParams);
25
+ protected _onViewchange: () => void;
26
+ protected _getFramesNum(): number;
27
+ protected _setFrame(frameIndex: number): void;
28
+ protected _getFrameIndex(layerIndex: number): number;
29
+ protected _appendFrameToPlanet(frameIndex: number): void;
30
+ protected _removeFrameFromPlanet(frameIndex: number): void;
31
+ oninit(): void;
32
+ onactivate(): void;
33
+ ondeactivate(): void;
34
+ protected _onVisibilityChange: (isVisible: boolean) => void;
35
+ clear(): void;
36
+ protected _initLayers(): void;
37
+ setLayers(layers: Layer[]): void;
38
+ appendLayer(layer: Layer): void;
39
+ /**
40
+ * warning: Use XYZ.isIdle in requestAnimationFrame(after setVisibility)
41
+ * @returns Returns true if current layer is idle
42
+ */
43
+ get isIdle(): boolean;
44
+ get playInterval(): number;
45
+ set playInterval(val: number);
46
+ get isPlaying(): boolean;
47
+ get layers(): Layer[];
48
+ protected _checkEnd(): void;
49
+ play(): void;
50
+ stop(): void;
51
+ pause(): void;
52
+ protected _clearInterval(): void;
53
+ /**
54
+ * Waiting for the current index layer loadend and make it non-transparent,
55
+ * and make prev layer transparent, also check previous frame index to clean up.
56
+ */
57
+ private _onLayerLoadend;
58
+ /**
59
+ * Function sets layer index visible.
60
+ * @param {number} index
61
+ * @param {boolean} [stopPropagation=false]
62
+ */
63
+ setCurrentIndex(index: number, stopPropagation?: boolean): void;
64
+ /**
65
+ * Function sets layer index visible. If the layer is idle (all visible tiles loaded), sets opacity to one,
66
+ * otherwise to ZERO it means that when all visible tiles will be loaded the opacity becomes ONE. So, previous
67
+ * layer remains not transparent (opacity = 1) till current layer is loading.
68
+ */
69
+ protected _setCurrentIndexAsync(index: number, forceVisibility?: boolean, stopPropagation?: boolean): void;
70
+ }
71
+ export {};