@openglobus/og 0.24.0 → 0.24.2
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 -5
- 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 +7 -4
- package/lib/@openglobus/js/camera/Frustum.d.ts +2 -2
- package/lib/@openglobus/js/camera/PlanetCamera.d.ts +1 -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 +3 -2
- package/lib/@openglobus/js/control/OldMouseNavigation.d.ts +3 -2
- 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/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 +23 -12
- package/lib/@openglobus/js/entity/EntityCollection.d.ts +4 -3
- package/lib/@openglobus/js/entity/GeoObject.d.ts +2 -2
- 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/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/Quat.d.ts +6 -1
- 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 +6 -3
- package/lib/@openglobus/js/scene/Axes.d.ts +1 -1
- package/lib/@openglobus/js/scene/Planet.d.ts +8 -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 +11 -7
- 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 -5
- package/lib/js/Globe.js +6 -2
- 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/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 +7 -4
- package/lib/js/camera/Frustum.d.ts +2 -2
- package/lib/js/camera/PlanetCamera.d.ts +1 -1
- 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/CompassButton.d.ts +1 -1
- package/lib/js/control/DebugInfo.d.ts +1 -1
- 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/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 +3 -2
- package/lib/js/control/OldMouseNavigation.d.ts +3 -2
- package/lib/js/control/RulerSwitcher.d.ts +2 -1
- package/lib/js/control/ScaleControl.d.ts +2 -1
- 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/SimpleSkyBackground.d.ts +2 -1
- package/lib/js/control/Sun.d.ts +2 -1
- package/lib/js/control/ToggleWireframe.d.ts +2 -1
- package/lib/js/control/TouchNavigation.d.ts +3 -2
- 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/drawing/PolygonDrawingScene.js +0 -1
- 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/ElevationProfileControl.js +0 -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/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/GeoObjectEditorScene.d.ts +2 -2
- package/lib/js/control/geoObjectEditor/MoveAxisEntity.d.ts +1 -1
- package/lib/js/control/geoObjectEditor/MovePlaneEntity.d.ts +1 -1
- package/lib/js/control/geoObjectEditor/RotateEntity.d.ts +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/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/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 +23 -12
- package/lib/js/entity/EntityCollection.d.ts +4 -3
- package/lib/js/entity/GeoObject.d.ts +2 -2
- 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/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/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/Quat.d.ts +6 -1
- package/lib/js/math/Quat.js +6 -1
- 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/RendererEvents.d.ts +6 -3
- package/lib/js/renderer/RendererEvents.js +2 -2
- package/lib/js/scene/Axes.d.ts +1 -1
- package/lib/js/scene/Planet.d.ts +8 -6
- package/lib/js/scene/SkyBox.d.ts +1 -1
- package/lib/js/segment/Segment.d.ts +7 -5
- 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/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 +11 -7
- package/lib/js/webgl/Handler.js +6 -3
- 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 +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dialog } from "../../ui/Dialog";
|
|
2
2
|
import { ToggleButton } from "../../ui/ToggleButton";
|
|
3
|
-
import { Control, IControlParams } from '../Control';
|
|
3
|
+
import { Control, type IControlParams } from '../Control';
|
|
4
4
|
import { TimelineView } from './TimelineView';
|
|
5
5
|
interface ITimelineControlParams extends IControlParams {
|
|
6
6
|
name?: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { EventsHandler } from "../../Events";
|
|
1
|
+
import type { EventsHandler } from "../../Events";
|
|
2
2
|
import { ButtonGroup } from "../../ui/ButtonGroup";
|
|
3
|
-
import {
|
|
3
|
+
import { View } from '../../ui/View';
|
|
4
|
+
import type { IViewParams, ViewEventsList } from '../../ui/View';
|
|
4
5
|
import { ToggleButton } from "../../ui/ToggleButton";
|
|
5
6
|
import { TimelineModel } from './TimelineModel';
|
|
6
|
-
import { MouseEventExt } from "../../input/MouseHandler";
|
|
7
|
+
import type { MouseEventExt } from "../../input/MouseHandler";
|
|
7
8
|
interface ITimelineViewParams extends IViewParams {
|
|
8
9
|
currentDate?: Date;
|
|
9
10
|
rangeStart?: Date;
|
|
@@ -159,7 +159,7 @@ declare class Ellipsoid {
|
|
|
159
159
|
* @param {LonLat} lonLat - Origin coordinates
|
|
160
160
|
* @param {number} azimuth - View azimuth in degrees
|
|
161
161
|
* @param {number} dist - Distance to the destination point coordinates in meters
|
|
162
|
-
* @returns {{
|
|
162
|
+
* @returns {{destination: LonLat, finalAzimuth: number}} - Destination point coordinates
|
|
163
163
|
*/
|
|
164
164
|
direct(lonLat: LonLat, azimuth: number, dist: number): IDirectResult;
|
|
165
165
|
/**
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Entity } from "./Entity";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Vec2 } from "../math/Vec2";
|
|
3
|
+
import { Vec3 } from "../math/Vec3";
|
|
4
|
+
import { Vec4 } from "../math/Vec4";
|
|
5
|
+
import type { NumberArray2 } from "../math/Vec2";
|
|
6
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
7
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
5
8
|
import { BaseBillboardHandler } from "./BaseBillboardHandler";
|
|
6
9
|
export interface IBaseBillboardParams {
|
|
7
10
|
position?: NumberArray3 | Vec3;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TypedArray } from "../utils/shared";
|
|
1
|
+
import type { TypedArray } from "../utils/shared";
|
|
2
2
|
import { EntityCollection } from "./EntityCollection";
|
|
3
3
|
import { Renderer } from "../renderer/Renderer";
|
|
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 { BaseBillboard } from "./BaseBillboard";
|
|
8
8
|
/**
|
|
9
9
|
* @class BaseBillboardHandler
|
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|
|
@@ -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 {
|
|
@@ -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;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Entity } from "./Entity";
|
|
2
2
|
import { Extent } from "../Extent";
|
|
3
3
|
import { LonLat } from "../LonLat";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { Vec3 } from "../math/Vec3";
|
|
5
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
6
|
+
import type { NumberArray2 } from "../math/Vec2";
|
|
7
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
7
8
|
import { PolylineHandler } from "./PolylineHandler";
|
|
8
9
|
import { RenderNode } from "../scene/RenderNode";
|
|
9
|
-
import { WebGLBufferExt } from "../webgl/Handler";
|
|
10
|
-
import { TypedArray } from "../utils/shared";
|
|
10
|
+
import type { WebGLBufferExt } from "../webgl/Handler";
|
|
11
|
+
import type { TypedArray } from "../utils/shared";
|
|
11
12
|
import { Ellipsoid } from "../ellipsoid/Ellipsoid";
|
|
12
13
|
export type Geodetic = LonLat | NumberArray2 | NumberArray3;
|
|
13
14
|
export type Cartesian = Vec3 | NumberArray3;
|
|
@@ -62,7 +63,7 @@ declare class Polyline {
|
|
|
62
63
|
/**
|
|
63
64
|
* Polyline RGBA color.
|
|
64
65
|
* @protected
|
|
65
|
-
* @type {Float32Array}
|
|
66
|
+
* @type {Float32Array}
|
|
66
67
|
*/
|
|
67
68
|
protected _defaultColor: Float32Array | NumberArray4;
|
|
68
69
|
/**
|
|
@@ -297,7 +298,8 @@ declare class Polyline {
|
|
|
297
298
|
getPathLonLat(): SegmentPathLonLatExt[];
|
|
298
299
|
getPathColors(): NumberArray4[][];
|
|
299
300
|
/**
|
|
300
|
-
*
|
|
301
|
+
* Sets polyline colors.
|
|
302
|
+
* @todo - Test the function.
|
|
301
303
|
* @param {NumberArray4[][]} pathColors
|
|
302
304
|
*/
|
|
303
305
|
setPathColors(pathColors: SegmentPathColor[]): void;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Vec3 } from "../math/Vec3";
|
|
2
|
+
import { Vec4 } from "../math/Vec4";
|
|
3
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
4
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
3
5
|
import { Entity } from "./Entity";
|
|
4
6
|
import { RayHandler } from "./RayHandler";
|
|
5
7
|
export interface IRayParams {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TypedArray } from "../utils/shared";
|
|
1
|
+
import type { TypedArray } from "../utils/shared";
|
|
2
2
|
import { EntityCollection } from "./EntityCollection";
|
|
3
3
|
import { Ray } from "./Ray";
|
|
4
4
|
import { Renderer } from "../renderer/Renderer";
|
|
5
5
|
import { Vec3 } from "../math/Vec3";
|
|
6
6
|
import { Vec4 } from "../math/Vec4";
|
|
7
|
-
import { WebGLBufferExt } from "../webgl/Handler";
|
|
7
|
+
import type { WebGLBufferExt } from "../webgl/Handler";
|
|
8
8
|
declare class RayHandler {
|
|
9
9
|
static __counter__: number;
|
|
10
10
|
protected __id: number;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Entity } from "./Entity";
|
|
2
2
|
import { RenderNode } from "../scene/RenderNode";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Vec3 } from "../math/Vec3";
|
|
4
|
+
import { Vec4 } from "../math/Vec4";
|
|
5
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
6
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
5
7
|
import { StripHandler } from "./StripHandler";
|
|
6
|
-
import { WebGLBufferExt } from "../webgl/Handler";
|
|
8
|
+
import type { WebGLBufferExt } from "../webgl/Handler";
|
|
7
9
|
type TPoiExt = Vec3 | NumberArray3;
|
|
8
10
|
type TStripExt = [TPoiExt, TPoiExt];
|
|
9
11
|
type TPoi = Vec3;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Extent } from "../Extent";
|
|
2
|
-
import { EventCallback, EventsHandler } from "../Events";
|
|
3
|
-
import { Layer
|
|
2
|
+
import type { EventCallback, EventsHandler } from "../Events";
|
|
3
|
+
import { Layer } from "./Layer";
|
|
4
|
+
import type { LayerEventsList, ILayerParams } from "./Layer";
|
|
4
5
|
import { LonLat } from "../LonLat";
|
|
5
6
|
import { Material } from "./Material";
|
|
6
|
-
import { NumberArray2 } from "../math/Vec2";
|
|
7
|
-
import { NumberArray4 } from "../math/Vec4";
|
|
7
|
+
import type { NumberArray2 } from "../math/Vec2";
|
|
8
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
8
9
|
import { Planet } from "../scene/Planet";
|
|
9
|
-
import { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
|
|
10
|
+
import type { WebGLBufferExt, WebGLTextureExt } from "../webgl/Handler";
|
|
10
11
|
export interface IBaseGeoImageParams extends ILayerParams {
|
|
11
12
|
fullExtent?: boolean;
|
|
12
13
|
corners?: NumberArray2[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { EventCallback, EventsHandler } from "../Events";
|
|
2
|
-
import {
|
|
1
|
+
import type { EventCallback, EventsHandler } from "../Events";
|
|
2
|
+
import { Layer } from "./Layer";
|
|
3
|
+
import type { ILayerParams, LayerEventsList } from "./Layer";
|
|
3
4
|
import { Material } from "../layer/Material";
|
|
4
|
-
import { NumberArray4 } from "../math/Vec4";
|
|
5
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
5
6
|
import { Planet } from "../scene/Planet";
|
|
6
7
|
type ApplyImageFunc = (material: HTMLCanvasElement | ImageBitmap | HTMLImageElement) => void;
|
|
7
8
|
type DrawTileCallback = (material: Material, applyImage: ApplyImageFunc) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseGeoImage
|
|
1
|
+
import { BaseGeoImage } from "./BaseGeoImage";
|
|
2
|
+
import type { IBaseGeoImageParams } from "./BaseGeoImage";
|
|
2
3
|
import { Material } from "./Material";
|
|
3
4
|
export interface IGeoImageParams extends IBaseGeoImageParams {
|
|
4
5
|
image?: HTMLImageElement | HTMLCanvasElement | ImageBitmap;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BaseGeoImage
|
|
1
|
+
import { BaseGeoImage } from './BaseGeoImage';
|
|
2
|
+
import type { IBaseGeoImageParams } from './BaseGeoImage';
|
|
2
3
|
import { Material } from "../layer/Material";
|
|
3
|
-
import { WebGLTextureExt } from "../webgl/Handler";
|
|
4
|
+
import type { WebGLTextureExt } from "../webgl/Handler";
|
|
4
5
|
interface IGeoTexture2dParams extends IBaseGeoImageParams {
|
|
5
6
|
texture?: WebGLTextureExt;
|
|
6
7
|
frameWidth?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseGeoImage
|
|
1
|
+
import { BaseGeoImage } from "./BaseGeoImage";
|
|
2
|
+
import type { IBaseGeoImageParams } from "./BaseGeoImage";
|
|
2
3
|
import { Material } from "./Material";
|
|
3
4
|
export interface IGeoVideoParams extends IBaseGeoImageParams {
|
|
4
5
|
videoElement?: HTMLVideoElement;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Billboard
|
|
1
|
+
import { Billboard } from "../entity/Billboard";
|
|
2
|
+
import type { IBillboardParams } from "../entity/Billboard";
|
|
2
3
|
import { Entity } from "../entity/Entity";
|
|
3
4
|
import { Extent } from "../Extent";
|
|
4
|
-
import { Vector
|
|
5
|
+
import { Vector } from "./Vector";
|
|
6
|
+
import type { IVectorParams } from "./Vector";
|
|
5
7
|
interface IKMLParams extends IVectorParams {
|
|
6
8
|
color?: string;
|
|
7
9
|
billboard?: IBillboardParams;
|
|
@@ -22,7 +24,7 @@ export declare class KML extends Vector {
|
|
|
22
24
|
protected _AGBRtoRGBA(agbr: string): string | undefined;
|
|
23
25
|
/**
|
|
24
26
|
* @protected
|
|
25
|
-
returns array of longitude, latitude, altitude (altitude optional)
|
|
27
|
+
* @returns array of longitude, latitude, altitude (altitude optional)
|
|
26
28
|
*/
|
|
27
29
|
protected _parseKMLcoordinates(coords: Element): number[][];
|
|
28
30
|
protected _kmlPlacemarkToEntity(placemark: Element | undefined | null, extent: Extent): Entity | undefined;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { EventsHandler } from "../Events";
|
|
1
|
+
import type { EventsHandler } from "../Events";
|
|
2
2
|
import { Extent } from "../Extent";
|
|
3
3
|
import { Node } from "../quadTree/Node";
|
|
4
4
|
import { Material } from "./Material";
|
|
5
5
|
import { Planet } from "../scene/Planet";
|
|
6
6
|
import { Segment } from "../segment/Segment";
|
|
7
|
-
import { Vec3
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { Vec3 } from "../math/Vec3";
|
|
8
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
9
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
10
|
+
import type { IDefaultTextureParams } from "../webgl/Handler";
|
|
10
11
|
export interface ILayerParams {
|
|
11
12
|
properties?: any;
|
|
12
13
|
labelMaxLetters?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Layer } from "./Layer";
|
|
2
2
|
import { Node } from "../quadTree/Node";
|
|
3
3
|
import { Segment } from "../segment/Segment";
|
|
4
|
-
import { WebGLTextureExt } from "../webgl/Handler";
|
|
5
|
-
import { NumberArray4 } from "../math/Vec4";
|
|
4
|
+
import type { WebGLTextureExt } from "../webgl/Handler";
|
|
5
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
6
6
|
/**
|
|
7
7
|
* @class Material
|
|
8
8
|
* @param {Segment} segment
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { Entity
|
|
1
|
+
import { Entity } from "../entity/Entity";
|
|
2
|
+
import type { IEntityParams } from "../entity/Entity";
|
|
2
3
|
import { EntityCollection } from "../entity/EntityCollection";
|
|
3
4
|
import { EntityCollectionsTreeStrategy } from "../quadTree/EntityCollectionsTreeStrategy";
|
|
4
|
-
import { EventsHandler } from "../Events";
|
|
5
|
+
import type { EventsHandler } from "../Events";
|
|
5
6
|
import { GeometryHandler } from "../entity/GeometryHandler";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
7
|
+
import { Layer } from "./Layer";
|
|
8
|
+
import type { ILayerParams, LayerEventsList } from "./Layer";
|
|
9
|
+
import type { NumberArray3 } from "../math/Vec3";
|
|
8
10
|
import { Planet } from "../scene/Planet";
|
|
9
11
|
import { Material } from "./Material";
|
|
10
|
-
import { NumberArray4 } from "../math/Vec4";
|
|
12
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
11
13
|
export interface IVectorParams extends ILayerParams {
|
|
12
14
|
entities?: Entity[] | IEntityParams[];
|
|
13
15
|
polygonOffsetUnits?: number;
|
|
@@ -73,7 +75,7 @@ declare class Vector extends Layer {
|
|
|
73
75
|
* Second index - far distance to the entity, when entity becomes zero scale.
|
|
74
76
|
* Third index - far distance to the entity, when entity becomes invisible.
|
|
75
77
|
* @public
|
|
76
|
-
* @type {NumberArray3}
|
|
78
|
+
* @type {NumberArray3}
|
|
77
79
|
*/
|
|
78
80
|
scaleByDistance: NumberArray3;
|
|
79
81
|
pickingScale: Float32Array;
|
|
@@ -197,7 +199,7 @@ declare class Vector extends Layer {
|
|
|
197
199
|
/**
|
|
198
200
|
* Safety entities loop.
|
|
199
201
|
* @public
|
|
200
|
-
* @param {(
|
|
202
|
+
* @param {function(Entity, number): void} callback - Entity callback.
|
|
201
203
|
*/
|
|
202
204
|
each(callback: (entity: Entity, index?: number) => void): void;
|
|
203
205
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Extent } from "../Extent";
|
|
2
2
|
import { Segment } from "../segment/Segment";
|
|
3
|
-
import { XYZ
|
|
3
|
+
import { XYZ } from "./XYZ";
|
|
4
|
+
import type { IXYZParams } from "./XYZ";
|
|
4
5
|
interface IWMSParams extends IXYZParams {
|
|
5
6
|
extra?: any;
|
|
6
7
|
layers: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Layer
|
|
1
|
+
import { Layer } from "./Layer";
|
|
2
|
+
import type { ILayerParams, LayerEventsList } from "./Layer";
|
|
2
3
|
import { Segment } from "../segment/Segment";
|
|
3
|
-
import { EventsHandler } from "../Events";
|
|
4
|
+
import type { EventsHandler } from "../Events";
|
|
4
5
|
import { Material } from "./Material";
|
|
5
|
-
import { NumberArray4 } from "../math/Vec4";
|
|
6
|
+
import type { NumberArray4 } from "../math/Vec4";
|
|
6
7
|
export interface IXYZParams extends ILayerParams {
|
|
7
8
|
url?: string;
|
|
8
9
|
subdomains?: string[];
|
|
@@ -238,10 +238,15 @@ export declare class Quat {
|
|
|
238
238
|
* @returns {Quat} -
|
|
239
239
|
*/
|
|
240
240
|
setFromAxisAngle(axis: Vec3, angle: number): Quat;
|
|
241
|
+
/**
|
|
242
|
+
* @typedef {Object} QuatAxisAngle
|
|
243
|
+
* @property {Vec3} axis - The rotation axis.
|
|
244
|
+
* @property {number} angle - The rotation angle in radians.
|
|
245
|
+
*/
|
|
241
246
|
/**
|
|
242
247
|
* Returns axis and angle of the current Quat.
|
|
243
248
|
* @public
|
|
244
|
-
* @returns
|
|
249
|
+
* @returns QuatAxisAngle -
|
|
245
250
|
*/
|
|
246
251
|
getAxisAngle(): {
|
|
247
252
|
axis: Vec3;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Quat } from "./Quat";
|
|
2
|
-
import { Vec4
|
|
3
|
-
import {
|
|
2
|
+
import { Vec4 } from "./Vec4";
|
|
3
|
+
import type { NumberArray4 } from "./Vec4";
|
|
4
|
+
import type { NumberArray2 } from "./Vec2";
|
|
4
5
|
export type NumberArray3 = [number, number, number];
|
|
5
6
|
/**
|
|
6
7
|
* Class represents a 3d vector.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module og/math/coder
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { Vec4 } from "./Vec4";
|
|
5
|
+
import { Vec2 } from "./Vec2";
|
|
6
|
+
import type { NumberArray4 } from "./Vec4";
|
|
7
|
+
import type { NumberArray3 } from "./Vec3";
|
|
8
|
+
import type { NumberArray2 } from "./Vec2";
|
|
7
9
|
/**
|
|
8
10
|
* Encode 32 bit float value to the RGBA vector.
|
|
9
11
|
* @function
|
|
@@ -5,7 +5,10 @@ import { Mat4 } from './Mat4';
|
|
|
5
5
|
import { Plane } from './Plane';
|
|
6
6
|
import { Quat } from './Quat';
|
|
7
7
|
import { Ray } from './Ray';
|
|
8
|
-
import { Vec2
|
|
9
|
-
import { Vec3
|
|
10
|
-
import { Vec4
|
|
8
|
+
import { Vec2 } from './Vec2';
|
|
9
|
+
import { Vec3 } from './Vec3';
|
|
10
|
+
import { Vec4 } from './Vec4';
|
|
11
|
+
import type { NumberArray2 } from './Vec2';
|
|
12
|
+
import type { NumberArray3 } from './Vec3';
|
|
13
|
+
import type { NumberArray4 } from './Vec4';
|
|
11
14
|
export { Line2, Line3, Mat3, Mat4, Plane, Quat, Ray, Vec2, Vec3, Vec4, type NumberArray2, type NumberArray3, type NumberArray4 };
|
|
@@ -250,11 +250,11 @@ export declare function solve_iteration_fixed(f: (x: number) => number, x0: numb
|
|
|
250
250
|
* Solve using iteration; terminate when error is below err or the maximum
|
|
251
251
|
* number of iterations is reached. Used in Euler's equation(see og.orbit) solving.
|
|
252
252
|
* @function
|
|
253
|
-
* @param {(
|
|
253
|
+
* @param {function(number): number} f - Equation.
|
|
254
254
|
* @param {number} x0 - First approximation.
|
|
255
255
|
* @param {number} err - Maximal accepted error value.
|
|
256
256
|
* @param {number} maxIter - Maximum iterations.
|
|
257
|
-
* @returns {number} -
|
|
257
|
+
* @returns {number} - The computed solution.
|
|
258
258
|
*/
|
|
259
259
|
export declare function solve_iteration(f: (x: number) => number, x0: number, err: number, maxIter?: number): number;
|
|
260
260
|
/**
|
|
@@ -4,7 +4,8 @@ import { Planet } from "../../scene/Planet";
|
|
|
4
4
|
import { LonLat } from "../../LonLat";
|
|
5
5
|
import { Entity } from "../../entity/Entity";
|
|
6
6
|
import { EntityCollection } from "../../entity/EntityCollection";
|
|
7
|
-
import { EntityCollectionNode
|
|
7
|
+
import { EntityCollectionNode } from "../EntityCollectionNode";
|
|
8
|
+
import type { NodesDict } from "../EntityCollectionNode";
|
|
8
9
|
export declare class EarthEntityCollectionNodeLonLat extends EntityCollectionNode {
|
|
9
10
|
isNorth: boolean;
|
|
10
11
|
strategy: EarthEntityCollectionsTreeStrategy;
|
|
@@ -9,14 +9,12 @@ export declare class EarthQuadTreeStrategy extends QuadTreeStrategy {
|
|
|
9
9
|
* Current visible north pole nodes tree nodes array.
|
|
10
10
|
* @public
|
|
11
11
|
* @type {Node}
|
|
12
|
-
* @todo
|
|
13
12
|
*/
|
|
14
13
|
_visibleNodesNorth: Record<number, Node>;
|
|
15
14
|
/**
|
|
16
15
|
* Current visible south pole nodes tree nodes array.
|
|
17
16
|
* @public
|
|
18
17
|
* @type {Node}
|
|
19
|
-
* @todo
|
|
20
18
|
*/
|
|
21
19
|
_visibleNodesSouth: Record<number, Node>;
|
|
22
20
|
constructor(planet: Planet);
|