@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,4 +1,5 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
2
3
  interface ISimpleSkyBackgroundParams extends IControlParams {
3
4
  }
4
5
  export declare class SimpleSkyBackground extends Control {
@@ -1,4 +1,5 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
2
3
  import { Clock } from "../Clock";
3
4
  import { LightSource } from "../light/LightSource";
4
5
  interface ISunParams extends IControlParams {
@@ -1,4 +1,5 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
2
3
  interface IToggleWireframe extends IControlParams {
3
4
  isActive?: boolean;
4
5
  }
@@ -1,10 +1,11 @@
1
- import { Control, IControlParams } from "./Control";
1
+ import { Control } from "./Control";
2
+ import type { IControlParams } from "./Control";
2
3
  import { Key } from "../Lock";
3
4
  import { Quat } from "../math/Quat";
4
5
  import { Sphere } from "../bv/Sphere";
5
6
  import { Vec2 } from "../math/Vec2";
6
7
  import { Vec3 } from "../math/Vec3";
7
- import { ITouchState } from "../renderer/RendererEvents";
8
+ import type { ITouchState } from "../renderer/RendererEvents";
8
9
  interface ITouchNavigationParams extends IControlParams {
9
10
  }
10
11
  declare class TouchExt {
@@ -1,5 +1,6 @@
1
1
  import { Key } from "../Lock";
2
- import { Control, IControlParams } from "./Control";
2
+ import { Control } from "./Control";
3
+ import type { IControlParams } from "./Control";
3
4
  import { Renderer } from "../renderer/Renderer";
4
5
  import { Vec2 } from "../math/Vec2";
5
6
  /**
@@ -1,4 +1,4 @@
1
- import { Control, IControlParams } from "../Control";
1
+ import { Control, type IControlParams } from "../Control";
2
2
  import { PolygonDrawingScene } from "./PolygonDrawingScene";
3
3
  declare class DrawingControl extends Control {
4
4
  protected _drawingScene: PolygonDrawingScene;
@@ -1,6 +1,6 @@
1
1
  import { Vec2 } from "../../math/Vec2";
2
2
  import { Vec3 } from "../../math/Vec3";
3
- import { PolygonDrawingScene, IPolygonDrawingSceneParams } from "./PolygonDrawingScene";
3
+ import { PolygonDrawingScene, type IPolygonDrawingSceneParams } from "./PolygonDrawingScene";
4
4
  declare class LineStringDrawingScene extends PolygonDrawingScene {
5
5
  constructor(props: IPolygonDrawingSceneParams);
6
6
  get geometryType(): string;
@@ -1,7 +1,7 @@
1
- import { EventsHandler } from '../../Events';
2
- import { CoordinatesType } from "../../entity/Geometry";
1
+ import { type EventsHandler } from '../../Events';
2
+ import type { CoordinatesType } from "../../entity/Geometry";
3
3
  import { Entity } from '../../entity/Entity';
4
- import { IMouseState } from "../../renderer/RendererEvents";
4
+ import type { IMouseState } from "../../renderer/RendererEvents";
5
5
  import { Object3d } from '../../Object3d';
6
6
  import { Planet } from '../../scene/Planet';
7
7
  import { RenderNode } from '../../scene/RenderNode';
@@ -1,4 +1,4 @@
1
- import { EventsHandler } from '../../Events';
1
+ import { type EventsHandler } from '../../Events';
2
2
  import { Vec3 } from "../../math/Vec3";
3
3
  import { Planet } from "../../scene/Planet";
4
4
  import { LonLat } from "../../LonLat";
@@ -1,6 +1,7 @@
1
- import { View, IViewParams, ViewEventsList } from "../../ui/View";
1
+ import { View } from "../../ui/View";
2
+ import type { IViewParams, ViewEventsList } from "../../ui/View";
2
3
  import { ToggleButton } from "../../ui/ToggleButton";
3
- import { EventsHandler } from "../../Events";
4
+ import type { EventsHandler } from "../../Events";
4
5
  import { ElevationProfile } from "./ElevationProfile";
5
6
  interface IElevationProfileButtonsViewParams extends IViewParams {
6
7
  }
@@ -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 { View } from "../../ui/View";
4
4
  import { ToggleButton } from "../../ui/ToggleButton";
@@ -6,7 +6,7 @@ import { ElevationProfileView } from "./ElevationProfileView";
6
6
  import { ElevationProfileScene } from "./ElevationProfileScene";
7
7
  import { ElevationProfileButtonsView } from "./ElevationProfileButtonsView";
8
8
  import { PointListDialog } from "./PointListDialog";
9
- import { GroundItem, TrackItem } from "./ElevationProfile";
9
+ import type { GroundItem, TrackItem } from "./ElevationProfile";
10
10
  import { ElevationProfileLegend } from "./ElevationProfileLegend";
11
11
  interface IElevationProfileGraphParams extends IControlParams {
12
12
  }
@@ -1,4 +1,4 @@
1
- import { IViewParams, View } from '../../ui/View';
1
+ import { type IViewParams, View } from '../../ui/View';
2
2
  export interface IElevationProfileLegendParams extends IViewParams {
3
3
  }
4
4
  export declare class ElevationProfileLegend extends View<null> {
@@ -1,12 +1,12 @@
1
1
  import { Entity } from '../../entity/Entity';
2
- import { EventsHandler } from '../../Events';
2
+ import { type EventsHandler } from '../../Events';
3
3
  import { LonLat } from "../../LonLat";
4
4
  import { Planet } from "../../scene/Planet";
5
5
  import { RenderNode } from '../../scene/RenderNode';
6
6
  import { Vector } from '../../layer/Vector';
7
7
  import { Vec2 } from '../../math/Vec2';
8
8
  import { Vec3 } from '../../math/Vec3';
9
- import { IMouseState } from "../../renderer/RendererEvents";
9
+ import type { IMouseState } from "../../renderer/RendererEvents";
10
10
  import { Ellipsoid } from "../../ellipsoid/Ellipsoid";
11
11
  export interface IElevationProfileSceneParams {
12
12
  name?: string;
@@ -1,7 +1,9 @@
1
- import { EventsHandler } from "../../Events";
2
- import { IViewParams, View, ViewEventsList } from '../../ui/View';
3
- import { ElevationProfile, GroundItem, TrackItem } from './ElevationProfile';
4
- import { MouseEventExt } from "../../input/MouseHandler";
1
+ import type { EventsHandler } from "../../Events";
2
+ import { View } from '../../ui/View';
3
+ import type { IViewParams, ViewEventsList } from '../../ui/View';
4
+ import { ElevationProfile } from './ElevationProfile';
5
+ import type { GroundItem, TrackItem } from './ElevationProfile';
6
+ import type { MouseEventExt } from "../../input/MouseHandler";
5
7
  interface IElevationProfileViewParams extends IViewParams {
6
8
  fillStyle?: string;
7
9
  }
@@ -1,4 +1,4 @@
1
- import { IDialogParams, Dialog } from "../../ui/Dialog";
1
+ import { type IDialogParams, Dialog } from "../../ui/Dialog";
2
2
  import { ElevationProfileScene } from "./ElevationProfileScene";
3
3
  interface IPointListDialog extends IDialogParams {
4
4
  model: ElevationProfileScene;
@@ -1,4 +1,4 @@
1
- import { Entity, IEntityParams } from "../../entity/Entity";
1
+ import { Entity, type IEntityParams } from "../../entity/Entity";
2
2
  export interface IArrowEntityParams extends IEntityParams {
3
3
  yaw?: number;
4
4
  pitch?: number;
@@ -1,4 +1,4 @@
1
- import { Entity, IEntityParams } from "../../entity/Entity";
1
+ import { Entity, type IEntityParams } from "../../entity/Entity";
2
2
  import { Vec3 } from "../../math/Vec3";
3
3
  export interface IAxisTrackEntityParams extends IEntityParams {
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Control, IControlParams } from "../Control";
1
+ import { Control, type IControlParams } from "../Control";
2
2
  import { GeoObjectEditorScene } from "./GeoObjectEditorScene";
3
3
  import { GeoObjectPropertiesDialog } from "./GeoObjectEditorDialog";
4
4
  export interface IGeoObjectEditorParams extends IControlParams {
@@ -1,4 +1,4 @@
1
- import { Dialog, IDialogParams } from "../../ui/Dialog";
1
+ import { Dialog, type IDialogParams } from "../../ui/Dialog";
2
2
  import { GeoObjectEditorScene } from "./GeoObjectEditorScene";
3
3
  import { Entity } from "../../entity/Entity";
4
4
  import { Input } from "../../ui/Input";
@@ -1,10 +1,10 @@
1
- import { EventsHandler } from '../../Events';
1
+ import { type EventsHandler } from '../../Events';
2
2
  import { Planet } from "../../scene/Planet";
3
3
  import { RenderNode } from '../../scene/RenderNode';
4
4
  import { Vec2 } from '../../math/Vec2';
5
5
  import { Vec3 } from '../../math/Vec3';
6
6
  import { Quat } from '../../math/Quat';
7
- import { IMouseState } from "../../renderer/RendererEvents";
7
+ import type { IMouseState } from "../../renderer/RendererEvents";
8
8
  import { Ellipsoid } from "../../ellipsoid/Ellipsoid";
9
9
  import { Entity } from "../../entity/Entity";
10
10
  import { MoveAxisEntity } from "./MoveAxisEntity";
@@ -1,4 +1,4 @@
1
- import { Entity, IEntityParams } from "../../entity/Entity";
1
+ import { Entity, type IEntityParams } from "../../entity/Entity";
2
2
  import { Vec3 } from "../../math/Vec3";
3
3
  import { ArrowEntity } from "./ArrowEntity";
4
4
  export interface IAxisEntityParams extends IEntityParams {
@@ -1,4 +1,4 @@
1
- import { Entity, IEntityParams } from "../../entity/Entity";
1
+ import { Entity, type IEntityParams } from "../../entity/Entity";
2
2
  export interface IMovePlaneEntityParams extends IEntityParams {
3
3
  }
4
4
  export declare class MovePlaneEntity extends Entity {
@@ -1,4 +1,4 @@
1
- import { Entity, IEntityParams } from "../../entity/Entity";
1
+ import { Entity, type IEntityParams } from "../../entity/Entity";
2
2
  import { Vec3 } from "../../math/Vec3";
3
3
  export interface IRotationEntityParams extends IEntityParams {
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Ruler, IRulerParams } from "../ruler/Ruler";
1
+ import { Ruler, type IRulerParams } from "../ruler/Ruler";
2
2
  interface IHeightRulerParams extends IRulerParams {
3
3
  }
4
4
  export declare class HeightRuler extends Ruler {
@@ -1,6 +1,6 @@
1
1
  import { Entity } from '../../entity/Entity';
2
2
  import { LonLat } from "../../LonLat";
3
- import { RulerScene, IRulerSceneParams } from "../ruler/RulerScene";
3
+ import { RulerScene, type IRulerSceneParams } from "../ruler/RulerScene";
4
4
  import { Vector } from "../../layer/Vector";
5
5
  import { Vec3 } from "../../math/Vec3";
6
6
  interface IHeightRulerSceneParams extends IRulerSceneParams {
@@ -3,14 +3,13 @@ export * from "./Control";
3
3
  export * from "./DebugInfo";
4
4
  export * from "./DrawingSwitcher";
5
5
  export * from "./EarthCoordinates";
6
- export * from "./EarthNavigation";
7
6
  export * from "./GeoImageDragControl";
8
7
  export * from "./KeyboardNavigation";
9
8
  export * from "./LayerAnimation";
10
9
  export * from "./LayerSwitcher";
11
10
  export * from "./Lighting";
11
+ export * from "./OldMouseNavigation";
12
12
  export * from "./MouseNavigation";
13
- export * from "./MouseWheelZoomControl";
14
13
  export * from "./RulerSwitcher";
15
14
  export * from "./ScaleControl";
16
15
  export * from "./ShowFps";
@@ -1,4 +1,5 @@
1
- import { Control, IControlParams } from "../Control";
1
+ import { Control } from "../Control";
2
+ import type { IControlParams } from "../Control";
2
3
  import { RulerScene } from "./RulerScene";
3
4
  export interface IRulerParams extends IControlParams {
4
5
  ignoreTerrain?: boolean;
@@ -1,12 +1,12 @@
1
1
  import { Entity } from '../../entity/Entity';
2
- import { EventsHandler } from '../../Events';
2
+ import type { EventsHandler } from '../../Events';
3
3
  import { LonLat } from "../../LonLat";
4
4
  import { Planet } from "../../scene/Planet";
5
5
  import { RenderNode } from '../../scene/RenderNode';
6
6
  import { Vector } from '../../layer/Vector';
7
7
  import { Vec2 } from '../../math/Vec2';
8
8
  import { Vec3 } from '../../math/Vec3';
9
- import { IMouseState } from "../../renderer/RendererEvents";
9
+ import type { IMouseState } from "../../renderer/RendererEvents";
10
10
  import { Ellipsoid } from "../../ellipsoid/Ellipsoid";
11
11
  export interface IRulerSceneParams {
12
12
  name?: string;
@@ -1,4 +1,5 @@
1
- import { Control, IControlParams } from "../Control";
1
+ import { Control } from "../Control";
2
+ import type { IControlParams } from "../Control";
2
3
  import { SelectionScene } from "./SelectionScene";
3
4
  import { ToggleButton } from "../../ui/ToggleButton";
4
5
  interface ISelectionParams extends IControlParams {
@@ -1,6 +1,6 @@
1
1
  import { Dialog } from "../../ui/Dialog";
2
2
  import { ToggleButton } from "../../ui/ToggleButton";
3
- import { Control, IControlParams } from '../Control';
3
+ import { Control, type IControlParams } from '../Control';
4
4
  import { TimelineView } from './TimelineView';
5
5
  interface ITimelineControlParams extends IControlParams {
6
6
  name?: string;
@@ -1,4 +1,4 @@
1
- import { EventsHandler } from '../../Events';
1
+ import { type EventsHandler } from '../../Events';
2
2
  type TimelineEventsList = ["change", "current"];
3
3
  interface ITimelineParams {
4
4
  current?: Date;
@@ -1,9 +1,10 @@
1
- import { EventsHandler } from "../../Events";
1
+ import type { EventsHandler } from "../../Events";
2
2
  import { ButtonGroup } from "../../ui/ButtonGroup";
3
- import { IViewParams, View, ViewEventsList } from '../../ui/View';
3
+ import { View } from '../../ui/View';
4
+ import type { IViewParams, ViewEventsList } from '../../ui/View';
4
5
  import { ToggleButton } from "../../ui/ToggleButton";
5
6
  import { TimelineModel } from './TimelineModel';
6
- import { MouseEventExt } from "../../input/MouseHandler";
7
+ import type { MouseEventExt } from "../../input/MouseHandler";
7
8
  interface ITimelineViewParams extends IViewParams {
8
9
  currentDate?: Date;
9
10
  rangeStart?: Date;
@@ -159,7 +159,7 @@ declare class Ellipsoid {
159
159
  * @param {LonLat} lonLat - Origin coordinates
160
160
  * @param {number} azimuth - View azimuth in degrees
161
161
  * @param {number} dist - Distance to the destination point coordinates in meters
162
- * @returns {{ destination: LonLat; finalAzimuth: number }} - Destination point coordinates
162
+ * @returns {{destination: LonLat, finalAzimuth: number}} - Destination point coordinates
163
163
  */
164
164
  direct(lonLat: LonLat, azimuth: number, dist: number): IDirectResult;
165
165
  /**
@@ -1,7 +1,10 @@
1
1
  import { Entity } from "./Entity";
2
- import { NumberArray2, Vec2 } from "../math/Vec2";
3
- import { NumberArray3, Vec3 } from "../math/Vec3";
4
- import { NumberArray4, Vec4 } from "../math/Vec4";
2
+ import { Vec2 } from "../math/Vec2";
3
+ import { Vec3 } from "../math/Vec3";
4
+ import { Vec4 } from "../math/Vec4";
5
+ import type { NumberArray2 } from "../math/Vec2";
6
+ import type { NumberArray3 } from "../math/Vec3";
7
+ import type { NumberArray4 } from "../math/Vec4";
5
8
  import { BaseBillboardHandler } from "./BaseBillboardHandler";
6
9
  export interface IBaseBillboardParams {
7
10
  position?: NumberArray3 | Vec3;
@@ -1,9 +1,9 @@
1
- import { TypedArray } from "../utils/shared";
1
+ import type { TypedArray } from "../utils/shared";
2
2
  import { EntityCollection } from "./EntityCollection";
3
3
  import { Renderer } from "../renderer/Renderer";
4
4
  import { Vec3 } from "../math/Vec3";
5
5
  import { Vec4 } from "../math/Vec4";
6
- import { WebGLBufferExt } from "../webgl/Handler";
6
+ import type { WebGLBufferExt } from "../webgl/Handler";
7
7
  import { BaseBillboard } from "./BaseBillboard";
8
8
  /**
9
9
  * @class BaseBillboardHandler
@@ -1,6 +1,7 @@
1
- import { BaseBillboard, IBaseBillboardParams } from "./BaseBillboard";
1
+ import { BaseBillboard } from "./BaseBillboard";
2
+ import type { IBaseBillboardParams } from "./BaseBillboard";
2
3
  import { BillboardHandler } from "./BillboardHandler";
3
- import { HTMLImageElementExt } from "../utils/ImagesCacheManager";
4
+ import type { HTMLImageElementExt } from "../utils/ImagesCacheManager";
4
5
  export interface IBillboardParams extends IBaseBillboardParams {
5
6
  src?: string;
6
7
  image?: HTMLImageElement;
@@ -1,17 +1,28 @@
1
- import { Billboard, IBillboardParams } from "./Billboard";
2
- import { EntityCollection, EntityCollectionEvents } from "./EntityCollection";
1
+ import { Billboard } from "./Billboard";
2
+ import { EntityCollection } from "./EntityCollection";
3
+ import type { IBillboardParams } from "./Billboard";
4
+ import type { EntityCollectionEvents } from "./EntityCollection";
3
5
  import { Extent } from "../Extent";
4
- import { Geometry, IGeometryParams } from "./Geometry";
5
- import { GeoObject, IGeoObjectParams } from "./GeoObject";
6
+ import { Geometry } from "./Geometry";
7
+ import { GeoObject } from "./GeoObject";
8
+ import type { IGeometryParams } from "./Geometry";
9
+ import type { IGeoObjectParams } from "./GeoObject";
6
10
  import { LonLat } from "../LonLat";
7
- import { Label, ILabelParams } from "./Label";
8
- import { NumberArray3, Vec3 } from "../math/Vec3";
9
- import { NumberArray2 } from "../math/Vec2";
10
- import { IPointCloudParams, PointCloud } from "./PointCloud";
11
- import { IPolylineParams, Polyline } from "./Polyline";
12
- import { IRayParams, Ray } from "./Ray";
13
- import { Strip, IStripParams } from "./Strip";
14
- import { Vector, VectorEventsType } from "../layer/Vector";
11
+ import { Label } from "./Label";
12
+ import type { ILabelParams } from "./Label";
13
+ import { Vec3 } from "../math/Vec3";
14
+ import type { NumberArray3 } from "../math/Vec3";
15
+ import type { NumberArray2 } from "../math/Vec2";
16
+ import { PointCloud } from "./PointCloud";
17
+ import { Polyline } from "./Polyline";
18
+ import type { IPointCloudParams } from "./PointCloud";
19
+ import type { IPolylineParams } from "./Polyline";
20
+ import { Ray } from "./Ray";
21
+ import type { IRayParams } from "./Ray";
22
+ import { Strip } from "./Strip";
23
+ import type { IStripParams } from "./Strip";
24
+ import { Vector } from "../layer/Vector";
25
+ import type { VectorEventsType } from "../layer/Vector";
15
26
  import { EntityCollectionNode } from "../quadTree/EntityCollectionNode";
16
27
  import { Quat } from "../math/Quat";
17
28
  /**
@@ -37,7 +48,8 @@ import { Quat } from "../math/Quat";
37
48
  * @property {number} [yaw] - Rotation around local Y-axis.
38
49
  * @property {number} [roll] - Rotation around local Z-axis.
39
50
  * @property {number | Vec3 | NumberArray3} [scale] - Scaling factor.
40
- * @property {boolean} [forceGlobalPosition] - Forces global position for children entities make them the same position as the parent.
51
+ * @property {boolean} [forceGlobalPosition] - Forces global position for entity make the same position as its parent.
52
+ * @property {boolean} [forceGlobalRotation] - Forces global rotation for the entity make the same rotation as its parent.
41
53
  */
42
54
  export interface IEntityParams {
43
55
  name?: string;
@@ -61,6 +73,8 @@ export interface IEntityParams {
61
73
  roll?: number;
62
74
  scale?: number | Vec3 | NumberArray3;
63
75
  forceGlobalPosition?: boolean;
76
+ forceGlobalRotation?: boolean;
77
+ forceGlobalScale?: boolean;
64
78
  localPosition?: Vec3 | NumberArray3;
65
79
  }
66
80
  /**
@@ -85,11 +99,13 @@ export interface IEntityParams {
85
99
  * @param {Strip | IStripParams} [options.strip] - Strip object or parameters.
86
100
  * @param {boolean} [options.independentPicking] - Independent picking flag.
87
101
  * @param {boolean} [options.relativePosition] - Parent relative position flag, otherwise position is absolute.
88
- * @param {number} [options.pitch] - Rotation around local X-axis.
89
- * @param {number} [options.yaw] - Rotation around local Y-axis.
90
- * @param {number} [options.roll] - Rotation around local Z-axis.
102
+ * @param {number} [options.pitch] - Rotation around local X-axis in radians.
103
+ * @param {number} [options.yaw] - Rotation around local Y-axis in radians.
104
+ * @param {number} [options.roll] - Rotation around local Z-axis in radians.
91
105
  * @param {number | Vec3 | NumberArray3} [options.scale] - Scaling factor.
92
- * @param {boolean} [options.forceGlobalPosition] - Forces global position for children entities make them the same position as the parent.
106
+ * @param {boolean} [options.forceGlobalPosition] - Forces global position for the entity make the same position as its parent.
107
+ * @param {boolean} [options.forceGlobalRotation] - Forces global rotation for the entity make the same rotation as its parent.
108
+ * @param {boolean} [options.forceGlobalScale] - Forces global scale for the entity make the same scale as its parent.
93
109
  */
94
110
  declare class Entity {
95
111
  static __counter__: number;
@@ -112,6 +128,8 @@ declare class Entity {
112
128
  */
113
129
  childEntities: Entity[];
114
130
  forceGlobalPosition: boolean;
131
+ forceGlobalRotation: boolean;
132
+ forceGlobalScale: boolean;
115
133
  /**
116
134
  * Parent entity.
117
135
  * @public
@@ -238,9 +256,6 @@ declare class Entity {
238
256
  strip: Strip | null;
239
257
  _nodePtr?: EntityCollectionNode;
240
258
  protected _relativePosition: boolean;
241
- protected _pitch: number;
242
- protected _yaw: number;
243
- protected _roll: number;
244
259
  protected _pitchRad: number;
245
260
  protected _yawRad: number;
246
261
  protected _rollRad: number;
@@ -386,72 +401,72 @@ declare class Entity {
386
401
  setRotation(rot: Quat): void;
387
402
  /**
388
403
  * Sets the pitch rotation of the entity.
389
- * @param {number} val - The new pitch angle in degrees.
404
+ * @param {number} val - The new pitch angle in radians.
390
405
  */
391
406
  setPitch(val: number): void;
392
407
  /**
393
408
  * Sets the yaw rotation of the entity.
394
- * @param {number} val - The new yaw angle in degrees.
409
+ * @param {number} val - The new yaw angle in radians.
395
410
  */
396
411
  setYaw(val: number): void;
397
412
  /**
398
413
  * Sets the roll rotation of the entity.
399
414
  * @public
400
- * @param {number} val - The new roll angle in degrees.
415
+ * @param {number} val - The new roll angle in radians.
401
416
  */
402
417
  setRoll(val: number): void;
403
418
  /**
404
419
  * Gets the pitch angle of the entity.
405
420
  * @public
406
- * @returns {number} The pitch angle in degrees.
421
+ * @returns {number} The pitch angle in radians.
407
422
  */
408
423
  getPitch(): number;
409
424
  /**
410
425
  * Gets the yaw angle of the entity.
411
426
  * @public
412
- * @returns {number} The yaw angle in degrees.
427
+ * @returns {number} The yaw angle in radians.
413
428
  */
414
429
  getYaw(): number;
415
430
  /**
416
431
  * Gets the roll angle of the entity.
417
432
  * @public
418
- * @returns {number} The roll angle in degrees.
433
+ * @returns {number} The roll angle in radians.
419
434
  */
420
435
  getRoll(): number;
421
436
  /**
422
437
  * Sets the absolute pitch of the entity.
423
438
  * @public
424
- * @param {number} val - The absolute pitch angle in degrees.
439
+ * @param {number} val - The absolute pitch angle in radians.
425
440
  */
426
441
  setAbsolutePitch(val: number): void;
427
442
  /**
428
443
  * Sets the absolute yaw of the entity.
429
444
  * @public
430
- * @param {number} val - The absolute yaw angle in degrees.
445
+ * @param {number} val - The absolute yaw angle in radians.
431
446
  */
432
447
  setAbsoluteYaw(val: number): void;
433
448
  /**
434
449
  * Sets the absolute roll of the entity.
435
450
  * @public
436
- * @param {number} val - The absolute roll angle in degrees.
451
+ * @param {number} val - The absolute roll angle in radians.
437
452
  */
438
453
  setAbsoluteRoll(val: number): void;
439
454
  /**
440
455
  * Gets the absolute pitch angle of the entity.
441
456
  * @public
442
- * @returns {number} The absolute pitch angle in degrees.
457
+ * @returns {number} The absolute pitch angle in radians.
443
458
  */
444
459
  getAbsolutePitch(): number;
445
460
  /**
446
461
  * Gets the absolute yaw angle of the entity.
447
462
  * @public
448
- * @returns {number} The absolute yaw angle in degrees.
463
+ * @returns {number} The absolute yaw angle in radians.
449
464
  */
450
465
  getAbsoluteYaw(): number;
451
466
  /**
452
467
  * Gets the absolute roll angle of the entity.
453
468
  * @public
454
- * @returns {number} The absolute roll angle in degrees.
469
+ * @returns {number} The absolute roll angle in radians.
455
470
  */
456
471
  getAbsoluteRoll(): number;
457
472
  protected _getScaleByDistance(): number;
@@ -1,11 +1,12 @@
1
1
  import { BillboardHandler } from "./BillboardHandler";
2
- import { EventsHandler } from "../Events";
2
+ import type { EventsHandler } from "../Events";
3
3
  import { Entity } from "./Entity";
4
4
  import { Ellipsoid } from "../ellipsoid/Ellipsoid";
5
5
  import { EntityCollectionNode } from "../quadTree/EntityCollectionNode";
6
6
  import { GeoObjectHandler } from "./GeoObjectHandler";
7
7
  import { LabelHandler } from "./LabelHandler";
8
- import { Vec3, NumberArray3 } from "../math/Vec3";
8
+ import { Vec3 } from "../math/Vec3";
9
+ import type { NumberArray3 } from "../math/Vec3";
9
10
  import { PointCloudHandler } from "./PointCloudHandler";
10
11
  import { PolylineHandler } from "./PolylineHandler";
11
12
  import { RayHandler } from "./RayHandler";
@@ -152,7 +153,7 @@ declare class EntityCollection {
152
153
  * Second index - far distance to the entity, when entity becomes zero scale.
153
154
  * Third index - far distance to the entity, when entity becomes invisible.
154
155
  * @public
155
- * @type {Array.<number>} - (exactly 3 entries)
156
+ * @type {Array.<number>}
156
157
  */
157
158
  scaleByDistance: NumberArray3;
158
159
  pickingScale: Float32Array;
@@ -2,8 +2,8 @@ import { Entity } from "./Entity";
2
2
  import { Quat, Vec3, Vec4 } from "../math/index";
3
3
  import { GeoObjectHandler } from "./GeoObjectHandler";
4
4
  import { InstanceData } from "./InstanceData";
5
- import { NumberArray3 } from "../math/Vec3";
6
- import { NumberArray4 } from "../math/Vec4";
5
+ import type { NumberArray3 } from "../math/Vec3";
6
+ import type { NumberArray4 } from "../math/Vec4";
7
7
  import { Object3d } from "../Object3d";
8
8
  export declare const LOCAL_FORWARD: Vec3;
9
9
  /**
@@ -13,9 +13,6 @@ export declare const LOCAL_FORWARD: Vec3;
13
13
  * @property {string} [objSrc] - Source url of the 3D object.
14
14
  * @property {string} [tag] - Unique instancing drawing identifier tag.
15
15
  * @property {Vec3 | NumberArray3} [position] - Position in Cartesian coordinates.
16
- * @property {number} [pitch] - Rotation around X-axis in degrees.
17
- * @property {number} [yaw] - Rotation around Y-axis in degrees.
18
- * @property {number} [roll] - Rotation around Z-axis in degrees.
19
16
  * @property {number | Vec3 | NumberArray3} [scale] - Scale of the object.
20
17
  * @property {Vec3 | NumberArray3} [translate] - Translation offset.
21
18
  * @property {Vec4 | NumberArray4 | string} [color] - RGBA color or HTML color string.
@@ -26,9 +23,6 @@ export interface IGeoObjectParams {
26
23
  objSrc?: string;
27
24
  tag?: string;
28
25
  position?: Vec3 | NumberArray3;
29
- pitch?: number;
30
- yaw?: number;
31
- roll?: number;
32
26
  scale?: number | Vec3 | NumberArray3;
33
27
  translate?: Vec3 | NumberArray3;
34
28
  color?: Vec4 | NumberArray4 | string;
@@ -42,9 +36,6 @@ export interface IGeoObjectParams {
42
36
  * @param {string} [options.objSrc] - Source url of the 3D object.
43
37
  * @param {string} [options.tag] - Unique instancing drawing identifier tag.
44
38
  * @param {Vec3 | NumberArray3} [options.position] - Position in Cartesian coordinates.
45
- * @param {number} [options.pitch=0] - Rotation around X-axis in degrees.
46
- * @param {number} [options.yaw=0] - Rotation around Y-axis in degrees.
47
- * @param {number} [options.roll=0] - Rotation around Z-axis in degrees.
48
39
  * @param {number | Vec3 | NumberArray3} [options.scale=1] - Scale of the object.
49
40
  * @param {Vec3 | NumberArray3} [options.translate] - Translation offset.
50
41
  * @param {Vec4 | NumberArray4 | string} [options.color] - RGBA color or HTML color string.