@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,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;
@@ -12,7 +12,7 @@ import { Polyline } from "./Polyline";
12
12
  import { Ray } from "./Ray";
13
13
  import { Strip } from "./Strip";
14
14
  import { Quat } from "../math/Quat";
15
- import { RADIANS, clamp, DEGREES } from "../math";
15
+ import { clamp } from "../math";
16
16
  /**
17
17
  * Entity instances aggregate multiple forms of visualization into a single high-level object.
18
18
  * They can be created manually and added to entity collection.
@@ -35,11 +35,13 @@ import { RADIANS, clamp, DEGREES } from "../math";
35
35
  * @param {Strip | IStripParams} [options.strip] - Strip object or parameters.
36
36
  * @param {boolean} [options.independentPicking] - Independent picking flag.
37
37
  * @param {boolean} [options.relativePosition] - Parent relative position flag, otherwise position is absolute.
38
- * @param {number} [options.pitch] - Rotation around local X-axis.
39
- * @param {number} [options.yaw] - Rotation around local Y-axis.
40
- * @param {number} [options.roll] - Rotation around local Z-axis.
38
+ * @param {number} [options.pitch] - Rotation around local X-axis in radians.
39
+ * @param {number} [options.yaw] - Rotation around local Y-axis in radians.
40
+ * @param {number} [options.roll] - Rotation around local Z-axis in radians.
41
41
  * @param {number | Vec3 | NumberArray3} [options.scale] - Scaling factor.
42
- * @param {boolean} [options.forceGlobalPosition] - Forces global position for children entities make them the same position as the parent.
42
+ * @param {boolean} [options.forceGlobalPosition] - Forces global position for the entity make the same position as its parent.
43
+ * @param {boolean} [options.forceGlobalRotation] - Forces global rotation for the entity make the same rotation as its parent.
44
+ * @param {boolean} [options.forceGlobalScale] - Forces global scale for the entity make the same scale as its parent.
43
45
  */
44
46
  class Entity {
45
47
  constructor(options = {}) {
@@ -50,6 +52,8 @@ class Entity {
50
52
  this.childEntities = [];
51
53
  this.parent = null;
52
54
  this.forceGlobalPosition = options.forceGlobalPosition || false;
55
+ this.forceGlobalRotation = options.forceGlobalRotation || false;
56
+ this.forceGlobalScale = options.forceGlobalScale || false;
53
57
  this._cartesian = utils.createVector3(options.cartesian);
54
58
  this._rootCartesian = new Vec3();
55
59
  this._localPosition = utils.createVector3(options.localPosition);
@@ -65,12 +69,9 @@ class Entity {
65
69
  this._pickingColor = new Vec3(0, 0, 0);
66
70
  this._independentPicking = options.independentPicking || false;
67
71
  this._relativePosition = options.relativePosition || false;
68
- this._pitch = options.pitch || 0;
69
- this._yaw = options.yaw || 0;
70
- this._roll = options.roll || 0;
71
- this._pitchRad = this._pitch * RADIANS;
72
- this._yawRad = this._yaw * RADIANS;
73
- this._rollRad = this._roll * RADIANS;
72
+ this._pitchRad = options.pitch || 0;
73
+ this._yawRad = options.yaw || 0;
74
+ this._rollRad = options.roll || 0;
74
75
  this._scale = utils.createVector3(options.scale, new Vec3(1, 1, 1));
75
76
  this._qFrame = Quat.IDENTITY;
76
77
  this._qRot = Quat.IDENTITY;
@@ -270,7 +271,13 @@ class Entity {
270
271
  this._scale.copy(scale);
271
272
  this.geoObject && this.geoObject.setScale3v(this._scale);
272
273
  for (let i = 0; i < this.childEntities.length; i++) {
273
- this.childEntities[i].setScale3v(this.childEntities[i].getScale());
274
+ let chi = this.childEntities[i];
275
+ if (chi.forceGlobalScale) {
276
+ chi.setScale3v(this._scale);
277
+ }
278
+ else {
279
+ chi.setScale3v(this.childEntities[i].getScale());
280
+ }
274
281
  }
275
282
  }
276
283
  /**
@@ -282,7 +289,13 @@ class Entity {
282
289
  this._scale.set(val, val, val);
283
290
  this.geoObject && this.geoObject.setScale(val);
284
291
  for (let i = 0; i < this.childEntities.length; i++) {
285
- this.childEntities[i].setScale3v(this.childEntities[i].getScale());
292
+ let chi = this.childEntities[i];
293
+ if (chi.forceGlobalScale) {
294
+ chi.setScale(val);
295
+ }
296
+ else {
297
+ chi.setScale3v(this.childEntities[i].getScale());
298
+ }
286
299
  }
287
300
  }
288
301
  /**
@@ -351,64 +364,61 @@ class Entity {
351
364
  }
352
365
  /**
353
366
  * Sets the pitch rotation of the entity.
354
- * @param {number} val - The new pitch angle in degrees.
367
+ * @param {number} val - The new pitch angle in radians.
355
368
  */
356
369
  setPitch(val) {
357
- this._pitch = val;
358
- this._pitchRad = val * RADIANS;
370
+ this._pitchRad = val;
359
371
  this._updateAbsolutePosition();
360
372
  }
361
373
  /**
362
374
  * Sets the yaw rotation of the entity.
363
- * @param {number} val - The new yaw angle in degrees.
375
+ * @param {number} val - The new yaw angle in radians.
364
376
  */
365
377
  setYaw(val) {
366
- this._yaw = val;
367
- this._yawRad = val * RADIANS;
378
+ this._yawRad = val;
368
379
  this._updateAbsolutePosition();
369
380
  }
370
381
  /**
371
382
  * Sets the roll rotation of the entity.
372
383
  * @public
373
- * @param {number} val - The new roll angle in degrees.
384
+ * @param {number} val - The new roll angle in radians.
374
385
  */
375
386
  setRoll(val) {
376
- this._roll = val;
377
- this._rollRad = val * RADIANS;
387
+ this._rollRad = val;
378
388
  this._updateAbsolutePosition();
379
389
  }
380
390
  /**
381
391
  * Gets the pitch angle of the entity.
382
392
  * @public
383
- * @returns {number} The pitch angle in degrees.
393
+ * @returns {number} The pitch angle in radians.
384
394
  */
385
395
  getPitch() {
386
- return this._pitch;
396
+ return this._pitchRad;
387
397
  }
388
398
  /**
389
399
  * Gets the yaw angle of the entity.
390
400
  * @public
391
- * @returns {number} The yaw angle in degrees.
401
+ * @returns {number} The yaw angle in radians.
392
402
  */
393
403
  getYaw() {
394
- return this._yaw;
404
+ return this._yawRad;
395
405
  }
396
406
  /**
397
407
  * Gets the roll angle of the entity.
398
408
  * @public
399
- * @returns {number} The roll angle in degrees.
409
+ * @returns {number} The roll angle in radians.
400
410
  */
401
411
  getRoll() {
402
- return this._roll;
412
+ return this._rollRad;
403
413
  }
404
414
  /**
405
415
  * Sets the absolute pitch of the entity.
406
416
  * @public
407
- * @param {number} val - The absolute pitch angle in degrees.
417
+ * @param {number} val - The absolute pitch angle in radians.
408
418
  */
409
419
  setAbsolutePitch(val) {
410
420
  if (this._relativePosition) {
411
- this._absoluteQRot.setPitchYawRoll(val * RADIANS, this.getAbsoluteYaw() * RADIANS, this.getAbsoluteRoll() * RADIANS, this._qFrame);
421
+ this._absoluteQRot.setPitchYawRoll(val, this.getAbsoluteYaw(), this.getAbsoluteRoll(), this._qFrame);
412
422
  this._updatePitchYawRoll();
413
423
  }
414
424
  else {
@@ -418,11 +428,11 @@ class Entity {
418
428
  /**
419
429
  * Sets the absolute yaw of the entity.
420
430
  * @public
421
- * @param {number} val - The absolute yaw angle in degrees.
431
+ * @param {number} val - The absolute yaw angle in radians.
422
432
  */
423
433
  setAbsoluteYaw(val) {
424
434
  if (this._relativePosition) {
425
- this._absoluteQRot.setPitchYawRoll(this.getAbsolutePitch() * RADIANS, val * RADIANS, this.getAbsoluteRoll() * RADIANS, this._qFrame);
435
+ this._absoluteQRot.setPitchYawRoll(this.getAbsolutePitch(), val, this.getAbsoluteRoll(), this._qFrame);
426
436
  this._updatePitchYawRoll();
427
437
  }
428
438
  else {
@@ -432,11 +442,11 @@ class Entity {
432
442
  /**
433
443
  * Sets the absolute roll of the entity.
434
444
  * @public
435
- * @param {number} val - The absolute roll angle in degrees.
445
+ * @param {number} val - The absolute roll angle in radians.
436
446
  */
437
447
  setAbsoluteRoll(val) {
438
448
  if (this._relativePosition) {
439
- this._absoluteQRot.setPitchYawRoll(this.getAbsolutePitch() * RADIANS, this.getAbsoluteYaw() * RADIANS, val * RADIANS, this._qFrame);
449
+ this._absoluteQRot.setPitchYawRoll(this.getAbsolutePitch(), this.getAbsoluteYaw(), val, this._qFrame);
440
450
  this._updatePitchYawRoll();
441
451
  }
442
452
  else {
@@ -446,35 +456,35 @@ class Entity {
446
456
  /**
447
457
  * Gets the absolute pitch angle of the entity.
448
458
  * @public
449
- * @returns {number} The absolute pitch angle in degrees.
459
+ * @returns {number} The absolute pitch angle in radians.
450
460
  */
451
461
  getAbsolutePitch() {
452
462
  if (this.parent && this._relativePosition) {
453
- return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getPitch() * DEGREES;
463
+ return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getPitch();
454
464
  }
455
- return this._pitch;
465
+ return this._pitchRad;
456
466
  }
457
467
  /**
458
468
  * Gets the absolute yaw angle of the entity.
459
469
  * @public
460
- * @returns {number} The absolute yaw angle in degrees.
470
+ * @returns {number} The absolute yaw angle in radians.
461
471
  */
462
472
  getAbsoluteYaw() {
463
473
  if (this.parent && this._relativePosition) {
464
- return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getYaw() * DEGREES;
474
+ return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getYaw();
465
475
  }
466
- return this._yaw;
476
+ return this._yawRad;
467
477
  }
468
478
  /**
469
479
  * Gets the absolute roll angle of the entity.
470
480
  * @public
471
- * @returns {number} The absolute roll angle in degrees.
481
+ * @returns {number} The absolute roll angle in radians.
472
482
  */
473
483
  getAbsoluteRoll() {
474
484
  if (this.parent && this._relativePosition) {
475
- return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getRoll() * DEGREES;
485
+ return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getRoll();
476
486
  }
477
- return this._roll;
487
+ return this._rollRad;
478
488
  }
479
489
  _getScaleByDistance() {
480
490
  let scd = 1;
@@ -553,9 +563,9 @@ class Entity {
553
563
  this._pitchRad = this._qRot.getPitch();
554
564
  this._yawRad = this._qRot.getYaw();
555
565
  this._rollRad = this._qRot.getRoll();
556
- this._pitch = this._pitchRad * DEGREES;
557
- this._yaw = this._yawRad * DEGREES;
558
- this._roll = this._rollRad * DEGREES;
566
+ // this._pitch = this._pitchRad * DEGREES;
567
+ // this._yaw = this._yawRad * DEGREES;
568
+ // this._roll = this._rollRad * DEGREES;
559
569
  if (this.geoObject) {
560
570
  this.geoObject.setRotation(this._absoluteQRot);
561
571
  }
@@ -579,7 +589,12 @@ class Entity {
579
589
  if (this._entityCollection && this._entityCollection.renderNode) {
580
590
  this._qFrame = this._entityCollection.renderNode.getFrameRotation(this._cartesian);
581
591
  }
582
- this._qRot.setPitchYawRoll(this._pitchRad, this._yawRad, this._rollRad, this._qFrame);
592
+ if (parent && this.forceGlobalRotation) {
593
+ this._qRot.setPitchYawRoll(parent._pitchRad, parent._yawRad, parent._rollRad, this._qFrame);
594
+ }
595
+ else {
596
+ this._qRot.setPitchYawRoll(this._pitchRad, this._yawRad, this._rollRad, this._qFrame);
597
+ }
583
598
  this._absoluteQRot.copy(this._qRot);
584
599
  this._rootCartesian.copy(this._cartesian);
585
600
  this._absoluteLocalPosition.copy(this._localPosition);
@@ -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.
@@ -10,9 +10,6 @@ export const LOCAL_FORWARD = new Vec3(0.0, 0.0, -1.0);
10
10
  * @param {string} [options.objSrc] - Source url of the 3D object.
11
11
  * @param {string} [options.tag] - Unique instancing drawing identifier tag.
12
12
  * @param {Vec3 | NumberArray3} [options.position] - Position in Cartesian coordinates.
13
- * @param {number} [options.pitch=0] - Rotation around X-axis in degrees.
14
- * @param {number} [options.yaw=0] - Rotation around Y-axis in degrees.
15
- * @param {number} [options.roll=0] - Rotation around Z-axis in degrees.
16
13
  * @param {number | Vec3 | NumberArray3} [options.scale=1] - Scale of the object.
17
14
  * @param {Vec3 | NumberArray3} [options.translate] - Translation offset.
18
15
  * @param {Vec4 | NumberArray4 | string} [options.color] - RGBA color or HTML color string.
@@ -1,9 +1,10 @@
1
1
  import { Entity } from "./Entity";
2
2
  import { Extent } from "../Extent";
3
3
  import { GeometryHandler } from "./GeometryHandler";
4
- import { NumberArray4, Vec4 } from "../math/Vec4";
5
- import { NumberArray2 } from "../math/Vec2";
6
- import { NumberArray3 } from "../math/Vec3";
4
+ import { Vec4 } from "../math/Vec4";
5
+ import type { NumberArray4 } from "../math/Vec4";
6
+ import type { NumberArray2 } from "../math/Vec2";
7
+ import type { NumberArray3 } from "../math/Vec3";
7
8
  export declare enum GeometryTypeEnum {
8
9
  POINT = 1,
9
10
  LINESTRING = 2,
@@ -1,10 +1,11 @@
1
1
  import { Extent } from "../Extent";
2
- import { Handler, WebGLBufferExt } from "../webgl/Handler";
2
+ import { Handler } from "../webgl/Handler";
3
+ import type { WebGLBufferExt } from "../webgl/Handler";
3
4
  import { Vector } from "../layer/Vector";
4
5
  import { Node } from "../quadTree/Node";
5
6
  import { Vec3 } from "../math/Vec3";
6
7
  import { Vec4 } from "../math/Vec4";
7
- import { CoordinatesType, Geometry } from "./Geometry";
8
+ import type { CoordinatesType, Geometry } from "./Geometry";
8
9
  declare class GeometryHandler {
9
10
  static __counter__: number;
10
11
  protected __id: number;
@@ -1,6 +1,6 @@
1
1
  import { GeoObject } from "./GeoObject";
2
- import { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
3
- import { TypedArray } from "../utils/shared";
2
+ import type { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
3
+ import type { TypedArray } from "../utils/shared";
4
4
  import { Program } from "../webgl/Program";
5
5
  import { GeoObjectHandler } from "./GeoObjectHandler";
6
6
  export declare class InstanceData {
@@ -156,17 +156,20 @@ export class InstanceData {
156
156
  }
157
157
  createColorTexture(image) {
158
158
  if (this._geoObjectHandler && this._geoObjectHandler._renderer) {
159
- this._colorTexture = this._geoObjectHandler._renderer.handler.createTextureDefault(image);
159
+ let h = this._geoObjectHandler._renderer.handler;
160
+ this._colorTexture = h.createTextureDefault(image, null, h.gl.REPEAT);
160
161
  }
161
162
  }
162
163
  createNormalTexture(image) {
163
164
  if (this._geoObjectHandler && this._geoObjectHandler._renderer) {
164
- this._normalTexture = this._geoObjectHandler._renderer.handler.createTextureDefault(image);
165
+ let h = this._geoObjectHandler._renderer.handler;
166
+ this._normalTexture = h.createTextureDefault(image, null, h.gl.REPEAT);
165
167
  }
166
168
  }
167
169
  createMetallicRoughnessTexture(image) {
168
170
  if (this._geoObjectHandler && this._geoObjectHandler._renderer) {
169
- this._metallicRoughnessTexture = this._geoObjectHandler._renderer.handler.createTextureDefault(image);
171
+ let h = this._geoObjectHandler._renderer.handler;
172
+ this._metallicRoughnessTexture = h.createTextureDefault(image, null, h.gl.REPEAT);
170
173
  }
171
174
  }
172
175
  clear() {
@@ -1,5 +1,7 @@
1
- import { BaseBillboard, IBaseBillboardParams } from "./BaseBillboard";
2
- import { NumberArray4, Vec4 } from "../math/Vec4";
1
+ import { BaseBillboard } from "./BaseBillboard";
2
+ import type { IBaseBillboardParams } from "./BaseBillboard";
3
+ import { Vec4 } from "../math/Vec4";
4
+ import type { NumberArray4 } from "../math/Vec4";
3
5
  import { FontAtlas } from "../utils/FontAtlas";
4
6
  import { LabelHandler } from "./LabelHandler";
5
7
  export interface ILabelParams extends IBaseBillboardParams {
@@ -1,7 +1,7 @@
1
1
  import { Label } from "./Label";
2
2
  import { BaseBillboardHandler } from "./BaseBillboardHandler";
3
3
  import { EntityCollection } from "./EntityCollection";
4
- import { WebGLBufferExt } from "../webgl/Handler";
4
+ import type { WebGLBufferExt } from "../webgl/Handler";
5
5
  import { Vec3 } from "../math/Vec3";
6
6
  import { Vec4 } from "../math/Vec4";
7
7
  type LabelWorkerCallbackData = {
@@ -3,7 +3,7 @@ import { PointCloudHandler } from "./PointCloudHandler";
3
3
  import { RenderNode } from "../scene/RenderNode";
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 { EntityCollection } from "./EntityCollection";
8
8
  export interface IPointCloudParams {
9
9
  visibility?: boolean;