@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,15 +1,17 @@
|
|
|
1
1
|
import { Camera } from "../camera/Camera";
|
|
2
2
|
import { Control } from "../control/Control";
|
|
3
|
-
import { IBaseInputState, RendererEventsHandler } from "./RendererEvents";
|
|
3
|
+
import type { IBaseInputState, RendererEventsHandler } from "./RendererEvents";
|
|
4
4
|
import { EntityCollection } from "../entity/EntityCollection";
|
|
5
5
|
import { Framebuffer, Multisample } from "../webgl/index";
|
|
6
6
|
import { FontAtlas } from "../utils/FontAtlas";
|
|
7
|
-
import { Handler
|
|
7
|
+
import { Handler } from "../webgl/Handler";
|
|
8
|
+
import type { WebGLBufferExt } from "../webgl/Handler";
|
|
8
9
|
import { LabelWorker } from "../entity/LabelWorker";
|
|
9
10
|
import { RenderNode } from "../scene/RenderNode";
|
|
10
11
|
import { TextureAtlas } from "../utils/TextureAtlas";
|
|
11
12
|
import { Vec2 } from "../math/Vec2";
|
|
12
|
-
import {
|
|
13
|
+
import { Vec3 } from "../math/Vec3";
|
|
14
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
13
15
|
import { Vec4 } from "../math/Vec4";
|
|
14
16
|
interface IRendererParams {
|
|
15
17
|
controls?: Control[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Events
|
|
1
|
+
import { Events } from "../Events";
|
|
2
|
+
import type { EventsHandler, EventCallback } from "../Events";
|
|
2
3
|
import { KeyboardHandler } from "../input/KeyboardHandler";
|
|
3
|
-
import { MouseHandler
|
|
4
|
+
import { MouseHandler } from "../input/MouseHandler";
|
|
5
|
+
import type { MouseHandlerEvent, MouseEventExt } from "../input/MouseHandler";
|
|
4
6
|
import { Renderer } from "./Renderer";
|
|
5
|
-
import {
|
|
7
|
+
import { TouchHandler } from "../input/TouchHandler";
|
|
8
|
+
import type { TouchEventExt } from "../input/TouchHandler";
|
|
6
9
|
import { Vec2 } from "../math/Vec2";
|
|
7
10
|
import { Vec3 } from "../math/Vec3";
|
|
8
11
|
export type RendererEventsHandler = RendererEvents & EventsHandler<RendererEventsType>;
|
|
@@ -111,6 +114,7 @@ export interface IMouseState extends IBaseInputState {
|
|
|
111
114
|
wheelDelta: number;
|
|
112
115
|
/** JavaScript mouse system event message. */
|
|
113
116
|
sys: MouseEvent | null;
|
|
117
|
+
isTouchPad: boolean;
|
|
114
118
|
}
|
|
115
119
|
export interface ITouchState extends IBaseInputState {
|
|
116
120
|
/** Touch has ended right now.*/
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { Atmosphere
|
|
1
|
+
import { Atmosphere } from "../control/Atmosphere";
|
|
2
|
+
import type { IAtmosphereParams } from "../control/Atmosphere";
|
|
2
3
|
import { Control } from "../control/Control";
|
|
3
|
-
import { EventsHandler } from "../Events";
|
|
4
|
+
import type { EventsHandler } from "../Events";
|
|
4
5
|
import { EmptyTerrain } from "../terrain/EmptyTerrain";
|
|
5
6
|
import { Extent } from "../Extent";
|
|
6
7
|
import { Entity } from "../entity/Entity";
|
|
7
8
|
import { Ellipsoid } from "../ellipsoid/Ellipsoid";
|
|
8
9
|
import { EntityCollection } from "../entity/EntityCollection";
|
|
9
10
|
import { GeoImageCreator } from "../utils/GeoImageCreator";
|
|
10
|
-
import { IBaseInputState } from "../renderer/RendererEvents";
|
|
11
|
+
import type { IBaseInputState } from "../renderer/RendererEvents";
|
|
11
12
|
import { Key, Lock } from "../Lock";
|
|
12
13
|
import { Layer } from "../layer/Layer";
|
|
13
14
|
import { Loader } from "../utils/Loader";
|
|
@@ -22,13 +23,14 @@ import { Ray } from "../math/Ray";
|
|
|
22
23
|
import { RenderNode } from "./RenderNode";
|
|
23
24
|
import { Sun } from "../control/Sun";
|
|
24
25
|
import { TerrainWorker } from "../utils/TerrainWorker";
|
|
25
|
-
import { Vec2, Vec3
|
|
26
|
+
import { Vec2, Vec3 } from "../math/index";
|
|
27
|
+
import type { NumberArray2, NumberArray3, NumberArray4 } from "../math/index";
|
|
26
28
|
import { Vector } from "../layer/Vector";
|
|
27
29
|
import { VectorTileCreator } from "../utils/VectorTileCreator";
|
|
28
|
-
import { WebGLBufferExt, WebGLTextureExt, IDefaultTextureParams } from "../webgl/Handler";
|
|
30
|
+
import type { WebGLBufferExt, WebGLTextureExt, IDefaultTextureParams } from "../webgl/Handler";
|
|
29
31
|
import { Program } from "../webgl/Program";
|
|
30
32
|
import { Segment } from "../segment/Segment";
|
|
31
|
-
import { AtmosphereParameters } from "../shaders/atmos";
|
|
33
|
+
import type { AtmosphereParameters } from "../shaders/atmos";
|
|
32
34
|
export interface IPlanetParams {
|
|
33
35
|
name?: string;
|
|
34
36
|
ellipsoid?: Ellipsoid;
|
|
@@ -631,5 +633,9 @@ export declare class Planet extends RenderNode {
|
|
|
631
633
|
getHeightDefault(lonLat: LonLat): Promise<number>;
|
|
632
634
|
getHeightAboveELL(lonLat: LonLat): Promise<number>;
|
|
633
635
|
onremove(): void;
|
|
636
|
+
/**
|
|
637
|
+
* @todo: refactor with events or something better
|
|
638
|
+
*/
|
|
639
|
+
stopDragging(): void;
|
|
634
640
|
}
|
|
635
641
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RenderNode } from './RenderNode';
|
|
2
|
-
import { WebGLBufferExt, WebGLTextureExt, Texture3DParams } from "../webgl/Handler";
|
|
2
|
+
import type { WebGLBufferExt, WebGLTextureExt, Texture3DParams } from "../webgl/Handler";
|
|
3
3
|
declare class SkyBox extends RenderNode {
|
|
4
4
|
params: Texture3DParams;
|
|
5
5
|
vertexPositionBuffer: WebGLBufferExt | null;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Box } from "../bv/Box";
|
|
2
2
|
import { Extent } from "../Extent";
|
|
3
3
|
import { Entity } from "../entity/Entity";
|
|
4
|
-
import { TypedArray } from "../utils/shared";
|
|
5
|
-
import { Handler
|
|
6
|
-
import {
|
|
4
|
+
import type { TypedArray } from "../utils/shared";
|
|
5
|
+
import { Handler } from "../webgl/Handler";
|
|
6
|
+
import type { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
|
|
7
|
+
import type { ITerrainWorkerData } from "../utils/TerrainWorker";
|
|
7
8
|
import { Layer } from "../layer/Layer";
|
|
8
9
|
import { LonLat } from "../LonLat";
|
|
9
10
|
import { Material } from "../layer/Material";
|
|
@@ -12,10 +13,11 @@ import { Planet } from "../scene/Planet";
|
|
|
12
13
|
import { PlanetCamera } from "../camera/PlanetCamera";
|
|
13
14
|
import { Program } from "../webgl/Program";
|
|
14
15
|
import { Proj } from "../proj/Proj";
|
|
15
|
-
import {
|
|
16
|
+
import { Sphere } from "../bv/Sphere";
|
|
17
|
+
import type { NumberArray6 } from "../bv/Sphere";
|
|
16
18
|
import { Slice } from "./Slice";
|
|
17
19
|
import { Vec3 } from "../math/Vec3";
|
|
18
|
-
import { IPlainSegmentWorkerData } from "../utils/PlainSegmentWorker";
|
|
20
|
+
import type { IPlainSegmentWorkerData } from "../utils/PlainSegmentWorker";
|
|
19
21
|
export declare function getTileCellIndex(coordinate: number, tileSize: number, worldEdge: number): number;
|
|
20
22
|
export declare function getTileCellExtent(x: number, y: number, z: number, worldExtent: Extent): Extent;
|
|
21
23
|
export declare const TILEGROUP_COMMON = 0;
|
|
@@ -6,7 +6,7 @@ import { Segment } from "./Segment";
|
|
|
6
6
|
import { LonLat } from "../LonLat";
|
|
7
7
|
import { Entity } from "../entity/Entity";
|
|
8
8
|
import { PlanetCamera } from "../camera/PlanetCamera";
|
|
9
|
-
import { WebGLTextureExt } from "../webgl/Handler";
|
|
9
|
+
import type { WebGLTextureExt } from "../webgl/Handler";
|
|
10
10
|
export declare const POLE_PIECE_SIZE: number;
|
|
11
11
|
/**
|
|
12
12
|
* Planet segment Web Mercator tile class that stored and rendered with quad tree.
|
|
@@ -2,7 +2,7 @@ import { Extent } from "../Extent";
|
|
|
2
2
|
import { Node } from "../quadTree/Node";
|
|
3
3
|
import { Planet } from "../scene/Planet";
|
|
4
4
|
import { SegmentLonLat } from "./SegmentLonLat";
|
|
5
|
-
import { WebGLTextureExt } from "../webgl/Handler";
|
|
5
|
+
import type { WebGLTextureExt } from "../webgl/Handler";
|
|
6
6
|
export declare const POLE_PIECE_SIZE: number;
|
|
7
7
|
export declare class SegmentLonLatEqui extends SegmentLonLat {
|
|
8
8
|
constructor(node: Node, planet: Planet, tileZoom: number, extent: Extent);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AtmosphereParameters } from "./atmos";
|
|
1
|
+
import type { AtmosphereParameters } from "./atmos";
|
|
2
2
|
import { Program } from "../webgl/Program";
|
|
3
3
|
export declare const ENCODE24 = "vec3 encode24(highp float f) {\n float F = abs(f);\n float s = step( 0.0, -f );\n float e = floor( log2(F) );\n float m = exp2(- e) * F;\n e = floor( log2(F) + 127.0 ) + floor( log2(m) );\n return vec3(\n ( 128.0 * s + floor( e * exp2(-1.0) ) ) / 255.0,\n ( 128.0 * mod( e, 2.0 ) + mod( floor( m * 128.0 ), 128.0 ) ) / 255.0,\n floor( mod( floor( m * exp2( 23.0 - 8.0) ), exp2(8.0) ) ) / 255.0);\n }";
|
|
4
4
|
export declare function drawnode_screen_nl(): Program;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { GlobusTerrain
|
|
1
|
+
import { GlobusTerrain } from "./GlobusTerrain";
|
|
2
|
+
import type { IGlobusTerrainParams } from "./GlobusTerrain";
|
|
2
3
|
import { Segment } from "../segment/Segment";
|
|
3
4
|
import { Extent } from "../Extent";
|
|
4
|
-
import { TypedArray } from "../utils/shared";
|
|
5
|
+
import type { TypedArray } from "../utils/shared";
|
|
5
6
|
interface IBilTerrainParams extends IGlobusTerrainParams {
|
|
6
7
|
layers?: string;
|
|
7
8
|
imageSize?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RgbTerrain } from "./RgbTerrain";
|
|
2
|
+
import type { IRgbTerrainParams } from "./RgbTerrain";
|
|
2
3
|
import { Segment } from "../segment/Segment";
|
|
3
4
|
export declare class GlobusRgbTerrain extends RgbTerrain {
|
|
4
5
|
constructor(name?: string | null, options?: IRgbTerrainParams);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { EventsHandler } from "../Events";
|
|
2
|
-
import { TypedArray } from "../utils/shared";
|
|
3
|
-
import { EmptyTerrain
|
|
1
|
+
import type { EventsHandler } from "../Events";
|
|
2
|
+
import type { TypedArray } from "../utils/shared";
|
|
3
|
+
import { EmptyTerrain } from "./EmptyTerrain";
|
|
4
|
+
import type { IEmptyTerrainParams, UrlRewriteFunc } from "./EmptyTerrain";
|
|
4
5
|
import { Extent } from "../Extent";
|
|
5
6
|
import { Loader } from "../utils/Loader";
|
|
6
7
|
import { LonLat } from "../LonLat";
|
|
@@ -59,7 +60,7 @@ declare class GlobusTerrain extends EmptyTerrain {
|
|
|
59
60
|
/**
|
|
60
61
|
* Rewrites elevation storage url query.
|
|
61
62
|
* @protected
|
|
62
|
-
* @type {Function}
|
|
63
|
+
* @type {Function}
|
|
63
64
|
*/
|
|
64
65
|
protected _urlRewriteCallback: UrlRewriteFunc | null;
|
|
65
66
|
protected _heightFactor: number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Extent } from "../Extent";
|
|
2
|
-
import { GlobusTerrain
|
|
2
|
+
import { GlobusTerrain } from "./GlobusTerrain";
|
|
3
|
+
import type { IGlobusTerrainParams } from "./GlobusTerrain";
|
|
3
4
|
import { LonLat } from "../LonLat";
|
|
4
5
|
import { Segment } from "../segment/Segment";
|
|
5
|
-
import { TypedArray } from "../utils/shared";
|
|
6
|
+
import type { TypedArray } from "../utils/shared";
|
|
6
7
|
export interface IRgbTerrainParams extends IGlobusTerrainParams {
|
|
7
8
|
equalizeNormals?: boolean;
|
|
8
9
|
key?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { View } from './View';
|
|
2
|
+
import type { IViewParams, ViewEventsList } from './View';
|
|
3
|
+
import type { EventsHandler } from "../Events";
|
|
3
4
|
interface HTMLElementExt extends HTMLElement {
|
|
4
5
|
__og_button__: Button;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { EventsHandler } from "../Events";
|
|
2
|
-
import {
|
|
1
|
+
import type { EventsHandler } from "../Events";
|
|
2
|
+
import { View } from './View';
|
|
3
|
+
import type { IViewParams, ViewEventsList } from './View';
|
|
3
4
|
interface ICheckboxParams extends IViewParams {
|
|
4
5
|
label?: string;
|
|
5
6
|
checked?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { EventsHandler } from "../Events";
|
|
2
|
-
import {
|
|
1
|
+
import type { EventsHandler } from "../Events";
|
|
2
|
+
import { View } from './View';
|
|
3
|
+
import type { IViewParams, ViewEventsList } from './View';
|
|
3
4
|
interface IColorParams extends IViewParams {
|
|
4
5
|
label?: string;
|
|
5
6
|
value?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Button } from './Button';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { View } from './View';
|
|
3
|
+
import type { IViewParams, ViewEventsList } from './View';
|
|
4
|
+
import type { EventsHandler } from "../Events";
|
|
4
5
|
export interface IDialogParams extends IViewParams {
|
|
5
6
|
title?: string;
|
|
6
7
|
visible?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { EventsHandler } from "../Events";
|
|
2
|
-
import {
|
|
1
|
+
import type { EventsHandler } from "../Events";
|
|
2
|
+
import { View } from './View';
|
|
3
|
+
import type { IViewParams, ViewEventsList } from './View';
|
|
3
4
|
interface IInputParams extends IViewParams {
|
|
4
5
|
label?: string;
|
|
5
6
|
value?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { EventsHandler } from "../Events";
|
|
2
|
-
import {
|
|
1
|
+
import type { EventsHandler } from "../Events";
|
|
2
|
+
import { View } from './View';
|
|
3
|
+
import type { IViewParams, ViewEventsList } from './View';
|
|
3
4
|
interface ISliderParams extends IViewParams {
|
|
4
5
|
label?: string;
|
|
5
6
|
value?: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Button
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Button } from './Button';
|
|
2
|
+
import type { IButtonParams, ButtonEventsList } from './Button';
|
|
3
|
+
import type { EventsHandler } from "../Events";
|
|
4
|
+
import type { ViewEventsList } from "./View";
|
|
4
5
|
interface IToggleButtonParams extends IButtonParams {
|
|
5
6
|
isActive?: boolean;
|
|
6
7
|
preventClick?: boolean;
|
|
@@ -2,7 +2,7 @@ import { Deferred } from '../Deferred';
|
|
|
2
2
|
import { Rectangle } from '../Rectangle';
|
|
3
3
|
import { TextureAtlas, TextureAtlasNode } from './TextureAtlas';
|
|
4
4
|
import { Handler } from "../webgl/Handler";
|
|
5
|
-
import { HTMLImageElementExt } from "./ImagesCacheManager";
|
|
5
|
+
import type { HTMLImageElementExt } from "./ImagesCacheManager";
|
|
6
6
|
interface IChar {
|
|
7
7
|
id: number;
|
|
8
8
|
char: string;
|
|
@@ -2,7 +2,7 @@ import { BaseGeoImage } from "../layer/BaseGeoImage";
|
|
|
2
2
|
import { Framebuffer } from '../webgl/Framebuffer';
|
|
3
3
|
import { LonLat } from '../LonLat';
|
|
4
4
|
import { Planet } from "../scene/Planet";
|
|
5
|
-
import { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
|
|
5
|
+
import type { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
|
|
6
6
|
export declare class GeoImageCreator {
|
|
7
7
|
MAX_FRAMES: number;
|
|
8
8
|
protected _gridSize: number;
|
|
@@ -3,7 +3,8 @@ import { Lock, Key } from "../Lock";
|
|
|
3
3
|
import { Planet } from "../scene/Planet";
|
|
4
4
|
import { QueueArray } from "../QueueArray";
|
|
5
5
|
import { Segment } from "../segment/Segment";
|
|
6
|
-
import {
|
|
6
|
+
import { Handler } from "../webgl/Handler";
|
|
7
|
+
import type { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
|
|
7
8
|
interface INormalMapCreatorParams {
|
|
8
9
|
minTableSize?: number;
|
|
9
10
|
maxTableSize?: number;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ImageCanvas } from "../ImageCanvas";
|
|
2
2
|
import { Rectangle } from "../Rectangle";
|
|
3
|
-
import { ImagesCacheManager
|
|
4
|
-
import {
|
|
3
|
+
import { ImagesCacheManager } from "./ImagesCacheManager";
|
|
4
|
+
import type { HTMLImageElementExt, ImagesCacheManagerCallback } from "./ImagesCacheManager";
|
|
5
|
+
import { Handler } from "../webgl/Handler";
|
|
6
|
+
import type { WebGLTextureExt } from "../webgl/Handler";
|
|
5
7
|
/**
|
|
6
8
|
* Texture atlas stores images in one texture. Each image has its own
|
|
7
9
|
* atlas texture coordinates.
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
import { Extent } from "../Extent";
|
|
5
5
|
import { LonLat } from "../LonLat";
|
|
6
6
|
import { Vec2 } from "../math/Vec2";
|
|
7
|
-
import { NumberArray2 } from "../math/Vec2";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import type { NumberArray2 } from "../math/Vec2";
|
|
8
|
+
import { Vec3 } from "../math/Vec3";
|
|
9
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
10
|
+
import { Vec4 } from "../math/Vec4";
|
|
11
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
10
12
|
import { Ellipsoid } from "../ellipsoid/Ellipsoid";
|
|
11
13
|
export declare function getDefault(param?: any, def?: any): boolean;
|
|
12
14
|
export declare function isEmpty(v: any): boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BaseFramebuffer
|
|
1
|
+
import { BaseFramebuffer } from "./BaseFramebuffer";
|
|
2
|
+
import type { IBaseFramebufferParams } from "./BaseFramebuffer";
|
|
2
3
|
import { Handler } from "./Handler";
|
|
3
|
-
import { TypedArray } from "../utils/shared";
|
|
4
|
+
import type { TypedArray } from "../utils/shared";
|
|
4
5
|
export interface ITargetParams {
|
|
5
6
|
internalFormat?: string;
|
|
6
7
|
format?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { BaseFramebuffer } from "./BaseFramebuffer";
|
|
2
2
|
import { Clock } from "../Clock";
|
|
3
|
-
import { EventsHandler } from "../Events";
|
|
4
|
-
import { TypedArray } from "../utils/shared";
|
|
5
|
-
import {
|
|
3
|
+
import type { EventsHandler } from "../Events";
|
|
4
|
+
import type { TypedArray } from "../utils/shared";
|
|
5
|
+
import { Vec2 } from "../math/Vec2";
|
|
6
|
+
import type { NumberArray2 } from "../math/Vec2";
|
|
6
7
|
import { ProgramController } from "./ProgramController";
|
|
7
8
|
import { Program } from "./Program";
|
|
8
9
|
import { Stack } from "../Stack";
|
|
@@ -17,7 +18,7 @@ export type WebGLTextureExt = {
|
|
|
17
18
|
default?: boolean;
|
|
18
19
|
} & WebGLTexture;
|
|
19
20
|
export type ImageSource = HTMLCanvasElement | ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement;
|
|
20
|
-
type CreateTextureFunc = (image: ImageSource, internalFormat?: number, texture?: WebGLTextureExt) => WebGLTextureExt | null;
|
|
21
|
+
type CreateTextureFunc = (image: ImageSource, internalFormat?: number | null, texParami?: number | null, texture?: WebGLTextureExt) => WebGLTextureExt | null;
|
|
21
22
|
export interface IHandlerParameters {
|
|
22
23
|
anisotropy?: number;
|
|
23
24
|
width?: number;
|
|
@@ -45,6 +46,9 @@ export interface IDefaultTextureParams {
|
|
|
45
46
|
color?: string;
|
|
46
47
|
url?: string;
|
|
47
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* @typedef {"visibilitychange" | "resize"} HandlerEventType
|
|
51
|
+
*/
|
|
48
52
|
/**
|
|
49
53
|
* A WebGL handler for accessing low-level WebGL capabilities.
|
|
50
54
|
* @class
|
|
@@ -61,7 +65,7 @@ declare class Handler {
|
|
|
61
65
|
/**
|
|
62
66
|
* Events.
|
|
63
67
|
* @public
|
|
64
|
-
* @type {EventsHandler<
|
|
68
|
+
* @type {EventsHandler<Array<HandlerEventType>>}
|
|
65
69
|
*/
|
|
66
70
|
events: EventsHandler<["visibilitychange", "resize"]>;
|
|
67
71
|
/**
|
|
@@ -197,7 +201,7 @@ declare class Handler {
|
|
|
197
201
|
* @param {number} [level=0] - Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
|
|
198
202
|
* @returns {WebGLTexture | null} - WebGL texture object.
|
|
199
203
|
*/
|
|
200
|
-
createEmptyTexture2DExt(width?: number, height?: number, filter?: string, internalFormat?: string, format?: string, type?: string, level?: number): WebGLTexture | null;
|
|
204
|
+
createEmptyTexture2DExt(width?: number, height?: number, filter?: string, internalFormat?: string, format?: string, type?: string, param?: string, level?: number): WebGLTexture | null;
|
|
201
205
|
/**
|
|
202
206
|
* Creates Empty NEAREST filtered texture.
|
|
203
207
|
* @public
|
|
@@ -206,88 +210,97 @@ declare class Handler {
|
|
|
206
210
|
* @param {number} [internalFormat]
|
|
207
211
|
* @returns {WebGLTexture | null} - WebGL texture object.
|
|
208
212
|
*/
|
|
209
|
-
createEmptyTexture_n(width: number, height: number, internalFormat?: number): WebGLTexture | null;
|
|
213
|
+
createEmptyTexture_n(width: number, height: number, internalFormat?: number | null, texParami?: number | null): WebGLTexture | null;
|
|
210
214
|
/**
|
|
211
215
|
* Creates empty LINEAR filtered texture.
|
|
212
216
|
* @public
|
|
213
217
|
* @param {number} width - Empty texture width.
|
|
214
218
|
* @param {number} height - Empty texture height.
|
|
215
219
|
* @param {number} [internalFormat]
|
|
220
|
+
* @param {number} [texParami]
|
|
216
221
|
* @returns {WebGLTexture | null} - WebGL texture object.
|
|
217
222
|
*/
|
|
218
|
-
createEmptyTexture_l(width: number, height: number, internalFormat?: number): WebGLTexture | null;
|
|
223
|
+
createEmptyTexture_l(width: number, height: number, internalFormat?: number | null, texParami?: number | null): WebGLTexture | null;
|
|
219
224
|
/**
|
|
220
225
|
* Creates NEAREST filter texture.
|
|
221
226
|
* @public
|
|
222
227
|
* @param {HTMLCanvasElement | Image} image - Image or Canvas object.
|
|
223
228
|
* @param {number} [internalFormat]
|
|
229
|
+
* @param {number} [texParami]
|
|
224
230
|
* @param {WebGLTexture | null} [texture=null]
|
|
225
231
|
* @returns {WebGLTexture | null} - WebGL texture object.
|
|
226
232
|
*/
|
|
227
|
-
createTexture_n_webgl1(image: ImageSource, internalFormat?: number, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
233
|
+
createTexture_n_webgl1(image: ImageSource, internalFormat?: number | null, texParami?: number | null, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
228
234
|
/**
|
|
229
235
|
* Creates LINEAR filter texture.
|
|
230
236
|
* @public
|
|
231
237
|
* @param {ImageSource} image - Image or Canvas object.
|
|
232
238
|
* @param {number} [internalFormat]
|
|
239
|
+
* @param {number} [texParami]
|
|
233
240
|
* @param {WebGLTexture | null} [texture]
|
|
234
241
|
* @returns {WebGLTexture | null} - WebGL texture object.
|
|
235
242
|
*/
|
|
236
|
-
createTexture_l_webgl1(image: ImageSource, internalFormat?: number, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
243
|
+
createTexture_l_webgl1(image: ImageSource, internalFormat?: number | null, texParami?: number | null, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
237
244
|
/**
|
|
238
245
|
* Creates MIPMAP filter texture.
|
|
239
246
|
* @public
|
|
240
247
|
* @param {ImageSource} image - Image or Canvas object.
|
|
241
248
|
* @param {number} [internalFormat]
|
|
249
|
+
* @param {number} [texParami]
|
|
242
250
|
* @param {WebGLTexture | null} [texture]
|
|
243
251
|
* @returns {WebGLTexture | null} - WebGL texture object.
|
|
244
252
|
*/
|
|
245
|
-
createTexture_mm_webgl1(image: ImageSource, internalFormat?: number, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
253
|
+
createTexture_mm_webgl1(image: ImageSource, internalFormat?: number | null, texParami?: number | null, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
246
254
|
/**
|
|
247
255
|
* Creates ANISOTROPY filter texture.
|
|
248
256
|
* @public
|
|
249
257
|
* @param {ImageSource} image - Image or Canvas object.
|
|
250
258
|
* @param {number} [internalFormat]
|
|
259
|
+
* @param {number} [texParami]
|
|
251
260
|
* @param {WebGLTexture | null} [texture]
|
|
252
261
|
* @returns {WebGLTexture | null} - WebGL texture object.
|
|
253
262
|
*/
|
|
254
|
-
createTexture_a_webgl1(image: ImageSource, internalFormat?: number, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
263
|
+
createTexture_a_webgl1(image: ImageSource, internalFormat?: number | null, texParami?: number | null, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
255
264
|
/**
|
|
256
265
|
* Creates NEAREST filter texture.
|
|
257
266
|
* @public
|
|
258
267
|
* @param {ImageSource} image - Image or Canvas object.
|
|
259
268
|
* @param {number} [internalFormat]
|
|
269
|
+
* @param {number} [texParami]
|
|
260
270
|
* @param {WebGLTexture | null} [texture]
|
|
261
271
|
* @returns {WebGLTexture | null} - WebGL texture object.
|
|
262
272
|
*/
|
|
263
|
-
createTexture_n_webgl2(image: ImageSource, internalFormat?: number, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
273
|
+
createTexture_n_webgl2(image: ImageSource, internalFormat?: number | null, texParami?: number | null, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
264
274
|
/**
|
|
265
275
|
* Creates LINEAR filter texture.
|
|
266
276
|
* @public
|
|
267
277
|
* @param {ImageSource} image - Image or Canvas object.
|
|
268
278
|
* @param {number} [internalFormat]
|
|
279
|
+
* @param {number} [texParami]
|
|
269
280
|
* @param {WebGLTexture | null} [texture]
|
|
270
281
|
* @returns {WebGLTexture | null} - WebGL texture object.
|
|
271
282
|
*/
|
|
272
|
-
createTexture_l_webgl2(image: ImageSource, internalFormat?: number, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
283
|
+
createTexture_l_webgl2(image: ImageSource, internalFormat?: number | null, texParami?: number | null, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
273
284
|
/**
|
|
274
285
|
* Creates MIPMAP filter texture.
|
|
275
286
|
* @public
|
|
276
287
|
* @param {ImageSource} image - Image or Canvas object.
|
|
277
288
|
* @param {number} [internalFormat]
|
|
289
|
+
* @param {number} [texParami]
|
|
278
290
|
* @param {WebGLTexture | null} [texture]
|
|
279
291
|
* @returns {WebGLTexture | null} - WebGL texture object.
|
|
280
292
|
*/
|
|
281
|
-
createTexture_mm_webgl2(image: ImageSource, internalFormat?: number, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
293
|
+
createTexture_mm_webgl2(image: ImageSource, internalFormat?: number | null, texParami?: number | null, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
282
294
|
/**
|
|
283
295
|
* Creates ANISOTROPY filter texture.
|
|
284
296
|
* @public
|
|
285
297
|
* @param {ImageSource} image - Image or Canvas object.
|
|
286
298
|
* @param {number} [internalFormat]
|
|
299
|
+
* @param {number} [texParami]
|
|
287
300
|
* @param {WebGLTexture | null} [texture]
|
|
288
301
|
* @returns {WebGLTexture | null} - WebGL texture object.
|
|
289
302
|
*/
|
|
290
|
-
createTexture_a_webgl2(image: ImageSource, internalFormat?: number, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
303
|
+
createTexture_a_webgl2(image: ImageSource, internalFormat?: number | null, texParami?: number | null, texture?: WebGLTexture | null): WebGLTexture | null;
|
|
291
304
|
/**
|
|
292
305
|
* Creates cube texture.
|
|
293
306
|
* @public
|
|
@@ -460,10 +473,10 @@ declare class Handler {
|
|
|
460
473
|
*/
|
|
461
474
|
protected _animationFrameCallback(): void;
|
|
462
475
|
/**
|
|
463
|
-
* Creates default texture object
|
|
476
|
+
* Creates default texture object.
|
|
464
477
|
* @public
|
|
465
|
-
* @param {IDefaultTextureParams | null} params - Texture parameters
|
|
466
|
-
* @param {(
|
|
478
|
+
* @param {IDefaultTextureParams | null} params - Texture parameters.
|
|
479
|
+
* @param {function(WebGLTextureExt): void} [success] - Creation callback.
|
|
467
480
|
*/
|
|
468
481
|
createDefaultTexture(params: IDefaultTextureParams | null, success: (texture: WebGLTextureExt) => void): void;
|
|
469
482
|
deleteTexture(texture: WebGLTextureExt | null | undefined): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseFramebuffer
|
|
1
|
+
import { BaseFramebuffer } from "./BaseFramebuffer";
|
|
2
|
+
import type { IBaseFramebufferParams } from "./BaseFramebuffer";
|
|
2
3
|
import { Handler } from "./Handler";
|
|
3
4
|
interface IMultisampleParams extends IBaseFramebufferParams {
|
|
4
5
|
msaa?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProgramVariable } from "./variableHandlers";
|
|
2
|
-
import { WebGLBufferExt } from "./Handler";
|
|
1
|
+
import type { ProgramVariable } from "./variableHandlers";
|
|
2
|
+
import type { WebGLBufferExt } from "./Handler";
|
|
3
3
|
type WebGLProgramExt = WebGLProgram & {
|
|
4
4
|
[id: string]: WebGLUniformLocation;
|
|
5
5
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Handler
|
|
1
|
+
import { Handler } from "./Handler";
|
|
2
|
+
import type { WebGLBufferExt } from "./Handler";
|
|
2
3
|
import { Program } from "./Program";
|
|
3
4
|
/**
|
|
4
5
|
* This is shader program controller that used by handler object to access the shader
|