@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,13 +1,14 @@
|
|
|
1
1
|
import { Entity } from "./Entity";
|
|
2
2
|
import { Extent } from "../Extent";
|
|
3
3
|
import { LonLat } from "../LonLat";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { Vec3 } from "../math/Vec3";
|
|
5
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
6
|
+
import type { NumberArray2 } from "../math/Vec2";
|
|
7
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
7
8
|
import { PolylineHandler } from "./PolylineHandler";
|
|
8
9
|
import { RenderNode } from "../scene/RenderNode";
|
|
9
|
-
import { WebGLBufferExt } from "../webgl/Handler";
|
|
10
|
-
import { TypedArray } from "../utils/shared";
|
|
10
|
+
import type { WebGLBufferExt } from "../webgl/Handler";
|
|
11
|
+
import type { TypedArray } from "../utils/shared";
|
|
11
12
|
import { Ellipsoid } from "../ellipsoid/Ellipsoid";
|
|
12
13
|
export type Geodetic = LonLat | NumberArray2 | NumberArray3;
|
|
13
14
|
export type Cartesian = Vec3 | NumberArray3;
|
|
@@ -62,7 +63,7 @@ declare class Polyline {
|
|
|
62
63
|
/**
|
|
63
64
|
* Polyline RGBA color.
|
|
64
65
|
* @protected
|
|
65
|
-
* @type {Float32Array}
|
|
66
|
+
* @type {Float32Array}
|
|
66
67
|
*/
|
|
67
68
|
protected _defaultColor: Float32Array | NumberArray4;
|
|
68
69
|
/**
|
|
@@ -297,7 +298,8 @@ declare class Polyline {
|
|
|
297
298
|
getPathLonLat(): SegmentPathLonLatExt[];
|
|
298
299
|
getPathColors(): NumberArray4[][];
|
|
299
300
|
/**
|
|
300
|
-
*
|
|
301
|
+
* Sets polyline colors.
|
|
302
|
+
* @todo - Test the function.
|
|
301
303
|
* @param {NumberArray4[][]} pathColors
|
|
302
304
|
*/
|
|
303
305
|
setPathColors(pathColors: SegmentPathColor[]): void;
|
package/lib/js/entity/Ray.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Vec3 } from "../math/Vec3";
|
|
2
|
+
import { Vec4 } from "../math/Vec4";
|
|
3
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
4
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
3
5
|
import { Entity } from "./Entity";
|
|
4
6
|
import { RayHandler } from "./RayHandler";
|
|
5
7
|
export interface IRayParams {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TypedArray } from "../utils/shared";
|
|
1
|
+
import type { TypedArray } from "../utils/shared";
|
|
2
2
|
import { EntityCollection } from "./EntityCollection";
|
|
3
3
|
import { Ray } from "./Ray";
|
|
4
4
|
import { Renderer } from "../renderer/Renderer";
|
|
5
5
|
import { Vec3 } from "../math/Vec3";
|
|
6
6
|
import { Vec4 } from "../math/Vec4";
|
|
7
|
-
import { WebGLBufferExt } from "../webgl/Handler";
|
|
7
|
+
import type { WebGLBufferExt } from "../webgl/Handler";
|
|
8
8
|
declare class RayHandler {
|
|
9
9
|
static __counter__: number;
|
|
10
10
|
protected __id: number;
|
package/lib/js/entity/Strip.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Entity } from "./Entity";
|
|
2
2
|
import { RenderNode } from "../scene/RenderNode";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Vec3 } from "../math/Vec3";
|
|
4
|
+
import { Vec4 } from "../math/Vec4";
|
|
5
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
6
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
5
7
|
import { StripHandler } from "./StripHandler";
|
|
6
|
-
import { WebGLBufferExt } from "../webgl/Handler";
|
|
8
|
+
import type { WebGLBufferExt } from "../webgl/Handler";
|
|
7
9
|
type TPoiExt = Vec3 | NumberArray3;
|
|
8
10
|
type TStripExt = [TPoiExt, TPoiExt];
|
|
9
11
|
type TPoi = Vec3;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
function _checkTouchPad(e) {
|
|
2
|
+
//@ts-ignore
|
|
3
|
+
if (e.deltaMode !== 0) {
|
|
4
|
+
return false;
|
|
5
|
+
}
|
|
6
|
+
//@ts-ignore
|
|
7
|
+
return Math.abs(e.deltaY) < 50;
|
|
8
|
+
//@ts-ignore
|
|
9
|
+
//return e.wheelDeltaY ? e.wheelDeltaY === -3 * e.deltaY : e.deltaMode === 0
|
|
10
|
+
}
|
|
1
11
|
class MouseHandler {
|
|
2
12
|
constructor(htmlObject) {
|
|
3
13
|
this._htmlObject = htmlObject;
|
|
@@ -13,11 +23,12 @@ class MouseHandler {
|
|
|
13
23
|
// callback.call(sender, event);
|
|
14
24
|
// event.preventDefault();
|
|
15
25
|
// }, false);
|
|
16
|
-
this._htmlObject.addEventListener('wheel',
|
|
26
|
+
this._htmlObject.addEventListener('wheel', (event) => {
|
|
17
27
|
let delta = event.deltaY || event.detail || event.wheelDelta || 0;
|
|
18
28
|
if (event.wheelDelta == undefined) {
|
|
19
29
|
event.wheelDelta = delta * (-120);
|
|
20
30
|
}
|
|
31
|
+
event.isTouchPad = _checkTouchPad(event);
|
|
21
32
|
callback.call(sender, event);
|
|
22
33
|
event.preventDefault();
|
|
23
34
|
}, false);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Extent } from "../Extent";
|
|
2
|
-
import { EventCallback, EventsHandler } from "../Events";
|
|
3
|
-
import { Layer
|
|
2
|
+
import type { EventCallback, EventsHandler } from "../Events";
|
|
3
|
+
import { Layer } from "./Layer";
|
|
4
|
+
import type { LayerEventsList, ILayerParams } from "./Layer";
|
|
4
5
|
import { LonLat } from "../LonLat";
|
|
5
6
|
import { Material } from "./Material";
|
|
6
|
-
import { NumberArray2 } from "../math/Vec2";
|
|
7
|
-
import { NumberArray4 } from "../math/Vec4";
|
|
7
|
+
import type { NumberArray2 } from "../math/Vec2";
|
|
8
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
8
9
|
import { Planet } from "../scene/Planet";
|
|
9
|
-
import { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
|
|
10
|
+
import type { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
|
|
10
11
|
export interface IBaseGeoImageParams extends ILayerParams {
|
|
11
12
|
fullExtent?: boolean;
|
|
12
13
|
corners?: NumberArray2[];
|
package/lib/js/layer/Bing.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { EventCallback, EventsHandler } from "../Events";
|
|
2
|
-
import {
|
|
1
|
+
import type { EventCallback, EventsHandler } from "../Events";
|
|
2
|
+
import { Layer } from "./Layer";
|
|
3
|
+
import type { ILayerParams, LayerEventsList } from "./Layer";
|
|
3
4
|
import { Material } from "../layer/Material";
|
|
4
|
-
import { NumberArray4 } from "../math/Vec4";
|
|
5
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
5
6
|
import { Planet } from "../scene/Planet";
|
|
6
7
|
type ApplyImageFunc = (material: HTMLCanvasElement | ImageBitmap | HTMLImageElement) => void;
|
|
7
8
|
type DrawTileCallback = (material: Material, applyImage: ApplyImageFunc) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseGeoImage
|
|
1
|
+
import { BaseGeoImage } from "./BaseGeoImage";
|
|
2
|
+
import type { IBaseGeoImageParams } from "./BaseGeoImage";
|
|
2
3
|
import { Material } from "./Material";
|
|
3
4
|
export interface IGeoImageParams extends IBaseGeoImageParams {
|
|
4
5
|
image?: HTMLImageElement | HTMLCanvasElement | ImageBitmap;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BaseGeoImage
|
|
1
|
+
import { BaseGeoImage } from './BaseGeoImage';
|
|
2
|
+
import type { IBaseGeoImageParams } from './BaseGeoImage';
|
|
2
3
|
import { Material } from "../layer/Material";
|
|
3
|
-
import { WebGLTextureExt } from "../webgl/Handler";
|
|
4
|
+
import type { WebGLTextureExt } from "../webgl/Handler";
|
|
4
5
|
interface IGeoTexture2dParams extends IBaseGeoImageParams {
|
|
5
6
|
texture?: WebGLTextureExt;
|
|
6
7
|
frameWidth?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseGeoImage
|
|
1
|
+
import { BaseGeoImage } from "./BaseGeoImage";
|
|
2
|
+
import type { IBaseGeoImageParams } from "./BaseGeoImage";
|
|
2
3
|
import { Material } from "./Material";
|
|
3
4
|
export interface IGeoVideoParams extends IBaseGeoImageParams {
|
|
4
5
|
videoElement?: HTMLVideoElement;
|
package/lib/js/layer/KML.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Billboard
|
|
1
|
+
import { Billboard } from "../entity/Billboard";
|
|
2
|
+
import type { IBillboardParams } from "../entity/Billboard";
|
|
2
3
|
import { Entity } from "../entity/Entity";
|
|
3
4
|
import { Extent } from "../Extent";
|
|
4
|
-
import { Vector
|
|
5
|
+
import { Vector } from "./Vector";
|
|
6
|
+
import type { IVectorParams } from "./Vector";
|
|
5
7
|
interface IKMLParams extends IVectorParams {
|
|
6
8
|
color?: string;
|
|
7
9
|
billboard?: IBillboardParams;
|
|
@@ -22,7 +24,7 @@ export declare class KML extends Vector {
|
|
|
22
24
|
protected _AGBRtoRGBA(agbr: string): string | undefined;
|
|
23
25
|
/**
|
|
24
26
|
* @protected
|
|
25
|
-
returns array of longitude, latitude, altitude (altitude optional)
|
|
27
|
+
* @returns array of longitude, latitude, altitude (altitude optional)
|
|
26
28
|
*/
|
|
27
29
|
protected _parseKMLcoordinates(coords: Element): number[][];
|
|
28
30
|
protected _kmlPlacemarkToEntity(placemark: Element | undefined | null, extent: Extent): Entity | undefined;
|
package/lib/js/layer/KML.js
CHANGED
|
@@ -42,7 +42,7 @@ export class KML extends Vector {
|
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* @protected
|
|
45
|
-
returns array of longitude, latitude, altitude (altitude optional)
|
|
45
|
+
* @returns array of longitude, latitude, altitude (altitude optional)
|
|
46
46
|
*/
|
|
47
47
|
_parseKMLcoordinates(coords) {
|
|
48
48
|
const coordinates = coords.innerHTML.trim()
|
package/lib/js/layer/Layer.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { EventsHandler } from "../Events";
|
|
1
|
+
import type { EventsHandler } from "../Events";
|
|
2
2
|
import { Extent } from "../Extent";
|
|
3
3
|
import { Node } from "../quadTree/Node";
|
|
4
4
|
import { Material } from "./Material";
|
|
5
5
|
import { Planet } from "../scene/Planet";
|
|
6
6
|
import { Segment } from "../segment/Segment";
|
|
7
|
-
import { Vec3
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { Vec3 } from "../math/Vec3";
|
|
8
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
9
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
10
|
+
import type { IDefaultTextureParams } from "../webgl/Handler";
|
|
10
11
|
export interface ILayerParams {
|
|
11
12
|
properties?: any;
|
|
12
13
|
labelMaxLetters?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Layer } from "./Layer";
|
|
2
2
|
import { Node } from "../quadTree/Node";
|
|
3
3
|
import { Segment } from "../segment/Segment";
|
|
4
|
-
import { WebGLTextureExt } from "../webgl/Handler";
|
|
5
|
-
import { NumberArray4 } from "../math/Vec4";
|
|
4
|
+
import type { WebGLTextureExt } from "../webgl/Handler";
|
|
5
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
6
6
|
/**
|
|
7
7
|
* @class Material
|
|
8
8
|
* @param {Segment} segment
|
package/lib/js/layer/Vector.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { Entity
|
|
1
|
+
import { Entity } from "../entity/Entity";
|
|
2
|
+
import type { IEntityParams } from "../entity/Entity";
|
|
2
3
|
import { EntityCollection } from "../entity/EntityCollection";
|
|
3
4
|
import { EntityCollectionsTreeStrategy } from "../quadTree/EntityCollectionsTreeStrategy";
|
|
4
|
-
import { EventsHandler } from "../Events";
|
|
5
|
+
import type { EventsHandler } from "../Events";
|
|
5
6
|
import { GeometryHandler } from "../entity/GeometryHandler";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
7
|
+
import { Layer } from "./Layer";
|
|
8
|
+
import type { ILayerParams, LayerEventsList } from "./Layer";
|
|
9
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
8
10
|
import { Planet } from "../scene/Planet";
|
|
9
11
|
import { Material } from "./Material";
|
|
10
|
-
import { NumberArray4 } from "../math/Vec4";
|
|
12
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
11
13
|
export interface IVectorParams extends ILayerParams {
|
|
12
14
|
entities?: Entity[] | IEntityParams[];
|
|
13
15
|
polygonOffsetUnits?: number;
|
|
@@ -73,7 +75,7 @@ declare class Vector extends Layer {
|
|
|
73
75
|
* Second index - far distance to the entity, when entity becomes zero scale.
|
|
74
76
|
* Third index - far distance to the entity, when entity becomes invisible.
|
|
75
77
|
* @public
|
|
76
|
-
* @type {NumberArray3}
|
|
78
|
+
* @type {NumberArray3}
|
|
77
79
|
*/
|
|
78
80
|
scaleByDistance: NumberArray3;
|
|
79
81
|
pickingScale: Float32Array;
|
|
@@ -197,7 +199,7 @@ declare class Vector extends Layer {
|
|
|
197
199
|
/**
|
|
198
200
|
* Safety entities loop.
|
|
199
201
|
* @public
|
|
200
|
-
* @param {(
|
|
202
|
+
* @param {function(Entity, number): void} callback - Entity callback.
|
|
201
203
|
*/
|
|
202
204
|
each(callback: (entity: Entity, index?: number) => void): void;
|
|
203
205
|
/**
|
package/lib/js/layer/Vector.js
CHANGED
|
@@ -380,7 +380,7 @@ class Vector extends Layer {
|
|
|
380
380
|
/**
|
|
381
381
|
* Safety entities loop.
|
|
382
382
|
* @public
|
|
383
|
-
* @param {(
|
|
383
|
+
* @param {function(Entity, number): void} callback - Entity callback.
|
|
384
384
|
*/
|
|
385
385
|
each(callback) {
|
|
386
386
|
let e = this._entities;
|
package/lib/js/layer/WMS.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Extent } from "../Extent";
|
|
2
2
|
import { Segment } from "../segment/Segment";
|
|
3
|
-
import { XYZ
|
|
3
|
+
import { XYZ } from "./XYZ";
|
|
4
|
+
import type { IXYZParams } from "./XYZ";
|
|
4
5
|
interface IWMSParams extends IXYZParams {
|
|
5
6
|
extra?: any;
|
|
6
7
|
layers: string;
|
package/lib/js/layer/XYZ.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Layer
|
|
1
|
+
import { Layer } from "./Layer";
|
|
2
|
+
import type { ILayerParams, LayerEventsList } from "./Layer";
|
|
2
3
|
import { Segment } from "../segment/Segment";
|
|
3
|
-
import { EventsHandler } from "../Events";
|
|
4
|
+
import type { EventsHandler } from "../Events";
|
|
4
5
|
import { Material } from "./Material";
|
|
5
|
-
import { NumberArray4 } from "../math/Vec4";
|
|
6
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
6
7
|
export interface IXYZParams extends ILayerParams {
|
|
7
8
|
url?: string;
|
|
8
9
|
subdomains?: string[];
|
package/lib/js/math/Mat3.d.ts
CHANGED
package/lib/js/math/Mat3.js
CHANGED
package/lib/js/math/Mat4.d.ts
CHANGED
|
@@ -37,6 +37,15 @@ export declare class Mat4 {
|
|
|
37
37
|
* @returns {Mat4} -
|
|
38
38
|
*/
|
|
39
39
|
static identity(): Mat4;
|
|
40
|
+
/**
|
|
41
|
+
* Get rotation matrix around the point
|
|
42
|
+
* @public
|
|
43
|
+
* @param {number} angle - Rotation angle in radians
|
|
44
|
+
* @param {Vec3} [center] - Point that the camera rotates around
|
|
45
|
+
* @param {Vec3} [up] - Camera up vector
|
|
46
|
+
*/
|
|
47
|
+
static getRotationAroundPoint(angle: number, center?: Vec3, up?: Vec3): Mat4;
|
|
48
|
+
static getRotation(angle: number, up?: Vec3): Mat4;
|
|
40
49
|
/**
|
|
41
50
|
* Sets column-major order array matrix.
|
|
42
51
|
* @public
|
|
@@ -62,7 +71,7 @@ export declare class Mat4 {
|
|
|
62
71
|
* @public
|
|
63
72
|
* @returns {Mat3} -
|
|
64
73
|
*/
|
|
65
|
-
|
|
74
|
+
getMat3(): Mat3;
|
|
66
75
|
/**
|
|
67
76
|
* Multiply to 3d vector.
|
|
68
77
|
* @public
|
package/lib/js/math/Mat4.js
CHANGED
|
@@ -45,6 +45,22 @@ export class Mat4 {
|
|
|
45
45
|
res._m[15] = 1;
|
|
46
46
|
return res;
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Get rotation matrix around the point
|
|
50
|
+
* @public
|
|
51
|
+
* @param {number} angle - Rotation angle in radians
|
|
52
|
+
* @param {Vec3} [center] - Point that the camera rotates around
|
|
53
|
+
* @param {Vec3} [up] - Camera up vector
|
|
54
|
+
*/
|
|
55
|
+
static getRotationAroundPoint(angle, center = Vec3.ZERO, up = Vec3.UP) {
|
|
56
|
+
let rot = Mat4.getRotation(angle, up);
|
|
57
|
+
let tr = new Mat4().setIdentity().translate(center);
|
|
58
|
+
let ntr = new Mat4().setIdentity().translate(center.negateTo());
|
|
59
|
+
return tr.mul(rot).mul(ntr);
|
|
60
|
+
}
|
|
61
|
+
static getRotation(angle, up = Vec3.UP) {
|
|
62
|
+
return new Mat4().setRotation(up, angle);
|
|
63
|
+
}
|
|
48
64
|
/**
|
|
49
65
|
* Sets column-major order array matrix.
|
|
50
66
|
* @public
|
|
@@ -94,7 +110,7 @@ export class Mat4 {
|
|
|
94
110
|
* @public
|
|
95
111
|
* @returns {Mat3} -
|
|
96
112
|
*/
|
|
97
|
-
|
|
113
|
+
getMat3() {
|
|
98
114
|
let res = new Mat3();
|
|
99
115
|
let a = this._m, b = res._m;
|
|
100
116
|
b[0] = a[0];
|
package/lib/js/math/Plane.d.ts
CHANGED
|
@@ -9,7 +9,9 @@ import { Line3 } from "./Line3";
|
|
|
9
9
|
declare class Plane {
|
|
10
10
|
p: Vec3;
|
|
11
11
|
n: Vec3;
|
|
12
|
-
constructor(p
|
|
12
|
+
constructor(p?: Vec3, n?: Vec3);
|
|
13
|
+
setByPoints(v0: Vec3, v1: Vec3, v2: Vec3): Plane;
|
|
14
|
+
static fromPoints(v0: Vec3, v1: Vec3, v2: Vec3): Plane;
|
|
13
15
|
set(p: Vec3, n: Vec3): void;
|
|
14
16
|
getNormal(): Vec3;
|
|
15
17
|
distance(p: Vec3): number;
|
package/lib/js/math/Plane.js
CHANGED
|
@@ -12,7 +12,17 @@ const INTERSECT = 2;
|
|
|
12
12
|
class Plane {
|
|
13
13
|
constructor(p, n) {
|
|
14
14
|
this.p = p ? p.clone() : new Vec3();
|
|
15
|
-
this.n = n ? n.clone() : this.p.
|
|
15
|
+
this.n = n ? n.clone() : (this.p.isZero() ? Vec3.UP : this.p.getNormal());
|
|
16
|
+
}
|
|
17
|
+
setByPoints(v0, v1, v2) {
|
|
18
|
+
let u = Vec3.sub(v1, v0);
|
|
19
|
+
let v = Vec3.sub(v2, v0);
|
|
20
|
+
this.n = u.cross(v);
|
|
21
|
+
this.p.copy(v0);
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
static fromPoints(v0, v1, v2) {
|
|
25
|
+
return new Plane().setByPoints(v0, v1, v2);
|
|
16
26
|
}
|
|
17
27
|
set(p, n) {
|
|
18
28
|
this.p.copy(p);
|
package/lib/js/math/Quat.d.ts
CHANGED
|
@@ -238,10 +238,15 @@ export declare class Quat {
|
|
|
238
238
|
* @returns {Quat} -
|
|
239
239
|
*/
|
|
240
240
|
setFromAxisAngle(axis: Vec3, angle: number): Quat;
|
|
241
|
+
/**
|
|
242
|
+
* @typedef {Object} QuatAxisAngle
|
|
243
|
+
* @property {Vec3} axis - The rotation axis.
|
|
244
|
+
* @property {number} angle - The rotation angle in radians.
|
|
245
|
+
*/
|
|
241
246
|
/**
|
|
242
247
|
* Returns axis and angle of the current Quat.
|
|
243
248
|
* @public
|
|
244
|
-
* @returns
|
|
249
|
+
* @returns QuatAxisAngle -
|
|
245
250
|
*/
|
|
246
251
|
getAxisAngle(): {
|
|
247
252
|
axis: Vec3;
|
|
@@ -298,6 +303,7 @@ export declare class Quat {
|
|
|
298
303
|
* Returns quaternion and vector production.
|
|
299
304
|
* @public
|
|
300
305
|
* @param {Vec3} v - 3d Vector.
|
|
306
|
+
* @param {Vec3} res - result output vector.
|
|
301
307
|
* @returns {Vec3} -
|
|
302
308
|
*/
|
|
303
309
|
mulVec3Res(v: Vec3, res: Vec3): Vec3;
|
package/lib/js/math/Quat.js
CHANGED
|
@@ -413,10 +413,15 @@ export class Quat {
|
|
|
413
413
|
this.set(v.x * sin_a, v.y * sin_a, v.z * sin_a, Math.cos(half_angle));
|
|
414
414
|
return this;
|
|
415
415
|
}
|
|
416
|
+
/**
|
|
417
|
+
* @typedef {Object} QuatAxisAngle
|
|
418
|
+
* @property {Vec3} axis - The rotation axis.
|
|
419
|
+
* @property {number} angle - The rotation angle in radians.
|
|
420
|
+
*/
|
|
416
421
|
/**
|
|
417
422
|
* Returns axis and angle of the current Quat.
|
|
418
423
|
* @public
|
|
419
|
-
* @returns
|
|
424
|
+
* @returns QuatAxisAngle -
|
|
420
425
|
*/
|
|
421
426
|
getAxisAngle() {
|
|
422
427
|
let x = this.x, y = this.y, z = this.z, w = this.w;
|
|
@@ -617,6 +622,7 @@ export class Quat {
|
|
|
617
622
|
* Returns quaternion and vector production.
|
|
618
623
|
* @public
|
|
619
624
|
* @param {Vec3} v - 3d Vector.
|
|
625
|
+
* @param {Vec3} res - result output vector.
|
|
620
626
|
* @returns {Vec3} -
|
|
621
627
|
*/
|
|
622
628
|
mulVec3Res(v, res) {
|
package/lib/js/math/Ray.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare class Ray {
|
|
|
45
45
|
*/
|
|
46
46
|
getPoint(distance: number): Vec3;
|
|
47
47
|
/**
|
|
48
|
-
* Returns ray hit a
|
|
48
|
+
* Returns ray hit a triangle result.
|
|
49
49
|
* @public
|
|
50
50
|
* @param {Vec3} v0 - First triangle corner coordinate.
|
|
51
51
|
* @param {Vec3} v1 - Second triangle corner coordinate.
|
|
@@ -54,17 +54,13 @@ export declare class Ray {
|
|
|
54
54
|
* @returns {number} - Hit code, could 0 - og.Ray.OUTSIDE, 1 - og.Ray.INSIDE,
|
|
55
55
|
* 2 - og.Ray.INPLANE and 3 - og.Ray.AWAY(ray goes away from triangle).
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
hitTriangleRes(v0: Vec3, v1: Vec3, v2: Vec3, res: Vec3): number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
60
|
-
* @
|
|
61
|
-
* @
|
|
62
|
-
* @param {Vec3} v1 - Second plane point.
|
|
63
|
-
* @param {Vec3} v2 - Third plane point.
|
|
64
|
-
* @param {Vec3} res - Hit point object pointer that stores hit result.
|
|
65
|
-
* @returns {number}
|
|
59
|
+
* Finds the intersection of the ray with a plane.
|
|
60
|
+
* @param {Plane} plane - The plane to intersect with.
|
|
61
|
+
* @returns {Vec3 | null} The intersection point or null if no intersection.
|
|
66
62
|
*/
|
|
67
|
-
|
|
63
|
+
hitPlaneRes(plane: Plane, res: Vec3): number;
|
|
68
64
|
/**
|
|
69
65
|
* Returns a ray hit sphere coordiante. If there isn't hit returns null.
|
|
70
66
|
* @public
|
|
@@ -73,10 +69,4 @@ export declare class Ray {
|
|
|
73
69
|
*/
|
|
74
70
|
hitSphere(sphere: Sphere): Vec3 | null;
|
|
75
71
|
hitBox(box: Box): void;
|
|
76
|
-
/**
|
|
77
|
-
* Finds the intersection of the ray with a plane.
|
|
78
|
-
* @param {Plane} plane - The plane to intersect with.
|
|
79
|
-
* @returns {Vec3 | null} The intersection point or null if no intersection.
|
|
80
|
-
*/
|
|
81
|
-
hitPlane2(plane: Plane, res: Vec3): number;
|
|
82
72
|
}
|