@openglobus/og 0.19.4 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/README.md +3 -3
  2. package/css/og.css +18 -4
  3. package/lib/@openglobus/js/Clock.d.ts +106 -0
  4. package/lib/@openglobus/js/Deferred.d.ts +6 -0
  5. package/lib/@openglobus/js/Events.d.ts +90 -0
  6. package/lib/@openglobus/js/Extent.d.ts +145 -0
  7. package/lib/@openglobus/js/Globe.d.ts +134 -0
  8. package/lib/@openglobus/js/ImageCanvas.d.ts +128 -0
  9. package/lib/@openglobus/js/Lock.d.ts +15 -0
  10. package/lib/@openglobus/js/LonLat.d.ts +128 -0
  11. package/lib/@openglobus/js/Object3d.d.ts +64 -0
  12. package/lib/@openglobus/js/Popup.d.ts +46 -0
  13. package/lib/@openglobus/js/QueueArray.d.ts +16 -0
  14. package/lib/@openglobus/js/Rectangle.d.ts +76 -0
  15. package/lib/@openglobus/js/Stack.d.ts +20 -0
  16. package/lib/@openglobus/js/astro/astro.d.ts +39 -0
  17. package/lib/@openglobus/js/astro/earth.d.ts +8 -0
  18. package/lib/@openglobus/js/astro/jd.d.ts +234 -0
  19. package/lib/@openglobus/js/astro/orbit.d.ts +5 -0
  20. package/lib/@openglobus/js/astro/rotation.d.ts +2 -0
  21. package/lib/@openglobus/js/bv/Box.d.ts +32 -0
  22. package/lib/@openglobus/js/bv/Sphere.d.ts +37 -0
  23. package/lib/@openglobus/js/bv/index.d.ts +3 -0
  24. package/lib/@openglobus/js/camera/Camera.d.ts +314 -0
  25. package/lib/@openglobus/js/camera/Frustum.d.ts +139 -0
  26. package/lib/@openglobus/js/camera/PlanetCamera.d.ts +234 -0
  27. package/lib/@openglobus/js/camera/index.d.ts +3 -0
  28. package/lib/@openglobus/js/cons.d.ts +40 -0
  29. package/lib/@openglobus/js/control/Atmosphere.d.ts +16 -0
  30. package/lib/@openglobus/js/control/CompassButton.d.ts +16 -0
  31. package/lib/@openglobus/js/control/Control.d.ts +100 -0
  32. package/lib/@openglobus/js/control/DebugInfo.d.ts +25 -0
  33. package/lib/@openglobus/js/control/DrawingSwitcher.d.ts +13 -0
  34. package/lib/@openglobus/js/control/EarthCoordinates.d.ts +41 -0
  35. package/lib/@openglobus/js/control/EarthNavigation.d.ts +50 -0
  36. package/lib/@openglobus/js/control/GeoImageDragControl.d.ts +22 -0
  37. package/lib/@openglobus/js/control/KeyboardNavigation.d.ts +28 -0
  38. package/lib/@openglobus/js/control/LayerAnimation.d.ts +71 -0
  39. package/lib/@openglobus/js/control/LayerSwitcher.d.ts +36 -0
  40. package/lib/@openglobus/js/control/Lighting.d.ts +53 -0
  41. package/lib/@openglobus/js/control/MouseNavigation.d.ts +64 -0
  42. package/lib/@openglobus/js/control/MouseWheelZoomControl.d.ts +44 -0
  43. package/lib/@openglobus/js/control/RulerSwitcher.d.ts +17 -0
  44. package/lib/@openglobus/js/control/ScaleControl.d.ts +24 -0
  45. package/lib/@openglobus/js/control/SegmentBoundVisualization.d.ts +12 -0
  46. package/lib/@openglobus/js/control/ShowFps.d.ts +9 -0
  47. package/lib/@openglobus/js/control/SimpleNavigation.d.ts +25 -0
  48. package/lib/@openglobus/js/control/SimpleSkyBackground.d.ts +17 -0
  49. package/lib/@openglobus/js/control/Sun.d.ts +33 -0
  50. package/lib/@openglobus/js/control/ToggleWireframe.d.ts +14 -0
  51. package/lib/@openglobus/js/control/TouchNavigation.d.ts +52 -0
  52. package/lib/@openglobus/js/control/ZoomControl.d.ts +27 -0
  53. package/lib/@openglobus/js/control/drawing/DrawingControl.d.ts +12 -0
  54. package/lib/@openglobus/js/control/drawing/LineStringDrawingScene.d.ts +15 -0
  55. package/lib/@openglobus/js/control/drawing/PolygonDrawingScene.d.ts +98 -0
  56. package/lib/@openglobus/js/control/elevationProfile/ElevationProfile.d.ts +77 -0
  57. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileButtonsView.d.ts +14 -0
  58. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileControl.d.ts +33 -0
  59. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileLegend.d.ts +20 -0
  60. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileScene.d.ts +80 -0
  61. package/lib/@openglobus/js/control/elevationProfile/ElevationProfileView.d.ts +63 -0
  62. package/lib/@openglobus/js/control/elevationProfile/PointListDialog.d.ts +12 -0
  63. package/lib/@openglobus/js/control/heightRuler/HeightRuler.d.ts +7 -0
  64. package/lib/@openglobus/js/control/heightRuler/HeightRulerScene.d.ts +35 -0
  65. package/lib/@openglobus/js/control/heightRuler/HeightRulerSwitcher.d.ts +6 -0
  66. package/lib/@openglobus/js/control/index.d.ts +29 -0
  67. package/lib/@openglobus/js/control/ruler/Ruler.d.ts +13 -0
  68. package/lib/@openglobus/js/control/ruler/RulerScene.d.ts +88 -0
  69. package/lib/@openglobus/js/control/selection/Selection.d.ts +55 -0
  70. package/lib/@openglobus/js/control/selection/SelectionScene.d.ts +44 -0
  71. package/lib/@openglobus/js/control/timeline/TimelineControl.d.ts +18 -0
  72. package/lib/@openglobus/js/control/timeline/TimelineModel.d.ts +41 -0
  73. package/lib/@openglobus/js/control/timeline/TimelineView.d.ts +85 -0
  74. package/lib/@openglobus/js/control/timeline/timelineUtils.d.ts +12 -0
  75. package/lib/@openglobus/js/control/visibleExtent/drawnode.d.ts +7 -0
  76. package/lib/@openglobus/js/ellipsoid/Ellipsoid.d.ts +193 -0
  77. package/lib/@openglobus/js/ellipsoid/index.d.ts +3 -0
  78. package/lib/@openglobus/js/ellipsoid/wgs84.d.ts +6 -0
  79. package/lib/@openglobus/js/entity/BaseBillboard.d.ts +222 -0
  80. package/lib/@openglobus/js/entity/BaseBillboardHandler.d.ts +81 -0
  81. package/lib/@openglobus/js/entity/Billboard.d.ts +113 -0
  82. package/lib/@openglobus/js/entity/BillboardHandler.d.ts +15 -0
  83. package/lib/@openglobus/js/entity/Entity.d.ts +354 -0
  84. package/lib/@openglobus/js/entity/EntityCollection.d.ts +363 -0
  85. package/lib/@openglobus/js/entity/GeoObject.d.ts +152 -0
  86. package/lib/@openglobus/js/entity/GeoObjectHandler.d.ts +104 -0
  87. package/lib/@openglobus/js/entity/Geometry.d.ts +124 -0
  88. package/lib/@openglobus/js/entity/GeometryHandler.d.ts +84 -0
  89. package/lib/@openglobus/js/entity/Label.d.ts +214 -0
  90. package/lib/@openglobus/js/entity/LabelHandler.d.ts +65 -0
  91. package/lib/@openglobus/js/entity/LabelWorker.d.ts +15 -0
  92. package/lib/@openglobus/js/entity/PointCloud.d.ts +179 -0
  93. package/lib/@openglobus/js/entity/PointCloudHandler.d.ts +42 -0
  94. package/lib/@openglobus/js/entity/Polyline.d.ts +345 -0
  95. package/lib/@openglobus/js/entity/PolylineHandler.d.ts +22 -0
  96. package/lib/@openglobus/js/entity/Ray.d.ts +133 -0
  97. package/lib/@openglobus/js/entity/RayHandler.d.ts +70 -0
  98. package/lib/@openglobus/js/entity/Strip.d.ts +139 -0
  99. package/lib/@openglobus/js/entity/StripHandler.d.ts +42 -0
  100. package/lib/@openglobus/js/entity/index.d.ts +10 -0
  101. package/lib/@openglobus/js/index.d.ts +33 -0
  102. package/lib/@openglobus/js/input/KeyboardHandler.d.ts +33 -0
  103. package/lib/@openglobus/js/input/MouseHandler.d.ts +16 -0
  104. package/lib/@openglobus/js/input/TouchHandler.d.ts +11 -0
  105. package/lib/@openglobus/js/input/input.d.ts +3 -0
  106. package/lib/@openglobus/js/layer/BaseGeoImage.d.ts +145 -0
  107. package/lib/@openglobus/js/layer/Bing.d.ts +4 -0
  108. package/lib/@openglobus/js/layer/CanvasTiles.d.ts +103 -0
  109. package/lib/@openglobus/js/layer/GeoImage.d.ts +61 -0
  110. package/lib/@openglobus/js/layer/GeoTexture2d.d.ts +17 -0
  111. package/lib/@openglobus/js/layer/GeoVideo.d.ts +68 -0
  112. package/lib/@openglobus/js/layer/KML.d.ts +72 -0
  113. package/lib/@openglobus/js/layer/Layer.d.ts +415 -0
  114. package/lib/@openglobus/js/layer/Material.d.ts +34 -0
  115. package/lib/@openglobus/js/layer/OpenStreetMap.d.ts +4 -0
  116. package/lib/@openglobus/js/layer/Vector.d.ts +246 -0
  117. package/lib/@openglobus/js/layer/WMS.d.ts +75 -0
  118. package/lib/@openglobus/js/layer/XYZ.d.ts +148 -0
  119. package/lib/@openglobus/js/layer/index.d.ts +12 -0
  120. package/lib/@openglobus/js/light/LightSource.d.ts +174 -0
  121. package/lib/@openglobus/js/math/Line2.d.ts +11 -0
  122. package/lib/@openglobus/js/math/Line3.d.ts +28 -0
  123. package/lib/@openglobus/js/math/Mat3.d.ts +77 -0
  124. package/lib/@openglobus/js/math/Mat4.d.ts +195 -0
  125. package/lib/@openglobus/js/math/Plane.d.ts +20 -0
  126. package/lib/@openglobus/js/math/Quat.d.ts +373 -0
  127. package/lib/@openglobus/js/math/Ray.d.ts +76 -0
  128. package/lib/@openglobus/js/math/Vec2.d.ts +310 -0
  129. package/lib/@openglobus/js/math/Vec3.d.ts +472 -0
  130. package/lib/@openglobus/js/math/Vec4.d.ts +163 -0
  131. package/lib/@openglobus/js/math/coder.d.ts +51 -0
  132. package/lib/@openglobus/js/math/index.d.ts +11 -0
  133. package/lib/@openglobus/js/math.d.ts +266 -0
  134. package/lib/@openglobus/js/mercator.d.ts +92 -0
  135. package/lib/@openglobus/js/proj/EPSG3857.d.ts +9 -0
  136. package/lib/@openglobus/js/proj/EPSG4326.d.ts +9 -0
  137. package/lib/@openglobus/js/proj/Proj.d.ts +43 -0
  138. package/lib/@openglobus/js/quadTree/EPSG4326QuadTreeStrategy.d.ts +6 -0
  139. package/lib/@openglobus/js/quadTree/EarthQuadTreeStrategy.d.ts +9 -0
  140. package/lib/@openglobus/js/quadTree/EntityCollectionNode.d.ts +54 -0
  141. package/lib/@openglobus/js/quadTree/MarsQuadTreeStrategy.d.ts +11 -0
  142. package/lib/@openglobus/js/quadTree/Node.d.ts +80 -0
  143. package/lib/@openglobus/js/quadTree/QuadTreeStrategy.d.ts +28 -0
  144. package/lib/@openglobus/js/quadTree/Wgs84QuadTreeStrategy.d.ts +6 -0
  145. package/lib/@openglobus/js/quadTree/index.d.ts +12 -0
  146. package/lib/@openglobus/js/quadTree/quadTree.d.ts +40 -0
  147. package/lib/@openglobus/js/renderer/Renderer.d.ts +319 -0
  148. package/lib/@openglobus/js/renderer/RendererEvents.d.ts +240 -0
  149. package/lib/@openglobus/js/scene/Axes.d.ts +12 -0
  150. package/lib/@openglobus/js/scene/BaseNode.d.ts +61 -0
  151. package/lib/@openglobus/js/scene/Planet.d.ts +652 -0
  152. package/lib/@openglobus/js/scene/RenderNode.d.ts +150 -0
  153. package/lib/@openglobus/js/scene/SkyBox.d.ts +13 -0
  154. package/lib/@openglobus/js/scene/index.d.ts +5 -0
  155. package/lib/@openglobus/js/segment/Segment.d.ts +288 -0
  156. package/lib/@openglobus/js/segment/SegmentLonLat.d.ts +44 -0
  157. package/lib/@openglobus/js/segment/SegmentLonLatWgs84.d.ts +10 -0
  158. package/lib/@openglobus/js/segment/Slice.d.ts +13 -0
  159. package/lib/@openglobus/js/segment/segmentHelper.d.ts +18 -0
  160. package/lib/@openglobus/js/shaders/atmos.d.ts +4 -0
  161. package/lib/@openglobus/js/shaders/billboard.d.ts +3 -0
  162. package/lib/@openglobus/js/shaders/bloom.d.ts +2 -0
  163. package/lib/@openglobus/js/shaders/blur.d.ts +3 -0
  164. package/lib/@openglobus/js/shaders/depth.d.ts +2 -0
  165. package/lib/@openglobus/js/shaders/drawnode.d.ts +8 -0
  166. package/lib/@openglobus/js/shaders/geoObject.d.ts +3 -0
  167. package/lib/@openglobus/js/shaders/label.d.ts +4 -0
  168. package/lib/@openglobus/js/shaders/lumFilter.d.ts +2 -0
  169. package/lib/@openglobus/js/shaders/pointCloud.d.ts +2 -0
  170. package/lib/@openglobus/js/shaders/polyline.d.ts +3 -0
  171. package/lib/@openglobus/js/shaders/ray.d.ts +2 -0
  172. package/lib/@openglobus/js/shaders/screenFrame.d.ts +2 -0
  173. package/lib/@openglobus/js/shaders/skybox.d.ts +2 -0
  174. package/lib/@openglobus/js/shaders/toneMapping.d.ts +2 -0
  175. package/lib/@openglobus/js/shaders/utils.d.ts +1 -0
  176. package/lib/@openglobus/js/terrain/BilTerrain.d.ts +18 -0
  177. package/lib/@openglobus/js/terrain/EmptyTerrain.d.ts +113 -0
  178. package/lib/@openglobus/js/terrain/Geoid.d.ts +33 -0
  179. package/lib/@openglobus/js/terrain/GlobusRgbTerrain.d.ts +6 -0
  180. package/lib/@openglobus/js/terrain/GlobusTerrain.d.ts +137 -0
  181. package/lib/{js/terrain/MapboxTerrain.d.ts → @openglobus/js/terrain/RgbTerrain.d.ts} +5 -5
  182. package/lib/@openglobus/js/terrain/index.d.ts +6 -0
  183. package/lib/@openglobus/js/ui/Button.d.ts +32 -0
  184. package/lib/@openglobus/js/ui/ButtonGroup.d.ts +16 -0
  185. package/lib/@openglobus/js/ui/Color.d.ts +22 -0
  186. package/lib/@openglobus/js/ui/Dialog.d.ts +55 -0
  187. package/lib/@openglobus/js/ui/Slider.d.ts +38 -0
  188. package/lib/@openglobus/js/ui/ToggleButton.d.ts +20 -0
  189. package/lib/@openglobus/js/ui/View.d.ts +37 -0
  190. package/lib/@openglobus/js/ui/icons.d.ts +1 -0
  191. package/lib/@openglobus/js/utils/BaseWorker.d.ts +14 -0
  192. package/lib/@openglobus/js/utils/FontAtlas.d.ts +82 -0
  193. package/lib/@openglobus/js/utils/GeoImageCreator.d.ts +34 -0
  194. package/lib/@openglobus/js/utils/ImagesCacheManager.d.ts +22 -0
  195. package/lib/@openglobus/js/utils/Loader.d.ts +63 -0
  196. package/lib/@openglobus/js/utils/NormalMapCreator.d.ts +52 -0
  197. package/lib/@openglobus/js/utils/PlainSegmentWorker.d.ts +24 -0
  198. package/lib/@openglobus/js/utils/TerrainWorker.d.ts +28 -0
  199. package/lib/@openglobus/js/utils/TextureAtlas.d.ts +113 -0
  200. package/lib/@openglobus/js/utils/VectorTileCreator.d.ts +18 -0
  201. package/lib/@openglobus/js/utils/colorTable.d.ts +3 -0
  202. package/lib/@openglobus/js/utils/earcut.d.ts +7 -0
  203. package/lib/@openglobus/js/utils/objParser.d.ts +24 -0
  204. package/lib/@openglobus/js/utils/shared.d.ts +263 -0
  205. package/lib/@openglobus/js/utils/units.d.ts +16 -0
  206. package/lib/@openglobus/js/webgl/BaseFramebuffer.d.ts +53 -0
  207. package/lib/@openglobus/js/webgl/Framebuffer.d.ts +69 -0
  208. package/lib/@openglobus/js/webgl/Handler.d.ts +473 -0
  209. package/lib/@openglobus/js/webgl/Multisample.d.ts +27 -0
  210. package/lib/@openglobus/js/webgl/Program.d.ts +159 -0
  211. package/lib/@openglobus/js/webgl/ProgramController.d.ts +86 -0
  212. package/lib/@openglobus/js/webgl/index.d.ts +6 -0
  213. package/lib/@openglobus/js/webgl/types.d.ts +9 -0
  214. package/lib/@openglobus/js/webgl/variableHandlers.d.ts +22 -0
  215. package/lib/@openglobus/og.css +1 -1
  216. package/lib/@openglobus/og.esm.js +1 -1
  217. package/lib/@openglobus/og.esm.js.map +1 -1
  218. package/lib/@openglobus/og.umd.js +1 -1
  219. package/lib/@openglobus/og.umd.js.map +1 -1
  220. package/lib/js/Extent.js +2 -2
  221. package/lib/js/Globe.d.ts +1 -1
  222. package/lib/js/Object3d.d.ts +8 -1
  223. package/lib/js/Object3d.js +12 -2
  224. package/lib/js/camera/Frustum.d.ts +1 -1
  225. package/lib/js/camera/Frustum.js +3 -2
  226. package/lib/js/control/DebugInfo.js +19 -18
  227. package/lib/js/control/Lighting.d.ts +4 -0
  228. package/lib/js/control/Lighting.js +51 -12
  229. package/lib/js/control/SimpleSkyBackground.d.ts +2 -0
  230. package/lib/js/control/SimpleSkyBackground.js +13 -3
  231. package/lib/js/control/drawing/PolygonDrawingScene.js +2 -2
  232. package/lib/js/control/visibleExtent/drawnode.js +1 -1
  233. package/lib/js/entity/GeoObject.d.ts +12 -3
  234. package/lib/js/entity/GeoObject.js +34 -2
  235. package/lib/js/entity/GeoObjectHandler.d.ts +5 -0
  236. package/lib/js/entity/GeoObjectHandler.js +47 -0
  237. package/lib/js/entity/Geometry.d.ts +24 -11
  238. package/lib/js/entity/Geometry.js +17 -9
  239. package/lib/js/entity/GeometryHandler.js +5 -5
  240. package/lib/js/entity/Label.d.ts +7 -0
  241. package/lib/js/entity/Label.js +11 -0
  242. package/lib/js/entity/Polyline.d.ts +15 -7
  243. package/lib/js/entity/Polyline.js +54 -6
  244. package/lib/js/entity/Strip.d.ts +12 -0
  245. package/lib/js/entity/Strip.js +16 -0
  246. package/lib/js/entity/StripHandler.js +1 -1
  247. package/lib/js/entity/index.d.ts +10 -11
  248. package/lib/js/entity/index.js +10 -11
  249. package/lib/js/index.d.ts +5 -5
  250. package/lib/js/index.js +5 -5
  251. package/lib/js/layer/Bing.d.ts +4 -0
  252. package/lib/js/layer/Bing.js +40 -0
  253. package/lib/js/layer/GeoImage.d.ts +1 -1
  254. package/lib/js/layer/GeoVideo.d.ts +1 -1
  255. package/lib/js/layer/Layer.d.ts +1 -1
  256. package/lib/js/layer/Layer.js +2 -2
  257. package/lib/js/layer/OpenStreetMap.d.ts +4 -0
  258. package/lib/js/layer/OpenStreetMap.js +19 -0
  259. package/lib/js/layer/Vector.d.ts +3 -0
  260. package/lib/js/layer/Vector.js +3 -3
  261. package/lib/js/layer/index.d.ts +12 -11
  262. package/lib/js/layer/index.js +12 -11
  263. package/lib/js/math/Mat4.js +18 -17
  264. package/lib/js/mercator.js +2 -1
  265. package/lib/js/quadTree/EPSG4326QuadTreeStrategy.js +4 -5
  266. package/lib/js/quadTree/EarthQuadTreeStrategy.d.ts +3 -0
  267. package/lib/js/quadTree/EarthQuadTreeStrategy.js +40 -5
  268. package/lib/js/quadTree/EntityCollectionNode.d.ts +2 -2
  269. package/lib/js/quadTree/EntityCollectionNode.js +13 -14
  270. package/lib/js/quadTree/MarsQuadTreeStrategy.d.ts +5 -0
  271. package/lib/js/quadTree/MarsQuadTreeStrategy.js +31 -5
  272. package/lib/js/quadTree/Node.d.ts +2 -1
  273. package/lib/js/quadTree/Node.js +38 -28
  274. package/lib/js/quadTree/QuadTreeStrategy.d.ts +3 -0
  275. package/lib/js/quadTree/QuadTreeStrategy.js +17 -0
  276. package/lib/js/quadTree/Wgs84QuadTreeStrategy.js +3 -3
  277. package/lib/js/renderer/Renderer.js +1 -0
  278. package/lib/js/scene/Planet.js +6 -4
  279. package/lib/js/segment/Segment.d.ts +12 -9
  280. package/lib/js/segment/Segment.js +47 -24
  281. package/lib/js/segment/SegmentLonLat.d.ts +1 -5
  282. package/lib/js/segment/SegmentLonLat.js +8 -100
  283. package/lib/js/segment/SegmentLonLatWgs84.js +5 -3
  284. package/lib/js/shaders/billboard.js +4 -4
  285. package/lib/js/shaders/drawnode.js +16 -19
  286. package/lib/js/shaders/geoObject.js +4 -5
  287. package/lib/js/shaders/ray.js +7 -3
  288. package/lib/js/terrain/BilTerrain.d.ts +1 -1
  289. package/lib/js/terrain/BilTerrain.js +7 -6
  290. package/lib/js/terrain/EmptyTerrain.d.ts +7 -0
  291. package/lib/js/terrain/EmptyTerrain.js +7 -0
  292. package/lib/js/terrain/GlobusRgbTerrain.d.ts +6 -0
  293. package/lib/js/terrain/GlobusRgbTerrain.js +25 -0
  294. package/lib/js/terrain/GlobusTerrain.d.ts +5 -5
  295. package/lib/js/terrain/GlobusTerrain.js +35 -30
  296. package/lib/js/terrain/RgbTerrain.d.ts +22 -0
  297. package/lib/js/terrain/RgbTerrain.js +415 -0
  298. package/lib/js/terrain/index.d.ts +3 -2
  299. package/lib/js/terrain/index.js +3 -2
  300. package/lib/js/ui/Color.d.ts +22 -0
  301. package/lib/js/ui/Color.js +58 -0
  302. package/lib/js/utils/GeoImageCreator.js +1 -1
  303. package/lib/js/utils/NormalMapCreator.js +1 -1
  304. package/lib/js/utils/VectorTileCreator.js +3 -3
  305. package/lib/js/utils/shared.d.ts +1 -8
  306. package/lib/js/utils/shared.js +17 -8
  307. package/package.json +2 -1
  308. package/lib/js/terrain/MapboxTerrain.js +0 -305
@@ -0,0 +1,354 @@
1
+ import { Billboard, IBillboardParams } from "./Billboard";
2
+ import { EntityCollection, EntityCollectionEvents } from "./EntityCollection";
3
+ import { Extent } from "../Extent";
4
+ import { Geometry, IGeometryParams } from "./Geometry";
5
+ import { GeoObject, IGeoObjectParams } from "./GeoObject";
6
+ 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 } from "./Strip";
14
+ import { Vector, VectorEventsType } from "../layer/Vector";
15
+ import { EntityCollectionNode } from "../quadTree/EntityCollectionNode";
16
+ export interface IEntityParams {
17
+ name?: string;
18
+ properties?: any;
19
+ cartesian?: Vec3 | NumberArray3;
20
+ lonlat?: LonLat | NumberArray3 | NumberArray2;
21
+ altitude?: number;
22
+ visibility?: boolean;
23
+ billboard?: Billboard | IBillboardParams;
24
+ label?: Label | ILabelParams;
25
+ polyline?: Polyline | IPolylineParams;
26
+ ray?: Ray | IRayParams;
27
+ pointCloud?: PointCloud | IPointCloudParams;
28
+ geometry?: Geometry | IGeometryParams;
29
+ geoObject?: GeoObject | IGeoObjectParams;
30
+ strip?: Strip;
31
+ }
32
+ /**
33
+ * Entity instances aggregate multiple forms of visualization into a single high-level object.
34
+ * They can be created manually and added to entity collection.
35
+ *
36
+ * @class
37
+ * @param {Object} [options] - Entity options:
38
+ * @param {string} [options.name] - A human-readable name to display to users. It does not have to be unique.
39
+ * @param {Vec3|Array.<number>} [options.cartesian] - Spatial entities like billboard, label etc. cartesian position.
40
+ * @param {LonLat} [options.lonlat] - Geodetic coordinates for an entities like billboard, label etc.
41
+ * @param {boolean} [options.aground] - True for entities that have to be placed on the relief.
42
+ * @param {boolean} [options.visibility] - Entity visibility.
43
+ * @param {*} [options.billboard] - Billboard options(see {@link Billboard}).
44
+ * @param {*} [options.label] - Label options(see {@link Label}).
45
+ * @param {*} [options.polyline] - Polyline options(see {@link Polyline}).
46
+ * @param {*} [options.ray] - Ray options(see {@link Ray}).
47
+ * @param {*} [options.pointCloud] - Point cloud options(see {@link PointCloud}).
48
+ * @param {*} [options.geometry] - Geometry options (see {@link Geometry}), available for vector layer only.
49
+ * @param {*} [options.properties] - Entity custom properties.
50
+ */
51
+ declare class Entity {
52
+ static __counter__: number;
53
+ /**
54
+ * Uniq identifier.
55
+ * @public
56
+ * @readonly
57
+ */
58
+ protected __id: number;
59
+ /**
60
+ * Entity user defined properties.
61
+ * @public
62
+ * @type {Object}
63
+ */
64
+ properties: any;
65
+ /**
66
+ * Children entities.
67
+ * @public
68
+ * @type {Array.<Entity>}
69
+ */
70
+ childrenNodes: Entity[];
71
+ /**
72
+ * Parent entity.
73
+ * @public
74
+ * @type {Entity}
75
+ */
76
+ parent: Entity | null;
77
+ /**
78
+ * Entity cartesian position.
79
+ * @protected
80
+ * @type {Vec3}
81
+ */
82
+ _cartesian: Vec3;
83
+ /**
84
+ * Geodetic entity coordinates.
85
+ * @public
86
+ * @type {LonLat}
87
+ */
88
+ _lonLat: LonLat;
89
+ /**
90
+ * World Mercator entity coordinates.
91
+ * @public
92
+ * @type {LonLat}
93
+ */
94
+ _lonLatMerc: LonLat;
95
+ /**
96
+ * Entity visible terrain altitude.
97
+ * @public
98
+ * @type {number}
99
+ */
100
+ _altitude: number;
101
+ /**
102
+ * Visibility flag.
103
+ * @protected
104
+ * @type {boolean}
105
+ */
106
+ protected _visibility: boolean;
107
+ /**
108
+ * Entity collection that this entity belongs to.
109
+ * @public
110
+ * @type {EntityCollection}
111
+ */
112
+ _entityCollection: EntityCollection | null;
113
+ /**
114
+ * Entity collection array store index.
115
+ * @public
116
+ * @type {number}
117
+ */
118
+ _entityCollectionIndex: number;
119
+ /**
120
+ * Assigned vector layer pointer.
121
+ * @public
122
+ * @type {Vector}
123
+ */
124
+ _layer: Vector | null;
125
+ /**
126
+ * Assigned vector layer entity array index.
127
+ * @public
128
+ * @type {number}
129
+ */
130
+ _layerIndex: number;
131
+ /**
132
+ * Picking color.
133
+ * @public
134
+ * @type {Vec3}
135
+ */
136
+ _pickingColor: Vec3;
137
+ protected _featureConstructorArray: Record<string, [any, Function]>;
138
+ /**
139
+ * Billboard entity.
140
+ * @public
141
+ * @type {Billboard | null}
142
+ */
143
+ billboard: Billboard | null;
144
+ /**
145
+ * Text label entity.
146
+ * @public
147
+ * @type {Label | null}
148
+ */
149
+ label: Label | null;
150
+ /**
151
+ * Polyline entity.
152
+ * @public
153
+ * @type {Polyline | null}
154
+ */
155
+ polyline: Polyline | null;
156
+ /**
157
+ * Ray entity.
158
+ * @public
159
+ * @type {Ray | null}
160
+ */
161
+ ray: Ray | null;
162
+ /**
163
+ * PointCloud entity.
164
+ * @public
165
+ * @type {PointCloud | null}
166
+ */
167
+ pointCloud: PointCloud | null;
168
+ /**
169
+ * Geometry entity(available for vector layer only).
170
+ * @public
171
+ * @type {Geometry | null}
172
+ */
173
+ geometry: Geometry | null;
174
+ /**
175
+ * Geo object entity
176
+ * @public
177
+ * @type {Geometry | null}
178
+ */
179
+ geoObject: GeoObject | null;
180
+ /**
181
+ * Strip entity.
182
+ * @public
183
+ * @type {Strip | null}
184
+ */
185
+ strip: Strip | null;
186
+ _nodePtr?: EntityCollectionNode;
187
+ constructor(options?: IEntityParams);
188
+ get id(): number;
189
+ isEqual(entity: Entity): boolean;
190
+ get layerIndex(): number;
191
+ get instanceName(): string;
192
+ protected _createOptionFeature<T, K>(featureName: string, options?: T | K): T | null;
193
+ getCollectionIndex(): number;
194
+ /**
195
+ * Adds current entity into the specified entity collection.
196
+ * @public
197
+ * @param {EntityCollection | Vector} collection - Specified entity collection or vector layer.
198
+ * @param {Boolean} [rightNow=false] - Entity insertion option for vector layer.
199
+ * @returns {Entity} - This object.
200
+ */
201
+ addTo(collection: EntityCollection | Vector, rightNow?: boolean): this;
202
+ /**
203
+ * Removes current entity from collection and layer.
204
+ * @public
205
+ */
206
+ remove(): void;
207
+ /**
208
+ * Sets the entity visibility.
209
+ * @public
210
+ * @param {boolean} visibility - Entity visibility.
211
+ */
212
+ setVisibility(visibility: boolean): void;
213
+ /**
214
+ * Returns entity visibility.
215
+ * @public
216
+ * @returns {boolean} -
217
+ */
218
+ getVisibility(): boolean;
219
+ /**
220
+ * Sets entity cartesian position.
221
+ * @public
222
+ * @param {Vec3} cartesian - Cartesian position in 3d space.
223
+ */
224
+ setCartesian3v(cartesian: Vec3): void;
225
+ /**
226
+ * Sets entity cartesian position.
227
+ * @public
228
+ * @param {number} x - 3d space X - position.
229
+ * @param {number} y - 3d space Y - position.
230
+ * @param {number} z - 3d space Z - position.
231
+ */
232
+ setCartesian(x?: number, y?: number, z?: number): void;
233
+ /**
234
+ * Sets entity cartesian position without event dispatching.
235
+ * @public
236
+ * @param {Vec3} cartesian - Cartesian position in 3d space.
237
+ * @param {boolean} skipLonLat - skip geodetic calculation.
238
+ */
239
+ _setCartesian3vSilent(cartesian: Vec3, skipLonLat?: boolean): void;
240
+ /**
241
+ * Gets entity geodetic coordinates.
242
+ * @public
243
+ * @returns {LonLat} -
244
+ */
245
+ getLonLat(): LonLat;
246
+ /**
247
+ * Sets geodetic coordinates of the entity point object.
248
+ * @public
249
+ * @param {LonLat} lonlat - WGS84 coordinates.
250
+ */
251
+ setLonLat(lonlat: LonLat): void;
252
+ /**
253
+ * Sets geodetic coordinates of the entity point object.
254
+ * @public
255
+ * @param {number} lon - Longitude.
256
+ * @param {number} lat - Latitude
257
+ * @param {number} [height] - Height
258
+ */
259
+ setLonLat2(lon: number, lat: number, height?: number): void;
260
+ /**
261
+ * Sets entity altitude over the planet.
262
+ * @public
263
+ * @param {number} altitude - Altitude.
264
+ */
265
+ setAltitude(altitude: number): void;
266
+ /**
267
+ * Sets entity altitude over the planet.
268
+ * @public
269
+ * @return {number} Altitude.
270
+ */
271
+ getAltitude(): number;
272
+ /**
273
+ * Returns cartesian position.
274
+ * @public
275
+ * @returns {Vec3} -
276
+ */
277
+ getCartesian(): Vec3;
278
+ /**
279
+ * Sets entity billboard.
280
+ * @public
281
+ * @param {Billboard} billboard - Billboard object.
282
+ * @returns {Billboard} -
283
+ */
284
+ setBillboard(billboard: Billboard): Billboard;
285
+ /**
286
+ * Sets entity label.
287
+ * @public
288
+ * @param {Label} label - Text label.
289
+ * @returns {Label} -
290
+ */
291
+ setLabel(label: Label): Label;
292
+ /**
293
+ * Sets entity ray.
294
+ * @public
295
+ * @param {Ray} ray - Ray object.
296
+ * @returns {Ray} -
297
+ */
298
+ setRay(ray: Ray): Ray;
299
+ /**
300
+ * Sets entity polyline.
301
+ * @public
302
+ * @param {Polyline} polyline - Polyline object.
303
+ * @returns {Polyline} -
304
+ */
305
+ setPolyline(polyline: Polyline): Polyline;
306
+ /**
307
+ * Sets entity pointCloud.
308
+ * @public
309
+ * @param {PointCloud} pointCloud - PointCloud object.
310
+ * @returns {PointCloud} -
311
+ */
312
+ setPointCloud(pointCloud: PointCloud): PointCloud;
313
+ /**
314
+ * Sets entity geometry.
315
+ * @public
316
+ * @param {Geometry} geometry - Geometry object.
317
+ * @returns {Geometry} -
318
+ */
319
+ setGeometry(geometry: Geometry): Geometry;
320
+ /**
321
+ * Sets entity geoObject.
322
+ * @public
323
+ * @param {GeoObject} geoObject - GeoObject.
324
+ * @returns {GeoObject} -
325
+ */
326
+ setGeoObject(geoObject: GeoObject): GeoObject;
327
+ /**
328
+ * Sets entity strip.
329
+ * @public
330
+ * @param {Strip} strip - Strip object.
331
+ * @returns {Strip} -
332
+ */
333
+ setStrip(strip: Strip): Strip;
334
+ get layer(): Vector | null;
335
+ get rendererEvents(): VectorEventsType | EntityCollectionEvents | null;
336
+ /**
337
+ * Append child entity.
338
+ * @public
339
+ * @param {Entity} entity - Child entity.
340
+ */
341
+ appendChild(entity: Entity): void;
342
+ /**
343
+ * Appends entity items(billboard, label etc.) picking color.
344
+ * @public
345
+ */
346
+ setPickingColor(): void;
347
+ /**
348
+ * Return geodetic extent.
349
+ * @public
350
+ * @returns {Extent} -
351
+ */
352
+ getExtent(): Extent;
353
+ }
354
+ export { Entity };
@@ -0,0 +1,363 @@
1
+ import { BillboardHandler } from "./BillboardHandler";
2
+ import { EventsHandler } from "../Events";
3
+ import { Entity } from "./Entity";
4
+ import { Ellipsoid } from "../ellipsoid/Ellipsoid";
5
+ import { EntityCollectionNode } from "../quadTree/EntityCollectionNode";
6
+ import { GeoObjectHandler } from "./GeoObjectHandler";
7
+ import { LabelHandler } from "./LabelHandler";
8
+ import { NumberArray3 } from "../math/Vec3";
9
+ import { PointCloudHandler } from "./PointCloudHandler";
10
+ import { PolylineHandler } from "./PolylineHandler";
11
+ import { RayHandler } from "./RayHandler";
12
+ import { RenderNode } from "../scene/RenderNode";
13
+ import { StripHandler } from "./StripHandler";
14
+ import { Vector } from "../layer/Vector";
15
+ export type EntityCollectionEvents = EventsHandler<EntityCollectionEventList>;
16
+ interface IEntityCollectionParams {
17
+ polygonOffsetUnits?: number;
18
+ visibility?: boolean;
19
+ labelMaxLetters?: number;
20
+ pickingEnabled?: boolean;
21
+ scaleByDistance?: NumberArray3;
22
+ pickingScale?: number;
23
+ opacity?: number;
24
+ entities?: Entity[];
25
+ }
26
+ /**
27
+ * An observable collection of og.Entity instances where each entity has a unique id.
28
+ * Entity collection provide handlers for each type of entity like billboard, label or 3ds object.
29
+ * @constructor
30
+ * @param {Object} [options] - Entity options:
31
+ * @param {Array.<Entity>} [options.entities] - Entities array.
32
+ * @param {boolean} [options.visibility=true] - Entity visibility.
33
+ * @param {Array.<number>} [options.scaleByDistance] - Entity scale by distance parameters. (exactly 3 entries)
34
+ * First index - near distance to the entity, after entity becomes full scale.
35
+ * Second index - far distance to the entity, when entity becomes zero scale.
36
+ * Third index - far distance to the entity, when entity becomes invisible.
37
+ * @param {number} [options.opacity] - Entity global opacity.
38
+ * @param {boolean} [options.pickingEnabled=true] - Entity picking enable.
39
+ * @param {Number} [options.polygonOffsetUnits=0.0] - The multiplier by which an implementation-specific value is multiplied with to create a constant depth offset. The default value is 0.
40
+ * //@fires EntityCollection#entitymove
41
+ * @fires EntityCollection#draw
42
+ * @fires EntityCollection#drawend
43
+ * @fires EntityCollection#add
44
+ * @fires EntityCollection#remove
45
+ * @fires EntityCollection#entityadd
46
+ * @fires EntityCollection#entityremove
47
+ * @fires EntityCollection#visibilitychange
48
+ * @fires EntityCollection#mousemove
49
+ * @fires EntityCollection#mouseenter
50
+ * @fires EntityCollection#mouseleave
51
+ * @fires EntityCollection#lclick
52
+ * @fires EntityCollection#rclick
53
+ * @fires EntityCollection#mclick
54
+ * @fires EntityCollection#ldblclick
55
+ * @fires EntityCollection#rdblclick
56
+ * @fires EntityCollection#mdblclick
57
+ * @fires EntityCollection#lup
58
+ * @fires EntityCollection#rup
59
+ * @fires EntityCollection#mup
60
+ * @fires EntityCollection#ldown
61
+ * @fires EntityCollection#rdown
62
+ * @fires EntityCollection#mdown
63
+ * @fires EntityCollection#lhold
64
+ * @fires EntityCollection#rhold
65
+ * @fires EntityCollection#mhold
66
+ * @fires EntityCollection#mousewheel
67
+ * @fires EntityCollection#touchmove
68
+ * @fires EntityCollection#touchstart
69
+ * @fires EntityCollection#touchend
70
+ * @fires EntityCollection#doubletouch
71
+ * @fires EntityCollection#touchleave
72
+ * @fires EntityCollection#touchenter
73
+ */
74
+ declare class EntityCollection {
75
+ static __counter__: number;
76
+ /**
77
+ * Uniq identifier.
78
+ * @public
79
+ * @readonly
80
+ */
81
+ protected __id: number;
82
+ /**
83
+ * Render node collections array index.
84
+ * @protected
85
+ * @type {number}
86
+ */
87
+ protected _renderNodeIndex: number;
88
+ /**
89
+ * Render node context.
90
+ * @public
91
+ * @type {RenderNode}
92
+ */
93
+ renderNode: RenderNode | null;
94
+ /**
95
+ * Visibility option.
96
+ * @public
97
+ * @type {boolean}
98
+ */
99
+ _visibility: boolean;
100
+ /**
101
+ * Specifies the scale Units for gl.polygonOffset function to calculate depth values, 0.0 is default.
102
+ * @public
103
+ * @type {Number}
104
+ */
105
+ polygonOffsetUnits: number;
106
+ /**
107
+ * Billboards handler
108
+ * @public
109
+ * @type {BillboardHandler}
110
+ */
111
+ billboardHandler: BillboardHandler;
112
+ /**
113
+ * Labels handler
114
+ * @public
115
+ * @type {LabelHandler}
116
+ */
117
+ labelHandler: LabelHandler;
118
+ /**
119
+ * Polyline handler
120
+ * @public
121
+ * @type {PolylineHandler}
122
+ */
123
+ polylineHandler: PolylineHandler;
124
+ /**
125
+ * Ray handler
126
+ * @public
127
+ * @type {RayHandler}
128
+ */
129
+ rayHandler: RayHandler;
130
+ /**
131
+ * PointCloud handler
132
+ * @public
133
+ * @type {PointCloudHandler}
134
+ */
135
+ pointCloudHandler: PointCloudHandler;
136
+ /**
137
+ * Strip handler
138
+ * @public
139
+ * @type {StripHandler}
140
+ */
141
+ stripHandler: StripHandler;
142
+ /**
143
+ * Geo object handler
144
+ * @public
145
+ * @type {GeoObjectHandler}
146
+ */
147
+ geoObjectHandler: GeoObjectHandler;
148
+ /**
149
+ * Entities array.
150
+ * @public
151
+ * @type {Array.<Entity>}
152
+ */
153
+ _entities: Entity[];
154
+ /**
155
+ * First index - near distance to the entity, after entity becomes full scale.
156
+ * Second index - far distance to the entity, when entity becomes zero scale.
157
+ * Third index - far distance to the entity, when entity becomes invisible.
158
+ * @public
159
+ * @type {Array.<number>} - (exactly 3 entries)
160
+ */
161
+ scaleByDistance: NumberArray3;
162
+ pickingScale: number;
163
+ /**
164
+ * Global opacity.
165
+ * @protected
166
+ * @type {number}
167
+ */
168
+ protected _opacity: number;
169
+ /**
170
+ * Opacity state during the animated opacity.
171
+ * @public
172
+ * @type {number}
173
+ */
174
+ _fadingOpacity: number;
175
+ /**
176
+ * Entity collection events handler.
177
+ * @public
178
+ * @type {EntityCollectionEvents}
179
+ */
180
+ events: EntityCollectionEvents;
181
+ rendererEvents: EntityCollectionEvents;
182
+ /**
183
+ * Used in EntityCollectionNode, also could be merged with _quadNode
184
+ */
185
+ _layer?: Vector;
186
+ _quadNode?: EntityCollectionNode;
187
+ constructor(options?: IEntityCollectionParams);
188
+ get id(): number;
189
+ isEqual(ec: EntityCollection): boolean;
190
+ /**
191
+ * Sets collection visibility.
192
+ * @public
193
+ * @param {boolean} visibility - Visibility flag.
194
+ */
195
+ setVisibility(visibility: boolean): void;
196
+ /**
197
+ * Returns collection visibility.
198
+ * @public
199
+ * @returns {boolean} -
200
+ */
201
+ getVisibility(): boolean;
202
+ /**
203
+ * Sets collection opacity.
204
+ * @public
205
+ * @param {number} opacity - Opacity.
206
+ */
207
+ setOpacity(opacity: number): void;
208
+ /**
209
+ * Sets collection picking ability.
210
+ * @public
211
+ * @param {boolean} enable - Picking enable flag.
212
+ */
213
+ setPickingEnabled(enable: boolean): void;
214
+ /**
215
+ * Gets collection opacity.
216
+ * @public
217
+ * @returns {number} -
218
+ */
219
+ getOpacity(): number;
220
+ /**
221
+ * Sets scale by distance parameters.
222
+ * @public
223
+ * @param {number} near - Full scale entity distance.
224
+ * @param {number} far - Zero scale entity distance.
225
+ * @param {number} [farInvisible] - Entity visibility distance.
226
+ */
227
+ setScaleByDistance(near: number, far: number, farInvisible?: number): void;
228
+ appendChildEntity(entity: Entity): void;
229
+ protected _addRecursively(entity: Entity): void;
230
+ /**
231
+ * Adds entity to the collection and returns collection.
232
+ * @public
233
+ * @param {Entity} entity - Entity.
234
+ * @returns {EntityCollection} -
235
+ */
236
+ add(entity: Entity): EntityCollection;
237
+ /**
238
+ * Adds entities array to the collection and returns collection.
239
+ * @public
240
+ * @param {Array.<Entity>} entities - Entities array.
241
+ * @returns {EntityCollection} -
242
+ */
243
+ addEntities(entities: Entity[]): EntityCollection;
244
+ /**
245
+ * Returns true if the entity belongs this collection, otherwise returns false.
246
+ * @public
247
+ * @param {Entity} entity - Entity.
248
+ * @returns {boolean} -
249
+ */
250
+ belongs(entity: Entity): boolean | null;
251
+ protected _removeRecursively(entity: Entity): void;
252
+ /**
253
+ * Removes entity from this collection.
254
+ * @public
255
+ * @param {Entity} entity - Entity to remove.
256
+ */
257
+ removeEntity(entity: Entity): void;
258
+ _removeEntitySilent(entity: Entity): void;
259
+ /**
260
+ * Creates or refresh collected entities picking color.
261
+ * @public
262
+ */
263
+ createPickingColors(): void;
264
+ /**
265
+ * Refresh collected entities indexes from startIndex entities collection array position.
266
+ * @public
267
+ * @param {number} startIndex - Entities collection array index.
268
+ */
269
+ reindexEntitiesArray(startIndex: number): void;
270
+ /**
271
+ * Adds this collection to render node.
272
+ * @public
273
+ * @param {RenderNode} renderNode - Render node.
274
+ * @param {boolean} [isHidden] - Uses in vector layers that render in planet render specific function.
275
+ * @returns {EntityCollection} -
276
+ */
277
+ addTo(renderNode: RenderNode, isHidden?: boolean): this;
278
+ /**
279
+ * This function is called in the RenderNode assign function.
280
+ * @public
281
+ * @param {RenderNode} renderNode
282
+ */
283
+ bindRenderNode(renderNode: RenderNode): void;
284
+ /**
285
+ * Updates coordinates all lonLat entities in collection after collection attached to the planet node.
286
+ * @protected
287
+ * @param {Ellipsoid} ellipsoid - Globe ellipsoid.
288
+ */
289
+ protected _updateGeodeticCoordinates(ellipsoid: Ellipsoid): void;
290
+ /**
291
+ * Updates billboard texture atlas.
292
+ * @public
293
+ */
294
+ updateBillboardsTextureAtlas(): void;
295
+ /**
296
+ * Updates labels font atlas.
297
+ * @public
298
+ */
299
+ updateLabelsFontAtlas(): void;
300
+ /**
301
+ * Removes collection from render node.
302
+ * @public
303
+ */
304
+ remove(): void;
305
+ /**
306
+ * Gets entity array.
307
+ * @public
308
+ * @returns {Array.<Entity>} -
309
+ */
310
+ getEntities(): Entity[];
311
+ /**
312
+ * Safety entities loop.
313
+ * @public
314
+ * @param {function} callback - Entity callback.
315
+ */
316
+ each(callback: Function): void;
317
+ /**
318
+ * Removes all entities from collection and clear handlers.
319
+ * @public
320
+ */
321
+ clear(): void;
322
+ /**
323
+ * Clears entity recursively.
324
+ * @private
325
+ * @param {Entity} entity - Entity to clear.
326
+ */
327
+ protected _clearEntity(entity: Entity): void;
328
+ }
329
+ type EntityCollectionEventList = [
330
+ "draw",
331
+ "drawend",
332
+ "add",
333
+ "remove",
334
+ "entityadd",
335
+ "entityremove",
336
+ "visibilitychange",
337
+ "mousemove",
338
+ "mouseenter",
339
+ "mouseleave",
340
+ "lclick",
341
+ "rclick",
342
+ "mclick",
343
+ "ldblclick",
344
+ "rdblclick",
345
+ "mdblclick",
346
+ "lup",
347
+ "rup",
348
+ "mup",
349
+ "ldown",
350
+ "rdown",
351
+ "mdown",
352
+ "lhold",
353
+ "rhold",
354
+ "mhold",
355
+ "mousewheel",
356
+ "touchmove",
357
+ "touchstart",
358
+ "touchend",
359
+ "doubletouch",
360
+ "touchleave",
361
+ "touchenter"
362
+ ];
363
+ export { EntityCollection };