@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,6 +1,7 @@
|
|
|
1
|
-
import { BaseBillboard
|
|
1
|
+
import { BaseBillboard } from "./BaseBillboard";
|
|
2
|
+
import type { IBaseBillboardParams } from "./BaseBillboard";
|
|
2
3
|
import { BillboardHandler } from "./BillboardHandler";
|
|
3
|
-
import { HTMLImageElementExt } from "../utils/ImagesCacheManager";
|
|
4
|
+
import type { HTMLImageElementExt } from "../utils/ImagesCacheManager";
|
|
4
5
|
export interface IBillboardParams extends IBaseBillboardParams {
|
|
5
6
|
src?: string;
|
|
6
7
|
image?: HTMLImageElement;
|
|
@@ -1,17 +1,28 @@
|
|
|
1
|
-
import { Billboard
|
|
2
|
-
import { EntityCollection
|
|
1
|
+
import { Billboard } from "./Billboard";
|
|
2
|
+
import { EntityCollection } from "./EntityCollection";
|
|
3
|
+
import type { IBillboardParams } from "./Billboard";
|
|
4
|
+
import type { EntityCollectionEvents } from "./EntityCollection";
|
|
3
5
|
import { Extent } from "../Extent";
|
|
4
|
-
import { Geometry
|
|
5
|
-
import { GeoObject
|
|
6
|
+
import { Geometry } from "./Geometry";
|
|
7
|
+
import { GeoObject } from "./GeoObject";
|
|
8
|
+
import type { IGeometryParams } from "./Geometry";
|
|
9
|
+
import type { IGeoObjectParams } from "./GeoObject";
|
|
6
10
|
import { LonLat } from "../LonLat";
|
|
7
|
-
import { Label
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { Label } from "./Label";
|
|
12
|
+
import type { ILabelParams } from "./Label";
|
|
13
|
+
import { Vec3 } from "../math/Vec3";
|
|
14
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
15
|
+
import type { NumberArray2 } from "../math/Vec2";
|
|
16
|
+
import { PointCloud } from "./PointCloud";
|
|
17
|
+
import { Polyline } from "./Polyline";
|
|
18
|
+
import type { IPointCloudParams } from "./PointCloud";
|
|
19
|
+
import type { IPolylineParams } from "./Polyline";
|
|
20
|
+
import { Ray } from "./Ray";
|
|
21
|
+
import type { IRayParams } from "./Ray";
|
|
22
|
+
import { Strip } from "./Strip";
|
|
23
|
+
import type { IStripParams } from "./Strip";
|
|
24
|
+
import { Vector } from "../layer/Vector";
|
|
25
|
+
import type { VectorEventsType } from "../layer/Vector";
|
|
15
26
|
import { EntityCollectionNode } from "../quadTree/EntityCollectionNode";
|
|
16
27
|
import { Quat } from "../math/Quat";
|
|
17
28
|
/**
|
|
@@ -37,7 +48,8 @@ import { Quat } from "../math/Quat";
|
|
|
37
48
|
* @property {number} [yaw] - Rotation around local Y-axis.
|
|
38
49
|
* @property {number} [roll] - Rotation around local Z-axis.
|
|
39
50
|
* @property {number | Vec3 | NumberArray3} [scale] - Scaling factor.
|
|
40
|
-
* @property {boolean} [forceGlobalPosition] - Forces global position for
|
|
51
|
+
* @property {boolean} [forceGlobalPosition] - Forces global position for entity make the same position as its parent.
|
|
52
|
+
* @property {boolean} [forceGlobalRotation] - Forces global rotation for the entity make the same rotation as its parent.
|
|
41
53
|
*/
|
|
42
54
|
export interface IEntityParams {
|
|
43
55
|
name?: string;
|
|
@@ -61,6 +73,8 @@ export interface IEntityParams {
|
|
|
61
73
|
roll?: number;
|
|
62
74
|
scale?: number | Vec3 | NumberArray3;
|
|
63
75
|
forceGlobalPosition?: boolean;
|
|
76
|
+
forceGlobalRotation?: boolean;
|
|
77
|
+
forceGlobalScale?: boolean;
|
|
64
78
|
localPosition?: Vec3 | NumberArray3;
|
|
65
79
|
}
|
|
66
80
|
/**
|
|
@@ -85,11 +99,13 @@ export interface IEntityParams {
|
|
|
85
99
|
* @param {Strip | IStripParams} [options.strip] - Strip object or parameters.
|
|
86
100
|
* @param {boolean} [options.independentPicking] - Independent picking flag.
|
|
87
101
|
* @param {boolean} [options.relativePosition] - Parent relative position flag, otherwise position is absolute.
|
|
88
|
-
* @param {number} [options.pitch] - Rotation around local X-axis.
|
|
89
|
-
* @param {number} [options.yaw] - Rotation around local Y-axis.
|
|
90
|
-
* @param {number} [options.roll] - Rotation around local Z-axis.
|
|
102
|
+
* @param {number} [options.pitch] - Rotation around local X-axis in radians.
|
|
103
|
+
* @param {number} [options.yaw] - Rotation around local Y-axis in radians.
|
|
104
|
+
* @param {number} [options.roll] - Rotation around local Z-axis in radians.
|
|
91
105
|
* @param {number | Vec3 | NumberArray3} [options.scale] - Scaling factor.
|
|
92
|
-
* @param {boolean} [options.forceGlobalPosition] - Forces global position for
|
|
106
|
+
* @param {boolean} [options.forceGlobalPosition] - Forces global position for the entity make the same position as its parent.
|
|
107
|
+
* @param {boolean} [options.forceGlobalRotation] - Forces global rotation for the entity make the same rotation as its parent.
|
|
108
|
+
* @param {boolean} [options.forceGlobalScale] - Forces global scale for the entity make the same scale as its parent.
|
|
93
109
|
*/
|
|
94
110
|
declare class Entity {
|
|
95
111
|
static __counter__: number;
|
|
@@ -112,6 +128,8 @@ declare class Entity {
|
|
|
112
128
|
*/
|
|
113
129
|
childEntities: Entity[];
|
|
114
130
|
forceGlobalPosition: boolean;
|
|
131
|
+
forceGlobalRotation: boolean;
|
|
132
|
+
forceGlobalScale: boolean;
|
|
115
133
|
/**
|
|
116
134
|
* Parent entity.
|
|
117
135
|
* @public
|
|
@@ -238,9 +256,6 @@ declare class Entity {
|
|
|
238
256
|
strip: Strip | null;
|
|
239
257
|
_nodePtr?: EntityCollectionNode;
|
|
240
258
|
protected _relativePosition: boolean;
|
|
241
|
-
protected _pitch: number;
|
|
242
|
-
protected _yaw: number;
|
|
243
|
-
protected _roll: number;
|
|
244
259
|
protected _pitchRad: number;
|
|
245
260
|
protected _yawRad: number;
|
|
246
261
|
protected _rollRad: number;
|
|
@@ -386,72 +401,72 @@ declare class Entity {
|
|
|
386
401
|
setRotation(rot: Quat): void;
|
|
387
402
|
/**
|
|
388
403
|
* Sets the pitch rotation of the entity.
|
|
389
|
-
* @param {number} val - The new pitch angle in
|
|
404
|
+
* @param {number} val - The new pitch angle in radians.
|
|
390
405
|
*/
|
|
391
406
|
setPitch(val: number): void;
|
|
392
407
|
/**
|
|
393
408
|
* Sets the yaw rotation of the entity.
|
|
394
|
-
* @param {number} val - The new yaw angle in
|
|
409
|
+
* @param {number} val - The new yaw angle in radians.
|
|
395
410
|
*/
|
|
396
411
|
setYaw(val: number): void;
|
|
397
412
|
/**
|
|
398
413
|
* Sets the roll rotation of the entity.
|
|
399
414
|
* @public
|
|
400
|
-
* @param {number} val - The new roll angle in
|
|
415
|
+
* @param {number} val - The new roll angle in radians.
|
|
401
416
|
*/
|
|
402
417
|
setRoll(val: number): void;
|
|
403
418
|
/**
|
|
404
419
|
* Gets the pitch angle of the entity.
|
|
405
420
|
* @public
|
|
406
|
-
* @returns {number} The pitch angle in
|
|
421
|
+
* @returns {number} The pitch angle in radians.
|
|
407
422
|
*/
|
|
408
423
|
getPitch(): number;
|
|
409
424
|
/**
|
|
410
425
|
* Gets the yaw angle of the entity.
|
|
411
426
|
* @public
|
|
412
|
-
* @returns {number} The yaw angle in
|
|
427
|
+
* @returns {number} The yaw angle in radians.
|
|
413
428
|
*/
|
|
414
429
|
getYaw(): number;
|
|
415
430
|
/**
|
|
416
431
|
* Gets the roll angle of the entity.
|
|
417
432
|
* @public
|
|
418
|
-
* @returns {number} The roll angle in
|
|
433
|
+
* @returns {number} The roll angle in radians.
|
|
419
434
|
*/
|
|
420
435
|
getRoll(): number;
|
|
421
436
|
/**
|
|
422
437
|
* Sets the absolute pitch of the entity.
|
|
423
438
|
* @public
|
|
424
|
-
* @param {number} val - The absolute pitch angle in
|
|
439
|
+
* @param {number} val - The absolute pitch angle in radians.
|
|
425
440
|
*/
|
|
426
441
|
setAbsolutePitch(val: number): void;
|
|
427
442
|
/**
|
|
428
443
|
* Sets the absolute yaw of the entity.
|
|
429
444
|
* @public
|
|
430
|
-
* @param {number} val - The absolute yaw angle in
|
|
445
|
+
* @param {number} val - The absolute yaw angle in radians.
|
|
431
446
|
*/
|
|
432
447
|
setAbsoluteYaw(val: number): void;
|
|
433
448
|
/**
|
|
434
449
|
* Sets the absolute roll of the entity.
|
|
435
450
|
* @public
|
|
436
|
-
* @param {number} val - The absolute roll angle in
|
|
451
|
+
* @param {number} val - The absolute roll angle in radians.
|
|
437
452
|
*/
|
|
438
453
|
setAbsoluteRoll(val: number): void;
|
|
439
454
|
/**
|
|
440
455
|
* Gets the absolute pitch angle of the entity.
|
|
441
456
|
* @public
|
|
442
|
-
* @returns {number} The absolute pitch angle in
|
|
457
|
+
* @returns {number} The absolute pitch angle in radians.
|
|
443
458
|
*/
|
|
444
459
|
getAbsolutePitch(): number;
|
|
445
460
|
/**
|
|
446
461
|
* Gets the absolute yaw angle of the entity.
|
|
447
462
|
* @public
|
|
448
|
-
* @returns {number} The absolute yaw angle in
|
|
463
|
+
* @returns {number} The absolute yaw angle in radians.
|
|
449
464
|
*/
|
|
450
465
|
getAbsoluteYaw(): number;
|
|
451
466
|
/**
|
|
452
467
|
* Gets the absolute roll angle of the entity.
|
|
453
468
|
* @public
|
|
454
|
-
* @returns {number} The absolute roll angle in
|
|
469
|
+
* @returns {number} The absolute roll angle in radians.
|
|
455
470
|
*/
|
|
456
471
|
getAbsoluteRoll(): number;
|
|
457
472
|
protected _getScaleByDistance(): number;
|
package/lib/js/entity/Entity.js
CHANGED
|
@@ -12,7 +12,7 @@ import { Polyline } from "./Polyline";
|
|
|
12
12
|
import { Ray } from "./Ray";
|
|
13
13
|
import { Strip } from "./Strip";
|
|
14
14
|
import { Quat } from "../math/Quat";
|
|
15
|
-
import {
|
|
15
|
+
import { clamp } from "../math";
|
|
16
16
|
/**
|
|
17
17
|
* Entity instances aggregate multiple forms of visualization into a single high-level object.
|
|
18
18
|
* They can be created manually and added to entity collection.
|
|
@@ -35,11 +35,13 @@ import { RADIANS, clamp, DEGREES } from "../math";
|
|
|
35
35
|
* @param {Strip | IStripParams} [options.strip] - Strip object or parameters.
|
|
36
36
|
* @param {boolean} [options.independentPicking] - Independent picking flag.
|
|
37
37
|
* @param {boolean} [options.relativePosition] - Parent relative position flag, otherwise position is absolute.
|
|
38
|
-
* @param {number} [options.pitch] - Rotation around local X-axis.
|
|
39
|
-
* @param {number} [options.yaw] - Rotation around local Y-axis.
|
|
40
|
-
* @param {number} [options.roll] - Rotation around local Z-axis.
|
|
38
|
+
* @param {number} [options.pitch] - Rotation around local X-axis in radians.
|
|
39
|
+
* @param {number} [options.yaw] - Rotation around local Y-axis in radians.
|
|
40
|
+
* @param {number} [options.roll] - Rotation around local Z-axis in radians.
|
|
41
41
|
* @param {number | Vec3 | NumberArray3} [options.scale] - Scaling factor.
|
|
42
|
-
* @param {boolean} [options.forceGlobalPosition] - Forces global position for
|
|
42
|
+
* @param {boolean} [options.forceGlobalPosition] - Forces global position for the entity make the same position as its parent.
|
|
43
|
+
* @param {boolean} [options.forceGlobalRotation] - Forces global rotation for the entity make the same rotation as its parent.
|
|
44
|
+
* @param {boolean} [options.forceGlobalScale] - Forces global scale for the entity make the same scale as its parent.
|
|
43
45
|
*/
|
|
44
46
|
class Entity {
|
|
45
47
|
constructor(options = {}) {
|
|
@@ -50,6 +52,8 @@ class Entity {
|
|
|
50
52
|
this.childEntities = [];
|
|
51
53
|
this.parent = null;
|
|
52
54
|
this.forceGlobalPosition = options.forceGlobalPosition || false;
|
|
55
|
+
this.forceGlobalRotation = options.forceGlobalRotation || false;
|
|
56
|
+
this.forceGlobalScale = options.forceGlobalScale || false;
|
|
53
57
|
this._cartesian = utils.createVector3(options.cartesian);
|
|
54
58
|
this._rootCartesian = new Vec3();
|
|
55
59
|
this._localPosition = utils.createVector3(options.localPosition);
|
|
@@ -65,12 +69,9 @@ class Entity {
|
|
|
65
69
|
this._pickingColor = new Vec3(0, 0, 0);
|
|
66
70
|
this._independentPicking = options.independentPicking || false;
|
|
67
71
|
this._relativePosition = options.relativePosition || false;
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
this._pitchRad = this._pitch * RADIANS;
|
|
72
|
-
this._yawRad = this._yaw * RADIANS;
|
|
73
|
-
this._rollRad = this._roll * RADIANS;
|
|
72
|
+
this._pitchRad = options.pitch || 0;
|
|
73
|
+
this._yawRad = options.yaw || 0;
|
|
74
|
+
this._rollRad = options.roll || 0;
|
|
74
75
|
this._scale = utils.createVector3(options.scale, new Vec3(1, 1, 1));
|
|
75
76
|
this._qFrame = Quat.IDENTITY;
|
|
76
77
|
this._qRot = Quat.IDENTITY;
|
|
@@ -270,7 +271,13 @@ class Entity {
|
|
|
270
271
|
this._scale.copy(scale);
|
|
271
272
|
this.geoObject && this.geoObject.setScale3v(this._scale);
|
|
272
273
|
for (let i = 0; i < this.childEntities.length; i++) {
|
|
273
|
-
this.childEntities[i]
|
|
274
|
+
let chi = this.childEntities[i];
|
|
275
|
+
if (chi.forceGlobalScale) {
|
|
276
|
+
chi.setScale3v(this._scale);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
chi.setScale3v(this.childEntities[i].getScale());
|
|
280
|
+
}
|
|
274
281
|
}
|
|
275
282
|
}
|
|
276
283
|
/**
|
|
@@ -282,7 +289,13 @@ class Entity {
|
|
|
282
289
|
this._scale.set(val, val, val);
|
|
283
290
|
this.geoObject && this.geoObject.setScale(val);
|
|
284
291
|
for (let i = 0; i < this.childEntities.length; i++) {
|
|
285
|
-
this.childEntities[i]
|
|
292
|
+
let chi = this.childEntities[i];
|
|
293
|
+
if (chi.forceGlobalScale) {
|
|
294
|
+
chi.setScale(val);
|
|
295
|
+
}
|
|
296
|
+
else {
|
|
297
|
+
chi.setScale3v(this.childEntities[i].getScale());
|
|
298
|
+
}
|
|
286
299
|
}
|
|
287
300
|
}
|
|
288
301
|
/**
|
|
@@ -351,64 +364,61 @@ class Entity {
|
|
|
351
364
|
}
|
|
352
365
|
/**
|
|
353
366
|
* Sets the pitch rotation of the entity.
|
|
354
|
-
* @param {number} val - The new pitch angle in
|
|
367
|
+
* @param {number} val - The new pitch angle in radians.
|
|
355
368
|
*/
|
|
356
369
|
setPitch(val) {
|
|
357
|
-
this.
|
|
358
|
-
this._pitchRad = val * RADIANS;
|
|
370
|
+
this._pitchRad = val;
|
|
359
371
|
this._updateAbsolutePosition();
|
|
360
372
|
}
|
|
361
373
|
/**
|
|
362
374
|
* Sets the yaw rotation of the entity.
|
|
363
|
-
* @param {number} val - The new yaw angle in
|
|
375
|
+
* @param {number} val - The new yaw angle in radians.
|
|
364
376
|
*/
|
|
365
377
|
setYaw(val) {
|
|
366
|
-
this.
|
|
367
|
-
this._yawRad = val * RADIANS;
|
|
378
|
+
this._yawRad = val;
|
|
368
379
|
this._updateAbsolutePosition();
|
|
369
380
|
}
|
|
370
381
|
/**
|
|
371
382
|
* Sets the roll rotation of the entity.
|
|
372
383
|
* @public
|
|
373
|
-
* @param {number} val - The new roll angle in
|
|
384
|
+
* @param {number} val - The new roll angle in radians.
|
|
374
385
|
*/
|
|
375
386
|
setRoll(val) {
|
|
376
|
-
this.
|
|
377
|
-
this._rollRad = val * RADIANS;
|
|
387
|
+
this._rollRad = val;
|
|
378
388
|
this._updateAbsolutePosition();
|
|
379
389
|
}
|
|
380
390
|
/**
|
|
381
391
|
* Gets the pitch angle of the entity.
|
|
382
392
|
* @public
|
|
383
|
-
* @returns {number} The pitch angle in
|
|
393
|
+
* @returns {number} The pitch angle in radians.
|
|
384
394
|
*/
|
|
385
395
|
getPitch() {
|
|
386
|
-
return this.
|
|
396
|
+
return this._pitchRad;
|
|
387
397
|
}
|
|
388
398
|
/**
|
|
389
399
|
* Gets the yaw angle of the entity.
|
|
390
400
|
* @public
|
|
391
|
-
* @returns {number} The yaw angle in
|
|
401
|
+
* @returns {number} The yaw angle in radians.
|
|
392
402
|
*/
|
|
393
403
|
getYaw() {
|
|
394
|
-
return this.
|
|
404
|
+
return this._yawRad;
|
|
395
405
|
}
|
|
396
406
|
/**
|
|
397
407
|
* Gets the roll angle of the entity.
|
|
398
408
|
* @public
|
|
399
|
-
* @returns {number} The roll angle in
|
|
409
|
+
* @returns {number} The roll angle in radians.
|
|
400
410
|
*/
|
|
401
411
|
getRoll() {
|
|
402
|
-
return this.
|
|
412
|
+
return this._rollRad;
|
|
403
413
|
}
|
|
404
414
|
/**
|
|
405
415
|
* Sets the absolute pitch of the entity.
|
|
406
416
|
* @public
|
|
407
|
-
* @param {number} val - The absolute pitch angle in
|
|
417
|
+
* @param {number} val - The absolute pitch angle in radians.
|
|
408
418
|
*/
|
|
409
419
|
setAbsolutePitch(val) {
|
|
410
420
|
if (this._relativePosition) {
|
|
411
|
-
this._absoluteQRot.setPitchYawRoll(val
|
|
421
|
+
this._absoluteQRot.setPitchYawRoll(val, this.getAbsoluteYaw(), this.getAbsoluteRoll(), this._qFrame);
|
|
412
422
|
this._updatePitchYawRoll();
|
|
413
423
|
}
|
|
414
424
|
else {
|
|
@@ -418,11 +428,11 @@ class Entity {
|
|
|
418
428
|
/**
|
|
419
429
|
* Sets the absolute yaw of the entity.
|
|
420
430
|
* @public
|
|
421
|
-
* @param {number} val - The absolute yaw angle in
|
|
431
|
+
* @param {number} val - The absolute yaw angle in radians.
|
|
422
432
|
*/
|
|
423
433
|
setAbsoluteYaw(val) {
|
|
424
434
|
if (this._relativePosition) {
|
|
425
|
-
this._absoluteQRot.setPitchYawRoll(this.getAbsolutePitch()
|
|
435
|
+
this._absoluteQRot.setPitchYawRoll(this.getAbsolutePitch(), val, this.getAbsoluteRoll(), this._qFrame);
|
|
426
436
|
this._updatePitchYawRoll();
|
|
427
437
|
}
|
|
428
438
|
else {
|
|
@@ -432,11 +442,11 @@ class Entity {
|
|
|
432
442
|
/**
|
|
433
443
|
* Sets the absolute roll of the entity.
|
|
434
444
|
* @public
|
|
435
|
-
* @param {number} val - The absolute roll angle in
|
|
445
|
+
* @param {number} val - The absolute roll angle in radians.
|
|
436
446
|
*/
|
|
437
447
|
setAbsoluteRoll(val) {
|
|
438
448
|
if (this._relativePosition) {
|
|
439
|
-
this._absoluteQRot.setPitchYawRoll(this.getAbsolutePitch()
|
|
449
|
+
this._absoluteQRot.setPitchYawRoll(this.getAbsolutePitch(), this.getAbsoluteYaw(), val, this._qFrame);
|
|
440
450
|
this._updatePitchYawRoll();
|
|
441
451
|
}
|
|
442
452
|
else {
|
|
@@ -446,35 +456,35 @@ class Entity {
|
|
|
446
456
|
/**
|
|
447
457
|
* Gets the absolute pitch angle of the entity.
|
|
448
458
|
* @public
|
|
449
|
-
* @returns {number} The absolute pitch angle in
|
|
459
|
+
* @returns {number} The absolute pitch angle in radians.
|
|
450
460
|
*/
|
|
451
461
|
getAbsolutePitch() {
|
|
452
462
|
if (this.parent && this._relativePosition) {
|
|
453
|
-
return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getPitch()
|
|
463
|
+
return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getPitch();
|
|
454
464
|
}
|
|
455
|
-
return this.
|
|
465
|
+
return this._pitchRad;
|
|
456
466
|
}
|
|
457
467
|
/**
|
|
458
468
|
* Gets the absolute yaw angle of the entity.
|
|
459
469
|
* @public
|
|
460
|
-
* @returns {number} The absolute yaw angle in
|
|
470
|
+
* @returns {number} The absolute yaw angle in radians.
|
|
461
471
|
*/
|
|
462
472
|
getAbsoluteYaw() {
|
|
463
473
|
if (this.parent && this._relativePosition) {
|
|
464
|
-
return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getYaw()
|
|
474
|
+
return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getYaw();
|
|
465
475
|
}
|
|
466
|
-
return this.
|
|
476
|
+
return this._yawRad;
|
|
467
477
|
}
|
|
468
478
|
/**
|
|
469
479
|
* Gets the absolute roll angle of the entity.
|
|
470
480
|
* @public
|
|
471
|
-
* @returns {number} The absolute roll angle in
|
|
481
|
+
* @returns {number} The absolute roll angle in radians.
|
|
472
482
|
*/
|
|
473
483
|
getAbsoluteRoll() {
|
|
474
484
|
if (this.parent && this._relativePosition) {
|
|
475
|
-
return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getRoll()
|
|
485
|
+
return this._qFrame.conjugate().inverse().mul(this._absoluteQRot).getRoll();
|
|
476
486
|
}
|
|
477
|
-
return this.
|
|
487
|
+
return this._rollRad;
|
|
478
488
|
}
|
|
479
489
|
_getScaleByDistance() {
|
|
480
490
|
let scd = 1;
|
|
@@ -553,9 +563,9 @@ class Entity {
|
|
|
553
563
|
this._pitchRad = this._qRot.getPitch();
|
|
554
564
|
this._yawRad = this._qRot.getYaw();
|
|
555
565
|
this._rollRad = this._qRot.getRoll();
|
|
556
|
-
this._pitch = this._pitchRad * DEGREES;
|
|
557
|
-
this._yaw = this._yawRad * DEGREES;
|
|
558
|
-
this._roll = this._rollRad * DEGREES;
|
|
566
|
+
// this._pitch = this._pitchRad * DEGREES;
|
|
567
|
+
// this._yaw = this._yawRad * DEGREES;
|
|
568
|
+
// this._roll = this._rollRad * DEGREES;
|
|
559
569
|
if (this.geoObject) {
|
|
560
570
|
this.geoObject.setRotation(this._absoluteQRot);
|
|
561
571
|
}
|
|
@@ -579,7 +589,12 @@ class Entity {
|
|
|
579
589
|
if (this._entityCollection && this._entityCollection.renderNode) {
|
|
580
590
|
this._qFrame = this._entityCollection.renderNode.getFrameRotation(this._cartesian);
|
|
581
591
|
}
|
|
582
|
-
|
|
592
|
+
if (parent && this.forceGlobalRotation) {
|
|
593
|
+
this._qRot.setPitchYawRoll(parent._pitchRad, parent._yawRad, parent._rollRad, this._qFrame);
|
|
594
|
+
}
|
|
595
|
+
else {
|
|
596
|
+
this._qRot.setPitchYawRoll(this._pitchRad, this._yawRad, this._rollRad, this._qFrame);
|
|
597
|
+
}
|
|
583
598
|
this._absoluteQRot.copy(this._qRot);
|
|
584
599
|
this._rootCartesian.copy(this._cartesian);
|
|
585
600
|
this._absoluteLocalPosition.copy(this._localPosition);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { BillboardHandler } from "./BillboardHandler";
|
|
2
|
-
import { EventsHandler } from "../Events";
|
|
2
|
+
import type { EventsHandler } from "../Events";
|
|
3
3
|
import { Entity } from "./Entity";
|
|
4
4
|
import { Ellipsoid } from "../ellipsoid/Ellipsoid";
|
|
5
5
|
import { EntityCollectionNode } from "../quadTree/EntityCollectionNode";
|
|
6
6
|
import { GeoObjectHandler } from "./GeoObjectHandler";
|
|
7
7
|
import { LabelHandler } from "./LabelHandler";
|
|
8
|
-
import { Vec3
|
|
8
|
+
import { Vec3 } from "../math/Vec3";
|
|
9
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
9
10
|
import { PointCloudHandler } from "./PointCloudHandler";
|
|
10
11
|
import { PolylineHandler } from "./PolylineHandler";
|
|
11
12
|
import { RayHandler } from "./RayHandler";
|
|
@@ -152,7 +153,7 @@ declare class EntityCollection {
|
|
|
152
153
|
* Second index - far distance to the entity, when entity becomes zero scale.
|
|
153
154
|
* Third index - far distance to the entity, when entity becomes invisible.
|
|
154
155
|
* @public
|
|
155
|
-
* @type {Array.<number>}
|
|
156
|
+
* @type {Array.<number>}
|
|
156
157
|
*/
|
|
157
158
|
scaleByDistance: NumberArray3;
|
|
158
159
|
pickingScale: Float32Array;
|
|
@@ -2,8 +2,8 @@ import { Entity } from "./Entity";
|
|
|
2
2
|
import { Quat, Vec3, Vec4 } from "../math/index";
|
|
3
3
|
import { GeoObjectHandler } from "./GeoObjectHandler";
|
|
4
4
|
import { InstanceData } from "./InstanceData";
|
|
5
|
-
import { NumberArray3 } from "../math/Vec3";
|
|
6
|
-
import { NumberArray4 } from "../math/Vec4";
|
|
5
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
6
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
7
7
|
import { Object3d } from "../Object3d";
|
|
8
8
|
export declare const LOCAL_FORWARD: Vec3;
|
|
9
9
|
/**
|
|
@@ -13,9 +13,6 @@ export declare const LOCAL_FORWARD: Vec3;
|
|
|
13
13
|
* @property {string} [objSrc] - Source url of the 3D object.
|
|
14
14
|
* @property {string} [tag] - Unique instancing drawing identifier tag.
|
|
15
15
|
* @property {Vec3 | NumberArray3} [position] - Position in Cartesian coordinates.
|
|
16
|
-
* @property {number} [pitch] - Rotation around X-axis in degrees.
|
|
17
|
-
* @property {number} [yaw] - Rotation around Y-axis in degrees.
|
|
18
|
-
* @property {number} [roll] - Rotation around Z-axis in degrees.
|
|
19
16
|
* @property {number | Vec3 | NumberArray3} [scale] - Scale of the object.
|
|
20
17
|
* @property {Vec3 | NumberArray3} [translate] - Translation offset.
|
|
21
18
|
* @property {Vec4 | NumberArray4 | string} [color] - RGBA color or HTML color string.
|
|
@@ -26,9 +23,6 @@ export interface IGeoObjectParams {
|
|
|
26
23
|
objSrc?: string;
|
|
27
24
|
tag?: string;
|
|
28
25
|
position?: Vec3 | NumberArray3;
|
|
29
|
-
pitch?: number;
|
|
30
|
-
yaw?: number;
|
|
31
|
-
roll?: number;
|
|
32
26
|
scale?: number | Vec3 | NumberArray3;
|
|
33
27
|
translate?: Vec3 | NumberArray3;
|
|
34
28
|
color?: Vec4 | NumberArray4 | string;
|
|
@@ -42,9 +36,6 @@ export interface IGeoObjectParams {
|
|
|
42
36
|
* @param {string} [options.objSrc] - Source url of the 3D object.
|
|
43
37
|
* @param {string} [options.tag] - Unique instancing drawing identifier tag.
|
|
44
38
|
* @param {Vec3 | NumberArray3} [options.position] - Position in Cartesian coordinates.
|
|
45
|
-
* @param {number} [options.pitch=0] - Rotation around X-axis in degrees.
|
|
46
|
-
* @param {number} [options.yaw=0] - Rotation around Y-axis in degrees.
|
|
47
|
-
* @param {number} [options.roll=0] - Rotation around Z-axis in degrees.
|
|
48
39
|
* @param {number | Vec3 | NumberArray3} [options.scale=1] - Scale of the object.
|
|
49
40
|
* @param {Vec3 | NumberArray3} [options.translate] - Translation offset.
|
|
50
41
|
* @param {Vec4 | NumberArray4 | string} [options.color] - RGBA color or HTML color string.
|
|
@@ -10,9 +10,6 @@ export const LOCAL_FORWARD = new Vec3(0.0, 0.0, -1.0);
|
|
|
10
10
|
* @param {string} [options.objSrc] - Source url of the 3D object.
|
|
11
11
|
* @param {string} [options.tag] - Unique instancing drawing identifier tag.
|
|
12
12
|
* @param {Vec3 | NumberArray3} [options.position] - Position in Cartesian coordinates.
|
|
13
|
-
* @param {number} [options.pitch=0] - Rotation around X-axis in degrees.
|
|
14
|
-
* @param {number} [options.yaw=0] - Rotation around Y-axis in degrees.
|
|
15
|
-
* @param {number} [options.roll=0] - Rotation around Z-axis in degrees.
|
|
16
13
|
* @param {number | Vec3 | NumberArray3} [options.scale=1] - Scale of the object.
|
|
17
14
|
* @param {Vec3 | NumberArray3} [options.translate] - Translation offset.
|
|
18
15
|
* @param {Vec4 | NumberArray4 | string} [options.color] - RGBA color or HTML color string.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Entity } from "./Entity";
|
|
2
2
|
import { Extent } from "../Extent";
|
|
3
3
|
import { GeometryHandler } from "./GeometryHandler";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { Vec4 } from "../math/Vec4";
|
|
5
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
6
|
+
import type { NumberArray2 } from "../math/Vec2";
|
|
7
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
7
8
|
export declare enum GeometryTypeEnum {
|
|
8
9
|
POINT = 1,
|
|
9
10
|
LINESTRING = 2,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Extent } from "../Extent";
|
|
2
|
-
import { Handler
|
|
2
|
+
import { Handler } from "../webgl/Handler";
|
|
3
|
+
import type { WebGLBufferExt } from "../webgl/Handler";
|
|
3
4
|
import { Vector } from "../layer/Vector";
|
|
4
5
|
import { Node } from "../quadTree/Node";
|
|
5
6
|
import { Vec3 } from "../math/Vec3";
|
|
6
7
|
import { Vec4 } from "../math/Vec4";
|
|
7
|
-
import { CoordinatesType, Geometry } from "./Geometry";
|
|
8
|
+
import type { CoordinatesType, Geometry } from "./Geometry";
|
|
8
9
|
declare class GeometryHandler {
|
|
9
10
|
static __counter__: number;
|
|
10
11
|
protected __id: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GeoObject } from "./GeoObject";
|
|
2
|
-
import { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
|
|
3
|
-
import { TypedArray } from "../utils/shared";
|
|
2
|
+
import type { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
|
|
3
|
+
import type { TypedArray } from "../utils/shared";
|
|
4
4
|
import { Program } from "../webgl/Program";
|
|
5
5
|
import { GeoObjectHandler } from "./GeoObjectHandler";
|
|
6
6
|
export declare class InstanceData {
|
|
@@ -156,17 +156,20 @@ export class InstanceData {
|
|
|
156
156
|
}
|
|
157
157
|
createColorTexture(image) {
|
|
158
158
|
if (this._geoObjectHandler && this._geoObjectHandler._renderer) {
|
|
159
|
-
|
|
159
|
+
let h = this._geoObjectHandler._renderer.handler;
|
|
160
|
+
this._colorTexture = h.createTextureDefault(image, null, h.gl.REPEAT);
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
163
|
createNormalTexture(image) {
|
|
163
164
|
if (this._geoObjectHandler && this._geoObjectHandler._renderer) {
|
|
164
|
-
|
|
165
|
+
let h = this._geoObjectHandler._renderer.handler;
|
|
166
|
+
this._normalTexture = h.createTextureDefault(image, null, h.gl.REPEAT);
|
|
165
167
|
}
|
|
166
168
|
}
|
|
167
169
|
createMetallicRoughnessTexture(image) {
|
|
168
170
|
if (this._geoObjectHandler && this._geoObjectHandler._renderer) {
|
|
169
|
-
|
|
171
|
+
let h = this._geoObjectHandler._renderer.handler;
|
|
172
|
+
this._metallicRoughnessTexture = h.createTextureDefault(image, null, h.gl.REPEAT);
|
|
170
173
|
}
|
|
171
174
|
}
|
|
172
175
|
clear() {
|
package/lib/js/entity/Label.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { BaseBillboard
|
|
2
|
-
import {
|
|
1
|
+
import { BaseBillboard } from "./BaseBillboard";
|
|
2
|
+
import type { IBaseBillboardParams } from "./BaseBillboard";
|
|
3
|
+
import { Vec4 } from "../math/Vec4";
|
|
4
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
3
5
|
import { FontAtlas } from "../utils/FontAtlas";
|
|
4
6
|
import { LabelHandler } from "./LabelHandler";
|
|
5
7
|
export interface ILabelParams extends IBaseBillboardParams {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Label } from "./Label";
|
|
2
2
|
import { BaseBillboardHandler } from "./BaseBillboardHandler";
|
|
3
3
|
import { EntityCollection } from "./EntityCollection";
|
|
4
|
-
import { WebGLBufferExt } from "../webgl/Handler";
|
|
4
|
+
import type { WebGLBufferExt } from "../webgl/Handler";
|
|
5
5
|
import { Vec3 } from "../math/Vec3";
|
|
6
6
|
import { Vec4 } from "../math/Vec4";
|
|
7
7
|
type LabelWorkerCallbackData = {
|
|
@@ -3,7 +3,7 @@ import { PointCloudHandler } from "./PointCloudHandler";
|
|
|
3
3
|
import { RenderNode } from "../scene/RenderNode";
|
|
4
4
|
import { Vec3 } from "../math/Vec3";
|
|
5
5
|
import { Vec4 } from "../math/Vec4";
|
|
6
|
-
import { WebGLBufferExt } from "../webgl/Handler";
|
|
6
|
+
import type { WebGLBufferExt } from "../webgl/Handler";
|
|
7
7
|
import { EntityCollection } from "./EntityCollection";
|
|
8
8
|
export interface IPointCloudParams {
|
|
9
9
|
visibility?: boolean;
|