@openglobus/og 0.19.4 → 0.20.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/README.md +3 -3
- package/css/og.css +18 -4
- package/lib/@openglobus/js/Clock.d.ts +106 -0
- package/lib/@openglobus/js/Deferred.d.ts +6 -0
- package/lib/@openglobus/js/Events.d.ts +90 -0
- package/lib/@openglobus/js/Extent.d.ts +145 -0
- package/lib/@openglobus/js/Globe.d.ts +134 -0
- package/lib/@openglobus/js/ImageCanvas.d.ts +128 -0
- package/lib/@openglobus/js/Lock.d.ts +15 -0
- package/lib/@openglobus/js/LonLat.d.ts +128 -0
- package/lib/@openglobus/js/Object3d.d.ts +64 -0
- package/lib/@openglobus/js/Popup.d.ts +46 -0
- package/lib/@openglobus/js/QueueArray.d.ts +16 -0
- package/lib/@openglobus/js/Rectangle.d.ts +76 -0
- package/lib/@openglobus/js/Stack.d.ts +20 -0
- package/lib/@openglobus/js/astro/astro.d.ts +39 -0
- package/lib/@openglobus/js/astro/earth.d.ts +8 -0
- package/lib/@openglobus/js/astro/jd.d.ts +234 -0
- package/lib/@openglobus/js/astro/orbit.d.ts +5 -0
- package/lib/@openglobus/js/astro/rotation.d.ts +2 -0
- package/lib/@openglobus/js/bv/Box.d.ts +32 -0
- package/lib/@openglobus/js/bv/Sphere.d.ts +37 -0
- package/lib/@openglobus/js/bv/index.d.ts +3 -0
- package/lib/@openglobus/js/camera/Camera.d.ts +314 -0
- package/lib/@openglobus/js/camera/Frustum.d.ts +139 -0
- package/lib/@openglobus/js/camera/PlanetCamera.d.ts +234 -0
- package/lib/@openglobus/js/camera/index.d.ts +3 -0
- package/lib/@openglobus/js/cons.d.ts +40 -0
- package/lib/@openglobus/js/control/Atmosphere.d.ts +16 -0
- package/lib/@openglobus/js/control/CompassButton.d.ts +16 -0
- package/lib/@openglobus/js/control/Control.d.ts +100 -0
- package/lib/@openglobus/js/control/DebugInfo.d.ts +25 -0
- package/lib/@openglobus/js/control/DrawingSwitcher.d.ts +13 -0
- package/lib/@openglobus/js/control/EarthCoordinates.d.ts +41 -0
- package/lib/@openglobus/js/control/EarthNavigation.d.ts +50 -0
- package/lib/@openglobus/js/control/GeoImageDragControl.d.ts +22 -0
- package/lib/@openglobus/js/control/KeyboardNavigation.d.ts +28 -0
- package/lib/@openglobus/js/control/LayerAnimation.d.ts +71 -0
- package/lib/@openglobus/js/control/LayerSwitcher.d.ts +36 -0
- package/lib/@openglobus/js/control/Lighting.d.ts +53 -0
- package/lib/@openglobus/js/control/MouseNavigation.d.ts +64 -0
- package/lib/@openglobus/js/control/MouseWheelZoomControl.d.ts +44 -0
- package/lib/@openglobus/js/control/RulerSwitcher.d.ts +17 -0
- package/lib/@openglobus/js/control/ScaleControl.d.ts +24 -0
- package/lib/@openglobus/js/control/SegmentBoundVisualization.d.ts +12 -0
- package/lib/@openglobus/js/control/ShowFps.d.ts +9 -0
- package/lib/@openglobus/js/control/SimpleNavigation.d.ts +25 -0
- package/lib/@openglobus/js/control/SimpleSkyBackground.d.ts +17 -0
- package/lib/@openglobus/js/control/Sun.d.ts +33 -0
- package/lib/@openglobus/js/control/ToggleWireframe.d.ts +14 -0
- package/lib/@openglobus/js/control/TouchNavigation.d.ts +52 -0
- package/lib/@openglobus/js/control/ZoomControl.d.ts +27 -0
- package/lib/@openglobus/js/control/drawing/DrawingControl.d.ts +12 -0
- package/lib/@openglobus/js/control/drawing/LineStringDrawingScene.d.ts +15 -0
- package/lib/@openglobus/js/control/drawing/PolygonDrawingScene.d.ts +98 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfile.d.ts +77 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfileButtonsView.d.ts +14 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfileControl.d.ts +33 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfileLegend.d.ts +20 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfileScene.d.ts +80 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfileView.d.ts +63 -0
- package/lib/@openglobus/js/control/elevationProfile/PointListDialog.d.ts +12 -0
- package/lib/@openglobus/js/control/heightRuler/HeightRuler.d.ts +7 -0
- package/lib/@openglobus/js/control/heightRuler/HeightRulerScene.d.ts +35 -0
- package/lib/@openglobus/js/control/heightRuler/HeightRulerSwitcher.d.ts +6 -0
- package/lib/@openglobus/js/control/index.d.ts +29 -0
- package/lib/@openglobus/js/control/ruler/Ruler.d.ts +13 -0
- package/lib/@openglobus/js/control/ruler/RulerScene.d.ts +88 -0
- package/lib/@openglobus/js/control/selection/Selection.d.ts +55 -0
- package/lib/@openglobus/js/control/selection/SelectionScene.d.ts +44 -0
- package/lib/@openglobus/js/control/timeline/TimelineControl.d.ts +18 -0
- package/lib/@openglobus/js/control/timeline/TimelineModel.d.ts +41 -0
- package/lib/@openglobus/js/control/timeline/TimelineView.d.ts +85 -0
- package/lib/@openglobus/js/control/timeline/timelineUtils.d.ts +12 -0
- package/lib/@openglobus/js/control/visibleExtent/drawnode.d.ts +7 -0
- package/lib/@openglobus/js/ellipsoid/Ellipsoid.d.ts +193 -0
- package/lib/@openglobus/js/ellipsoid/index.d.ts +3 -0
- package/lib/@openglobus/js/ellipsoid/wgs84.d.ts +6 -0
- package/lib/@openglobus/js/entity/BaseBillboard.d.ts +222 -0
- package/lib/@openglobus/js/entity/BaseBillboardHandler.d.ts +81 -0
- package/lib/@openglobus/js/entity/Billboard.d.ts +113 -0
- package/lib/@openglobus/js/entity/BillboardHandler.d.ts +15 -0
- package/lib/@openglobus/js/entity/Entity.d.ts +354 -0
- package/lib/@openglobus/js/entity/EntityCollection.d.ts +363 -0
- package/lib/@openglobus/js/entity/GeoObject.d.ts +152 -0
- package/lib/@openglobus/js/entity/GeoObjectHandler.d.ts +104 -0
- package/lib/@openglobus/js/entity/Geometry.d.ts +124 -0
- package/lib/@openglobus/js/entity/GeometryHandler.d.ts +84 -0
- package/lib/@openglobus/js/entity/Label.d.ts +214 -0
- package/lib/@openglobus/js/entity/LabelHandler.d.ts +65 -0
- package/lib/@openglobus/js/entity/LabelWorker.d.ts +15 -0
- package/lib/@openglobus/js/entity/PointCloud.d.ts +179 -0
- package/lib/@openglobus/js/entity/PointCloudHandler.d.ts +42 -0
- package/lib/@openglobus/js/entity/Polyline.d.ts +345 -0
- package/lib/@openglobus/js/entity/PolylineHandler.d.ts +22 -0
- package/lib/@openglobus/js/entity/Ray.d.ts +133 -0
- package/lib/@openglobus/js/entity/RayHandler.d.ts +70 -0
- package/lib/@openglobus/js/entity/Strip.d.ts +139 -0
- package/lib/@openglobus/js/entity/StripHandler.d.ts +42 -0
- package/lib/@openglobus/js/entity/index.d.ts +10 -0
- package/lib/@openglobus/js/index.d.ts +33 -0
- package/lib/@openglobus/js/input/KeyboardHandler.d.ts +33 -0
- package/lib/@openglobus/js/input/MouseHandler.d.ts +16 -0
- package/lib/@openglobus/js/input/TouchHandler.d.ts +11 -0
- package/lib/@openglobus/js/input/input.d.ts +3 -0
- package/lib/@openglobus/js/layer/BaseGeoImage.d.ts +145 -0
- package/lib/@openglobus/js/layer/Bing.d.ts +4 -0
- package/lib/@openglobus/js/layer/CanvasTiles.d.ts +103 -0
- package/lib/@openglobus/js/layer/GeoImage.d.ts +61 -0
- package/lib/@openglobus/js/layer/GeoTexture2d.d.ts +17 -0
- package/lib/@openglobus/js/layer/GeoVideo.d.ts +68 -0
- package/lib/@openglobus/js/layer/KML.d.ts +72 -0
- package/lib/@openglobus/js/layer/Layer.d.ts +415 -0
- package/lib/@openglobus/js/layer/Material.d.ts +34 -0
- package/lib/@openglobus/js/layer/OpenStreetMap.d.ts +4 -0
- package/lib/@openglobus/js/layer/Vector.d.ts +246 -0
- package/lib/@openglobus/js/layer/WMS.d.ts +75 -0
- package/lib/@openglobus/js/layer/XYZ.d.ts +148 -0
- package/lib/@openglobus/js/layer/index.d.ts +12 -0
- package/lib/@openglobus/js/light/LightSource.d.ts +174 -0
- package/lib/@openglobus/js/math/Line2.d.ts +11 -0
- package/lib/@openglobus/js/math/Line3.d.ts +28 -0
- package/lib/@openglobus/js/math/Mat3.d.ts +77 -0
- package/lib/@openglobus/js/math/Mat4.d.ts +195 -0
- package/lib/@openglobus/js/math/Plane.d.ts +20 -0
- package/lib/@openglobus/js/math/Quat.d.ts +373 -0
- package/lib/@openglobus/js/math/Ray.d.ts +76 -0
- package/lib/@openglobus/js/math/Vec2.d.ts +310 -0
- package/lib/@openglobus/js/math/Vec3.d.ts +472 -0
- package/lib/@openglobus/js/math/Vec4.d.ts +163 -0
- package/lib/@openglobus/js/math/coder.d.ts +51 -0
- package/lib/@openglobus/js/math/index.d.ts +11 -0
- package/lib/@openglobus/js/math.d.ts +266 -0
- package/lib/@openglobus/js/mercator.d.ts +92 -0
- package/lib/@openglobus/js/proj/EPSG3857.d.ts +9 -0
- package/lib/@openglobus/js/proj/EPSG4326.d.ts +9 -0
- package/lib/@openglobus/js/proj/Proj.d.ts +43 -0
- package/lib/@openglobus/js/quadTree/EPSG4326QuadTreeStrategy.d.ts +6 -0
- package/lib/@openglobus/js/quadTree/EarthQuadTreeStrategy.d.ts +9 -0
- package/lib/@openglobus/js/quadTree/EntityCollectionNode.d.ts +54 -0
- package/lib/@openglobus/js/quadTree/MarsQuadTreeStrategy.d.ts +11 -0
- package/lib/@openglobus/js/quadTree/Node.d.ts +80 -0
- package/lib/@openglobus/js/quadTree/QuadTreeStrategy.d.ts +28 -0
- package/lib/@openglobus/js/quadTree/Wgs84QuadTreeStrategy.d.ts +6 -0
- package/lib/@openglobus/js/quadTree/index.d.ts +12 -0
- package/lib/@openglobus/js/quadTree/quadTree.d.ts +40 -0
- package/lib/@openglobus/js/renderer/Renderer.d.ts +319 -0
- package/lib/@openglobus/js/renderer/RendererEvents.d.ts +240 -0
- package/lib/@openglobus/js/scene/Axes.d.ts +12 -0
- package/lib/@openglobus/js/scene/BaseNode.d.ts +61 -0
- package/lib/@openglobus/js/scene/Planet.d.ts +652 -0
- package/lib/@openglobus/js/scene/RenderNode.d.ts +150 -0
- package/lib/@openglobus/js/scene/SkyBox.d.ts +13 -0
- package/lib/@openglobus/js/scene/index.d.ts +5 -0
- package/lib/@openglobus/js/segment/Segment.d.ts +288 -0
- package/lib/@openglobus/js/segment/SegmentLonLat.d.ts +44 -0
- package/lib/@openglobus/js/segment/SegmentLonLatWgs84.d.ts +10 -0
- package/lib/@openglobus/js/segment/Slice.d.ts +13 -0
- package/lib/@openglobus/js/segment/segmentHelper.d.ts +18 -0
- package/lib/@openglobus/js/shaders/atmos.d.ts +4 -0
- package/lib/@openglobus/js/shaders/billboard.d.ts +3 -0
- package/lib/@openglobus/js/shaders/bloom.d.ts +2 -0
- package/lib/@openglobus/js/shaders/blur.d.ts +3 -0
- package/lib/@openglobus/js/shaders/depth.d.ts +2 -0
- package/lib/@openglobus/js/shaders/drawnode.d.ts +8 -0
- package/lib/@openglobus/js/shaders/geoObject.d.ts +3 -0
- package/lib/@openglobus/js/shaders/label.d.ts +4 -0
- package/lib/@openglobus/js/shaders/lumFilter.d.ts +2 -0
- package/lib/@openglobus/js/shaders/pointCloud.d.ts +2 -0
- package/lib/@openglobus/js/shaders/polyline.d.ts +3 -0
- package/lib/@openglobus/js/shaders/ray.d.ts +2 -0
- package/lib/@openglobus/js/shaders/screenFrame.d.ts +2 -0
- package/lib/@openglobus/js/shaders/skybox.d.ts +2 -0
- package/lib/@openglobus/js/shaders/toneMapping.d.ts +2 -0
- package/lib/@openglobus/js/shaders/utils.d.ts +1 -0
- package/lib/@openglobus/js/terrain/BilTerrain.d.ts +18 -0
- package/lib/@openglobus/js/terrain/EmptyTerrain.d.ts +113 -0
- package/lib/@openglobus/js/terrain/Geoid.d.ts +33 -0
- package/lib/@openglobus/js/terrain/GlobusRgbTerrain.d.ts +6 -0
- package/lib/@openglobus/js/terrain/GlobusTerrain.d.ts +137 -0
- package/lib/{js/terrain/MapboxTerrain.d.ts → @openglobus/js/terrain/RgbTerrain.d.ts} +5 -5
- package/lib/@openglobus/js/terrain/index.d.ts +6 -0
- package/lib/@openglobus/js/ui/Button.d.ts +32 -0
- package/lib/@openglobus/js/ui/ButtonGroup.d.ts +16 -0
- package/lib/@openglobus/js/ui/Color.d.ts +22 -0
- package/lib/@openglobus/js/ui/Dialog.d.ts +55 -0
- package/lib/@openglobus/js/ui/Slider.d.ts +38 -0
- package/lib/@openglobus/js/ui/ToggleButton.d.ts +20 -0
- package/lib/@openglobus/js/ui/View.d.ts +37 -0
- package/lib/@openglobus/js/ui/icons.d.ts +1 -0
- package/lib/@openglobus/js/utils/BaseWorker.d.ts +14 -0
- package/lib/@openglobus/js/utils/FontAtlas.d.ts +82 -0
- package/lib/@openglobus/js/utils/GeoImageCreator.d.ts +34 -0
- package/lib/@openglobus/js/utils/ImagesCacheManager.d.ts +22 -0
- package/lib/@openglobus/js/utils/Loader.d.ts +63 -0
- package/lib/@openglobus/js/utils/NormalMapCreator.d.ts +52 -0
- package/lib/@openglobus/js/utils/PlainSegmentWorker.d.ts +24 -0
- package/lib/@openglobus/js/utils/TerrainWorker.d.ts +28 -0
- package/lib/@openglobus/js/utils/TextureAtlas.d.ts +113 -0
- package/lib/@openglobus/js/utils/VectorTileCreator.d.ts +18 -0
- package/lib/@openglobus/js/utils/colorTable.d.ts +3 -0
- package/lib/@openglobus/js/utils/earcut.d.ts +7 -0
- package/lib/@openglobus/js/utils/objParser.d.ts +24 -0
- package/lib/@openglobus/js/utils/shared.d.ts +263 -0
- package/lib/@openglobus/js/utils/units.d.ts +16 -0
- package/lib/@openglobus/js/webgl/BaseFramebuffer.d.ts +53 -0
- package/lib/@openglobus/js/webgl/Framebuffer.d.ts +69 -0
- package/lib/@openglobus/js/webgl/Handler.d.ts +473 -0
- package/lib/@openglobus/js/webgl/Multisample.d.ts +27 -0
- package/lib/@openglobus/js/webgl/Program.d.ts +159 -0
- package/lib/@openglobus/js/webgl/ProgramController.d.ts +86 -0
- package/lib/@openglobus/js/webgl/index.d.ts +6 -0
- package/lib/@openglobus/js/webgl/types.d.ts +9 -0
- package/lib/@openglobus/js/webgl/variableHandlers.d.ts +22 -0
- package/lib/@openglobus/og.css +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/Extent.js +2 -2
- package/lib/js/Globe.d.ts +1 -1
- package/lib/js/Object3d.d.ts +8 -1
- package/lib/js/Object3d.js +12 -2
- package/lib/js/camera/Frustum.d.ts +1 -1
- package/lib/js/camera/Frustum.js +3 -2
- package/lib/js/control/DebugInfo.js +19 -18
- package/lib/js/control/Lighting.d.ts +4 -0
- package/lib/js/control/Lighting.js +51 -12
- package/lib/js/control/SimpleSkyBackground.d.ts +2 -0
- package/lib/js/control/SimpleSkyBackground.js +13 -3
- package/lib/js/control/drawing/PolygonDrawingScene.js +2 -2
- package/lib/js/control/visibleExtent/drawnode.js +1 -1
- package/lib/js/entity/GeoObject.d.ts +12 -3
- package/lib/js/entity/GeoObject.js +34 -2
- package/lib/js/entity/GeoObjectHandler.d.ts +5 -0
- package/lib/js/entity/GeoObjectHandler.js +47 -0
- package/lib/js/entity/Geometry.d.ts +24 -11
- package/lib/js/entity/Geometry.js +17 -9
- package/lib/js/entity/GeometryHandler.js +5 -5
- package/lib/js/entity/Label.d.ts +7 -0
- package/lib/js/entity/Label.js +11 -0
- package/lib/js/entity/Polyline.d.ts +15 -7
- package/lib/js/entity/Polyline.js +54 -6
- package/lib/js/entity/Strip.d.ts +12 -0
- package/lib/js/entity/Strip.js +16 -0
- package/lib/js/entity/StripHandler.js +1 -1
- package/lib/js/entity/index.d.ts +10 -11
- package/lib/js/entity/index.js +10 -11
- package/lib/js/index.d.ts +5 -5
- package/lib/js/index.js +5 -5
- package/lib/js/layer/Bing.d.ts +4 -0
- package/lib/js/layer/Bing.js +40 -0
- package/lib/js/layer/GeoImage.d.ts +1 -1
- package/lib/js/layer/GeoVideo.d.ts +1 -1
- package/lib/js/layer/Layer.d.ts +1 -1
- package/lib/js/layer/Layer.js +2 -2
- package/lib/js/layer/OpenStreetMap.d.ts +4 -0
- package/lib/js/layer/OpenStreetMap.js +19 -0
- package/lib/js/layer/Vector.d.ts +3 -0
- package/lib/js/layer/Vector.js +3 -3
- package/lib/js/layer/index.d.ts +12 -11
- package/lib/js/layer/index.js +12 -11
- package/lib/js/math/Mat4.js +18 -17
- package/lib/js/mercator.js +2 -1
- package/lib/js/quadTree/EPSG4326QuadTreeStrategy.js +4 -5
- package/lib/js/quadTree/EarthQuadTreeStrategy.d.ts +3 -0
- package/lib/js/quadTree/EarthQuadTreeStrategy.js +40 -5
- package/lib/js/quadTree/EntityCollectionNode.d.ts +2 -2
- package/lib/js/quadTree/EntityCollectionNode.js +13 -14
- package/lib/js/quadTree/MarsQuadTreeStrategy.d.ts +5 -0
- package/lib/js/quadTree/MarsQuadTreeStrategy.js +31 -5
- package/lib/js/quadTree/Node.d.ts +2 -1
- package/lib/js/quadTree/Node.js +38 -28
- package/lib/js/quadTree/QuadTreeStrategy.d.ts +3 -0
- package/lib/js/quadTree/QuadTreeStrategy.js +17 -0
- package/lib/js/quadTree/Wgs84QuadTreeStrategy.js +3 -3
- package/lib/js/renderer/Renderer.js +1 -0
- package/lib/js/scene/Planet.js +6 -4
- package/lib/js/segment/Segment.d.ts +12 -9
- package/lib/js/segment/Segment.js +47 -24
- package/lib/js/segment/SegmentLonLat.d.ts +1 -5
- package/lib/js/segment/SegmentLonLat.js +8 -100
- package/lib/js/segment/SegmentLonLatWgs84.js +5 -3
- package/lib/js/shaders/billboard.js +4 -4
- package/lib/js/shaders/drawnode.js +16 -19
- package/lib/js/shaders/geoObject.js +4 -5
- package/lib/js/shaders/ray.js +7 -3
- package/lib/js/terrain/BilTerrain.d.ts +1 -1
- package/lib/js/terrain/BilTerrain.js +7 -6
- package/lib/js/terrain/EmptyTerrain.d.ts +7 -0
- package/lib/js/terrain/EmptyTerrain.js +7 -0
- package/lib/js/terrain/GlobusRgbTerrain.d.ts +6 -0
- package/lib/js/terrain/GlobusRgbTerrain.js +25 -0
- package/lib/js/terrain/GlobusTerrain.d.ts +5 -5
- package/lib/js/terrain/GlobusTerrain.js +35 -30
- package/lib/js/terrain/RgbTerrain.d.ts +22 -0
- package/lib/js/terrain/RgbTerrain.js +415 -0
- package/lib/js/terrain/index.d.ts +3 -2
- package/lib/js/terrain/index.js +3 -2
- package/lib/js/ui/Color.d.ts +22 -0
- package/lib/js/ui/Color.js +58 -0
- package/lib/js/utils/GeoImageCreator.js +1 -1
- package/lib/js/utils/NormalMapCreator.js +1 -1
- package/lib/js/utils/VectorTileCreator.js +3 -3
- package/lib/js/utils/shared.d.ts +1 -8
- package/lib/js/utils/shared.js +17 -8
- package/package.json +2 -1
- package/lib/js/terrain/MapboxTerrain.js +0 -305
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[](https://www.npmjs.com/@openglobus/og)
|
|
2
2
|

|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
# OpenGlobus
|
|
5
5
|
|
|
6
6
|
English | [简体中文](README_CN.md) | [Portuguese-BR](README_pt-BR.md)
|
|
7
7
|
|
|
@@ -45,7 +45,7 @@ npm i @openglobus/openglobus-react
|
|
|
45
45
|
|
|
46
46
|
- [Examples](https://sandbox.openglobus.org)
|
|
47
47
|
- [Wiki](https://github.com/openglobus/openglobus/wiki)
|
|
48
|
-
- [API documentation](https://
|
|
48
|
+
- [API documentation](https://openglobus.github.io/docs/)
|
|
49
49
|
|
|
50
50
|
## Get Started to contribute
|
|
51
51
|
|
|
@@ -97,7 +97,7 @@ Third, try an example from the sandbox:
|
|
|
97
97
|
|
|
98
98
|
### Other scripts
|
|
99
99
|
|
|
100
|
-
`npm run docs` - build [api documentation](https://
|
|
100
|
+
`npm run docs` - build [api documentation](https://openglobus.github.io/docs/) into /api folder
|
|
101
101
|
|
|
102
102
|
`npm run serve` - run local web server for develop and watch examples
|
|
103
103
|
|
package/css/og.css
CHANGED
|
@@ -301,7 +301,7 @@ input {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
.og-layerSwitcher__layerButton.og-layerSwitcher__visible {
|
|
304
|
-
border: 2px solid
|
|
304
|
+
border: 2px solid #00ff14;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
.og-layerSwitcher__layerButton.og-layerSwitcher__visible img {
|
|
@@ -640,11 +640,15 @@ input {
|
|
|
640
640
|
width: 100%;
|
|
641
641
|
}
|
|
642
642
|
|
|
643
|
-
.og-lighing .og-slider .og-slider-label
|
|
643
|
+
.og-lighing .og-slider .og-slider-label,
|
|
644
|
+
.og-lighing .og-color-label {
|
|
644
645
|
width: 100px;
|
|
645
646
|
font-size: 12px;
|
|
646
647
|
}
|
|
647
648
|
|
|
649
|
+
.og-lighing .og-color {
|
|
650
|
+
padding-right: 10px;
|
|
651
|
+
}
|
|
648
652
|
|
|
649
653
|
.og-lighing #layers {
|
|
650
654
|
font-family: monospace;
|
|
@@ -681,7 +685,7 @@ input {
|
|
|
681
685
|
|
|
682
686
|
.og-lat-val,
|
|
683
687
|
.og-lon-val {
|
|
684
|
-
width:
|
|
688
|
+
width: 90px;
|
|
685
689
|
padding-right: 3px;
|
|
686
690
|
text-align: left;
|
|
687
691
|
text-overflow: unset;
|
|
@@ -689,7 +693,7 @@ input {
|
|
|
689
693
|
}
|
|
690
694
|
|
|
691
695
|
.og-height {
|
|
692
|
-
width:
|
|
696
|
+
width: 50px;
|
|
693
697
|
text-align: right;
|
|
694
698
|
text-overflow: ellipsis;
|
|
695
699
|
padding-left: 3px;
|
|
@@ -1094,6 +1098,16 @@ TIMELINE
|
|
|
1094
1098
|
align-items: center;
|
|
1095
1099
|
}
|
|
1096
1100
|
|
|
1101
|
+
.og-simpleskybackground {
|
|
1102
|
+
display: flex;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
.og-color-label {
|
|
1106
|
+
color: var(--grey6);
|
|
1107
|
+
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
|
|
1108
|
+
font-size: 14px;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1097
1111
|
@keyframes ldio-p0v5a1f6oz {
|
|
1098
1112
|
0% {
|
|
1099
1113
|
opacity: 1
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { EventsHandler } from "./Events";
|
|
2
|
+
import { JulianDate } from "./astro/jd";
|
|
3
|
+
import { Handler } from "./webgl/Handler";
|
|
4
|
+
type ClockEventsList = ["tick", "end", "start", "stop"];
|
|
5
|
+
export interface IClockParams {
|
|
6
|
+
name?: string;
|
|
7
|
+
startDate?: JulianDate;
|
|
8
|
+
endDate?: JulianDate;
|
|
9
|
+
currentDate?: JulianDate;
|
|
10
|
+
multiplier?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Class represents application timer that stores custom current julian datetime, and time speed multiplier.
|
|
14
|
+
* @class
|
|
15
|
+
* @param {Object} [params] - Clock parameters:
|
|
16
|
+
* @param {JulianDate} [params.startDate=0.0] - Julian start date.
|
|
17
|
+
* @param {JulianDate} [params.endDate=0.0] - Julian end date.
|
|
18
|
+
* @param {JulianDate} [params.currentDate] - Julian current date. Default: current date.
|
|
19
|
+
* @param {number} [params.multiplier=1.0] - Time speed multiplier.
|
|
20
|
+
*/
|
|
21
|
+
declare class Clock {
|
|
22
|
+
static __counter__: number;
|
|
23
|
+
protected __id: number;
|
|
24
|
+
__handler: Handler | null;
|
|
25
|
+
/**
|
|
26
|
+
* Clock events.
|
|
27
|
+
* @public
|
|
28
|
+
* @type {EventsHandler<ClockEventsList>}
|
|
29
|
+
*/
|
|
30
|
+
events: EventsHandler<ClockEventsList>;
|
|
31
|
+
/**
|
|
32
|
+
* Clock name.
|
|
33
|
+
* @public
|
|
34
|
+
* @type {string}
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Start julian date clock loop.
|
|
39
|
+
* @public
|
|
40
|
+
* @type {JulianDate}
|
|
41
|
+
*/
|
|
42
|
+
startDate: JulianDate;
|
|
43
|
+
/**
|
|
44
|
+
* End julian date clock loop.
|
|
45
|
+
* @public
|
|
46
|
+
* @type {JulianDate}
|
|
47
|
+
*/
|
|
48
|
+
endDate: JulianDate;
|
|
49
|
+
/**
|
|
50
|
+
* Current julian datetime.
|
|
51
|
+
* @public
|
|
52
|
+
* @type {JulianDate}
|
|
53
|
+
*/
|
|
54
|
+
currentDate: JulianDate;
|
|
55
|
+
/**
|
|
56
|
+
* Animation frame delta time.
|
|
57
|
+
* @public
|
|
58
|
+
* @readonly
|
|
59
|
+
* @type {number}
|
|
60
|
+
*/
|
|
61
|
+
deltaTicks: number;
|
|
62
|
+
/**
|
|
63
|
+
* Timer activity.
|
|
64
|
+
* @public
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
*/
|
|
67
|
+
active: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Timer speed multiplier.
|
|
70
|
+
* @protected
|
|
71
|
+
* @type {number}
|
|
72
|
+
*/
|
|
73
|
+
protected _multiplier: number;
|
|
74
|
+
protected _running: number;
|
|
75
|
+
protected _intervalDelay: number;
|
|
76
|
+
protected _intervalStart: number;
|
|
77
|
+
protected _intervalCallback: Function | null;
|
|
78
|
+
constructor(params?: IClockParams);
|
|
79
|
+
clearInterval(): void;
|
|
80
|
+
setInterval(delay: number, callback: Function): void;
|
|
81
|
+
/**
|
|
82
|
+
* Sets current clock datetime.
|
|
83
|
+
* @public
|
|
84
|
+
* @param {Object} date - JavaScript Date object.
|
|
85
|
+
*/
|
|
86
|
+
setDate(date: Date): void;
|
|
87
|
+
/**
|
|
88
|
+
* Returns current application date.
|
|
89
|
+
* @public
|
|
90
|
+
* @returns {Date} - Current date.
|
|
91
|
+
*/
|
|
92
|
+
getDate(): Date;
|
|
93
|
+
reset(): void;
|
|
94
|
+
tick(dt: number): void;
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
* @param {Clock} clock - Clock instance to compare.
|
|
98
|
+
* @returns {boolean} - Returns true if a clock is the same instance.
|
|
99
|
+
*/
|
|
100
|
+
isEqual(clock: Clock): boolean;
|
|
101
|
+
start(): void;
|
|
102
|
+
get multiplier(): number;
|
|
103
|
+
set multiplier(value: number);
|
|
104
|
+
stop(): void;
|
|
105
|
+
}
|
|
106
|
+
export { Clock };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export type EventCallback = (((...args: any[]) => boolean) | ((...args: any[]) => void));
|
|
2
|
+
export type EventCallbackStamp = EventCallback & {
|
|
3
|
+
_openglobus_id?: number;
|
|
4
|
+
_openglobus_priority?: number;
|
|
5
|
+
};
|
|
6
|
+
type EventCallbacks = Array<EventCallback>;
|
|
7
|
+
type EventCallbackHandler = {
|
|
8
|
+
active: boolean;
|
|
9
|
+
handlers: EventCallbacks;
|
|
10
|
+
};
|
|
11
|
+
export type EventsMap<T extends string[]> = {
|
|
12
|
+
[K in T[number]]?: EventCallbackHandler;
|
|
13
|
+
};
|
|
14
|
+
export type EventsHandler<T extends string[]> = Events<T> & EventsMap<T>;
|
|
15
|
+
export declare function createEvents<T extends string[]>(methodNames: T, sender?: any): EventsHandler<T>;
|
|
16
|
+
/**
|
|
17
|
+
* Base events class to handle custom events.
|
|
18
|
+
* @class
|
|
19
|
+
* @param {Array.<string>} [eventNames] - Event names that could be dispatched.
|
|
20
|
+
* @param {*} [sender]
|
|
21
|
+
*/
|
|
22
|
+
export declare class Events<T extends string[]> {
|
|
23
|
+
static __counter__: number;
|
|
24
|
+
protected __id: number;
|
|
25
|
+
/**
|
|
26
|
+
* Registered event names.
|
|
27
|
+
* @protected
|
|
28
|
+
* @type {T}
|
|
29
|
+
*/
|
|
30
|
+
protected _eventNames: T;
|
|
31
|
+
protected _sender: any;
|
|
32
|
+
/**
|
|
33
|
+
* Stop propagation flag
|
|
34
|
+
* @protected
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
*/
|
|
37
|
+
protected _stopPropagation: boolean;
|
|
38
|
+
protected _stampCache: any;
|
|
39
|
+
constructor(eventNames: T, sender?: any);
|
|
40
|
+
bindSender(sender?: any): void;
|
|
41
|
+
/**
|
|
42
|
+
* Function that creates event object properties that would be dispatched.
|
|
43
|
+
* @public
|
|
44
|
+
* @param {Array.<string>} eventNames - Specified event names list.
|
|
45
|
+
*/
|
|
46
|
+
registerNames(eventNames: T): this;
|
|
47
|
+
protected _getStamp(name: string, id: number, ogid: number): string;
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if event callback has stamped.
|
|
50
|
+
* @protected
|
|
51
|
+
* @param {Object} name - Event identifier.
|
|
52
|
+
* @param {Object} obj - Event callback.
|
|
53
|
+
* @return {boolean} -
|
|
54
|
+
*/
|
|
55
|
+
protected _stamp(name: string, obj: any): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Attach listener.
|
|
58
|
+
* @public
|
|
59
|
+
* @param {string} name - Event name to listen.
|
|
60
|
+
* @param {EventCallback} callback - Event callback function.
|
|
61
|
+
* @param {any} [sender] - Event callback function owner.
|
|
62
|
+
* @param {number} [priority] - Priority of event callback.
|
|
63
|
+
*/
|
|
64
|
+
on(name: string, callback: EventCallback, sender?: any, priority?: number): void;
|
|
65
|
+
/**
|
|
66
|
+
* Stop listening event name with specified callback function.
|
|
67
|
+
* @public
|
|
68
|
+
* @param {string} name - Event name.
|
|
69
|
+
* @param {EventCallback | null} callback - Attached event callback.
|
|
70
|
+
*/
|
|
71
|
+
off(name: string, callback?: EventCallback | null): void;
|
|
72
|
+
/**
|
|
73
|
+
* Dispatch event.
|
|
74
|
+
* @public
|
|
75
|
+
* @param {EventCallbackHandler} event - Event instance property that created by event name.
|
|
76
|
+
* @param {Object} [args] - Callback parameters.
|
|
77
|
+
*/
|
|
78
|
+
dispatch(event: EventCallbackHandler | undefined, ...args: any[]): boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Brakes events propagation.
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
stopPropagation(): void;
|
|
84
|
+
/**
|
|
85
|
+
* Removes all events.
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
clear(): void;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Ellipsoid } from "./ellipsoid/Ellipsoid";
|
|
2
|
+
import { LonLat } from "./LonLat";
|
|
3
|
+
/**
|
|
4
|
+
* Represents geographical coordinates extent.
|
|
5
|
+
* @class
|
|
6
|
+
* @param {LonLat} [sw] - South West extent corner coordinates.
|
|
7
|
+
* @param {LonLat} [ne] - North East extent corner coordinates.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Extent {
|
|
10
|
+
southWest: LonLat;
|
|
11
|
+
northEast: LonLat;
|
|
12
|
+
constructor(sw?: LonLat, ne?: LonLat);
|
|
13
|
+
/**
|
|
14
|
+
* Creates extent instance from values in array.
|
|
15
|
+
* @static
|
|
16
|
+
* @param {Array.<number>} arr - South west and north-east longitude and latitudes packed in array. (exactly 4 entries)
|
|
17
|
+
* @return {Extent} Extent object.
|
|
18
|
+
*/
|
|
19
|
+
static createFromArray(arr: [number, number, number, number]): Extent;
|
|
20
|
+
/**
|
|
21
|
+
* Creates bound extent instance by coordinate array.
|
|
22
|
+
* @static
|
|
23
|
+
* @param {Array.<LonLat>} arr - Coordinate array.
|
|
24
|
+
* @return {Extent} Extent object.
|
|
25
|
+
*/
|
|
26
|
+
static createByCoordinates(arr: LonLat[]): Extent;
|
|
27
|
+
/**
|
|
28
|
+
* Creates bound extent instance by coordinates array.
|
|
29
|
+
* @static
|
|
30
|
+
* @param {Array.<Array<number>>} arr - Coordinate array. (exactly 2 entries)
|
|
31
|
+
* @return {Extent} Extent object.
|
|
32
|
+
*/
|
|
33
|
+
static createByCoordinatesArr(arr: [number, number][]): Extent;
|
|
34
|
+
/**
|
|
35
|
+
* Creates extent by merсator grid tile coordinates.
|
|
36
|
+
* @static
|
|
37
|
+
* @param {number} x -
|
|
38
|
+
* @param {number} y -
|
|
39
|
+
* @param {number} z -
|
|
40
|
+
* @param {number} width -
|
|
41
|
+
* @param {number} height -
|
|
42
|
+
* @returns {Extent} -
|
|
43
|
+
*/
|
|
44
|
+
static fromTile(x: number, y: number, z: number, width?: number, height?: number): Extent;
|
|
45
|
+
/**
|
|
46
|
+
* Sets current bounding extent object by coordinate array.
|
|
47
|
+
* @public
|
|
48
|
+
* @param {Array.<LonLat>} arr - Coordinate array.
|
|
49
|
+
* @return {Extent} Current extent.
|
|
50
|
+
*/
|
|
51
|
+
setByCoordinates(arr: LonLat[]): Extent;
|
|
52
|
+
/**
|
|
53
|
+
* Determines if point inside extent.
|
|
54
|
+
* @public
|
|
55
|
+
* @param {LonLat} lonlat - Coordinate point.
|
|
56
|
+
* @return {boolean} Returns true if point inside extent.
|
|
57
|
+
*/
|
|
58
|
+
isInside(lonlat: LonLat): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if two extent overlap each other.
|
|
61
|
+
* @public
|
|
62
|
+
* @param {Extent} e - Another extent.
|
|
63
|
+
* @return {boolean} -
|
|
64
|
+
*/
|
|
65
|
+
overlaps(e: Extent): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Gets extent width.
|
|
68
|
+
* @public
|
|
69
|
+
* @return {number} Extent width.
|
|
70
|
+
*/
|
|
71
|
+
getWidth(): number;
|
|
72
|
+
/**
|
|
73
|
+
* Gets extent height.
|
|
74
|
+
* @public
|
|
75
|
+
* @return {number} Extent height.
|
|
76
|
+
*/
|
|
77
|
+
getHeight(): number;
|
|
78
|
+
/**
|
|
79
|
+
* Creates clone instance of the current extent.
|
|
80
|
+
* @public
|
|
81
|
+
* @return {Extent} Extent clone.
|
|
82
|
+
*/
|
|
83
|
+
clone(): Extent;
|
|
84
|
+
/**
|
|
85
|
+
* Gets the center coordinate of the extent.
|
|
86
|
+
* @public
|
|
87
|
+
* @return {number} Center coordinate.
|
|
88
|
+
*/
|
|
89
|
+
getCenter(): LonLat;
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
getNorthWest(): LonLat;
|
|
94
|
+
/**
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
getNorthEast(): LonLat;
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
getSouthWest(): LonLat;
|
|
102
|
+
/**
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
getSouthEast(): LonLat;
|
|
106
|
+
/**
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
getNorth(): number;
|
|
110
|
+
getEast(): number;
|
|
111
|
+
/**
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
getWest(): number;
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
getSouth(): number;
|
|
119
|
+
/**
|
|
120
|
+
* Returns extents are equals.
|
|
121
|
+
* @param {Extent} extent - Extent.
|
|
122
|
+
* @returns {boolean} -
|
|
123
|
+
*/
|
|
124
|
+
equals(extent: Extent): boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Converts extent coordinates to mercator projection coordinates.
|
|
127
|
+
* @public
|
|
128
|
+
* @return {Extent} New instance of the current extent.
|
|
129
|
+
*/
|
|
130
|
+
forwardMercator(): Extent;
|
|
131
|
+
/**
|
|
132
|
+
* Converts extent coordinates from mercator projection to degrees.
|
|
133
|
+
* @public
|
|
134
|
+
* @return {Extent} New instance of the current extent.
|
|
135
|
+
*/
|
|
136
|
+
inverseMercator(): Extent;
|
|
137
|
+
/**
|
|
138
|
+
* Gets cartesian bounding bounds of the current ellipsoid.
|
|
139
|
+
* @public
|
|
140
|
+
* @param {Ellipsoid} ellipsoid - Ellipsoid.
|
|
141
|
+
* @return {Array.<number>} Cartesian 3d coordinate array. (exactly 6 entries)
|
|
142
|
+
*/
|
|
143
|
+
getCartesianBounds(ellipsoid: Ellipsoid): [number, number, number, number, number, number];
|
|
144
|
+
toString(): string;
|
|
145
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { Control } from "./control/Control";
|
|
2
|
+
import { Ellipsoid } from "./ellipsoid/Ellipsoid";
|
|
3
|
+
import { EmptyTerrain } from "./terrain/EmptyTerrain";
|
|
4
|
+
import { Layer } from "./layer/Layer";
|
|
5
|
+
import { NumberArray2 } from "./math/Vec2";
|
|
6
|
+
import { NumberArray4 } from "./math/Vec4";
|
|
7
|
+
import { Planet } from "./scene/Planet";
|
|
8
|
+
import { Sun } from "./control/Sun";
|
|
9
|
+
import { HTMLDivElementExt, Renderer } from "./renderer/Renderer";
|
|
10
|
+
import { RenderNode } from "./scene/RenderNode";
|
|
11
|
+
import { Extent } from "./Extent";
|
|
12
|
+
export interface IGlobeParams {
|
|
13
|
+
attributionContainer?: HTMLElement;
|
|
14
|
+
target?: string | HTMLElement;
|
|
15
|
+
skybox?: RenderNode;
|
|
16
|
+
dpi?: number;
|
|
17
|
+
msaa?: number;
|
|
18
|
+
name?: string;
|
|
19
|
+
frustums?: NumberArray2[];
|
|
20
|
+
ellipsoid?: Ellipsoid;
|
|
21
|
+
maxGridSize?: number;
|
|
22
|
+
nightTextureSrc?: string | null;
|
|
23
|
+
specularTextureSrc?: string | null;
|
|
24
|
+
minAltitude?: number;
|
|
25
|
+
maxAltitude?: number;
|
|
26
|
+
maxEqualZoomAltitude?: number;
|
|
27
|
+
minEqualZoomAltitude?: number;
|
|
28
|
+
minEqualZoomCameraSlope?: number;
|
|
29
|
+
quadTreeStrategyPrototype?: any;
|
|
30
|
+
maxLoadingRequests?: number;
|
|
31
|
+
atmosphereEnabled?: boolean;
|
|
32
|
+
transitionOpacityEnabled?: boolean;
|
|
33
|
+
terrain?: EmptyTerrain;
|
|
34
|
+
controls?: Control[];
|
|
35
|
+
useEarthNavigation?: boolean;
|
|
36
|
+
minSlope?: number;
|
|
37
|
+
sun?: {
|
|
38
|
+
active?: boolean;
|
|
39
|
+
stopped?: boolean;
|
|
40
|
+
};
|
|
41
|
+
layers?: Layer[];
|
|
42
|
+
viewExtent?: Extent | NumberArray4;
|
|
43
|
+
autoActivate?: boolean;
|
|
44
|
+
fontsSrc?: string;
|
|
45
|
+
resourcesSrc?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Creates a WebGL context with globe.
|
|
49
|
+
* @class
|
|
50
|
+
*
|
|
51
|
+
* @example <caption>Basic initialization</caption>
|
|
52
|
+
* globus = new Globe({
|
|
53
|
+
* 'atmosphere': false,
|
|
54
|
+
* 'target': 'globus',
|
|
55
|
+
* 'name': 'Earth',
|
|
56
|
+
* 'controls': [
|
|
57
|
+
* new control.MouseNavigation({ autoActivate: true }),
|
|
58
|
+
* new control.KeyboardNavigation({ autoActivate: true }),
|
|
59
|
+
* new control.EarthCoordinates({ autoActivate: true, center: false }),
|
|
60
|
+
* new control.LayerSwitcher({ autoActivate: true }),
|
|
61
|
+
* new control.ZoomControl({ autoActivate: true }),
|
|
62
|
+
* new control.TouchNavigation({ autoActivate: true }),
|
|
63
|
+
* new control.Sun({ autoActivate: true })
|
|
64
|
+
* ],
|
|
65
|
+
* 'terrain': new GlobusTerrain(),
|
|
66
|
+
* 'layers': [
|
|
67
|
+
* new XYZ("OpenStreetMap", { isBaseLayer: true, url: "http://b.tile.openstreetmap.org/{z}/{x}/{y}.png", visibility: true, attribution: 'Data @ <a href="http://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="http://www.openstreetmap.org/copyright">ODbL</a>' })
|
|
68
|
+
* ],
|
|
69
|
+
* 'autoActivate': true
|
|
70
|
+
* });
|
|
71
|
+
*
|
|
72
|
+
* @param {IGlobeParams} options - Options:
|
|
73
|
+
* @param {string|HTMLElement} options.target - HTML element id where planet canvas have to be created.
|
|
74
|
+
* @param {string} [options.name] - Planet name. Default is uniq identifier.
|
|
75
|
+
* @param {EmptyTerrain} [options.terrain] - Terrain provider. Default no terrain - og.terrain.EmptyTerrain.
|
|
76
|
+
* @param {Array.<Control>} [options.controls] - Renderer controls array.
|
|
77
|
+
* @param {Array.<Layer>} [options.layers] - Planet layers.
|
|
78
|
+
* @param {Extent| [[number, number],[number, number]]} [options.viewExtent] - Viewable starting extent.
|
|
79
|
+
* @param {boolean} [options.autoActivate=true] - Globe rendering auto activation flag. True is default.
|
|
80
|
+
* @param {HTMLElement} [options.attributionContainer] - Container for attribution list.
|
|
81
|
+
* @param {number} [options.maxGridSize=128] = Maximal segment grid size. 128 is default
|
|
82
|
+
* @param {string} [options.fontsSrc] - Fonts collection url.
|
|
83
|
+
* @param {string} [options.resourcesSrc] - Resources root src.
|
|
84
|
+
* @param {string} [options.nightTextureSrc] - Night glowing image sources
|
|
85
|
+
* @param {string} [options.specularTextureSrc] - Specular water mask image sourcr
|
|
86
|
+
* @param {number} [options.maxAltitude=15000000.0] - Maximal camera altitude above terrain
|
|
87
|
+
* @param {number} [options.minAltitude=1.0] - Minimal camera altitude above terrain
|
|
88
|
+
* @param {number} [options.maxEqualZoomAltitude=15000000.0] - Maximal altitude since segments on the screen became the same zoom level
|
|
89
|
+
* @param {number} [options.minEqualZoomAltitude=10000.0] - Minimal altitude since segments on the screen became the same zoom level
|
|
90
|
+
* @param {number} [options.minEqualZoomCameraSlope=0.8] - Minimal camera slope above te globe where segments on the screen became the same zoom level
|
|
91
|
+
* @param {number} [options.loadingBatchSize=12] -
|
|
92
|
+
* @param {number} [options.quadTreeStrategyPrototype] - Prototype of quadTree. QuadTreeStrategy for Earth is default.
|
|
93
|
+
* @param {number} [options.msaa=0] - MSAA antialiasing parameter: 2,4,8,16. Default is 0.
|
|
94
|
+
* @param {number} [options.dpi] - Device pixel ratio. Default is current screen DPI.
|
|
95
|
+
* @param {boolean} [options.atmosphereEnabled] - Enables atmosphere effect.
|
|
96
|
+
* @param {boolean} [options.transtitionOpacityEnabled] - Enables terrain smooth opacity transition effect.
|
|
97
|
+
*/
|
|
98
|
+
declare class Globe {
|
|
99
|
+
static __counter__: number;
|
|
100
|
+
$target: HTMLElement | null;
|
|
101
|
+
protected _instanceID: string;
|
|
102
|
+
protected _canvas: HTMLCanvasElement;
|
|
103
|
+
$inner: HTMLDivElementExt;
|
|
104
|
+
/**
|
|
105
|
+
* Interface for the renderer context(events, input states, renderer nodes etc.)
|
|
106
|
+
* @public
|
|
107
|
+
* @type {Renderer}
|
|
108
|
+
*/
|
|
109
|
+
renderer: Renderer;
|
|
110
|
+
/**
|
|
111
|
+
* Planet node name. Access with this.renderer.<name>
|
|
112
|
+
* @private
|
|
113
|
+
* @type {String}
|
|
114
|
+
*/
|
|
115
|
+
protected _planetName: string;
|
|
116
|
+
planet: Planet;
|
|
117
|
+
sun: Sun;
|
|
118
|
+
constructor(options: IGlobeParams);
|
|
119
|
+
start(): void;
|
|
120
|
+
/**
|
|
121
|
+
* Starts screen brightness fading in effect by the duration time.
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
fadeIn(): void;
|
|
125
|
+
/**
|
|
126
|
+
* Starts screen brightness fading out effect by the duration time.
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
fadeOut(): void;
|
|
130
|
+
attachTo(target: HTMLElement | string): void;
|
|
131
|
+
detach(): void;
|
|
132
|
+
destroy(): void;
|
|
133
|
+
}
|
|
134
|
+
export { Globe };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Usefull class for working with JS canvas object.
|
|
3
|
+
* @class
|
|
4
|
+
* @param {number} [width] - Canvas width. Default 256.
|
|
5
|
+
* @param {number} [height] - Canvas height. Default 256.
|
|
6
|
+
*/
|
|
7
|
+
declare class ImageCanvas {
|
|
8
|
+
/**
|
|
9
|
+
* Canvas object.
|
|
10
|
+
* @protected
|
|
11
|
+
* @type {HTMLCanvasElement}
|
|
12
|
+
*/
|
|
13
|
+
protected _canvas: HTMLCanvasElement;
|
|
14
|
+
/**
|
|
15
|
+
* Canvas context.
|
|
16
|
+
* @protected
|
|
17
|
+
* @type {CanvasRenderingContext2D}
|
|
18
|
+
*/
|
|
19
|
+
protected _context: CanvasRenderingContext2D;
|
|
20
|
+
constructor(width?: number, height?: number);
|
|
21
|
+
/**
|
|
22
|
+
* Returns canvas object.
|
|
23
|
+
* @public
|
|
24
|
+
* @returns {HTMLCanvasElement}
|
|
25
|
+
*/
|
|
26
|
+
getCanvas(): HTMLCanvasElement;
|
|
27
|
+
/**
|
|
28
|
+
* Returns canvas context pointer.
|
|
29
|
+
* @public
|
|
30
|
+
* @returns {CanvasRenderingContext2D}
|
|
31
|
+
*/
|
|
32
|
+
getContext(): CanvasRenderingContext2D;
|
|
33
|
+
/**
|
|
34
|
+
* Fills canvas RGBA with zeroes.
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
fillEmpty(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Fills canvas RGBA with color.
|
|
40
|
+
* @public
|
|
41
|
+
* @param {string} color - CSS string color.
|
|
42
|
+
*/
|
|
43
|
+
fill(color: string): void;
|
|
44
|
+
/**
|
|
45
|
+
* Gets canvas pixels RGBA data.
|
|
46
|
+
* @public
|
|
47
|
+
* @returns {Uint8ClampedArray}
|
|
48
|
+
*/
|
|
49
|
+
getData(): Uint8ClampedArray;
|
|
50
|
+
/**
|
|
51
|
+
* Fill the canvas by color.
|
|
52
|
+
* @public
|
|
53
|
+
* @param {string} color - CSS string color.
|
|
54
|
+
*/
|
|
55
|
+
fillColor(color: string): void;
|
|
56
|
+
/**
|
|
57
|
+
* Sets RGBA pixel data.
|
|
58
|
+
* @public
|
|
59
|
+
* @param {Array.<number>} data - Array RGBA data.
|
|
60
|
+
*/
|
|
61
|
+
setData(data: ArrayLike<number>): void;
|
|
62
|
+
/**
|
|
63
|
+
* Resize canvas.
|
|
64
|
+
* @public
|
|
65
|
+
* @param {number} width - Width.
|
|
66
|
+
* @param {number} height - Height.
|
|
67
|
+
*/
|
|
68
|
+
resize(width: number, height: number): void;
|
|
69
|
+
/**
|
|
70
|
+
* Draw an image on the canvas.
|
|
71
|
+
* @public
|
|
72
|
+
* @param {Image} img - Draw image.
|
|
73
|
+
* @param {number} [x] - Left top image corner X coordinate on the canvas.
|
|
74
|
+
* @param {number} [y] - Left top image corner Y coordinate on the canvas.
|
|
75
|
+
* @param {number} [width] - Image width slice. Image width is default.
|
|
76
|
+
* @param {number} [height] - Image height slice. Image height is default.
|
|
77
|
+
*/
|
|
78
|
+
drawImage(img: HTMLImageElement, x: number, y: number, width: number, height: number): void;
|
|
79
|
+
/**
|
|
80
|
+
* Converts canvas to JS image object.
|
|
81
|
+
* @public
|
|
82
|
+
* @returns {Image}
|
|
83
|
+
*/
|
|
84
|
+
getImage(): HTMLImageElement;
|
|
85
|
+
/**
|
|
86
|
+
* Get measured text width.
|
|
87
|
+
* @public
|
|
88
|
+
* @param {string} text - Measured text.
|
|
89
|
+
* @returns {number}
|
|
90
|
+
*/
|
|
91
|
+
getTextWidth(text: string): number;
|
|
92
|
+
/**
|
|
93
|
+
* Draw a text on the canvas.
|
|
94
|
+
* @public
|
|
95
|
+
* @param {string} text - Text.
|
|
96
|
+
* @param {number} [x] - Canvas X - coordinate. 0 - default.
|
|
97
|
+
* @param {number} [y] - Canvas Y - coordinate. 0 - default.
|
|
98
|
+
* @param {string} [font] - Font style. 'normal 14px Verdana' - is default.
|
|
99
|
+
* @param {string} [color] - Css font color.
|
|
100
|
+
*/
|
|
101
|
+
drawText(text: string, x?: number, y?: number, font?: string, color?: string): void;
|
|
102
|
+
/**
|
|
103
|
+
* Gets canvas width.
|
|
104
|
+
* @public
|
|
105
|
+
* @returns {number}
|
|
106
|
+
*/
|
|
107
|
+
getWidth(): number;
|
|
108
|
+
/**
|
|
109
|
+
* Gets canvas height.
|
|
110
|
+
* @public
|
|
111
|
+
* @returns {number}
|
|
112
|
+
*/
|
|
113
|
+
getHeight(): number;
|
|
114
|
+
/**
|
|
115
|
+
* Load image to canvas.
|
|
116
|
+
* @public
|
|
117
|
+
* @param {string} url - Image url.
|
|
118
|
+
* @param {Function} [callback] - Image onload callback.
|
|
119
|
+
*/
|
|
120
|
+
load(url: string, callback: Function): void;
|
|
121
|
+
/**
|
|
122
|
+
* Open canvas image in the new window.
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
openImage(): void;
|
|
126
|
+
destroy(): void;
|
|
127
|
+
}
|
|
128
|
+
export { ImageCanvas };
|