@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
|
@@ -7,6 +7,7 @@ import { Mat4 } from "../math/Mat4";
|
|
|
7
7
|
import { Quat } from "../math/Quat";
|
|
8
8
|
import { Ray } from "../math/Ray";
|
|
9
9
|
import { Vec3 } from "../math/Vec3";
|
|
10
|
+
import { RADIANS } from "../math";
|
|
10
11
|
/**
|
|
11
12
|
* Planet camera.
|
|
12
13
|
* @class
|
|
@@ -167,7 +168,7 @@ class PlanetCamera extends Camera {
|
|
|
167
168
|
let up = right.cross(direction).normalize();
|
|
168
169
|
let _h = Math.max(Math.abs(up.dot(northWest)), Math.abs(up.dot(southEast)), Math.abs(up.dot(northEast)), Math.abs(up.dot(southWest)));
|
|
169
170
|
let _w = Math.max(Math.abs(right.dot(northWest)), Math.abs(right.dot(southEast)), Math.abs(right.dot(northEast)), Math.abs(right.dot(southWest)));
|
|
170
|
-
let tanPhi = Math.tan(this._viewAngle *
|
|
171
|
+
let tanPhi = Math.tan(this._viewAngle * RADIANS * 0.5);
|
|
171
172
|
let tanTheta = this._aspect * tanPhi;
|
|
172
173
|
let d = Math.max(_w / tanTheta, _h / tanPhi);
|
|
173
174
|
center.normalize();
|
|
@@ -329,6 +330,7 @@ class PlanetCamera extends Camera {
|
|
|
329
330
|
this._framesArr = [];
|
|
330
331
|
this._framesCounter = -1;
|
|
331
332
|
this._frameCallback = null;
|
|
333
|
+
this.planet.stopDragging();
|
|
332
334
|
}
|
|
333
335
|
/**
|
|
334
336
|
* Returns camera is flying.
|
|
@@ -345,7 +347,7 @@ class PlanetCamera extends Camera {
|
|
|
345
347
|
* @param {boolean} [spin] - If its true rotates around globe spin.
|
|
346
348
|
*/
|
|
347
349
|
rotateLeft(angle, spin) {
|
|
348
|
-
this.rotateHorizontal(angle
|
|
350
|
+
this.rotateHorizontal(angle, spin !== true, Vec3.ZERO);
|
|
349
351
|
this.update();
|
|
350
352
|
}
|
|
351
353
|
/**
|
|
@@ -355,7 +357,7 @@ class PlanetCamera extends Camera {
|
|
|
355
357
|
* @param {boolean} [spin] - If its true rotates around globe spin.
|
|
356
358
|
*/
|
|
357
359
|
rotateRight(angle, spin) {
|
|
358
|
-
this.rotateHorizontal(-angle
|
|
360
|
+
this.rotateHorizontal(-angle, spin !== true, Vec3.ZERO);
|
|
359
361
|
this.update();
|
|
360
362
|
}
|
|
361
363
|
/**
|
|
@@ -364,7 +366,7 @@ class PlanetCamera extends Camera {
|
|
|
364
366
|
* @param {number} angle - Rotation angle.
|
|
365
367
|
*/
|
|
366
368
|
rotateUp(angle) {
|
|
367
|
-
this.rotateVertical(angle
|
|
369
|
+
this.rotateVertical(angle, Vec3.ZERO);
|
|
368
370
|
this.update();
|
|
369
371
|
}
|
|
370
372
|
/**
|
|
@@ -373,7 +375,7 @@ class PlanetCamera extends Camera {
|
|
|
373
375
|
* @param {number} angle - Rotation angle.
|
|
374
376
|
*/
|
|
375
377
|
rotateDown(angle) {
|
|
376
|
-
this.rotateVertical(-angle
|
|
378
|
+
this.rotateVertical(-angle, Vec3.ZERO);
|
|
377
379
|
this.update();
|
|
378
380
|
}
|
|
379
381
|
rotateVertical(angle, center, minSlope = 0) {
|
|
@@ -398,6 +400,7 @@ class PlanetCamera extends Camera {
|
|
|
398
400
|
this._u = u;
|
|
399
401
|
this._r = r;
|
|
400
402
|
this._b = b;
|
|
403
|
+
this._f.set(-b.x, -b.y, -b.z);
|
|
401
404
|
}
|
|
402
405
|
}
|
|
403
406
|
else {
|
|
@@ -405,6 +408,7 @@ class PlanetCamera extends Camera {
|
|
|
405
408
|
this._u = u;
|
|
406
409
|
this._r = r;
|
|
407
410
|
this._b = b;
|
|
411
|
+
this._f.set(-b.x, -b.y, -b.z);
|
|
408
412
|
}
|
|
409
413
|
}
|
|
410
414
|
/**
|
|
@@ -421,6 +425,7 @@ class PlanetCamera extends Camera {
|
|
|
421
425
|
this._r = this._framesArr[c].u;
|
|
422
426
|
this._u = this._framesArr[c].v;
|
|
423
427
|
this._b = this._framesArr[c].n;
|
|
428
|
+
this._f.set(-this._b.x, -this._b.y, -this._b.z);
|
|
424
429
|
if (this._frameCallback) {
|
|
425
430
|
this._frameCallback();
|
|
426
431
|
}
|
|
@@ -449,6 +454,9 @@ class PlanetCamera extends Camera {
|
|
|
449
454
|
let R = this.planet.ellipsoid.equatorialSize;
|
|
450
455
|
return R * Math.acos(R / (R + this._lonLat.height + d));
|
|
451
456
|
}
|
|
457
|
+
/**
|
|
458
|
+
* should be yje same as getYaw
|
|
459
|
+
*/
|
|
452
460
|
getHeading() {
|
|
453
461
|
let u = this.eye.getNormal();
|
|
454
462
|
let f = Vec3.proj_b_to_plane(this.slope >= 0.97 ? this.getUp() : this.getForward(), u).normalize(), n = Vec3.proj_b_to_plane(Vec3.NORTH, u).normalize();
|
|
@@ -462,5 +470,44 @@ class PlanetCamera extends Camera {
|
|
|
462
470
|
let e = this.eye.length();
|
|
463
471
|
return this.eye.distance(poi) < Math.sqrt(e * e - this.planet.ellipsoid.equatorialSizeSqr);
|
|
464
472
|
}
|
|
473
|
+
getPitch() {
|
|
474
|
+
let qFrame = this.planet.getFrameRotation(this.eye);
|
|
475
|
+
return qFrame.conjugate().inverse().mul(this.getRotation()).getPitch();
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* should be the same as getHeading
|
|
479
|
+
*/
|
|
480
|
+
getYaw() {
|
|
481
|
+
let qFrame = this.planet.getFrameRotation(this.eye);
|
|
482
|
+
return qFrame.conjugate().inverse().mul(this.getRotation()).getYaw();
|
|
483
|
+
}
|
|
484
|
+
getRoll() {
|
|
485
|
+
let qFrame = this.planet.getFrameRotation(this.eye);
|
|
486
|
+
return qFrame.conjugate().inverse().mul(this.getRotation()).getRoll();
|
|
487
|
+
}
|
|
488
|
+
setPitch(a) {
|
|
489
|
+
let qFrame = this.planet.getFrameRotation(this.eye);
|
|
490
|
+
let qRot = new Quat();
|
|
491
|
+
qRot.setPitchYawRoll(a, this.getYaw(), this.getRoll(), qFrame);
|
|
492
|
+
this.setRotation(qRot);
|
|
493
|
+
}
|
|
494
|
+
setYaw(a) {
|
|
495
|
+
let qFrame = this.planet.getFrameRotation(this.eye);
|
|
496
|
+
let qRot = new Quat();
|
|
497
|
+
qRot.setPitchYawRoll(this.getYaw(), a, this.getRoll(), qFrame);
|
|
498
|
+
this.setRotation(qRot);
|
|
499
|
+
}
|
|
500
|
+
setRoll(a) {
|
|
501
|
+
let qFrame = this.planet.getFrameRotation(this.eye);
|
|
502
|
+
let qRot = new Quat();
|
|
503
|
+
qRot.setPitchYawRoll(this.getPitch(), this.getYaw(), a, qFrame);
|
|
504
|
+
this.setRotation(qRot);
|
|
505
|
+
}
|
|
506
|
+
setPitchYawRoll(pitch, yaw, roll) {
|
|
507
|
+
let qFrame = this.planet.getFrameRotation(this.eye);
|
|
508
|
+
let qRot = new Quat();
|
|
509
|
+
qRot.setPitchYawRoll(pitch, yaw, roll, qFrame).conjugate();
|
|
510
|
+
this.setRotation(qRot);
|
|
511
|
+
}
|
|
465
512
|
}
|
|
466
513
|
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 {
|
|
@@ -139,7 +139,7 @@ export class CameraLock extends Control {
|
|
|
139
139
|
_deactivateNav() {
|
|
140
140
|
if (this.renderer && this.renderer.controls.mouseNavigation) {
|
|
141
141
|
this.renderer.controls.mouseNavigation.deactivate();
|
|
142
|
-
this.renderer.controls.mouseNavigation.
|
|
142
|
+
this.renderer.controls.mouseNavigation.stop();
|
|
143
143
|
}
|
|
144
144
|
if (this.renderer && this.renderer.controls.simpleNavigation) {
|
|
145
145
|
this.renderer.controls.simpleNavigation.deactivate();
|
|
@@ -2,6 +2,7 @@ import { Control } from "./Control";
|
|
|
2
2
|
import { Dialog } from "../ui/Dialog";
|
|
3
3
|
import { ToggleButton } from "../ui/ToggleButton";
|
|
4
4
|
import { CanvasTiles } from "../layer/CanvasTiles";
|
|
5
|
+
import { DEGREES } from "../math";
|
|
5
6
|
const ICON_LOCK_BUTTON_SVG = `<?xml version="1.0" encoding="utf-8"?>
|
|
6
7
|
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
7
8
|
<svg fill="#000000" width="800px" height="800px" viewBox="-7.5 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -195,16 +196,6 @@ export class DebugInfo extends Control {
|
|
|
195
196
|
return "";
|
|
196
197
|
}
|
|
197
198
|
},
|
|
198
|
-
{
|
|
199
|
-
label: "height/alt, m",
|
|
200
|
-
frame: () => `<div style="width:190px">${(p.camera._lonLat.height).toFixed(2) +
|
|
201
|
-
" / " +
|
|
202
|
-
(p.camera.getAltitude()).toFixed(2)}</div>`
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
label: "cam.slope",
|
|
206
|
-
frame: () => p.camera.slope.toFixed(3)
|
|
207
|
-
},
|
|
208
199
|
{
|
|
209
200
|
label: "lodSize",
|
|
210
201
|
frame: () => Math.round(p.lodSize)
|
|
@@ -220,6 +211,35 @@ export class DebugInfo extends Control {
|
|
|
220
211
|
{
|
|
221
212
|
label: "-------------------------"
|
|
222
213
|
},
|
|
214
|
+
{
|
|
215
|
+
label: "Pitch, deg",
|
|
216
|
+
frame: () => (p.camera.getPitch() * DEGREES).toFixed(2)
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
label: "Yaw, deg",
|
|
220
|
+
frame: () => (p.camera.getYaw() * DEGREES).toFixed(2)
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
label: "Roll, deg",
|
|
224
|
+
frame: () => (p.camera.getRoll() * DEGREES).toFixed(2)
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
label: "Lon, Lat",
|
|
228
|
+
frame: () => `<div style="width:190px">${(p.camera._lonLat.lon).toFixed(7)}, ${(p.camera._lonLat.lon).toFixed(7)}</div>`
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
label: "height/alt, m",
|
|
232
|
+
frame: () => `<div style="width:190px">${(p.camera._lonLat.height).toFixed(2) +
|
|
233
|
+
" / " +
|
|
234
|
+
(p.camera.getAltitude()).toFixed(2)}</div>`
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
label: "cam.slope",
|
|
238
|
+
frame: () => p.camera.slope.toFixed(3)
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
label: "-------------------------"
|
|
242
|
+
},
|
|
223
243
|
{
|
|
224
244
|
label: "_renderCompleted / renderCompletedActivated",
|
|
225
245
|
frame: () => `${p._renderCompleted} / ${p._renderCompletedActivated}`
|
|
@@ -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 {
|
|
@@ -71,7 +71,7 @@ export class KeyboardNavigation extends Control {
|
|
|
71
71
|
onCameraLookUp() {
|
|
72
72
|
let cam = this.planet.camera;
|
|
73
73
|
if (this.renderer.events.isKeyPressed(input.KEY_SHIFT)) {
|
|
74
|
-
cam.
|
|
74
|
+
cam.setPitch(15 / this.renderer.handler.deltaTime);
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
77
77
|
cam.rotateVertical((cam.getAltitude() / 3000000) * math.RADIANS, Vec3.ZERO);
|
|
@@ -80,7 +80,7 @@ export class KeyboardNavigation extends Control {
|
|
|
80
80
|
onCameraLookDown() {
|
|
81
81
|
let cam = this.planet.camera;
|
|
82
82
|
if (this.renderer.events.isKeyPressed(input.KEY_SHIFT)) {
|
|
83
|
-
cam.
|
|
83
|
+
cam.setPitch(-15 / this.renderer.handler.deltaTime);
|
|
84
84
|
}
|
|
85
85
|
else {
|
|
86
86
|
cam.rotateVertical((-cam.getAltitude() / 3000000) * math.RADIANS, Vec3.ZERO);
|
|
@@ -89,7 +89,7 @@ export class KeyboardNavigation extends Control {
|
|
|
89
89
|
onCameraLookLeft() {
|
|
90
90
|
let cam = this.planet.camera;
|
|
91
91
|
if (this.renderer.events.isKeyPressed(input.KEY_SHIFT)) {
|
|
92
|
-
cam.
|
|
92
|
+
cam.setRoll(15 / this.renderer.handler.deltaTime);
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
95
95
|
cam.rotateHorizontal((cam.getAltitude() / 3000000) * math.RADIANS);
|
|
@@ -98,7 +98,7 @@ export class KeyboardNavigation extends Control {
|
|
|
98
98
|
onCameraLookRight() {
|
|
99
99
|
let cam = this.planet.camera;
|
|
100
100
|
if (this.renderer.events.isKeyPressed(input.KEY_SHIFT)) {
|
|
101
|
-
cam.
|
|
101
|
+
cam.setRoll(-15 / this.renderer.handler.deltaTime);
|
|
102
102
|
}
|
|
103
103
|
else {
|
|
104
104
|
cam.rotateHorizontal((-cam.getAltitude() / 3000000) * math.RADIANS);
|
|
@@ -107,7 +107,7 @@ export class KeyboardNavigation extends Control {
|
|
|
107
107
|
onCameraTurnLeft() {
|
|
108
108
|
let cam = this.planet.camera;
|
|
109
109
|
if (this.renderer.events.isKeyPressed(input.KEY_SHIFT)) {
|
|
110
|
-
cam.
|
|
110
|
+
cam.setYaw(15 / this.renderer.handler.deltaTime);
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
113
|
cam.rotateHorizontal((cam.getAltitude() / 3000000) * math.RADIANS);
|
|
@@ -116,7 +116,7 @@ export class KeyboardNavigation extends Control {
|
|
|
116
116
|
onCameraTurnRight() {
|
|
117
117
|
let cam = this.planet.camera;
|
|
118
118
|
if (this.renderer.events.isKeyPressed(input.KEY_SHIFT)) {
|
|
119
|
-
cam.
|
|
119
|
+
cam.setYaw(-15 / this.renderer.handler.deltaTime);
|
|
120
120
|
}
|
|
121
121
|
else {
|
|
122
122
|
cam.rotateHorizontal((-cam.getAltitude() / 3000000) * math.RADIANS, false, Vec3.ZERO);
|
|
@@ -135,9 +135,9 @@ export class KeyboardNavigation extends Control {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
onCameraRollLeft() {
|
|
138
|
-
this.planet.camera.
|
|
138
|
+
this.planet.camera.setRoll(-15 / this.renderer.handler.deltaTime);
|
|
139
139
|
}
|
|
140
140
|
onCameraRollRight() {
|
|
141
|
-
this.planet.camera.
|
|
141
|
+
this.planet.camera.setRoll(15 / this.renderer.handler.deltaTime);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -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 {};
|