@openglobus/og 0.23.0 → 0.24.1

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 (342) hide show
  1. package/lib/@openglobus/js/Clock.d.ts +2 -2
  2. package/lib/@openglobus/js/Globe.d.ts +10 -6
  3. package/lib/@openglobus/js/LonLat.d.ts +2 -2
  4. package/lib/@openglobus/js/Object3d.d.ts +3 -2
  5. package/lib/@openglobus/js/Popup.d.ts +7 -4
  6. package/lib/@openglobus/js/astro/astro.d.ts +1 -1
  7. package/lib/@openglobus/js/astro/earth.d.ts +1 -1
  8. package/lib/@openglobus/js/bv/Box.d.ts +1 -1
  9. package/lib/@openglobus/js/camera/Camera.d.ts +55 -19
  10. package/lib/@openglobus/js/camera/Frustum.d.ts +2 -2
  11. package/lib/@openglobus/js/camera/PlanetCamera.d.ts +14 -1
  12. package/lib/@openglobus/js/control/Atmosphere.d.ts +3 -3
  13. package/lib/@openglobus/js/control/AtmosphereConfig.d.ts +2 -2
  14. package/lib/@openglobus/js/control/CameraLock.d.ts +3 -3
  15. package/lib/@openglobus/js/control/CompassButton.d.ts +1 -1
  16. package/lib/@openglobus/js/control/DebugInfo.d.ts +1 -1
  17. package/lib/@openglobus/js/control/EarthCoordinates.d.ts +2 -2
  18. package/lib/@openglobus/js/control/GeoImageDragControl.d.ts +2 -2
  19. package/lib/@openglobus/js/control/KeyboardNavigation.d.ts +1 -1
  20. package/lib/@openglobus/js/control/LayerAnimation.d.ts +2 -2
  21. package/lib/@openglobus/js/control/LayerSwitcher.d.ts +4 -2
  22. package/lib/@openglobus/js/control/Lighting.d.ts +2 -1
  23. package/lib/@openglobus/js/control/MouseNavigation.d.ts +64 -52
  24. package/lib/@openglobus/js/control/OldMouseNavigation.d.ts +65 -0
  25. package/lib/@openglobus/js/control/RulerSwitcher.d.ts +2 -1
  26. package/lib/@openglobus/js/control/ScaleControl.d.ts +2 -1
  27. package/lib/@openglobus/js/control/SegmentBoundVisualization.d.ts +2 -1
  28. package/lib/@openglobus/js/control/ShowFps.d.ts +2 -1
  29. package/lib/@openglobus/js/control/SimpleNavigation.d.ts +3 -2
  30. package/lib/@openglobus/js/control/SimpleSkyBackground.d.ts +2 -1
  31. package/lib/@openglobus/js/control/Sun.d.ts +2 -1
  32. package/lib/@openglobus/js/control/ToggleWireframe.d.ts +2 -1
  33. package/lib/@openglobus/js/control/TouchNavigation.d.ts +3 -2
  34. package/lib/@openglobus/js/control/ZoomControl.d.ts +2 -1
  35. package/lib/@openglobus/js/control/drawing/DrawingControl.d.ts +1 -1
  36. package/lib/@openglobus/js/control/drawing/LineStringDrawingScene.d.ts +1 -1
  37. package/lib/@openglobus/js/control/drawing/PolygonDrawingScene.d.ts +3 -3
  38. package/lib/@openglobus/js/control/elevationProfile/ElevationProfile.d.ts +1 -1
  39. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileButtonsView.d.ts +3 -2
  40. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileControl.d.ts +2 -2
  41. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileLegend.d.ts +1 -1
  42. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileScene.d.ts +2 -2
  43. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileView.d.ts +6 -4
  44. package/lib/@openglobus/js/control/elevationProfile/PointListDialog.d.ts +1 -1
  45. package/lib/@openglobus/js/control/geoObjectEditor/ArrowEntity.d.ts +1 -1
  46. package/lib/@openglobus/js/control/geoObjectEditor/AxisTrackEntity.d.ts +1 -1
  47. package/lib/@openglobus/js/control/geoObjectEditor/GeoObjectEditor.d.ts +1 -1
  48. package/lib/@openglobus/js/control/geoObjectEditor/GeoObjectEditorDialog.d.ts +1 -1
  49. package/lib/@openglobus/js/control/geoObjectEditor/GeoObjectEditorScene.d.ts +2 -2
  50. package/lib/@openglobus/js/control/geoObjectEditor/MoveAxisEntity.d.ts +1 -1
  51. package/lib/@openglobus/js/control/geoObjectEditor/MovePlaneEntity.d.ts +1 -1
  52. package/lib/@openglobus/js/control/geoObjectEditor/RotateEntity.d.ts +1 -1
  53. package/lib/@openglobus/js/control/heightRuler/HeightRuler.d.ts +1 -1
  54. package/lib/@openglobus/js/control/heightRuler/HeightRulerScene.d.ts +1 -1
  55. package/lib/@openglobus/js/control/index.d.ts +1 -2
  56. package/lib/@openglobus/js/control/ruler/Ruler.d.ts +2 -1
  57. package/lib/@openglobus/js/control/ruler/RulerScene.d.ts +2 -2
  58. package/lib/@openglobus/js/control/selection/Selection.d.ts +2 -1
  59. package/lib/@openglobus/js/control/timeline/TimelineControl.d.ts +1 -1
  60. package/lib/@openglobus/js/control/timeline/TimelineModel.d.ts +1 -1
  61. package/lib/@openglobus/js/control/timeline/TimelineView.d.ts +4 -3
  62. package/lib/@openglobus/js/ellipsoid/Ellipsoid.d.ts +1 -1
  63. package/lib/@openglobus/js/entity/BaseBillboard.d.ts +6 -3
  64. package/lib/@openglobus/js/entity/BaseBillboardHandler.d.ts +2 -2
  65. package/lib/@openglobus/js/entity/Billboard.d.ts +3 -2
  66. package/lib/@openglobus/js/entity/Entity.d.ts +47 -32
  67. package/lib/@openglobus/js/entity/EntityCollection.d.ts +4 -3
  68. package/lib/@openglobus/js/entity/GeoObject.d.ts +2 -11
  69. package/lib/@openglobus/js/entity/Geometry.d.ts +4 -3
  70. package/lib/@openglobus/js/entity/GeometryHandler.d.ts +3 -2
  71. package/lib/@openglobus/js/entity/InstanceData.d.ts +2 -2
  72. package/lib/@openglobus/js/entity/Label.d.ts +4 -2
  73. package/lib/@openglobus/js/entity/LabelHandler.d.ts +1 -1
  74. package/lib/@openglobus/js/entity/PointCloud.d.ts +1 -1
  75. package/lib/@openglobus/js/entity/Polyline.d.ts +9 -7
  76. package/lib/@openglobus/js/entity/Ray.d.ts +4 -2
  77. package/lib/@openglobus/js/entity/RayHandler.d.ts +2 -2
  78. package/lib/@openglobus/js/entity/Strip.d.ts +5 -3
  79. package/lib/@openglobus/js/input/KeyboardHandler.d.ts +1 -1
  80. package/lib/@openglobus/js/input/MouseHandler.d.ts +1 -0
  81. package/lib/@openglobus/js/layer/BaseGeoImage.d.ts +6 -5
  82. package/lib/@openglobus/js/layer/Bing.d.ts +2 -1
  83. package/lib/@openglobus/js/layer/CanvasTiles.d.ts +4 -3
  84. package/lib/@openglobus/js/layer/GeoImage.d.ts +2 -1
  85. package/lib/@openglobus/js/layer/GeoTexture2d.d.ts +3 -2
  86. package/lib/@openglobus/js/layer/GeoVideo.d.ts +2 -1
  87. package/lib/@openglobus/js/layer/KML.d.ts +5 -3
  88. package/lib/@openglobus/js/layer/Layer.d.ts +5 -4
  89. package/lib/@openglobus/js/layer/Material.d.ts +2 -2
  90. package/lib/@openglobus/js/layer/OpenStreetMap.d.ts +2 -1
  91. package/lib/@openglobus/js/layer/Vector.d.ts +9 -7
  92. package/lib/@openglobus/js/layer/WMS.d.ts +2 -1
  93. package/lib/@openglobus/js/layer/XYZ.d.ts +4 -3
  94. package/lib/@openglobus/js/math/Mat3.d.ts +1 -1
  95. package/lib/@openglobus/js/math/Mat4.d.ts +10 -1
  96. package/lib/@openglobus/js/math/Plane.d.ts +3 -1
  97. package/lib/@openglobus/js/math/Quat.d.ts +7 -1
  98. package/lib/@openglobus/js/math/Ray.d.ts +6 -16
  99. package/lib/@openglobus/js/math/Vec2.d.ts +22 -0
  100. package/lib/@openglobus/js/math/Vec3.d.ts +3 -2
  101. package/lib/@openglobus/js/math/coder.d.ts +5 -3
  102. package/lib/@openglobus/js/math/index.d.ts +6 -3
  103. package/lib/@openglobus/js/math.d.ts +2 -2
  104. package/lib/@openglobus/js/quadTree/earth/EarthEntityCollectionNodeLonLat.d.ts +2 -1
  105. package/lib/@openglobus/js/quadTree/earth/EarthQuadTreeStrategy.d.ts +0 -2
  106. package/lib/@openglobus/js/quadTree/equi/EquiEntityCollectionNodeLonLat.d.ts +2 -1
  107. package/lib/@openglobus/js/renderer/Renderer.d.ts +5 -3
  108. package/lib/@openglobus/js/renderer/RendererEvents.d.ts +7 -3
  109. package/lib/@openglobus/js/scene/Axes.d.ts +1 -1
  110. package/lib/@openglobus/js/scene/Planet.d.ts +12 -6
  111. package/lib/@openglobus/js/scene/SkyBox.d.ts +1 -1
  112. package/lib/@openglobus/js/segment/Segment.d.ts +7 -5
  113. package/lib/@openglobus/js/segment/SegmentLonLat.d.ts +1 -1
  114. package/lib/@openglobus/js/segment/SegmentLonLatEqui.d.ts +1 -1
  115. package/lib/@openglobus/js/shaders/atmos.d.ts +1 -1
  116. package/lib/@openglobus/js/shaders/drawnode.d.ts +1 -1
  117. package/lib/@openglobus/js/terrain/BilTerrain.d.ts +3 -2
  118. package/lib/@openglobus/js/terrain/EmptyTerrain.d.ts +1 -1
  119. package/lib/@openglobus/js/terrain/GlobusRgbTerrain.d.ts +2 -1
  120. package/lib/@openglobus/js/terrain/GlobusTerrain.d.ts +5 -4
  121. package/lib/@openglobus/js/terrain/RgbTerrain.d.ts +3 -2
  122. package/lib/@openglobus/js/ui/Button.d.ts +3 -2
  123. package/lib/@openglobus/js/ui/ButtonGroup.d.ts +1 -1
  124. package/lib/@openglobus/js/ui/Checkbox.d.ts +3 -2
  125. package/lib/@openglobus/js/ui/Color.d.ts +3 -2
  126. package/lib/@openglobus/js/ui/Dialog.d.ts +3 -2
  127. package/lib/@openglobus/js/ui/Input.d.ts +3 -2
  128. package/lib/@openglobus/js/ui/Slider.d.ts +3 -2
  129. package/lib/@openglobus/js/ui/ToggleButton.d.ts +4 -3
  130. package/lib/@openglobus/js/ui/View.d.ts +1 -1
  131. package/lib/@openglobus/js/utils/FontAtlas.d.ts +1 -1
  132. package/lib/@openglobus/js/utils/GeoImageCreator.d.ts +1 -1
  133. package/lib/@openglobus/js/utils/Loader.d.ts +1 -1
  134. package/lib/@openglobus/js/utils/NormalMapCreator.d.ts +2 -1
  135. package/lib/@openglobus/js/utils/TerrainWorker.d.ts +1 -1
  136. package/lib/@openglobus/js/utils/TextureAtlas.d.ts +4 -2
  137. package/lib/@openglobus/js/utils/objParser.d.ts +1 -1
  138. package/lib/@openglobus/js/utils/shared.d.ts +5 -3
  139. package/lib/@openglobus/js/webgl/Framebuffer.d.ts +3 -2
  140. package/lib/@openglobus/js/webgl/Handler.d.ts +32 -19
  141. package/lib/@openglobus/js/webgl/Multisample.d.ts +2 -1
  142. package/lib/@openglobus/js/webgl/Program.d.ts +2 -2
  143. package/lib/@openglobus/js/webgl/ProgramController.d.ts +2 -1
  144. package/lib/@openglobus/js/webgl/variableHandlers.d.ts +1 -1
  145. package/lib/@openglobus/og.esm.js +1 -1
  146. package/lib/@openglobus/og.esm.js.map +1 -1
  147. package/lib/@openglobus/og.umd.js +1 -1
  148. package/lib/@openglobus/og.umd.js.map +1 -1
  149. package/lib/js/Clock.d.ts +2 -2
  150. package/lib/js/Globe.d.ts +10 -6
  151. package/lib/js/Globe.js +10 -4
  152. package/lib/js/LonLat.d.ts +2 -2
  153. package/lib/js/Object3d.d.ts +3 -2
  154. package/lib/js/Popup.d.ts +7 -4
  155. package/lib/js/Popup.js +1 -1
  156. package/lib/js/astro/astro.d.ts +1 -1
  157. package/lib/js/astro/earth.d.ts +1 -1
  158. package/lib/js/bv/Box.d.ts +1 -1
  159. package/lib/js/camera/Camera.d.ts +55 -19
  160. package/lib/js/camera/Camera.js +82 -28
  161. package/lib/js/camera/Frustum.d.ts +2 -2
  162. package/lib/js/camera/PlanetCamera.d.ts +14 -1
  163. package/lib/js/camera/PlanetCamera.js +52 -5
  164. package/lib/js/control/Atmosphere.d.ts +3 -3
  165. package/lib/js/control/AtmosphereConfig.d.ts +2 -2
  166. package/lib/js/control/CameraLock.d.ts +3 -3
  167. package/lib/js/control/CameraLock.js +1 -1
  168. package/lib/js/control/CompassButton.d.ts +1 -1
  169. package/lib/js/control/DebugInfo.d.ts +1 -1
  170. package/lib/js/control/DebugInfo.js +30 -10
  171. package/lib/js/control/EarthCoordinates.d.ts +2 -2
  172. package/lib/js/control/GeoImageDragControl.d.ts +2 -2
  173. package/lib/js/control/KeyboardNavigation.d.ts +1 -1
  174. package/lib/js/control/KeyboardNavigation.js +8 -8
  175. package/lib/js/control/LayerAnimation.d.ts +2 -2
  176. package/lib/js/control/LayerSwitcher.d.ts +4 -2
  177. package/lib/js/control/Lighting.d.ts +2 -1
  178. package/lib/js/control/MouseNavigation.d.ts +64 -52
  179. package/lib/js/control/MouseNavigation.js +361 -305
  180. package/lib/js/control/MouseWheelZoomControl.d.ts +0 -44
  181. package/lib/js/control/MouseWheelZoomControl.js +270 -181
  182. package/lib/js/control/OldMouseNavigation.d.ts +65 -0
  183. package/lib/js/control/OldMouseNavigation.js +368 -0
  184. package/lib/js/control/RulerSwitcher.d.ts +2 -1
  185. package/lib/js/control/ScaleControl.d.ts +2 -1
  186. package/lib/js/control/ScaleControl.js +2 -2
  187. package/lib/js/control/SegmentBoundVisualization.d.ts +2 -1
  188. package/lib/js/control/ShowFps.d.ts +2 -1
  189. package/lib/js/control/SimpleNavigation.d.ts +3 -2
  190. package/lib/js/control/SimpleNavigation.js +8 -7
  191. package/lib/js/control/SimpleSkyBackground.d.ts +2 -1
  192. package/lib/js/control/Sun.d.ts +2 -1
  193. package/lib/js/control/Sun.js +5 -5
  194. package/lib/js/control/ToggleWireframe.d.ts +2 -1
  195. package/lib/js/control/TouchNavigation.d.ts +3 -2
  196. package/lib/js/control/TouchNavigation.js +11 -8
  197. package/lib/js/control/ZoomControl.d.ts +2 -1
  198. package/lib/js/control/drawing/DrawingControl.d.ts +1 -1
  199. package/lib/js/control/drawing/LineStringDrawingScene.d.ts +1 -1
  200. package/lib/js/control/drawing/PolygonDrawingScene.d.ts +3 -3
  201. package/lib/js/control/elevationProfile/ElevationProfile.d.ts +1 -1
  202. package/lib/js/control/elevationProfile/ElevationProfileButtonsView.d.ts +3 -2
  203. package/lib/js/control/elevationProfile/ElevationProfileControl.d.ts +2 -2
  204. package/lib/js/control/elevationProfile/ElevationProfileLegend.d.ts +1 -1
  205. package/lib/js/control/elevationProfile/ElevationProfileScene.d.ts +2 -2
  206. package/lib/js/control/elevationProfile/ElevationProfileScene.js +2 -1
  207. package/lib/js/control/elevationProfile/ElevationProfileView.d.ts +6 -4
  208. package/lib/js/control/elevationProfile/ElevationProfileView.js +1 -1
  209. package/lib/js/control/elevationProfile/PointListDialog.d.ts +1 -1
  210. package/lib/js/control/geoObjectEditor/ArrowEntity.d.ts +1 -1
  211. package/lib/js/control/geoObjectEditor/AxisTrackEntity.d.ts +1 -1
  212. package/lib/js/control/geoObjectEditor/GeoObjectEditor.d.ts +1 -1
  213. package/lib/js/control/geoObjectEditor/GeoObjectEditorDialog.d.ts +1 -1
  214. package/lib/js/control/geoObjectEditor/GeoObjectEditorDialog.js +19 -33
  215. package/lib/js/control/geoObjectEditor/GeoObjectEditorScene.d.ts +2 -2
  216. package/lib/js/control/geoObjectEditor/GeoObjectEditorScene.js +18 -18
  217. package/lib/js/control/geoObjectEditor/MoveAxisEntity.d.ts +1 -1
  218. package/lib/js/control/geoObjectEditor/MoveAxisEntity.js +3 -2
  219. package/lib/js/control/geoObjectEditor/MovePlaneEntity.d.ts +1 -1
  220. package/lib/js/control/geoObjectEditor/MovePlaneEntity.js +1 -4
  221. package/lib/js/control/geoObjectEditor/RotateEntity.d.ts +1 -1
  222. package/lib/js/control/geoObjectEditor/RotateEntity.js +1 -1
  223. package/lib/js/control/heightRuler/HeightRuler.d.ts +1 -1
  224. package/lib/js/control/heightRuler/HeightRulerScene.d.ts +1 -1
  225. package/lib/js/control/index.d.ts +1 -2
  226. package/lib/js/control/index.js +1 -2
  227. package/lib/js/control/ruler/Ruler.d.ts +2 -1
  228. package/lib/js/control/ruler/RulerScene.d.ts +2 -2
  229. package/lib/js/control/selection/Selection.d.ts +2 -1
  230. package/lib/js/control/timeline/TimelineControl.d.ts +1 -1
  231. package/lib/js/control/timeline/TimelineModel.d.ts +1 -1
  232. package/lib/js/control/timeline/TimelineView.d.ts +4 -3
  233. package/lib/js/control/visibleExtent/Segment.js +4 -4
  234. package/lib/js/ellipsoid/Ellipsoid.d.ts +1 -1
  235. package/lib/js/ellipsoid/Ellipsoid.js +1 -1
  236. package/lib/js/entity/BaseBillboard.d.ts +6 -3
  237. package/lib/js/entity/BaseBillboardHandler.d.ts +2 -2
  238. package/lib/js/entity/Billboard.d.ts +3 -2
  239. package/lib/js/entity/Entity.d.ts +47 -32
  240. package/lib/js/entity/Entity.js +62 -47
  241. package/lib/js/entity/EntityCollection.d.ts +4 -3
  242. package/lib/js/entity/GeoObject.d.ts +2 -11
  243. package/lib/js/entity/GeoObject.js +0 -3
  244. package/lib/js/entity/Geometry.d.ts +4 -3
  245. package/lib/js/entity/GeometryHandler.d.ts +3 -2
  246. package/lib/js/entity/InstanceData.d.ts +2 -2
  247. package/lib/js/entity/InstanceData.js +6 -3
  248. package/lib/js/entity/Label.d.ts +4 -2
  249. package/lib/js/entity/LabelHandler.d.ts +1 -1
  250. package/lib/js/entity/PointCloud.d.ts +1 -1
  251. package/lib/js/entity/Polyline.d.ts +9 -7
  252. package/lib/js/entity/Polyline.js +2 -1
  253. package/lib/js/entity/Ray.d.ts +4 -2
  254. package/lib/js/entity/RayHandler.d.ts +2 -2
  255. package/lib/js/entity/Strip.d.ts +5 -3
  256. package/lib/js/input/KeyboardHandler.d.ts +1 -1
  257. package/lib/js/input/MouseHandler.d.ts +1 -0
  258. package/lib/js/input/MouseHandler.js +12 -1
  259. package/lib/js/layer/BaseGeoImage.d.ts +6 -5
  260. package/lib/js/layer/Bing.d.ts +2 -1
  261. package/lib/js/layer/CanvasTiles.d.ts +4 -3
  262. package/lib/js/layer/GeoImage.d.ts +2 -1
  263. package/lib/js/layer/GeoTexture2d.d.ts +3 -2
  264. package/lib/js/layer/GeoVideo.d.ts +2 -1
  265. package/lib/js/layer/KML.d.ts +5 -3
  266. package/lib/js/layer/KML.js +1 -1
  267. package/lib/js/layer/Layer.d.ts +5 -4
  268. package/lib/js/layer/Material.d.ts +2 -2
  269. package/lib/js/layer/OpenStreetMap.d.ts +2 -1
  270. package/lib/js/layer/Vector.d.ts +9 -7
  271. package/lib/js/layer/Vector.js +1 -1
  272. package/lib/js/layer/WMS.d.ts +2 -1
  273. package/lib/js/layer/XYZ.d.ts +4 -3
  274. package/lib/js/math/Mat3.d.ts +1 -1
  275. package/lib/js/math/Mat3.js +1 -1
  276. package/lib/js/math/Mat4.d.ts +10 -1
  277. package/lib/js/math/Mat4.js +17 -1
  278. package/lib/js/math/Plane.d.ts +3 -1
  279. package/lib/js/math/Plane.js +11 -1
  280. package/lib/js/math/Quat.d.ts +7 -1
  281. package/lib/js/math/Quat.js +7 -1
  282. package/lib/js/math/Ray.d.ts +6 -16
  283. package/lib/js/math/Ray.js +53 -46
  284. package/lib/js/math/Vec2.d.ts +22 -0
  285. package/lib/js/math/Vec2.js +32 -0
  286. package/lib/js/math/Vec3.d.ts +3 -2
  287. package/lib/js/math/coder.d.ts +5 -3
  288. package/lib/js/math/index.d.ts +6 -3
  289. package/lib/js/math.d.ts +2 -2
  290. package/lib/js/math.js +2 -2
  291. package/lib/js/quadTree/earth/EarthEntityCollectionNodeLonLat.d.ts +2 -1
  292. package/lib/js/quadTree/earth/EarthQuadTreeStrategy.d.ts +0 -2
  293. package/lib/js/quadTree/equi/EquiEntityCollectionNodeLonLat.d.ts +2 -1
  294. package/lib/js/renderer/Renderer.d.ts +5 -3
  295. package/lib/js/renderer/Renderer.js +10 -6
  296. package/lib/js/renderer/RendererEvents.d.ts +7 -3
  297. package/lib/js/renderer/RendererEvents.js +5 -3
  298. package/lib/js/scene/Axes.d.ts +1 -1
  299. package/lib/js/scene/Planet.d.ts +12 -6
  300. package/lib/js/scene/Planet.js +24 -3
  301. package/lib/js/scene/SkyBox.d.ts +1 -1
  302. package/lib/js/segment/Segment.d.ts +7 -5
  303. package/lib/js/segment/Segment.js +4 -4
  304. package/lib/js/segment/SegmentLonLat.d.ts +1 -1
  305. package/lib/js/segment/SegmentLonLatEqui.d.ts +1 -1
  306. package/lib/js/shaders/atmos.d.ts +1 -1
  307. package/lib/js/shaders/drawnode.d.ts +1 -1
  308. package/lib/js/terrain/BilTerrain.d.ts +3 -2
  309. package/lib/js/terrain/EmptyTerrain.d.ts +1 -1
  310. package/lib/js/terrain/GlobusRgbTerrain.d.ts +2 -1
  311. package/lib/js/terrain/GlobusTerrain.d.ts +5 -4
  312. package/lib/js/terrain/GlobusTerrain.js +2 -2
  313. package/lib/js/terrain/RgbTerrain.d.ts +3 -2
  314. package/lib/js/ui/Button.d.ts +3 -2
  315. package/lib/js/ui/ButtonGroup.d.ts +1 -1
  316. package/lib/js/ui/Checkbox.d.ts +3 -2
  317. package/lib/js/ui/Color.d.ts +3 -2
  318. package/lib/js/ui/Dialog.d.ts +3 -2
  319. package/lib/js/ui/Input.d.ts +3 -2
  320. package/lib/js/ui/Slider.d.ts +3 -2
  321. package/lib/js/ui/ToggleButton.d.ts +4 -3
  322. package/lib/js/ui/View.d.ts +1 -1
  323. package/lib/js/utils/FontAtlas.d.ts +1 -1
  324. package/lib/js/utils/GeoImageCreator.d.ts +1 -1
  325. package/lib/js/utils/Loader.d.ts +1 -1
  326. package/lib/js/utils/NormalMapCreator.d.ts +2 -1
  327. package/lib/js/utils/TerrainWorker.d.ts +1 -1
  328. package/lib/js/utils/TextureAtlas.d.ts +4 -2
  329. package/lib/js/utils/objParser.d.ts +1 -1
  330. package/lib/js/utils/shared.d.ts +5 -3
  331. package/lib/js/webgl/Framebuffer.d.ts +3 -2
  332. package/lib/js/webgl/Handler.d.ts +32 -19
  333. package/lib/js/webgl/Handler.js +48 -36
  334. package/lib/js/webgl/Multisample.d.ts +2 -1
  335. package/lib/js/webgl/Program.d.ts +2 -2
  336. package/lib/js/webgl/ProgramController.d.ts +2 -1
  337. package/lib/js/webgl/variableHandlers.d.ts +1 -1
  338. package/package.json +2 -2
  339. package/lib/@openglobus/js/control/EarthNavigation.d.ts +0 -50
  340. package/lib/@openglobus/js/control/MouseWheelZoomControl.d.ts +0 -44
  341. package/lib/js/control/EarthNavigation.d.ts +0 -50
  342. package/lib/js/control/EarthNavigation.js +0 -202
@@ -1,5 +1,5 @@
1
- import { EventsHandler } from "./Events";
2
- import { JulianDate } from "./astro/jd";
1
+ import { type EventsHandler } from "./Events";
2
+ import type { JulianDate } from "./astro/jd";
3
3
  import { Handler } from "./webgl/Handler";
4
4
  type ClockEventsList = ["tick", "end", "start", "stop"];
5
5
  export interface IClockParams {
@@ -2,14 +2,15 @@ import { Control } from "./control/Control";
2
2
  import { Ellipsoid } from "./ellipsoid/Ellipsoid";
3
3
  import { EmptyTerrain } from "./terrain/EmptyTerrain";
4
4
  import { Layer } from "./layer/Layer";
5
- import { NumberArray2 } from "./math/Vec2";
6
- import { NumberArray4 } from "./math/Vec4";
5
+ import type { NumberArray2 } from "./math/Vec2";
6
+ import type { NumberArray4 } from "./math/Vec4";
7
7
  import { Planet } from "./scene/Planet";
8
8
  import { Sun } from "./control/Sun";
9
- import { HTMLDivElementExt, Renderer } from "./renderer/Renderer";
9
+ import { Renderer } from "./renderer/Renderer";
10
+ import type { HTMLDivElementExt } from "./renderer/Renderer";
10
11
  import { RenderNode } from "./scene/RenderNode";
11
12
  import { Extent } from "./Extent";
12
- import { IAtmosphereParams } from "./control/Atmosphere";
13
+ import type { IAtmosphereParams } from "./control/Atmosphere";
13
14
  export interface IGlobeParams {
14
15
  attributionContainer?: HTMLElement;
15
16
  target?: string | HTMLElement;
@@ -33,7 +34,6 @@ export interface IGlobeParams {
33
34
  transitionOpacityEnabled?: boolean;
34
35
  terrain?: EmptyTerrain;
35
36
  controls?: Control[];
36
- useEarthNavigation?: boolean;
37
37
  minSlope?: number;
38
38
  sun?: {
39
39
  active?: boolean;
@@ -48,6 +48,10 @@ export interface IGlobeParams {
48
48
  gamma?: number;
49
49
  exposure?: number;
50
50
  }
51
+ /**
52
+ * @typedef {Array<number>} LonLatCoordinate
53
+ * @typedef {Array<LonLatCoordinate>} ExtentBoundingBox
54
+ */
51
55
  /**
52
56
  * Creates a WebGL context with globe.
53
57
  * @class
@@ -79,7 +83,7 @@ export interface IGlobeParams {
79
83
  * @param {EmptyTerrain} [options.terrain] - Terrain provider. Default no terrain - og.terrain.EmptyTerrain.
80
84
  * @param {Array.<Control>} [options.controls] - Renderer controls array.
81
85
  * @param {Array.<Layer>} [options.layers] - Planet layers.
82
- * @param {Extent| [[number, number],[number, number]]} [options.viewExtent] - Viewable starting extent.
86
+ * @param {Extent | ExtentBoundingBox} [options.viewExtent] [options.viewExtent] - Viewable starting extent.
83
87
  * @param {boolean} [options.autoActivate=true] - Globe rendering auto activation flag. True is default.
84
88
  * @param {HTMLElement} [options.attributionContainer] - Container for attribution list.
85
89
  * @param {number} [options.maxGridSize=128] = Maximal segment grid size. 128 is default
@@ -1,5 +1,5 @@
1
- import { NumberArray2 } from "./math/Vec2";
2
- import { NumberArray3 } from "./math/Vec3";
1
+ import type { NumberArray2 } from "./math/Vec2";
2
+ import type { NumberArray3 } from "./math/Vec3";
3
3
  /**
4
4
  * Represents a geographical point with a certain latitude, longitude and height.
5
5
  * @class
@@ -1,5 +1,6 @@
1
- import { TypedArray } from './utils/shared';
2
- import { NumberArray3, Vec3 } from './math/Vec3';
1
+ import type { TypedArray } from './utils/shared';
2
+ import { Vec3 } from './math/Vec3';
3
+ import type { NumberArray3 } from './math/Vec3';
3
4
  import { Mat4 } from "./math/Mat4";
4
5
  interface IObject3dParams {
5
6
  name?: string;
@@ -1,9 +1,12 @@
1
- import { EventsHandler } from "./Events";
1
+ import type { EventsHandler } from "./Events";
2
2
  import { LonLat } from "./LonLat";
3
3
  import { Planet } from "./scene/Planet";
4
- import { NumberArray2, Vec2 } from "./math/Vec2";
5
- import { NumberArray3, Vec3 } from "./math/Vec3";
6
- import { View, IViewParams, ViewEventsList } from './ui/View';
4
+ import { Vec2 } from "./math/Vec2";
5
+ import { Vec3 } from "./math/Vec3";
6
+ import type { NumberArray2 } from "./math/Vec2";
7
+ import type { NumberArray3 } from "./math/Vec3";
8
+ import { View } from './ui/View';
9
+ import type { IViewParams, ViewEventsList } from './ui/View';
7
10
  interface IPopupParams extends IViewParams {
8
11
  planet: Planet;
9
12
  title?: string;
@@ -1,4 +1,4 @@
1
- import { JulianDate } from "./jd";
1
+ import { type JulianDate } from "./jd";
2
2
  /**
3
3
  * Angle between J2000 mean equator and the ecliptic plane.
4
4
  * 23 deg 26' 21".448 (Seidelmann, _Explanatory Supplement to the
@@ -1,5 +1,5 @@
1
1
  import { Vec3 } from "../math/Vec3";
2
- import { JulianDate } from "./jd";
2
+ import type { JulianDate } from "./jd";
3
3
  /**
4
4
  * Returns Sun position in the geocentric coordinate system by the time.
5
5
  * @param {JulianDate} jDate - Julian date time.
@@ -1,5 +1,5 @@
1
1
  import { Vec3 } from "../math/Vec3";
2
- import { NumberArray6 } from "./Sphere";
2
+ import type { NumberArray6 } from "./Sphere";
3
3
  import { Ellipsoid } from "../ellipsoid/Ellipsoid";
4
4
  import { Extent } from "../Extent";
5
5
  type Vec3Array8 = [Vec3, Vec3, Vec3, Vec3, Vec3, Vec3, Vec3, Vec3];
@@ -1,11 +1,15 @@
1
- import { EventsHandler } from "../Events";
1
+ import { type EventsHandler } from "../Events";
2
2
  import { Frustum } from "./Frustum";
3
- import { Mat3, NumberArray9 } from "../math/Mat3";
4
- import { Mat4, NumberArray16 } from "../math/Mat4";
3
+ import { Mat3 } from "../math/Mat3";
4
+ import type { NumberArray9 } from "../math/Mat3";
5
+ import { Mat4 } from "../math/Mat4";
6
+ import type { NumberArray16 } from "../math/Mat4";
5
7
  import { Renderer } from "../renderer/Renderer";
6
- import { Vec2, NumberArray2 } from "../math/Vec2";
8
+ import { Vec2 } from "../math/Vec2";
9
+ import type { NumberArray2 } from "../math/Vec2";
7
10
  import { Vec3 } from "../math/Vec3";
8
11
  import { Sphere } from "../bv/Sphere";
12
+ import { Quat } from "../math/Quat";
9
13
  type CameraEvents = ["viewchange", "moveend"];
10
14
  export interface ICameraParams {
11
15
  eye?: Vec3;
@@ -89,22 +93,28 @@ declare class Camera {
89
93
  protected _normalMatrix: Mat3;
90
94
  /**
91
95
  * Camera right vector.
92
- * @public
96
+ * @protected
93
97
  * @type {Vec3}
94
98
  */
95
99
  _r: Vec3;
96
100
  /**
97
101
  * Camera up vector.
98
- * @public
102
+ * @protected
99
103
  * @type {Vec3}
100
104
  */
101
105
  _u: Vec3;
102
106
  /**
103
107
  * Camera backward vector.
104
- * @public
108
+ * @protected
105
109
  * @type {Vec3}
106
110
  */
107
111
  _b: Vec3;
112
+ /**
113
+ * Camera forward vector.
114
+ * @protected
115
+ * @type {Vec3}
116
+ */
117
+ _f: Vec3;
108
118
  protected _pr: Vec3;
109
119
  protected _pu: Vec3;
110
120
  protected _pb: Vec3;
@@ -208,23 +218,40 @@ declare class Camera {
208
218
  */
209
219
  slide(du: number, dv: number, dn: number): void;
210
220
  /**
211
- * Roll the camera to the angle in degrees
221
+ * Roll the camera to the angle in radians
222
+ * @public
223
+ * @param {number} angle - Delta roll angle in radians
224
+ */
225
+ setRoll(angle: number): void;
226
+ /**
227
+ * Pitch the camera to the angle in radians
212
228
  * @public
213
- * @param {number} angle - Delta roll angle in degrees
229
+ * @param {number} angle - Delta pitch angle in radians
214
230
  */
215
- roll(angle: number): void;
231
+ setPitch(angle: number): void;
216
232
  /**
217
- * Pitch the camera to the angle in degrees
233
+ * Yaw the camera to the angle in radians
218
234
  * @public
219
- * @param {number} angle - Delta pitch angle in degrees
235
+ * @param {number} angle - Delta yaw angle in radians
236
+ */
237
+ setYaw(angle: number): void;
238
+ setPitchYawRoll(pitch: number, yaw: number, roll: number): void;
239
+ getPitch(): number;
240
+ getYaw(): number;
241
+ getRoll(): number;
242
+ /**
243
+ * Returns camera quaternion
220
244
  */
221
- pitch(angle: number): void;
245
+ getRotation(): Quat;
246
+ setRotation(rot: Quat, up?: Vec3, right?: Vec3, back?: Vec3): void;
247
+ rotate(rot: Quat): void;
222
248
  /**
223
- * Yaw the camera to the angle in degrees
249
+ * Returns normal vector direction to the unprojected screen point from camera eye
224
250
  * @public
225
- * @param {number} angle - Delta yaw angle in degrees
251
+ * @param {Vec2} pos - Screen X coordinate
252
+ * @returns {Vec3} - Direction vector
226
253
  */
227
- yaw(angle: number): void;
254
+ unproject2v(pos: Vec2): Vec3;
228
255
  /**
229
256
  * Returns normal vector direction to the unprojected screen point from camera eye
230
257
  * @public
@@ -239,7 +266,16 @@ declare class Camera {
239
266
  * @param {Vec3} v - Cartesian 3d coordinates
240
267
  * @returns {Vec2} - Screen point coordinates
241
268
  */
242
- project(v: Vec3): Vec2;
269
+ project3v(v: Vec3): Vec2;
270
+ /**
271
+ * Gets projected 3d point to the 2d screen coordinates
272
+ * @public
273
+ * @param {number} x - X coordinate
274
+ * @param {number} y - Y coordinate
275
+ * @param {number} z - Z coordinate
276
+ * @returns {Vec2} - Screen point coordinates
277
+ */
278
+ project(x: number, y: number, z: number): Vec2;
243
279
  /**
244
280
  * Rotates camera around center point
245
281
  * @public
@@ -249,7 +285,7 @@ declare class Camera {
249
285
  * @param {Vec3} [center] - Point that the camera rotates around
250
286
  * @param {Vec3} [up] - Camera up vector
251
287
  */
252
- rotateAround(angle: number, isArc?: boolean, center?: Vec3 | null, up?: Vec3 | null): void;
288
+ rotateAround(angle: number, isArc?: boolean, center?: Vec3, up?: Vec3): void;
253
289
  /**
254
290
  * Rotates camera around center point by horizontal.
255
291
  * @public
@@ -259,7 +295,7 @@ declare class Camera {
259
295
  * @param {Vec3} [center] - Point that the camera rotates around.
260
296
  * @param {Vec3} [up] - Camera up vector.
261
297
  */
262
- rotateHorizontal(angle: number, isArc?: boolean, center?: Vec3 | null, up?: Vec3 | null): void;
298
+ rotateHorizontal(angle: number, isArc?: boolean, center?: Vec3, up?: Vec3): void;
263
299
  /**
264
300
  * Rotates camera around center point by vertical.
265
301
  * @param {number} angle - Rotation angle in radians.
@@ -1,6 +1,6 @@
1
1
  import { Box } from "../bv/Box";
2
- import { Mat4, NumberArray16 } from "../math/Mat4";
3
- import { NumberArray4 } from "../math/Vec4";
2
+ import { Mat4, type NumberArray16 } from "../math/Mat4";
3
+ import type { NumberArray4 } from "../math/Vec4";
4
4
  import { Sphere } from "../bv/Sphere";
5
5
  import { Vec3 } from "../math/Vec3";
6
6
  interface IFrustumParams {
@@ -1,4 +1,4 @@
1
- import { Camera, ICameraParams } from "./Camera";
1
+ import { Camera, type ICameraParams } from "./Camera";
2
2
  import { Key } from "../Lock";
3
3
  import { LonLat } from "../LonLat";
4
4
  import { Planet } from "../scene/Planet";
@@ -228,7 +228,20 @@ declare class PlanetCamera extends Camera {
228
228
  checkFly(): void;
229
229
  checkTerrainCollision(): Vec3 | undefined;
230
230
  getSurfaceVisibleDistance(d: number): number;
231
+ /**
232
+ * should be yje same as getYaw
233
+ */
231
234
  getHeading(): number;
232
235
  isVisible(poi: Vec3): boolean;
236
+ getPitch(): number;
237
+ /**
238
+ * should be the same as getHeading
239
+ */
240
+ getYaw(): number;
241
+ getRoll(): number;
242
+ setPitch(a: number): void;
243
+ setYaw(a: number): void;
244
+ setRoll(a: number): void;
245
+ setPitchYawRoll(pitch: number, yaw: number, roll: number): void;
233
246
  }
234
247
  export { PlanetCamera };
@@ -1,7 +1,7 @@
1
- import { AtmosphereParameters } from "../shaders/atmos";
1
+ import { type AtmosphereParameters } from "../shaders/atmos";
2
2
  import { Framebuffer } from "../webgl/Framebuffer";
3
- import { Control, IControlParams } from "./Control";
4
- import { NumberArray3 } from '../math/Vec3';
3
+ import { Control, type IControlParams } from "./Control";
4
+ import type { NumberArray3 } from '../math/Vec3';
5
5
  export interface IAtmosphereParams extends IControlParams {
6
6
  height?: number;
7
7
  rayleighScale?: number;
@@ -1,9 +1,9 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control, type IControlParams } from "./Control";
2
2
  import { Dialog } from '../ui/Dialog';
3
3
  import { Slider } from "../ui/Slider";
4
4
  import { ToggleButton } from "../ui/ToggleButton";
5
5
  import { View } from '../ui/View';
6
- import { AtmosphereParameters } from "../shaders/atmos";
6
+ import type { AtmosphereParameters } from "../shaders/atmos";
7
7
  interface IAtmosphereConfigParams extends IControlParams {
8
8
  }
9
9
  /**
@@ -1,9 +1,9 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control, type IControlParams } from "./Control";
2
2
  import { LonLat } from "../LonLat";
3
3
  import { Vec3 } from "../math/Vec3";
4
- import { EventsHandler } from "../Events";
4
+ import { type EventsHandler } from "../Events";
5
5
  import { Entity } from "../entity/Entity";
6
- import { IMouseState } from "../renderer/RendererEvents";
6
+ import type { IMouseState } from "../renderer/RendererEvents";
7
7
  import { Planet } from "../scene/Planet";
8
8
  type CameraLockEventsList = ["lockview", "unlockview"];
9
9
  interface ICameraLockParams extends IControlParams {
@@ -1,4 +1,4 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control, type IControlParams } from "./Control";
2
2
  interface ICompasButtonParams extends IControlParams {
3
3
  }
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control, type IControlParams } from "./Control";
2
2
  import { Dialog } from "../ui/Dialog";
3
3
  import { ToggleButton } from "../ui/ToggleButton";
4
4
  import { CanvasTiles } from "../layer/CanvasTiles";
@@ -1,6 +1,6 @@
1
- import { Control, IControlParams } from './Control';
1
+ import { Control, type IControlParams } from './Control';
2
2
  import { LonLat } from '../LonLat';
3
- import { IMouseState } from "../renderer/RendererEvents";
3
+ import type { IMouseState } from "../renderer/RendererEvents";
4
4
  interface IEarthCoordinatesParams extends IControlParams {
5
5
  heightMode?: string;
6
6
  centerMode?: boolean;
@@ -1,7 +1,7 @@
1
- import { Control, IControlParams } from './Control';
1
+ import { Control, type IControlParams } from './Control';
2
2
  import { Layer } from "../layer/Layer";
3
3
  import { ToggleButton } from "../ui/ToggleButton";
4
- import { IMouseState } from "../renderer/RendererEvents";
4
+ import type { IMouseState } from "../renderer/RendererEvents";
5
5
  interface IGeoImageDragControlParams extends IControlParams {
6
6
  }
7
7
  export declare class GeoImageDragControl extends Control {
@@ -1,4 +1,4 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control, type IControlParams } from "./Control";
2
2
  interface IKeyboardNavigationParams extends IControlParams {
3
3
  step?: number;
4
4
  }
@@ -1,6 +1,6 @@
1
- import { EventsHandler } from '../Events';
1
+ import { type EventsHandler } from '../Events';
2
2
  import { Layer } from '../layer/Layer';
3
- import { Control, IControlParams } from "./Control";
3
+ import { Control, type IControlParams } from "./Control";
4
4
  type LayerAnimationEventsList = ["change", "idle", "play", "pause", "stop"];
5
5
  interface ILayerAnimationParams extends IControlParams {
6
6
  layers?: Layer;
@@ -1,8 +1,10 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
2
3
  import { Dialog } from "../ui/Dialog";
3
4
  import { Layer } from "../layer/Layer";
4
5
  import { ToggleButton } from "../ui/ToggleButton";
5
- import { IViewParams, View } from "../ui/View";
6
+ import { View } from "../ui/View";
7
+ import type { IViewParams } from "../ui/View";
6
8
  interface ILayerSwitcherParams extends IControlParams {
7
9
  }
8
10
  declare class LayerButtonView extends View<Layer> {
@@ -1,4 +1,5 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
2
3
  import { Dialog } from '../ui/Dialog';
3
4
  import { Layer } from "../layer/Layer";
4
5
  import { Slider } from "../ui/Slider";
@@ -1,64 +1,76 @@
1
- import { Control, IControlParams } from "./Control";
2
- import { Key } from "../Lock";
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
3
+ import type { IMouseState } from "../renderer/RendererEvents";
3
4
  import { Quat } from "../math/Quat";
4
5
  import { Sphere } from "../bv/Sphere";
5
- import { Vec3 } from "../math/Vec3";
6
6
  import { Vec2 } from "../math/Vec2";
7
- import { Planet } from "../scene/Planet";
8
- import { PlanetCamera } from "../camera/PlanetCamera";
9
- import { IMouseState } from "../renderer/RendererEvents";
10
- export interface IStepForward {
11
- eye: Vec3;
12
- v: Vec3;
13
- u: Vec3;
14
- n: Vec3;
15
- }
16
- interface IMouseNavigationParams extends IControlParams {
17
- minSlope?: number;
7
+ import { Vec3 } from "../math/Vec3";
8
+ interface IEarthNavigationParams extends IControlParams {
9
+ speed?: number;
10
+ fixedUp?: boolean;
18
11
  }
19
- /**
20
- * Mouse planet camera dragging control.
21
- */
22
12
  export declare class MouseNavigation extends Control {
23
- protected grabbedPoint: Vec3;
24
- protected _eye0: Vec3;
25
- protected pointOnEarth: Vec3;
26
- protected earthUp: Vec3;
27
- inertia: number;
28
- protected grabbedSpheroid: Sphere;
29
- protected qRot: Quat;
30
- protected scaleRot: number;
31
- protected distDiff: number;
32
- protected stepsCount: number;
33
- protected stepsForward: IStepForward[] | null;
34
- protected stepIndex: number;
35
- protected _lmbDoubleClickActive: boolean;
36
- minSlope: number;
13
+ speed: number;
14
+ force: Vec3;
15
+ force_h: number;
16
+ force_v: number;
17
+ vel: Vec3;
18
+ vel_h: number;
19
+ vel_v: number;
20
+ mass: number;
21
+ vel_roll: number;
22
+ force_roll: number;
23
+ protected _lookPos: Vec3 | undefined;
24
+ protected _grabbedPoint: Vec3 | null;
25
+ protected _targetZoomPoint: Vec3 | null;
26
+ protected _targetDragPoint: Vec3 | null;
27
+ protected _targetRotationPoint: Vec3 | null;
28
+ protected _grabbedSphere: Sphere;
37
29
  protected _wheelDirection: number;
38
- protected _keyLock: Key;
39
- protected _deactivate: boolean;
30
+ protected _currScreenPos: Vec2;
31
+ protected _tUp: Vec3;
32
+ protected _tRad: number;
40
33
  protected _shiftBusy: boolean;
41
- constructor(options?: IMouseNavigationParams);
42
- static getMovePointsFromPixelTerrain(cam: PlanetCamera, planet: Planet, stepsCount: number, delta: number, point: Vec2, forward: boolean, dir?: Vec3 | null): IStepForward[] | undefined;
34
+ protected fixedUp: boolean;
35
+ protected _curPitch: number;
36
+ protected _curYaw: number;
37
+ protected _curRoll: number;
38
+ protected _rot: Quat;
39
+ protected _eye0: Vec3;
40
+ protected _grabbedCameraHeight: number;
41
+ protected _newEye: Vec3;
42
+ protected _isTouchPad: boolean;
43
+ protected _velInertia: number;
44
+ protected _hold: boolean;
45
+ protected _prevVel: Vec3;
46
+ protected _screenPosIsChanged: boolean;
47
+ protected _rotHDir: number;
48
+ protected _rotVDir: number;
49
+ constructor(options?: IEarthNavigationParams);
50
+ oninit(): void;
43
51
  onactivate(): void;
44
52
  ondeactivate(): void;
45
- activateDoubleClickZoom(): void;
46
- deactivateDoubleClickZoom(): void;
47
- protected onMouseEnter(e: IMouseState): void;
48
- protected onMouseLeave(): void;
49
- protected onMouseWheel(e: IMouseState): void;
50
- oninit(): void;
51
- protected onMouseLeftButtonDoubleClick(e: IMouseState): void;
52
- protected onMouseLeftButtonClick(): void;
53
- stopRotation(): void;
54
- protected onMouseLeftButtonUp(e: IMouseState): void;
55
- protected onMouseLeftButtonDown(e: IMouseState): void;
56
- protected onMouseRightButtonClick(e: IMouseState): void;
57
- protected onMouseRightButtonDown(e: IMouseState): void;
58
- onShiftFree(): void;
59
- protected onMouseMove(e: IMouseState): void;
60
53
  protected onDraw(): void;
61
- lockPlanet(skipTerrain?: boolean): void;
62
- freePlanet(): void;
54
+ _onShiftFree: () => void;
55
+ protected _onMouseMove: (e: IMouseState) => void;
56
+ protected _onMouseEnter: (e: IMouseState) => void;
57
+ protected _onMouseLeave: () => void;
58
+ protected _onRHold: (e: IMouseState) => void;
59
+ protected _handleRotation(): void;
60
+ protected _onRDown: (e: IMouseState) => void;
61
+ protected _getTargetPoint(p: Vec2): Vec3 | null;
62
+ protected _onMouseWheel: (e: IMouseState) => void;
63
+ protected _onLDown: (e: IMouseState) => void;
64
+ protected _onLHold: (e: IMouseState) => void;
65
+ protected _onLUp: (e: IMouseState) => void;
66
+ protected _handleDrag(): void;
67
+ protected _corrRoll(): void;
68
+ protected _handleZoom(): void;
69
+ protected _updateVel(): void;
70
+ protected _updateVel_h(): void;
71
+ protected _updateVel_v(): void;
72
+ protected _updateVel_roll(): void;
73
+ protected get dt(): number;
74
+ stop(): void;
63
75
  }
64
76
  export {};
@@ -0,0 +1,65 @@
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
3
+ import { Key } from "../Lock";
4
+ import { Quat } from "../math/Quat";
5
+ import { Sphere } from "../bv/Sphere";
6
+ import { Vec3 } from "../math/Vec3";
7
+ import { Vec2 } from "../math/Vec2";
8
+ import { Planet } from "../scene/Planet";
9
+ import { PlanetCamera } from "../camera/PlanetCamera";
10
+ import type { IMouseState } from "../renderer/RendererEvents";
11
+ export interface IStepForward {
12
+ eye: Vec3;
13
+ v: Vec3;
14
+ u: Vec3;
15
+ n: Vec3;
16
+ }
17
+ interface IMouseNavigationParams extends IControlParams {
18
+ minSlope?: number;
19
+ }
20
+ /**
21
+ * Mouse planet camera dragging control.
22
+ */
23
+ export declare class OldMouseNavigation extends Control {
24
+ protected grabbedPoint: Vec3;
25
+ protected _eye0: Vec3;
26
+ protected pointOnEarth: Vec3;
27
+ protected earthUp: Vec3;
28
+ inertia: number;
29
+ protected grabbedSpheroid: Sphere;
30
+ protected qRot: Quat;
31
+ protected scaleRot: number;
32
+ protected distDiff: number;
33
+ protected stepsCount: number;
34
+ protected stepsForward: IStepForward[] | null;
35
+ protected stepIndex: number;
36
+ protected _lmbDoubleClickActive: boolean;
37
+ minSlope: number;
38
+ protected _wheelDirection: number;
39
+ protected _keyLock: Key;
40
+ protected _deactivate: boolean;
41
+ protected _shiftBusy: boolean;
42
+ constructor(options?: IMouseNavigationParams);
43
+ static getMovePointsFromPixelTerrain(cam: PlanetCamera, planet: Planet, stepsCount: number, delta: number, point: Vec2, forward: boolean, dir?: Vec3 | null): IStepForward[] | undefined;
44
+ onactivate(): void;
45
+ ondeactivate(): void;
46
+ activateDoubleClickZoom(): void;
47
+ deactivateDoubleClickZoom(): void;
48
+ protected onMouseEnter(e: IMouseState): void;
49
+ protected onMouseLeave(): void;
50
+ protected onMouseWheel(e: IMouseState): void;
51
+ oninit(): void;
52
+ protected onMouseLeftButtonDoubleClick(e: IMouseState): void;
53
+ protected onMouseLeftButtonClick(): void;
54
+ stopRotation(): void;
55
+ protected onMouseLeftButtonUp(e: IMouseState): void;
56
+ protected onMouseLeftButtonDown(e: IMouseState): void;
57
+ protected onMouseRightButtonClick(e: IMouseState): void;
58
+ protected onMouseRightButtonDown(e: IMouseState): void;
59
+ onShiftFree(): void;
60
+ protected onMouseMove(e: IMouseState): void;
61
+ protected onDraw(): void;
62
+ lockPlanet(skipTerrain?: boolean): void;
63
+ freePlanet(): void;
64
+ }
65
+ export {};
@@ -1,4 +1,5 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
2
3
  import { HeightRuler } from "./heightRuler/HeightRuler";
3
4
  interface IRulerSwitcherParams extends IControlParams {
4
5
  ignoreTerrain?: boolean;
@@ -1,4 +1,5 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
2
3
  import { Vec2 } from "../math/Vec2";
3
4
  interface IScaleControlParams extends IControlParams {
4
5
  isCenter?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { EntityCollection } from "../entity/EntityCollection";
2
- import { Control, IControlParams } from "./Control";
2
+ import { Control } from "./Control";
3
+ import type { IControlParams } from "./Control";
3
4
  /**
4
5
  * Frame per second(FPS) display control.
5
6
  */
@@ -1,4 +1,5 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
2
3
  /**
3
4
  * Frame per second(FPS) display control.
4
5
  */
@@ -1,5 +1,6 @@
1
- import { Control, IControlParams } from "./Control";
2
- import { IMouseState } from "../renderer/RendererEvents";
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
3
+ import type { IMouseState } from "../renderer/RendererEvents";
3
4
  import { Vec3 } from "../math/Vec3";
4
5
  interface ISimpleNavigationParams extends IControlParams {
5
6
  speed?: number;