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