@openglobus/og 0.24.1 → 0.25.0
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/{js/Globe.d.ts → Globe.d.ts} +16 -18
- package/lib/{js/Object3d.d.ts → Object3d.d.ts} +1 -1
- package/lib/{@openglobus/js/camera → camera}/Camera.d.ts +16 -22
- package/lib/{@openglobus/js/camera → camera}/Frustum.d.ts +1 -1
- package/lib/control/CameraFrameComposer.d.ts +35 -0
- package/lib/control/KeyboardNavigation.d.ts +32 -0
- package/lib/control/MouseWheelZoomControl.d.ts +1 -0
- package/lib/{js/control → control/atmosphere}/Atmosphere.d.ts +9 -6
- package/lib/{@openglobus/js/control → control/atmosphere}/AtmosphereConfig.d.ts +6 -6
- package/lib/{js/control → control}/index.d.ts +3 -1
- package/lib/control/object3dManager/Object3dCollection.d.ts +21 -0
- package/lib/control/object3dManager/Object3dCollectionView.d.ts +15 -0
- package/lib/control/object3dManager/Object3dItemView.d.ts +10 -0
- package/lib/control/object3dManager/Object3dManager.d.ts +28 -0
- package/lib/control/object3dManager/Object3dManagerDialog.d.ts +23 -0
- package/lib/{js/control → control}/visibleExtent/Segment.d.ts +3 -3
- package/lib/entity/LabelWorker.worker.d.ts +1 -0
- package/lib/{@openglobus/js/index.d.ts → index.d.ts} +1 -0
- package/lib/og.css +1 -0
- package/lib/og.es.js +1 -0
- package/lib/{@openglobus/js/renderer → renderer}/Renderer.d.ts +28 -28
- package/lib/{@openglobus/js/scene → scene}/Planet.d.ts +3 -3
- package/lib/{@openglobus/js/segment → segment}/Segment.d.ts +1 -1
- package/lib/{js/segment → segment}/segmentHelper.d.ts +1 -1
- package/lib/{@openglobus/js/shaders → shaders/atmos}/atmos.d.ts +7 -5
- package/lib/{@openglobus/js/shaders → shaders/billboard}/billboard.d.ts +1 -1
- package/lib/shaders/drawnode/drawnode.d.ts +8 -0
- package/lib/{@openglobus/js/shaders/geoObject.d.ts → shaders/geo_object/geo_object.d.ts} +1 -1
- package/lib/{@openglobus/js/shaders → shaders/label}/label.d.ts +1 -1
- package/lib/{@openglobus/js/shaders → shaders/polyline}/polyline.d.ts +1 -1
- package/lib/shaders/ray/ray.d.ts +2 -0
- package/lib/{@openglobus/js/shaders → shaders/tone_mapping}/toneMapping.d.ts +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/{@openglobus/js/ui → ui}/Dialog.d.ts +1 -1
- package/lib/{@openglobus/js/ui → ui}/View.d.ts +1 -0
- package/lib/{@openglobus/js/utils → utils}/BaseWorker.d.ts +2 -2
- package/lib/utils/PlainSegmentWorker.worker.d.ts +1 -0
- package/lib/utils/TerrainWorker.worker.d.ts +1 -0
- package/lib/{@openglobus/js/utils → utils}/objParser.d.ts +1 -1
- package/lib/{js/utils → utils}/shared.d.ts +16 -0
- package/lib/{js/webgl → webgl}/Framebuffer.d.ts +21 -5
- package/lib/{@openglobus/js/webgl → webgl}/Handler.d.ts +0 -1
- package/package.json +76 -68
- package/res/fonts/Ephesis-Regular.json +4648 -0
- package/res/fonts/Ephesis-Regular.ttf.cfg +1282 -0
- package/res/fonts/Ephesis-Regular.ttf.png +0 -0
- package/res/fonts/Karla-Bold.json +5252 -0
- package/res/fonts/Karla-Bold.ttf.cfg +920 -0
- package/res/fonts/Karla-Bold.ttf.png +0 -0
- package/res/fonts/Karla-Light.json +5252 -0
- package/res/fonts/Karla-Light.ttf.cfg +830 -0
- package/res/fonts/Karla-Light.ttf.png +0 -0
- package/res/fonts/Karla-Medium.json +5252 -0
- package/res/fonts/Karla-Medium.ttf.cfg +1196 -0
- package/res/fonts/Karla-Medium.ttf.png +0 -0
- package/res/fonts/NotoSansArabic-Regular.json +3332 -0
- package/res/fonts/NotoSansArabic-Regular.ttf.cfg +1370 -0
- package/res/fonts/NotoSansArabic-Regular.ttf.png +0 -0
- package/res/fonts/Roboto-Regular.json +37147 -0
- package/res/fonts/Roboto-Regular.ttf.cfg +1340 -0
- package/res/fonts/Roboto-Regular.ttf.png +0 -0
- package/res/fonts/arial.js +4325 -0
- package/res/fonts/arial.json +4321 -0
- package/res/fonts/arial.ttf.cfg +1570 -0
- package/res/fonts/arial.ttf.png +0 -0
- package/res/night-4326.png +0 -0
- package/res/night.png +0 -0
- package/res/spec.png +0 -0
- package/css/og.css +0 -1342
- package/lib/@openglobus/js/Globe.d.ts +0 -145
- package/lib/@openglobus/js/Object3d.d.ts +0 -81
- package/lib/@openglobus/js/control/Atmosphere.d.ts +0 -40
- package/lib/@openglobus/js/control/KeyboardNavigation.d.ts +0 -28
- package/lib/@openglobus/js/control/index.d.ts +0 -30
- package/lib/@openglobus/js/segment/segmentHelper.d.ts +0 -18
- package/lib/@openglobus/js/shaders/bloom.d.ts +0 -2
- package/lib/@openglobus/js/shaders/blur.d.ts +0 -3
- package/lib/@openglobus/js/shaders/drawnode.d.ts +0 -10
- package/lib/@openglobus/js/shaders/lumFilter.d.ts +0 -2
- package/lib/@openglobus/js/shaders/ray.d.ts +0 -2
- package/lib/@openglobus/js/shaders/utils.d.ts +0 -1
- package/lib/@openglobus/js/utils/shared.d.ts +0 -287
- package/lib/@openglobus/js/webgl/Framebuffer.d.ts +0 -97
- package/lib/@openglobus/og.css +0 -1
- package/lib/@openglobus/og.esm.js +0 -2
- package/lib/@openglobus/og.esm.js.map +0 -1
- package/lib/@openglobus/og.umd.js +0 -2
- package/lib/@openglobus/og.umd.js.map +0 -1
- package/lib/js/Clock.d.ts +0 -106
- package/lib/js/Clock.js +0 -141
- package/lib/js/Deferred.d.ts +0 -6
- package/lib/js/Deferred.js +0 -13
- package/lib/js/Events.d.ts +0 -90
- package/lib/js/Events.js +0 -145
- package/lib/js/Extent.d.ts +0 -145
- package/lib/js/Extent.js +0 -278
- package/lib/js/Globe.js +0 -289
- package/lib/js/ImageCanvas.d.ts +0 -128
- package/lib/js/ImageCanvas.js +0 -203
- package/lib/js/Lock.d.ts +0 -15
- package/lib/js/Lock.js +0 -27
- package/lib/js/LonLat.d.ts +0 -128
- package/lib/js/LonLat.js +0 -192
- package/lib/js/Object3d.js +0 -508
- package/lib/js/Popup.d.ts +0 -49
- package/lib/js/Popup.js +0 -160
- package/lib/js/QueueArray.d.ts +0 -16
- package/lib/js/QueueArray.js +0 -63
- package/lib/js/Rectangle.d.ts +0 -76
- package/lib/js/Rectangle.js +0 -77
- package/lib/js/Stack.d.ts +0 -20
- package/lib/js/Stack.js +0 -42
- package/lib/js/astro/astro.d.ts +0 -39
- package/lib/js/astro/astro.js +0 -43
- package/lib/js/astro/earth.d.ts +0 -8
- package/lib/js/astro/earth.js +0 -75
- package/lib/js/astro/jd.d.ts +0 -234
- package/lib/js/astro/jd.js +0 -416
- package/lib/js/astro/orbit.d.ts +0 -5
- package/lib/js/astro/orbit.js +0 -104
- package/lib/js/astro/rotation.d.ts +0 -2
- package/lib/js/astro/rotation.js +0 -25
- package/lib/js/bv/Box.d.ts +0 -32
- package/lib/js/bv/Box.js +0 -53
- package/lib/js/bv/Sphere.d.ts +0 -37
- package/lib/js/bv/Sphere.js +0 -31
- package/lib/js/bv/index.d.ts +0 -3
- package/lib/js/bv/index.js +0 -3
- package/lib/js/camera/Camera.d.ts +0 -361
- package/lib/js/camera/Camera.js +0 -541
- package/lib/js/camera/Frustum.d.ts +0 -142
- package/lib/js/camera/Frustum.js +0 -246
- package/lib/js/camera/PlanetCamera.d.ts +0 -247
- package/lib/js/camera/PlanetCamera.js +0 -513
- package/lib/js/camera/index.d.ts +0 -3
- package/lib/js/camera/index.js +0 -3
- package/lib/js/cons.d.ts +0 -40
- package/lib/js/cons.js +0 -92
- package/lib/js/control/Atmosphere.js +0 -401
- package/lib/js/control/AtmosphereConfig.d.ts +0 -59
- package/lib/js/control/AtmosphereConfig.js +0 -348
- package/lib/js/control/CameraLock.d.ts +0 -38
- package/lib/js/control/CameraLock.js +0 -216
- package/lib/js/control/CompassButton.d.ts +0 -16
- package/lib/js/control/CompassButton.js +0 -118
- package/lib/js/control/Control.d.ts +0 -100
- package/lib/js/control/Control.js +0 -137
- package/lib/js/control/DebugInfo.d.ts +0 -25
- package/lib/js/control/DebugInfo.js +0 -318
- package/lib/js/control/DrawingSwitcher.d.ts +0 -13
- package/lib/js/control/DrawingSwitcher.js +0 -94
- package/lib/js/control/EarthCoordinates.d.ts +0 -41
- package/lib/js/control/EarthCoordinates.js +0 -161
- package/lib/js/control/GeoImageDragControl.d.ts +0 -22
- package/lib/js/control/GeoImageDragControl.js +0 -102
- package/lib/js/control/KeyboardNavigation.d.ts +0 -28
- package/lib/js/control/KeyboardNavigation.js +0 -143
- package/lib/js/control/LayerAnimation.d.ts +0 -71
- package/lib/js/control/LayerAnimation.js +0 -283
- package/lib/js/control/LayerSwitcher.d.ts +0 -38
- package/lib/js/control/LayerSwitcher.js +0 -151
- package/lib/js/control/Lighting.d.ts +0 -54
- package/lib/js/control/Lighting.js +0 -459
- package/lib/js/control/MouseNavigation.d.ts +0 -76
- package/lib/js/control/MouseNavigation.js +0 -414
- package/lib/js/control/MouseWheelZoomControl.d.ts +0 -0
- package/lib/js/control/MouseWheelZoomControl.js +0 -270
- package/lib/js/control/OldMouseNavigation.d.ts +0 -65
- package/lib/js/control/OldMouseNavigation.js +0 -368
- package/lib/js/control/RulerSwitcher.d.ts +0 -18
- package/lib/js/control/RulerSwitcher.js +0 -57
- package/lib/js/control/ScaleControl.d.ts +0 -25
- package/lib/js/control/ScaleControl.js +0 -97
- package/lib/js/control/SegmentBoundVisualization.d.ts +0 -13
- package/lib/js/control/SegmentBoundVisualization.js +0 -37
- package/lib/js/control/ShowFps.d.ts +0 -10
- package/lib/js/control/ShowFps.js +0 -20
- package/lib/js/control/SimpleNavigation.d.ts +0 -43
- package/lib/js/control/SimpleNavigation.js +0 -196
- package/lib/js/control/SimpleSkyBackground.d.ts +0 -18
- package/lib/js/control/SimpleSkyBackground.js +0 -187
- package/lib/js/control/Sun.d.ts +0 -34
- package/lib/js/control/Sun.js +0 -117
- package/lib/js/control/ToggleWireframe.d.ts +0 -15
- package/lib/js/control/ToggleWireframe.js +0 -28
- package/lib/js/control/TouchNavigation.d.ts +0 -53
- package/lib/js/control/TouchNavigation.js +0 -266
- package/lib/js/control/ZoomControl.d.ts +0 -28
- package/lib/js/control/ZoomControl.js +0 -86
- package/lib/js/control/drawing/DrawingControl.d.ts +0 -12
- package/lib/js/control/drawing/DrawingControl.js +0 -35
- package/lib/js/control/drawing/LineStringDrawingScene.d.ts +0 -15
- package/lib/js/control/drawing/LineStringDrawingScene.js +0 -139
- package/lib/js/control/drawing/PolygonDrawingScene.d.ts +0 -98
- package/lib/js/control/drawing/PolygonDrawingScene.js +0 -534
- package/lib/js/control/elevationProfile/ElevationProfile.d.ts +0 -77
- package/lib/js/control/elevationProfile/ElevationProfile.js +0 -248
- package/lib/js/control/elevationProfile/ElevationProfileButtonsView.d.ts +0 -15
- package/lib/js/control/elevationProfile/ElevationProfileButtonsView.js +0 -61
- package/lib/js/control/elevationProfile/ElevationProfileControl.d.ts +0 -33
- package/lib/js/control/elevationProfile/ElevationProfileControl.js +0 -153
- package/lib/js/control/elevationProfile/ElevationProfileLegend.d.ts +0 -20
- package/lib/js/control/elevationProfile/ElevationProfileLegend.js +0 -82
- package/lib/js/control/elevationProfile/ElevationProfileScene.d.ts +0 -80
- package/lib/js/control/elevationProfile/ElevationProfileScene.js +0 -542
- package/lib/js/control/elevationProfile/ElevationProfileView.d.ts +0 -65
- package/lib/js/control/elevationProfile/ElevationProfileView.js +0 -504
- package/lib/js/control/elevationProfile/PointListDialog.d.ts +0 -12
- package/lib/js/control/elevationProfile/PointListDialog.js +0 -57
- package/lib/js/control/geoObjectEditor/ArrowEntity.d.ts +0 -15
- package/lib/js/control/geoObjectEditor/ArrowEntity.js +0 -59
- package/lib/js/control/geoObjectEditor/AxisTrackEntity.d.ts +0 -9
- package/lib/js/control/geoObjectEditor/AxisTrackEntity.js +0 -93
- package/lib/js/control/geoObjectEditor/GeoObjectEditor.d.ts +0 -13
- package/lib/js/control/geoObjectEditor/GeoObjectEditor.js +0 -30
- package/lib/js/control/geoObjectEditor/GeoObjectEditorDialog.d.ts +0 -69
- package/lib/js/control/geoObjectEditor/GeoObjectEditorDialog.js +0 -488
- package/lib/js/control/geoObjectEditor/GeoObjectEditorScene.d.ts +0 -127
- package/lib/js/control/geoObjectEditor/GeoObjectEditorScene.js +0 -549
- package/lib/js/control/geoObjectEditor/MoveAxisEntity.d.ts +0 -17
- package/lib/js/control/geoObjectEditor/MoveAxisEntity.js +0 -107
- package/lib/js/control/geoObjectEditor/MovePlaneEntity.d.ts +0 -7
- package/lib/js/control/geoObjectEditor/MovePlaneEntity.js +0 -31
- package/lib/js/control/geoObjectEditor/RotateEntity.d.ts +0 -9
- package/lib/js/control/geoObjectEditor/RotateEntity.js +0 -105
- package/lib/js/control/geoObjectEditor/colors.d.ts +0 -8
- package/lib/js/control/geoObjectEditor/colors.js +0 -8
- package/lib/js/control/heightRuler/HeightRuler.d.ts +0 -7
- package/lib/js/control/heightRuler/HeightRuler.js +0 -11
- package/lib/js/control/heightRuler/HeightRulerScene.d.ts +0 -35
- package/lib/js/control/heightRuler/HeightRulerScene.js +0 -181
- package/lib/js/control/heightRuler/HeightRulerSwitcher.d.ts +0 -6
- package/lib/js/control/heightRuler/HeightRulerSwitcher.js +0 -13
- package/lib/js/control/index.js +0 -30
- package/lib/js/control/ruler/Ruler.d.ts +0 -14
- package/lib/js/control/ruler/Ruler.js +0 -23
- package/lib/js/control/ruler/RulerScene.d.ts +0 -88
- package/lib/js/control/ruler/RulerScene.js +0 -324
- package/lib/js/control/selection/Selection.d.ts +0 -56
- package/lib/js/control/selection/Selection.js +0 -78
- package/lib/js/control/selection/SelectionScene.d.ts +0 -44
- package/lib/js/control/selection/SelectionScene.js +0 -272
- package/lib/js/control/timeline/TimelineControl.d.ts +0 -18
- package/lib/js/control/timeline/TimelineControl.js +0 -81
- package/lib/js/control/timeline/TimelineModel.d.ts +0 -41
- package/lib/js/control/timeline/TimelineModel.js +0 -104
- package/lib/js/control/timeline/TimelineView.d.ts +0 -86
- package/lib/js/control/timeline/TimelineView.js +0 -363
- package/lib/js/control/timeline/timelineUtils.d.ts +0 -12
- package/lib/js/control/timeline/timelineUtils.js +0 -112
- package/lib/js/control/visibleExtent/Segment.js +0 -1301
- package/lib/js/control/visibleExtent/VisibleExtent.js +0 -56
- package/lib/js/control/visibleExtent/drawnode.d.ts +0 -7
- package/lib/js/control/visibleExtent/drawnode.js +0 -718
- package/lib/js/ellipsoid/Ellipsoid.d.ts +0 -194
- package/lib/js/ellipsoid/Ellipsoid.js +0 -459
- package/lib/js/ellipsoid/index.d.ts +0 -4
- package/lib/js/ellipsoid/index.js +0 -4
- package/lib/js/ellipsoid/mars.d.ts +0 -6
- package/lib/js/ellipsoid/mars.js +0 -6
- package/lib/js/ellipsoid/moon.d.ts +0 -6
- package/lib/js/ellipsoid/moon.js +0 -6
- package/lib/js/ellipsoid/wgs84.d.ts +0 -6
- package/lib/js/ellipsoid/wgs84.js +0 -6
- package/lib/js/entity/BaseBillboard.d.ts +0 -225
- package/lib/js/entity/BaseBillboard.js +0 -284
- package/lib/js/entity/BaseBillboardHandler.d.ts +0 -81
- package/lib/js/entity/BaseBillboardHandler.js +0 -546
- package/lib/js/entity/Billboard.d.ts +0 -114
- package/lib/js/entity/Billboard.js +0 -127
- package/lib/js/entity/BillboardHandler.d.ts +0 -15
- package/lib/js/entity/BillboardHandler.js +0 -103
- package/lib/js/entity/Entity.d.ts +0 -630
- package/lib/js/entity/Entity.js +0 -957
- package/lib/js/entity/EntityCollection.d.ts +0 -368
- package/lib/js/entity/EntityCollection.js +0 -655
- package/lib/js/entity/GeoObject.d.ts +0 -257
- package/lib/js/entity/GeoObject.js +0 -318
- package/lib/js/entity/GeoObjectHandler.d.ts +0 -81
- package/lib/js/entity/GeoObjectHandler.js +0 -515
- package/lib/js/entity/Geometry.d.ts +0 -125
- package/lib/js/entity/Geometry.js +0 -291
- package/lib/js/entity/GeometryHandler.d.ts +0 -86
- package/lib/js/entity/GeometryHandler.js +0 -745
- package/lib/js/entity/InstanceData.d.ts +0 -76
- package/lib/js/entity/InstanceData.js +0 -347
- package/lib/js/entity/Label.d.ts +0 -230
- package/lib/js/entity/Label.js +0 -322
- package/lib/js/entity/LabelHandler.d.ts +0 -65
- package/lib/js/entity/LabelHandler.js +0 -696
- package/lib/js/entity/LabelWorker.d.ts +0 -15
- package/lib/js/entity/LabelWorker.js +0 -163
- package/lib/js/entity/PointCloud.d.ts +0 -179
- package/lib/js/entity/PointCloud.js +0 -327
- package/lib/js/entity/PointCloudHandler.d.ts +0 -42
- package/lib/js/entity/PointCloudHandler.js +0 -82
- package/lib/js/entity/Polyline.d.ts +0 -360
- package/lib/js/entity/Polyline.js +0 -1635
- package/lib/js/entity/PolylineHandler.d.ts +0 -29
- package/lib/js/entity/PolylineHandler.js +0 -103
- package/lib/js/entity/Ray.d.ts +0 -135
- package/lib/js/entity/Ray.js +0 -171
- package/lib/js/entity/RayHandler.d.ts +0 -70
- package/lib/js/entity/RayHandler.js +0 -496
- package/lib/js/entity/Strip.d.ts +0 -141
- package/lib/js/entity/Strip.js +0 -417
- package/lib/js/entity/StripHandler.d.ts +0 -42
- package/lib/js/entity/StripHandler.js +0 -110
- package/lib/js/entity/index.d.ts +0 -10
- package/lib/js/entity/index.js +0 -10
- package/lib/js/index.d.ts +0 -34
- package/lib/js/index.js +0 -34
- package/lib/js/input/KeyboardHandler.d.ts +0 -33
- package/lib/js/input/KeyboardHandler.js +0 -159
- package/lib/js/input/MouseHandler.d.ts +0 -17
- package/lib/js/input/MouseHandler.js +0 -92
- package/lib/js/input/TouchHandler.d.ts +0 -11
- package/lib/js/input/TouchHandler.js +0 -42
- package/lib/js/input/input.d.ts +0 -3
- package/lib/js/input/input.js +0 -47
- package/lib/js/layer/BaseGeoImage.d.ts +0 -146
- package/lib/js/layer/BaseGeoImage.js +0 -382
- package/lib/js/layer/Bing.d.ts +0 -5
- package/lib/js/layer/Bing.js +0 -41
- package/lib/js/layer/CanvasTiles.d.ts +0 -104
- package/lib/js/layer/CanvasTiles.js +0 -292
- package/lib/js/layer/GeoImage.d.ts +0 -62
- package/lib/js/layer/GeoImage.js +0 -133
- package/lib/js/layer/GeoTexture2d.d.ts +0 -18
- package/lib/js/layer/GeoTexture2d.js +0 -37
- package/lib/js/layer/GeoVideo.d.ts +0 -69
- package/lib/js/layer/GeoVideo.js +0 -157
- package/lib/js/layer/KML.d.ts +0 -74
- package/lib/js/layer/KML.js +0 -303
- package/lib/js/layer/Layer.d.ts +0 -416
- package/lib/js/layer/Layer.js +0 -734
- package/lib/js/layer/Material.d.ts +0 -34
- package/lib/js/layer/Material.js +0 -69
- package/lib/js/layer/OpenStreetMap.d.ts +0 -5
- package/lib/js/layer/OpenStreetMap.js +0 -19
- package/lib/js/layer/Vector.d.ts +0 -240
- package/lib/js/layer/Vector.js +0 -767
- package/lib/js/layer/WMS.d.ts +0 -76
- package/lib/js/layer/WMS.js +0 -112
- package/lib/js/layer/XYZ.d.ts +0 -149
- package/lib/js/layer/XYZ.js +0 -299
- package/lib/js/layer/index.d.ts +0 -12
- package/lib/js/layer/index.js +0 -12
- package/lib/js/light/LightSource.d.ts +0 -36
- package/lib/js/light/LightSource.js +0 -86
- package/lib/js/math/Line2.d.ts +0 -11
- package/lib/js/math/Line2.js +0 -21
- package/lib/js/math/Line3.d.ts +0 -28
- package/lib/js/math/Line3.js +0 -85
- package/lib/js/math/Mat3.d.ts +0 -77
- package/lib/js/math/Mat3.js +0 -139
- package/lib/js/math/Mat4.d.ts +0 -204
- package/lib/js/math/Mat4.js +0 -487
- package/lib/js/math/Plane.d.ts +0 -22
- package/lib/js/math/Plane.js +0 -118
- package/lib/js/math/Quat.d.ts +0 -393
- package/lib/js/math/Quat.js +0 -794
- package/lib/js/math/Ray.d.ts +0 -72
- package/lib/js/math/Ray.js +0 -211
- package/lib/js/math/Vec2.d.ts +0 -332
- package/lib/js/math/Vec2.js +0 -495
- package/lib/js/math/Vec3.d.ts +0 -488
- package/lib/js/math/Vec3.js +0 -828
- package/lib/js/math/Vec4.d.ts +0 -163
- package/lib/js/math/Vec4.js +0 -211
- package/lib/js/math/coder.d.ts +0 -53
- package/lib/js/math/coder.js +0 -101
- package/lib/js/math/index.d.ts +0 -14
- package/lib/js/math/index.js +0 -11
- package/lib/js/math.d.ts +0 -266
- package/lib/js/math.js +0 -379
- package/lib/js/mercator.d.ts +0 -92
- package/lib/js/mercator.js +0 -120
- package/lib/js/proj/EPSG3857.d.ts +0 -9
- package/lib/js/proj/EPSG3857.js +0 -9
- package/lib/js/proj/EPSG4326.d.ts +0 -9
- package/lib/js/proj/EPSG4326.js +0 -9
- package/lib/js/proj/Proj.d.ts +0 -43
- package/lib/js/proj/Proj.js +0 -38
- package/lib/js/proj/equi.d.ts +0 -9
- package/lib/js/proj/equi.js +0 -9
- package/lib/js/quadTree/EPSG4326/EPSG4326QuadTreeStrategy.d.ts +0 -6
- package/lib/js/quadTree/EPSG4326/EPSG4326QuadTreeStrategy.js +0 -16
- package/lib/js/quadTree/EntityCollectionNode.d.ts +0 -46
- package/lib/js/quadTree/EntityCollectionNode.js +0 -262
- package/lib/js/quadTree/EntityCollectionsTreeStrategy.d.ts +0 -25
- package/lib/js/quadTree/EntityCollectionsTreeStrategy.js +0 -49
- package/lib/js/quadTree/Node.d.ts +0 -80
- package/lib/js/quadTree/Node.js +0 -712
- package/lib/js/quadTree/QuadTreeStrategy.d.ts +0 -39
- package/lib/js/quadTree/QuadTreeStrategy.js +0 -98
- package/lib/js/quadTree/earth/EarthEntityCollectionNodeLonLat.d.ts +0 -19
- package/lib/js/quadTree/earth/EarthEntityCollectionNodeLonLat.js +0 -74
- package/lib/js/quadTree/earth/EarthEntityCollectionsTreeStrategy.d.ts +0 -19
- package/lib/js/quadTree/earth/EarthEntityCollectionsTreeStrategy.js +0 -103
- package/lib/js/quadTree/earth/EarthQuadTreeStrategy.d.ts +0 -27
- package/lib/js/quadTree/earth/EarthQuadTreeStrategy.js +0 -77
- package/lib/js/quadTree/equi/EquiEntityCollectionNodeLonLat.d.ts +0 -18
- package/lib/js/quadTree/equi/EquiEntityCollectionNodeLonLat.js +0 -70
- package/lib/js/quadTree/equi/EquiEntityCollectionsTreeStrategy.d.ts +0 -17
- package/lib/js/quadTree/equi/EquiEntityCollectionsTreeStrategy.js +0 -75
- package/lib/js/quadTree/equi/EquiQuadTreeStrategy.d.ts +0 -19
- package/lib/js/quadTree/equi/EquiQuadTreeStrategy.js +0 -62
- package/lib/js/quadTree/index.d.ts +0 -12
- package/lib/js/quadTree/index.js +0 -12
- package/lib/js/quadTree/quadTree.d.ts +0 -40
- package/lib/js/quadTree/quadTree.js +0 -66
- package/lib/js/quadTree/wgs84/Wgs84QuadTreeStrategy.d.ts +0 -6
- package/lib/js/quadTree/wgs84/Wgs84QuadTreeStrategy.js +0 -15
- package/lib/js/renderer/Renderer.d.ts +0 -343
- package/lib/js/renderer/Renderer.js +0 -969
- package/lib/js/renderer/RendererEvents.d.ts +0 -245
- package/lib/js/renderer/RendererEvents.js +0 -870
- package/lib/js/scene/Axes.d.ts +0 -12
- package/lib/js/scene/Axes.js +0 -59
- package/lib/js/scene/BaseNode.d.ts +0 -61
- package/lib/js/scene/BaseNode.js +0 -69
- package/lib/js/scene/Planet.d.ts +0 -641
- package/lib/js/scene/Planet.js +0 -1617
- package/lib/js/scene/RenderNode.d.ts +0 -135
- package/lib/js/scene/RenderNode.js +0 -313
- package/lib/js/scene/SkyBox.d.ts +0 -13
- package/lib/js/scene/SkyBox.js +0 -87
- package/lib/js/scene/index.d.ts +0 -5
- package/lib/js/scene/index.js +0 -5
- package/lib/js/segment/Segment.d.ts +0 -289
- package/lib/js/segment/Segment.js +0 -1212
- package/lib/js/segment/SegmentLonLat.d.ts +0 -40
- package/lib/js/segment/SegmentLonLat.js +0 -111
- package/lib/js/segment/SegmentLonLatEqui.d.ts +0 -13
- package/lib/js/segment/SegmentLonLatEqui.js +0 -46
- package/lib/js/segment/Slice.d.ts +0 -13
- package/lib/js/segment/Slice.js +0 -33
- package/lib/js/segment/segmentHelper.js +0 -180
- package/lib/js/shaders/atmos.d.ts +0 -20
- package/lib/js/shaders/atmos.js +0 -326
- package/lib/js/shaders/billboard.d.ts +0 -3
- package/lib/js/shaders/billboard.js +0 -214
- package/lib/js/shaders/bloom.d.ts +0 -2
- package/lib/js/shaders/bloom.js +0 -32
- package/lib/js/shaders/blur.d.ts +0 -3
- package/lib/js/shaders/blur.js +0 -68
- package/lib/js/shaders/depth.d.ts +0 -2
- package/lib/js/shaders/depth.js +0 -40
- package/lib/js/shaders/drawnode.d.ts +0 -10
- package/lib/js/shaders/drawnode.js +0 -1008
- package/lib/js/shaders/geoObject.d.ts +0 -4
- package/lib/js/shaders/geoObject.js +0 -294
- package/lib/js/shaders/label.d.ts +0 -4
- package/lib/js/shaders/label.js +0 -589
- package/lib/js/shaders/lumFilter.d.ts +0 -2
- package/lib/js/shaders/lumFilter.js +0 -36
- package/lib/js/shaders/pointCloud.d.ts +0 -2
- package/lib/js/shaders/pointCloud.js +0 -32
- package/lib/js/shaders/polyline.d.ts +0 -3
- package/lib/js/shaders/polyline.js +0 -364
- package/lib/js/shaders/ray.d.ts +0 -2
- package/lib/js/shaders/ray.js +0 -80
- package/lib/js/shaders/screenFrame.d.ts +0 -2
- package/lib/js/shaders/screenFrame.js +0 -26
- package/lib/js/shaders/skybox.d.ts +0 -2
- package/lib/js/shaders/skybox.js +0 -28
- package/lib/js/shaders/toneMapping.d.ts +0 -2
- package/lib/js/shaders/toneMapping.js +0 -85
- package/lib/js/shaders/utils.d.ts +0 -1
- package/lib/js/shaders/utils.js +0 -97
- package/lib/js/terrain/BilTerrain.d.ts +0 -19
- package/lib/js/terrain/BilTerrain.js +0 -153
- package/lib/js/terrain/EmptyTerrain.d.ts +0 -113
- package/lib/js/terrain/EmptyTerrain.js +0 -113
- package/lib/js/terrain/Geoid.d.ts +0 -33
- package/lib/js/terrain/Geoid.js +0 -191
- package/lib/js/terrain/GlobusRgbTerrain.d.ts +0 -7
- package/lib/js/terrain/GlobusRgbTerrain.js +0 -25
- package/lib/js/terrain/GlobusTerrain.d.ts +0 -140
- package/lib/js/terrain/GlobusTerrain.js +0 -351
- package/lib/js/terrain/RgbTerrain.d.ts +0 -43
- package/lib/js/terrain/RgbTerrain.js +0 -428
- package/lib/js/terrain/index.d.ts +0 -6
- package/lib/js/terrain/index.js +0 -6
- package/lib/js/ui/Button.d.ts +0 -33
- package/lib/js/ui/Button.js +0 -78
- package/lib/js/ui/ButtonGroup.d.ts +0 -16
- package/lib/js/ui/ButtonGroup.js +0 -41
- package/lib/js/ui/Checkbox.d.ts +0 -32
- package/lib/js/ui/Checkbox.js +0 -110
- package/lib/js/ui/Color.d.ts +0 -23
- package/lib/js/ui/Color.js +0 -59
- package/lib/js/ui/Dialog.d.ts +0 -59
- package/lib/js/ui/Dialog.js +0 -193
- package/lib/js/ui/Input.d.ts +0 -33
- package/lib/js/ui/Input.js +0 -107
- package/lib/js/ui/Slider.d.ts +0 -39
- package/lib/js/ui/Slider.js +0 -129
- package/lib/js/ui/ToggleButton.d.ts +0 -21
- package/lib/js/ui/ToggleButton.js +0 -42
- package/lib/js/ui/View.d.ts +0 -39
- package/lib/js/ui/View.js +0 -157
- package/lib/js/ui/icons.d.ts +0 -1
- package/lib/js/ui/icons.js +0 -3
- package/lib/js/utils/BaseWorker.d.ts +0 -14
- package/lib/js/utils/BaseWorker.js +0 -47
- package/lib/js/utils/FontAtlas.d.ts +0 -82
- package/lib/js/utils/FontAtlas.js +0 -220
- package/lib/js/utils/GeoImageCreator.d.ts +0 -34
- package/lib/js/utils/GeoImageCreator.js +0 -163
- package/lib/js/utils/ImagesCacheManager.d.ts +0 -22
- package/lib/js/utils/ImagesCacheManager.js +0 -63
- package/lib/js/utils/Loader.d.ts +0 -63
- package/lib/js/utils/Loader.js +0 -156
- package/lib/js/utils/NormalMapCreator.d.ts +0 -53
- package/lib/js/utils/NormalMapCreator.js +0 -310
- package/lib/js/utils/PlainSegmentWorker.d.ts +0 -24
- package/lib/js/utils/PlainSegmentWorker.js +0 -385
- package/lib/js/utils/TerrainWorker.d.ts +0 -28
- package/lib/js/utils/TerrainWorker.js +0 -551
- package/lib/js/utils/TextureAtlas.d.ts +0 -115
- package/lib/js/utils/TextureAtlas.js +0 -231
- package/lib/js/utils/VectorTileCreator.d.ts +0 -18
- package/lib/js/utils/VectorTileCreator.js +0 -320
- package/lib/js/utils/colorTable.d.ts +0 -3
- package/lib/js/utils/colorTable.js +0 -143
- package/lib/js/utils/earcut.d.ts +0 -7
- package/lib/js/utils/earcut.js +0 -536
- package/lib/js/utils/objParser.d.ts +0 -56
- package/lib/js/utils/objParser.js +0 -293
- package/lib/js/utils/shared.js +0 -961
- package/lib/js/utils/units.d.ts +0 -16
- package/lib/js/utils/units.js +0 -61
- package/lib/js/webgl/BaseFramebuffer.d.ts +0 -52
- package/lib/js/webgl/BaseFramebuffer.js +0 -88
- package/lib/js/webgl/Framebuffer.js +0 -256
- package/lib/js/webgl/Handler.d.ts +0 -491
- package/lib/js/webgl/Handler.js +0 -1035
- package/lib/js/webgl/Multisample.d.ts +0 -28
- package/lib/js/webgl/Multisample.js +0 -77
- package/lib/js/webgl/Program.d.ts +0 -159
- package/lib/js/webgl/Program.js +0 -306
- package/lib/js/webgl/ProgramController.d.ts +0 -87
- package/lib/js/webgl/ProgramController.js +0 -110
- package/lib/js/webgl/index.d.ts +0 -6
- package/lib/js/webgl/index.js +0 -6
- package/lib/js/webgl/types.d.ts +0 -9
- package/lib/js/webgl/types.js +0 -26
- package/lib/js/webgl/variableHandlers.d.ts +0 -22
- package/lib/js/webgl/variableHandlers.js +0 -78
- /package/lib/{@openglobus/js/Clock.d.ts → Clock.d.ts} +0 -0
- /package/lib/{@openglobus/js/Deferred.d.ts → Deferred.d.ts} +0 -0
- /package/lib/{@openglobus/js/Events.d.ts → Events.d.ts} +0 -0
- /package/lib/{@openglobus/js/Extent.d.ts → Extent.d.ts} +0 -0
- /package/lib/{@openglobus/js/ImageCanvas.d.ts → ImageCanvas.d.ts} +0 -0
- /package/lib/{@openglobus/js/Lock.d.ts → Lock.d.ts} +0 -0
- /package/lib/{@openglobus/js/LonLat.d.ts → LonLat.d.ts} +0 -0
- /package/lib/{@openglobus/js/Popup.d.ts → Popup.d.ts} +0 -0
- /package/lib/{@openglobus/js/QueueArray.d.ts → QueueArray.d.ts} +0 -0
- /package/lib/{@openglobus/js/Rectangle.d.ts → Rectangle.d.ts} +0 -0
- /package/lib/{@openglobus/js/Stack.d.ts → Stack.d.ts} +0 -0
- /package/lib/{@openglobus/js/astro → astro}/astro.d.ts +0 -0
- /package/lib/{@openglobus/js/astro → astro}/earth.d.ts +0 -0
- /package/lib/{@openglobus/js/astro → astro}/jd.d.ts +0 -0
- /package/lib/{@openglobus/js/astro → astro}/orbit.d.ts +0 -0
- /package/lib/{@openglobus/js/astro → astro}/rotation.d.ts +0 -0
- /package/lib/{@openglobus/js/bv → bv}/Box.d.ts +0 -0
- /package/lib/{@openglobus/js/bv → bv}/Sphere.d.ts +0 -0
- /package/lib/{@openglobus/js/bv → bv}/index.d.ts +0 -0
- /package/lib/{@openglobus/js/camera → camera}/PlanetCamera.d.ts +0 -0
- /package/lib/{@openglobus/js/camera → camera}/index.d.ts +0 -0
- /package/lib/{@openglobus/js/cons.d.ts → cons.d.ts} +0 -0
- /package/lib/{@openglobus/js/control → control}/CameraLock.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/CompassButton.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/Control.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/DebugInfo.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/DrawingSwitcher.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/EarthCoordinates.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/GeoImageDragControl.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/LayerAnimation.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/LayerSwitcher.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/Lighting.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/MouseNavigation.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/OldMouseNavigation.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/RulerSwitcher.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/ScaleControl.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/SegmentBoundVisualization.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/ShowFps.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/SimpleNavigation.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/SimpleSkyBackground.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/Sun.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/ToggleWireframe.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/TouchNavigation.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/ZoomControl.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/drawing/DrawingControl.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/drawing/LineStringDrawingScene.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/drawing/PolygonDrawingScene.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/elevationProfile/ElevationProfile.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/elevationProfile/ElevationProfileButtonsView.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/elevationProfile/ElevationProfileControl.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/elevationProfile/ElevationProfileLegend.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/elevationProfile/ElevationProfileScene.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/elevationProfile/ElevationProfileView.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/elevationProfile/PointListDialog.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/geoObjectEditor/ArrowEntity.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/geoObjectEditor/AxisTrackEntity.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/geoObjectEditor/GeoObjectEditor.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/geoObjectEditor/GeoObjectEditorDialog.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/geoObjectEditor/GeoObjectEditorScene.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/geoObjectEditor/MoveAxisEntity.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/geoObjectEditor/MovePlaneEntity.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/geoObjectEditor/RotateEntity.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/geoObjectEditor/colors.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/heightRuler/HeightRuler.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/heightRuler/HeightRulerScene.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/heightRuler/HeightRulerSwitcher.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/ruler/Ruler.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/ruler/RulerScene.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/selection/Selection.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/selection/SelectionScene.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/timeline/TimelineControl.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/timeline/TimelineModel.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/timeline/TimelineView.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/timeline/timelineUtils.d.ts +0 -0
- /package/lib/{js/control → control}/visibleExtent/VisibleExtent.d.ts +0 -0
- /package/lib/{@openglobus/js/control → control}/visibleExtent/drawnode.d.ts +0 -0
- /package/lib/{@openglobus/js/ellipsoid → ellipsoid}/Ellipsoid.d.ts +0 -0
- /package/lib/{@openglobus/js/ellipsoid → ellipsoid}/index.d.ts +0 -0
- /package/lib/{@openglobus/js/ellipsoid → ellipsoid}/mars.d.ts +0 -0
- /package/lib/{@openglobus/js/ellipsoid → ellipsoid}/moon.d.ts +0 -0
- /package/lib/{@openglobus/js/ellipsoid → ellipsoid}/wgs84.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/BaseBillboard.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/BaseBillboardHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/Billboard.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/BillboardHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/Entity.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/EntityCollection.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/GeoObject.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/GeoObjectHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/Geometry.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/GeometryHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/InstanceData.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/Label.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/LabelHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/LabelWorker.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/PointCloud.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/PointCloudHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/Polyline.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/PolylineHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/Ray.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/RayHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/Strip.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/StripHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/entity → entity}/index.d.ts +0 -0
- /package/lib/{@openglobus/js/input → input}/KeyboardHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/input → input}/MouseHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/input → input}/TouchHandler.d.ts +0 -0
- /package/lib/{@openglobus/js/input → input}/input.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/BaseGeoImage.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/Bing.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/CanvasTiles.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/GeoImage.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/GeoTexture2d.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/GeoVideo.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/KML.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/Layer.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/Material.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/OpenStreetMap.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/Vector.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/WMS.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/XYZ.d.ts +0 -0
- /package/lib/{@openglobus/js/layer → layer}/index.d.ts +0 -0
- /package/lib/{@openglobus/js/light → light}/LightSource.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/Line2.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/Line3.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/Mat3.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/Mat4.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/Plane.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/Quat.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/Ray.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/Vec2.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/Vec3.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/Vec4.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/coder.d.ts +0 -0
- /package/lib/{@openglobus/js/math → math}/index.d.ts +0 -0
- /package/lib/{@openglobus/js/math.d.ts → math.d.ts} +0 -0
- /package/lib/{@openglobus/js/mercator.d.ts → mercator.d.ts} +0 -0
- /package/lib/{@openglobus/js/proj → proj}/EPSG3857.d.ts +0 -0
- /package/lib/{@openglobus/js/proj → proj}/EPSG4326.d.ts +0 -0
- /package/lib/{@openglobus/js/proj → proj}/Proj.d.ts +0 -0
- /package/lib/{@openglobus/js/proj → proj}/equi.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/EPSG4326/EPSG4326QuadTreeStrategy.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/EntityCollectionNode.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/EntityCollectionsTreeStrategy.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/Node.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/QuadTreeStrategy.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/earth/EarthEntityCollectionNodeLonLat.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/earth/EarthEntityCollectionsTreeStrategy.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/earth/EarthQuadTreeStrategy.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/equi/EquiEntityCollectionNodeLonLat.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/equi/EquiEntityCollectionsTreeStrategy.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/equi/EquiQuadTreeStrategy.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/index.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/quadTree.d.ts +0 -0
- /package/lib/{@openglobus/js/quadTree → quadTree}/wgs84/Wgs84QuadTreeStrategy.d.ts +0 -0
- /package/lib/{@openglobus/js/renderer → renderer}/RendererEvents.d.ts +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Ephesis-Regular.json +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Ephesis-Regular.ttf.cfg +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Ephesis-Regular.ttf.png +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Karla-Bold.json +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Karla-Bold.ttf.cfg +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Karla-Bold.ttf.png +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Karla-Light.json +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Karla-Light.ttf.cfg +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Karla-Light.ttf.png +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Karla-Medium.json +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Karla-Medium.ttf.cfg +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Karla-Medium.ttf.png +0 -0
- /package/lib/{@openglobus/res → res}/fonts/NotoSansArabic-Regular.json +0 -0
- /package/lib/{@openglobus/res → res}/fonts/NotoSansArabic-Regular.ttf.cfg +0 -0
- /package/lib/{@openglobus/res → res}/fonts/NotoSansArabic-Regular.ttf.png +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Roboto-Regular.json +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Roboto-Regular.ttf.cfg +0 -0
- /package/lib/{@openglobus/res → res}/fonts/Roboto-Regular.ttf.png +0 -0
- /package/lib/{@openglobus/res → res}/fonts/arial.js +0 -0
- /package/lib/{@openglobus/res → res}/fonts/arial.json +0 -0
- /package/lib/{@openglobus/res → res}/fonts/arial.ttf.cfg +0 -0
- /package/lib/{@openglobus/res → res}/fonts/arial.ttf.png +0 -0
- /package/lib/{@openglobus/res → res}/night-4326.png +0 -0
- /package/lib/{@openglobus/res → res}/night.png +0 -0
- /package/lib/{@openglobus/res → res}/spec.png +0 -0
- /package/lib/{@openglobus/js/scene → scene}/Axes.d.ts +0 -0
- /package/lib/{@openglobus/js/scene → scene}/BaseNode.d.ts +0 -0
- /package/lib/{@openglobus/js/scene → scene}/RenderNode.d.ts +0 -0
- /package/lib/{@openglobus/js/scene → scene}/SkyBox.d.ts +0 -0
- /package/lib/{@openglobus/js/scene → scene}/index.d.ts +0 -0
- /package/lib/{@openglobus/js/segment → segment}/SegmentLonLat.d.ts +0 -0
- /package/lib/{@openglobus/js/segment → segment}/SegmentLonLatEqui.d.ts +0 -0
- /package/lib/{@openglobus/js/segment → segment}/Slice.d.ts +0 -0
- /package/lib/{@openglobus/js/shaders → shaders}/depth.d.ts +0 -0
- /package/lib/{@openglobus/js/shaders → shaders}/pointCloud.d.ts +0 -0
- /package/lib/{@openglobus/js/shaders → shaders}/screenFrame.d.ts +0 -0
- /package/lib/{@openglobus/js/shaders → shaders}/skybox.d.ts +0 -0
- /package/lib/{@openglobus/js/terrain → terrain}/BilTerrain.d.ts +0 -0
- /package/lib/{@openglobus/js/terrain → terrain}/EmptyTerrain.d.ts +0 -0
- /package/lib/{@openglobus/js/terrain → terrain}/Geoid.d.ts +0 -0
- /package/lib/{@openglobus/js/terrain → terrain}/GlobusRgbTerrain.d.ts +0 -0
- /package/lib/{@openglobus/js/terrain → terrain}/GlobusTerrain.d.ts +0 -0
- /package/lib/{@openglobus/js/terrain → terrain}/RgbTerrain.d.ts +0 -0
- /package/lib/{@openglobus/js/terrain → terrain}/index.d.ts +0 -0
- /package/lib/{@openglobus/js/ui → ui}/Button.d.ts +0 -0
- /package/lib/{@openglobus/js/ui → ui}/ButtonGroup.d.ts +0 -0
- /package/lib/{@openglobus/js/ui → ui}/Checkbox.d.ts +0 -0
- /package/lib/{@openglobus/js/ui → ui}/Color.d.ts +0 -0
- /package/lib/{@openglobus/js/ui → ui}/Input.d.ts +0 -0
- /package/lib/{@openglobus/js/ui → ui}/Slider.d.ts +0 -0
- /package/lib/{@openglobus/js/ui → ui}/ToggleButton.d.ts +0 -0
- /package/lib/{@openglobus/js/ui → ui}/icons.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/FontAtlas.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/GeoImageCreator.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/ImagesCacheManager.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/Loader.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/NormalMapCreator.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/PlainSegmentWorker.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/TerrainWorker.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/TextureAtlas.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/VectorTileCreator.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/colorTable.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/earcut.d.ts +0 -0
- /package/lib/{@openglobus/js/utils → utils}/units.d.ts +0 -0
- /package/lib/{@openglobus/js/webgl → webgl}/BaseFramebuffer.d.ts +0 -0
- /package/lib/{@openglobus/js/webgl → webgl}/Multisample.d.ts +0 -0
- /package/lib/{@openglobus/js/webgl → webgl}/Program.d.ts +0 -0
- /package/lib/{@openglobus/js/webgl → webgl}/ProgramController.d.ts +0 -0
- /package/lib/{@openglobus/js/webgl → webgl}/index.d.ts +0 -0
- /package/lib/{@openglobus/js/webgl → webgl}/types.d.ts +0 -0
- /package/lib/{@openglobus/js/webgl → webgl}/variableHandlers.d.ts +0 -0
package/lib/js/camera/Camera.js
DELETED
|
@@ -1,541 +0,0 @@
|
|
|
1
|
-
import * as math from "../math";
|
|
2
|
-
import { createEvents } from "../Events";
|
|
3
|
-
import { Frustum } from "./Frustum";
|
|
4
|
-
import { Mat3 } from "../math/Mat3";
|
|
5
|
-
import { Mat4 } from "../math/Mat4";
|
|
6
|
-
import { Vec2 } from "../math/Vec2";
|
|
7
|
-
import { Vec3 } from "../math/Vec3";
|
|
8
|
-
import { Vec4 } from "../math/Vec4";
|
|
9
|
-
import { Quat } from "../math/Quat";
|
|
10
|
-
import { RADIANS } from "../math";
|
|
11
|
-
const EVENT_NAMES = [
|
|
12
|
-
/**
|
|
13
|
-
* When camera has been updated.
|
|
14
|
-
* @event og.Camera#viewchange
|
|
15
|
-
*/
|
|
16
|
-
"viewchange",
|
|
17
|
-
/**
|
|
18
|
-
* Camera is stopped.
|
|
19
|
-
* @event og.Camera#moveend
|
|
20
|
-
*/
|
|
21
|
-
"moveend"
|
|
22
|
-
];
|
|
23
|
-
/**
|
|
24
|
-
* Camera class.
|
|
25
|
-
* @class
|
|
26
|
-
* @param {Renderer} [renderer] - Renderer uses the camera instance.
|
|
27
|
-
* @param {Object} [options] - Camera options:
|
|
28
|
-
* @param {Object} [options.name] - Camera name.
|
|
29
|
-
* @param {number} [options.viewAngle=47] - Camera angle of view. Default is 47.0
|
|
30
|
-
* @param {number} [options.near=1] - Camera near plane distance. Default is 1.0
|
|
31
|
-
* @param {number} [options.far=og.math.MAX] - Camera far plane distance. Default is og.math.MAX
|
|
32
|
-
* @param {Vec3} [options.eye=[0,0,0]] - Camera eye position. Default (0,0,0)
|
|
33
|
-
* @param {Vec3} [options.look=[0,0,0]] - Camera look position. Default (0,0,0)
|
|
34
|
-
* @param {Vec3} [options.up=[0,1,0]] - Camera eye position. Default (0,1,0)
|
|
35
|
-
*
|
|
36
|
-
* @fires EventsHandler<CameraEvents>#viewchange
|
|
37
|
-
* @fires EventsHandler<CameraEvents>#moveend
|
|
38
|
-
*/
|
|
39
|
-
class Camera {
|
|
40
|
-
constructor(renderer, options = {}) {
|
|
41
|
-
this.renderer = renderer;
|
|
42
|
-
this.events = createEvents(EVENT_NAMES, this);
|
|
43
|
-
this.eye = options.eye || new Vec3();
|
|
44
|
-
this.eyeHigh = new Float32Array(3);
|
|
45
|
-
this.eyeLow = new Float32Array(3);
|
|
46
|
-
this._aspect = options.aspect || 1.0;
|
|
47
|
-
this._viewAngle = options.viewAngle || 47.0;
|
|
48
|
-
this._viewMatrix = new Mat4();
|
|
49
|
-
this._viewMatrixRTE = new Mat4();
|
|
50
|
-
this._normalMatrix = new Mat3();
|
|
51
|
-
this._r = new Vec3(1.0, 0.0, 0.0);
|
|
52
|
-
this._u = new Vec3(0.0, 1.0, 0.0);
|
|
53
|
-
this._b = new Vec3(0.0, 0.0, 1.0);
|
|
54
|
-
this._f = this._b.negateTo();
|
|
55
|
-
// Previous frame values
|
|
56
|
-
this._pr = this._r.clone();
|
|
57
|
-
this._pu = this._u.clone();
|
|
58
|
-
this._pb = this._b.clone();
|
|
59
|
-
this._peye = this.eye.clone();
|
|
60
|
-
this.isMoving = false;
|
|
61
|
-
this._tanViewAngle_hrad = 0.0;
|
|
62
|
-
this._tanViewAngle_hradOneByHeight = 0.0;
|
|
63
|
-
this.frustums = [];
|
|
64
|
-
this.frustumColors = [];
|
|
65
|
-
if (options.frustums) {
|
|
66
|
-
for (let i = 0, len = options.frustums.length; i < len; i++) {
|
|
67
|
-
let fi = options.frustums[i];
|
|
68
|
-
let fr = new Frustum({
|
|
69
|
-
fov: this._viewAngle,
|
|
70
|
-
aspect: this._aspect,
|
|
71
|
-
near: fi[0],
|
|
72
|
-
far: fi[1]
|
|
73
|
-
});
|
|
74
|
-
fr.cameraFrustumIndex = this.frustums.length;
|
|
75
|
-
this.frustums.push(fr);
|
|
76
|
-
//this.frustumColors.push.apply(this.frustumColors, fr._pickingColorU);
|
|
77
|
-
this.frustumColors.push(fr._pickingColorU[0], fr._pickingColorU[1], fr._pickingColorU[2]);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
let near = 0.1, far = 1000.0;
|
|
82
|
-
let fr = new Frustum({
|
|
83
|
-
fov: this._viewAngle,
|
|
84
|
-
aspect: this._aspect,
|
|
85
|
-
near: near,
|
|
86
|
-
far: far
|
|
87
|
-
});
|
|
88
|
-
fr.cameraFrustumIndex = this.frustums.length;
|
|
89
|
-
this.frustums.push(fr);
|
|
90
|
-
//this.frustumColors.push.apply(this.frustumColors, fr._pickingColorU);
|
|
91
|
-
this.frustumColors.push(fr._pickingColorU[0], fr._pickingColorU[1], fr._pickingColorU[2]);
|
|
92
|
-
}
|
|
93
|
-
this.FARTHEST_FRUSTUM_INDEX = this.frustums.length - 1;
|
|
94
|
-
this.currentFrustumIndex = 0;
|
|
95
|
-
this.frustumColorIndex = 0;
|
|
96
|
-
this.isFirstPass = false;
|
|
97
|
-
this._projSizeConst = 0;
|
|
98
|
-
this.set(options.eye || new Vec3(0.0, 0.0, 1.0), options.look || new Vec3(), options.up || new Vec3(0.0, 1.0, 0.0));
|
|
99
|
-
}
|
|
100
|
-
checkMoveEnd() {
|
|
101
|
-
let r = this._r, u = this._u, b = this._b, eye = this.eye;
|
|
102
|
-
if (this._peye.equal(eye) && this._pr.equal(r) && this._pu.equal(u) && this._pb.equal(b)) {
|
|
103
|
-
if (this.isMoving) {
|
|
104
|
-
this.events.dispatch(this.events.moveend, this);
|
|
105
|
-
}
|
|
106
|
-
this.isMoving = false;
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
this.isMoving = true;
|
|
110
|
-
}
|
|
111
|
-
this._pr.copy(r);
|
|
112
|
-
this._pu.copy(u);
|
|
113
|
-
this._pb.copy(b);
|
|
114
|
-
this._peye.copy(eye);
|
|
115
|
-
}
|
|
116
|
-
bindRenderer(renderer) {
|
|
117
|
-
this.renderer = renderer;
|
|
118
|
-
for (let i = 0; i < this.frustums.length; i++) {
|
|
119
|
-
this.renderer.assignPickingColor(this.frustums[i]);
|
|
120
|
-
}
|
|
121
|
-
this._aspect = this.renderer.handler.getClientAspect();
|
|
122
|
-
this._setProj(this._viewAngle, this._aspect);
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Camera initialization.
|
|
126
|
-
* @public
|
|
127
|
-
* @param {Object} [options] - Camera options:
|
|
128
|
-
* @param {number} [options.viewAngle] - Camera angle of view.
|
|
129
|
-
* @param {number} [options.near] - Camera near plane distance. Default is 1.0
|
|
130
|
-
* @param {number} [options.far] - Camera far plane distance. Default is math.MAX
|
|
131
|
-
* @param {Vec3} [options.eye] - Camera eye position. Default (0,0,0)
|
|
132
|
-
* @param {Vec3} [options.look] - Camera look position. Default (0,0,0)
|
|
133
|
-
* @param {Vec3} [options.up] - Camera eye position. Default (0,1,0)
|
|
134
|
-
*/
|
|
135
|
-
_init(options) {
|
|
136
|
-
this._setProj(this._viewAngle, this._aspect);
|
|
137
|
-
this.set(options.eye || new Vec3(0.0, 0.0, 1.0), options.look || new Vec3(), options.up || new Vec3(0.0, 1.0, 0.0));
|
|
138
|
-
}
|
|
139
|
-
getUp() {
|
|
140
|
-
return this._u.clone();
|
|
141
|
-
}
|
|
142
|
-
getDown() {
|
|
143
|
-
return this._u.negateTo();
|
|
144
|
-
}
|
|
145
|
-
getRight() {
|
|
146
|
-
return this._r.clone();
|
|
147
|
-
}
|
|
148
|
-
getLeft() {
|
|
149
|
-
return this._r.negateTo();
|
|
150
|
-
}
|
|
151
|
-
getForward() {
|
|
152
|
-
return this._f.clone();
|
|
153
|
-
}
|
|
154
|
-
getBackward() {
|
|
155
|
-
return this._b.clone();
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Updates camera view space
|
|
159
|
-
* @public
|
|
160
|
-
* @virtual
|
|
161
|
-
*/
|
|
162
|
-
update() {
|
|
163
|
-
let u = this._r, v = this._u, n = this._b, eye = this.eye;
|
|
164
|
-
Vec3.doubleToTwoFloat32Array(eye, this.eyeHigh, this.eyeLow);
|
|
165
|
-
this._viewMatrix.set([
|
|
166
|
-
u.x, v.x, n.x, 0.0,
|
|
167
|
-
u.y, v.y, n.y, 0.0,
|
|
168
|
-
u.z, v.z, n.z, 0.0,
|
|
169
|
-
-eye.dot(u), -eye.dot(v), -eye.dot(n), 1.0
|
|
170
|
-
]);
|
|
171
|
-
this._viewMatrixRTE.set([
|
|
172
|
-
u.x, v.x, n.x, 0.0,
|
|
173
|
-
u.y, v.y, n.y, 0.0,
|
|
174
|
-
u.z, v.z, n.z, 0.0,
|
|
175
|
-
0, 0, 0, 1.0
|
|
176
|
-
]);
|
|
177
|
-
// do not clean up, someday it will be using
|
|
178
|
-
//this._normalMatrix = this._viewMatrix.toMatrix3(); // this._viewMatrix.toInverseMatrix3().transposeTo();
|
|
179
|
-
for (let i = 0, len = this.frustums.length; i < len; i++) {
|
|
180
|
-
this.frustums[i].setViewMatrix(this._viewMatrix);
|
|
181
|
-
this.frustums[i].setProjectionViewRTEMatrix(this._viewMatrixRTE);
|
|
182
|
-
}
|
|
183
|
-
this.events.dispatch(this.events.viewchange, this);
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Refresh camera matrices
|
|
187
|
-
* @public
|
|
188
|
-
*/
|
|
189
|
-
refresh() {
|
|
190
|
-
this._setProj(this._viewAngle, this._aspect);
|
|
191
|
-
this.update();
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Sets aspect ratio
|
|
195
|
-
* @public
|
|
196
|
-
* @param {Number} aspect - Camera aspect ratio
|
|
197
|
-
*/
|
|
198
|
-
setAspectRatio(aspect) {
|
|
199
|
-
this._aspect = aspect;
|
|
200
|
-
this.refresh();
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Returns aspect ratio
|
|
204
|
-
* @public
|
|
205
|
-
* @returns {number} - Aspect ratio
|
|
206
|
-
*/
|
|
207
|
-
getAspectRatio() {
|
|
208
|
-
return this._aspect;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Sets up camera projection
|
|
212
|
-
* @public
|
|
213
|
-
* @param {number} angle - Camera view angle
|
|
214
|
-
* @param {number} aspect - Screen aspect ratio
|
|
215
|
-
*/
|
|
216
|
-
_setProj(angle, aspect) {
|
|
217
|
-
this._viewAngle = angle;
|
|
218
|
-
this._aspect = aspect;
|
|
219
|
-
this._tanViewAngle_hrad = Math.tan(angle * math.RADIANS_HALF);
|
|
220
|
-
this._tanViewAngle_hradOneByHeight =
|
|
221
|
-
this._tanViewAngle_hrad * this.renderer.handler._oneByHeight;
|
|
222
|
-
let c = this.renderer.handler.canvas;
|
|
223
|
-
this._projSizeConst = Math.min(c.clientWidth < 512 ? 512 : c.clientWidth, c.clientHeight < 512 ? 512 : c.clientHeight) / (angle * RADIANS);
|
|
224
|
-
for (let i = 0, len = this.frustums.length; i < len; i++) {
|
|
225
|
-
this.frustums[i].setProjectionMatrix(angle, aspect, this.frustums[i].near, this.frustums[i].far);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Sets camera view angle in degrees
|
|
230
|
-
* @public
|
|
231
|
-
* @param {number} angle - View angle
|
|
232
|
-
*/
|
|
233
|
-
setViewAngle(angle) {
|
|
234
|
-
this._viewAngle = angle;
|
|
235
|
-
this.refresh();
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Gets camera view angle in degrees
|
|
239
|
-
* @public
|
|
240
|
-
* @returns {number} angle -
|
|
241
|
-
*/
|
|
242
|
-
getViewAngle() {
|
|
243
|
-
return this._viewAngle;
|
|
244
|
-
}
|
|
245
|
-
get viewAngle() {
|
|
246
|
-
return this._viewAngle;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Sets camera to eye position
|
|
250
|
-
* @public
|
|
251
|
-
* @param {Vec3} eye - Camera position
|
|
252
|
-
* @param {Vec3} look - Look point
|
|
253
|
-
* @param {Vec3} up - Camera up vector
|
|
254
|
-
* @returns {Camera} - This camera
|
|
255
|
-
*/
|
|
256
|
-
set(eye, look, up) {
|
|
257
|
-
this.eye.x = eye.x;
|
|
258
|
-
this.eye.y = eye.y;
|
|
259
|
-
this.eye.z = eye.z;
|
|
260
|
-
look = look || this._b;
|
|
261
|
-
up = up || this._u;
|
|
262
|
-
this._b.x = eye.x - look.x;
|
|
263
|
-
this._b.y = eye.y - look.y;
|
|
264
|
-
this._b.z = eye.z - look.z;
|
|
265
|
-
this._r.copy(up.cross(this._b));
|
|
266
|
-
this._b.normalize();
|
|
267
|
-
this._r.normalize();
|
|
268
|
-
this._u.copy(this._b.cross(this._r));
|
|
269
|
-
this._f.set(-this._b.x, -this._b.y, -this._b.z);
|
|
270
|
-
return this;
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Sets camera look point
|
|
274
|
-
* @public
|
|
275
|
-
* @param {Vec3} look - Look point
|
|
276
|
-
* @param {Vec3} [up] - Camera up vector otherwise camera current up vector(this._u)
|
|
277
|
-
*/
|
|
278
|
-
look(look, up) {
|
|
279
|
-
this._b.set(this.eye.x - look.x, this.eye.y - look.y, this.eye.z - look.z);
|
|
280
|
-
this._r.copy((up || this._u).cross(this._b));
|
|
281
|
-
this._b.normalize();
|
|
282
|
-
this._f.set(-this._b.x, -this._b.y, -this._b.z);
|
|
283
|
-
this._r.normalize();
|
|
284
|
-
this._u.copy(this._b.cross(this._r));
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Slides camera to vector d - (du, dv, dn)
|
|
288
|
-
* @public
|
|
289
|
-
* @param {number} du - delta X
|
|
290
|
-
* @param {number} dv - delta Y
|
|
291
|
-
* @param {number} dn - delta Z
|
|
292
|
-
*/
|
|
293
|
-
slide(du, dv, dn) {
|
|
294
|
-
this.eye.x += du * this._r.x + dv * this._u.x + dn * this._b.x;
|
|
295
|
-
this.eye.y += du * this._r.y + dv * this._u.y + dn * this._b.y;
|
|
296
|
-
this.eye.z += du * this._r.z + dv * this._u.z + dn * this._b.z;
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* Roll the camera to the angle in radians
|
|
300
|
-
* @public
|
|
301
|
-
* @param {number} angle - Delta roll angle in radians
|
|
302
|
-
*/
|
|
303
|
-
setRoll(angle) {
|
|
304
|
-
let cs = Math.cos(angle);
|
|
305
|
-
let sn = Math.sin(angle);
|
|
306
|
-
let t = this._r.clone();
|
|
307
|
-
this._r.set(cs * t.x - sn * this._u.x, cs * t.y - sn * this._u.y, cs * t.z - sn * this._u.z);
|
|
308
|
-
this._u.set(sn * t.x + cs * this._u.x, sn * t.y + cs * this._u.y, sn * t.z + cs * this._u.z);
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* Pitch the camera to the angle in radians
|
|
312
|
-
* @public
|
|
313
|
-
* @param {number} angle - Delta pitch angle in radians
|
|
314
|
-
*/
|
|
315
|
-
setPitch(angle) {
|
|
316
|
-
let cs = Math.cos(angle);
|
|
317
|
-
let sn = Math.sin(angle);
|
|
318
|
-
let t = this._b;
|
|
319
|
-
this._b.set(cs * t.x - sn * this._u.x, cs * t.y - sn * this._u.y, cs * t.z - sn * this._u.z);
|
|
320
|
-
this._u.set(sn * t.x + cs * this._u.x, sn * t.y + cs * this._u.y, sn * t.z + cs * this._u.z);
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* Yaw the camera to the angle in radians
|
|
324
|
-
* @public
|
|
325
|
-
* @param {number} angle - Delta yaw angle in radians
|
|
326
|
-
*/
|
|
327
|
-
setYaw(angle) {
|
|
328
|
-
let cs = Math.cos(angle);
|
|
329
|
-
let sn = Math.sin(angle);
|
|
330
|
-
let t = this._r;
|
|
331
|
-
this._r.set(cs * t.x - sn * this._b.x, cs * t.y - sn * this._b.y, cs * t.z - sn * this._b.z);
|
|
332
|
-
this._b.set(sn * t.x + cs * this._b.x, sn * t.y + cs * this._b.y, sn * t.z + cs * this._b.z);
|
|
333
|
-
}
|
|
334
|
-
setPitchYawRoll(pitch, yaw, roll) {
|
|
335
|
-
let qRot = new Quat();
|
|
336
|
-
qRot.setPitchYawRoll(pitch, yaw, roll);
|
|
337
|
-
this.setRotation(qRot);
|
|
338
|
-
}
|
|
339
|
-
getPitch() {
|
|
340
|
-
return this.getRotation().getPitch();
|
|
341
|
-
}
|
|
342
|
-
getYaw() {
|
|
343
|
-
return this.getRotation().getYaw();
|
|
344
|
-
}
|
|
345
|
-
getRoll() {
|
|
346
|
-
return this.getRotation().getRoll();
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* Returns camera quaternion
|
|
350
|
-
*/
|
|
351
|
-
getRotation() {
|
|
352
|
-
return Quat.getLookRotation(this._f, this._u).conjugate();
|
|
353
|
-
}
|
|
354
|
-
setRotation(rot, up, right, back) {
|
|
355
|
-
rot.mulVec3Res(up || new Vec3(0, 1, 0), this._u);
|
|
356
|
-
rot.mulVec3Res(right || new Vec3(1, 0, 0), this._r);
|
|
357
|
-
rot.mulVec3Res(back || new Vec3(0, 0, 1), this._b);
|
|
358
|
-
this._f.set(-this._b.x, -this._b.y, -this._b.z);
|
|
359
|
-
}
|
|
360
|
-
rotate(rot) {
|
|
361
|
-
rot.mulVec3Res(this._u, this._u);
|
|
362
|
-
rot.mulVec3Res(this._r, this._r);
|
|
363
|
-
rot.mulVec3Res(this._b, this._b);
|
|
364
|
-
this._f.set(-this._b.x, -this._b.y, -this._b.z);
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* Returns normal vector direction to the unprojected screen point from camera eye
|
|
368
|
-
* @public
|
|
369
|
-
* @param {Vec2} pos - Screen X coordinate
|
|
370
|
-
* @returns {Vec3} - Direction vector
|
|
371
|
-
*/
|
|
372
|
-
unproject2v(pos) {
|
|
373
|
-
return this.unproject(pos.x, pos.y);
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* Returns normal vector direction to the unprojected screen point from camera eye
|
|
377
|
-
* @public
|
|
378
|
-
* @param {number} x - Screen X coordinate
|
|
379
|
-
* @param {number} y - Screen Y coordinate
|
|
380
|
-
* @returns {Vec3} - Direction vector
|
|
381
|
-
*/
|
|
382
|
-
unproject(x, y) {
|
|
383
|
-
let c = this.renderer.handler.canvas, w = c.width * 0.5, h = c.height * 0.5;
|
|
384
|
-
let px = (x - w) / w, py = -(y - h) / h;
|
|
385
|
-
let world1 = this.frustums[0].inverseProjectionViewMatrix.mulVec4(new Vec4(px, py, -1.0, 1.0)).affinity(), world2 = this.frustums[0].inverseProjectionViewMatrix.mulVec4(new Vec4(px, py, 0.0, 1.0)).affinity();
|
|
386
|
-
return world2.subA(world1).toVec3().normalize();
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* Gets projected 3d point to the 2d screen coordinates
|
|
390
|
-
* @public
|
|
391
|
-
* @param {Vec3} v - Cartesian 3d coordinates
|
|
392
|
-
* @returns {Vec2} - Screen point coordinates
|
|
393
|
-
*/
|
|
394
|
-
project3v(v) {
|
|
395
|
-
return this.project(v.x, v.y, v.z);
|
|
396
|
-
}
|
|
397
|
-
/**
|
|
398
|
-
* Gets projected 3d point to the 2d screen coordinates
|
|
399
|
-
* @public
|
|
400
|
-
* @param {number} x - X coordinate
|
|
401
|
-
* @param {number} y - Y coordinate
|
|
402
|
-
* @param {number} z - Z coordinate
|
|
403
|
-
* @returns {Vec2} - Screen point coordinates
|
|
404
|
-
*/
|
|
405
|
-
project(x, y, z) {
|
|
406
|
-
let r = this.frustums[0].projectionViewMatrix.mulVec4(new Vec4(x, y, z, 1.0)), c = this.renderer.handler.canvas;
|
|
407
|
-
return new Vec2((1 + r.x / r.w) * c.width * 0.5, (1 - r.y / r.w) * c.height * 0.5);
|
|
408
|
-
}
|
|
409
|
-
/**
|
|
410
|
-
* Rotates camera around center point
|
|
411
|
-
* @public
|
|
412
|
-
* @param {number} angle - Rotation angle in radians
|
|
413
|
-
* @param {boolean} [isArc] - If true camera up vector gets from current up vector every frame,
|
|
414
|
-
* otherwise up is always input parameter.
|
|
415
|
-
* @param {Vec3} [center] - Point that the camera rotates around
|
|
416
|
-
* @param {Vec3} [up] - Camera up vector
|
|
417
|
-
*/
|
|
418
|
-
rotateAround(angle, isArc = false, center = Vec3.ZERO, up = Vec3.UP) {
|
|
419
|
-
up = isArc ? this._u : up;
|
|
420
|
-
let rot = Mat4.getRotation(angle, up);
|
|
421
|
-
let trm = Mat4.getRotationAroundPoint(angle, center, up);
|
|
422
|
-
this.eye = trm.mulVec3(this.eye);
|
|
423
|
-
this._u = rot.mulVec3(this._u).normalize();
|
|
424
|
-
this._r = rot.mulVec3(this._r).normalize();
|
|
425
|
-
this._b = rot.mulVec3(this._b).normalize();
|
|
426
|
-
this._f.set(-this._b.x, -this._b.y, -this._b.z);
|
|
427
|
-
}
|
|
428
|
-
/**
|
|
429
|
-
* Rotates camera around center point by horizontal.
|
|
430
|
-
* @public
|
|
431
|
-
* @param {number} angle - Rotation angle in radians.
|
|
432
|
-
* @param {boolean} [isArc] - If true camera up vector gets from current up vector every frame,
|
|
433
|
-
* otherwise up is always input parameter.
|
|
434
|
-
* @param {Vec3} [center] - Point that the camera rotates around.
|
|
435
|
-
* @param {Vec3} [up] - Camera up vector.
|
|
436
|
-
*/
|
|
437
|
-
rotateHorizontal(angle, isArc, center, up) {
|
|
438
|
-
this.rotateAround(angle, isArc, center, up);
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* Rotates camera around center point by vertical.
|
|
442
|
-
* @param {number} angle - Rotation angle in radians.
|
|
443
|
-
* @param {Vec3} [center] - Point that the camera rotates around.
|
|
444
|
-
*/
|
|
445
|
-
rotateVertical(angle, center) {
|
|
446
|
-
this.rotateAround(angle, false, center, this._r);
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Gets 3d size factor. Uses in LOD distance calculation.
|
|
450
|
-
* @public
|
|
451
|
-
* @param {Vec3} p - Far point.
|
|
452
|
-
* @param {Vec3} r - Far point.
|
|
453
|
-
* @returns {number} - Size factor.
|
|
454
|
-
*/
|
|
455
|
-
projectedSize(p, r) {
|
|
456
|
-
return Math.atan(r / this.eye.distance(p)) * this._projSizeConst;
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* Returns model matrix.
|
|
460
|
-
* @public
|
|
461
|
-
* @returns {NumberArray16} - View matrix.
|
|
462
|
-
*/
|
|
463
|
-
getViewMatrix() {
|
|
464
|
-
return this._viewMatrix._m;
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* Returns normal matrix.
|
|
468
|
-
* @public
|
|
469
|
-
* @returns {NumberArray9} - Normal matrix.
|
|
470
|
-
*/
|
|
471
|
-
getNormalMatrix() {
|
|
472
|
-
return this._normalMatrix._m;
|
|
473
|
-
}
|
|
474
|
-
setCurrentFrustum(k) {
|
|
475
|
-
this.currentFrustumIndex = k;
|
|
476
|
-
this.frustumColorIndex = (k + 1) * 10.0 / 255.0;
|
|
477
|
-
this.isFirstPass = k === this.FARTHEST_FRUSTUM_INDEX;
|
|
478
|
-
}
|
|
479
|
-
getCurrentFrustum() {
|
|
480
|
-
return this.currentFrustumIndex;
|
|
481
|
-
}
|
|
482
|
-
containsSphere(sphere) {
|
|
483
|
-
for (let i = 0; i < this.frustums.length; i++) {
|
|
484
|
-
if (this.frustums[i].containsSphere(sphere)) {
|
|
485
|
-
return true;
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
return false;
|
|
489
|
-
}
|
|
490
|
-
get frustum() {
|
|
491
|
-
return this.frustums[this.currentFrustumIndex];
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* Returns projection matrix.
|
|
495
|
-
* @public
|
|
496
|
-
* @returns {Mat4} - Projection matrix.
|
|
497
|
-
*/
|
|
498
|
-
getProjectionMatrix() {
|
|
499
|
-
return this.frustum.projectionMatrix._m;
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Returns projection and model matrix product.
|
|
503
|
-
* @public
|
|
504
|
-
* @return {Mat4} - Projection-view matrix.
|
|
505
|
-
*/
|
|
506
|
-
getProjectionViewMatrix() {
|
|
507
|
-
return this.frustum.projectionViewMatrix._m;
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* Returns projection and model RTE matrix product.
|
|
511
|
-
* @public
|
|
512
|
-
* @return {Mat4} - Projection-view matrix.
|
|
513
|
-
*/
|
|
514
|
-
getProjectionViewRTEMatrix() {
|
|
515
|
-
return this.frustum.projectionViewRTEMatrix._m;
|
|
516
|
-
}
|
|
517
|
-
/**
|
|
518
|
-
* Returns inverse projection and model matrix product.
|
|
519
|
-
* @public
|
|
520
|
-
* @returns {Mat4} - Inverse projection-view matrix.
|
|
521
|
-
*/
|
|
522
|
-
getInverseProjectionViewMatrix() {
|
|
523
|
-
return this.frustum.inverseProjectionViewMatrix._m;
|
|
524
|
-
}
|
|
525
|
-
/**
|
|
526
|
-
* Returns inverse projection matrix.
|
|
527
|
-
* @public
|
|
528
|
-
* @returns {Mat4} - Inverse projection-view matrix.
|
|
529
|
-
*/
|
|
530
|
-
getInverseProjectionMatrix() {
|
|
531
|
-
return this.frustum.inverseProjectionMatrix._m;
|
|
532
|
-
}
|
|
533
|
-
viewDistance(cartesian, distance = 10000.0) {
|
|
534
|
-
let p0 = this.eye.add(this.getForward().scaleTo(distance));
|
|
535
|
-
let _rot = Quat.getRotationBetweenVectors(p0.getNormal(), cartesian.getNormal());
|
|
536
|
-
let newPos = cartesian.add(this.getBackward().scaleTo(distance));
|
|
537
|
-
this.set(newPos, cartesian);
|
|
538
|
-
this.update();
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
export { Camera };
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { Box } from "../bv/Box";
|
|
2
|
-
import { Mat4, type NumberArray16 } from "../math/Mat4";
|
|
3
|
-
import type { NumberArray4 } from "../math/Vec4";
|
|
4
|
-
import { Sphere } from "../bv/Sphere";
|
|
5
|
-
import { Vec3 } from "../math/Vec3";
|
|
6
|
-
interface IFrustumParams {
|
|
7
|
-
cameraFrustumIndex?: number;
|
|
8
|
-
fov?: number;
|
|
9
|
-
aspect?: number;
|
|
10
|
-
near?: number;
|
|
11
|
-
far?: number;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Frustum object, part of the camera object.
|
|
15
|
-
* @class
|
|
16
|
-
* @param {*} options
|
|
17
|
-
*/
|
|
18
|
-
declare class Frustum {
|
|
19
|
-
protected _f: [NumberArray4, NumberArray4, NumberArray4, NumberArray4, NumberArray4, NumberArray4];
|
|
20
|
-
/**
|
|
21
|
-
* Camera projection matrix.
|
|
22
|
-
* @protected
|
|
23
|
-
* @type {Mat4}
|
|
24
|
-
*/
|
|
25
|
-
projectionMatrix: Mat4;
|
|
26
|
-
/**
|
|
27
|
-
* Camera inverse projection matrix.
|
|
28
|
-
* @protected
|
|
29
|
-
* @type {Mat4}
|
|
30
|
-
*/
|
|
31
|
-
inverseProjectionMatrix: Mat4;
|
|
32
|
-
/**
|
|
33
|
-
* Product of projection and view matrices.
|
|
34
|
-
* @protected
|
|
35
|
-
* @type {Mat4}
|
|
36
|
-
*/
|
|
37
|
-
projectionViewMatrix: Mat4;
|
|
38
|
-
projectionViewRTEMatrix: Mat4;
|
|
39
|
-
/**
|
|
40
|
-
* Inverse projectionView Matrix.
|
|
41
|
-
* @protected
|
|
42
|
-
* @type {Mat4}
|
|
43
|
-
*/
|
|
44
|
-
inverseProjectionViewMatrix: Mat4;
|
|
45
|
-
/**
|
|
46
|
-
* Projection frustum left value.
|
|
47
|
-
* @public
|
|
48
|
-
*/
|
|
49
|
-
left: number;
|
|
50
|
-
/**
|
|
51
|
-
* Projection frustum right value.
|
|
52
|
-
* @public
|
|
53
|
-
*/
|
|
54
|
-
right: number;
|
|
55
|
-
/**
|
|
56
|
-
* Projection frustum bottom value.
|
|
57
|
-
* @public
|
|
58
|
-
*/
|
|
59
|
-
bottom: number;
|
|
60
|
-
/**
|
|
61
|
-
* Projection frustum top value.
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
|
-
top: number;
|
|
65
|
-
/**
|
|
66
|
-
* Projection frustum near value.
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
near: number;
|
|
70
|
-
/**
|
|
71
|
-
* Projection frustum far value.
|
|
72
|
-
* @public
|
|
73
|
-
*/
|
|
74
|
-
far: number;
|
|
75
|
-
cameraFrustumIndex: number;
|
|
76
|
-
_pickingColorU: Float32Array;
|
|
77
|
-
constructor(options?: IFrustumParams);
|
|
78
|
-
getRightPlane(): NumberArray4;
|
|
79
|
-
getLeftPlane(): NumberArray4;
|
|
80
|
-
getBottomPlane(): NumberArray4;
|
|
81
|
-
getTopPlane(): NumberArray4;
|
|
82
|
-
getBackwardPlane(): NumberArray4;
|
|
83
|
-
getForwardPlane(): NumberArray4;
|
|
84
|
-
getProjectionViewMatrix(): NumberArray16;
|
|
85
|
-
getProjectionViewRTEMatrix(): NumberArray16;
|
|
86
|
-
getProjectionMatrix(): NumberArray16;
|
|
87
|
-
getInverseProjectionMatrix(): NumberArray16;
|
|
88
|
-
/**
|
|
89
|
-
* Sets up camera projection matrix.
|
|
90
|
-
* @public
|
|
91
|
-
* @param {number} angle - Camera's view angle.
|
|
92
|
-
* @param {number} aspect - Screen aspect ratio.
|
|
93
|
-
* @param {number} near - Near camera distance.
|
|
94
|
-
* @param {number} far - Far camera distance.
|
|
95
|
-
*/
|
|
96
|
-
setProjectionMatrix(angle: number, aspect: number, near: number, far: number): void;
|
|
97
|
-
setProjectionViewRTEMatrix(viewRTEMatrix: Mat4): void;
|
|
98
|
-
/**
|
|
99
|
-
* Camera's projection matrix values.
|
|
100
|
-
* @public
|
|
101
|
-
* @param {Mat4} viewMatrix - View matrix.
|
|
102
|
-
*/
|
|
103
|
-
setViewMatrix(viewMatrix: Mat4): void;
|
|
104
|
-
/**
|
|
105
|
-
* Returns true if a point in the frustum.
|
|
106
|
-
* @public
|
|
107
|
-
* @param {Vec3} point - Cartesian point.
|
|
108
|
-
* @returns {boolean} -
|
|
109
|
-
*/
|
|
110
|
-
containsPoint(point: Vec3): boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Returns true if the frustum contains a bonding sphere, but bottom plane exclude.
|
|
113
|
-
* @public
|
|
114
|
-
* @param {Sphere} sphere - Bounding sphere.
|
|
115
|
-
* @returns {boolean} -
|
|
116
|
-
*/
|
|
117
|
-
containsSphereBottomExc(sphere: Sphere): boolean;
|
|
118
|
-
containsSphereButtom(sphere: Sphere): boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Returns true if the frustum contains a bonding sphere.
|
|
121
|
-
* @public
|
|
122
|
-
* @param {Sphere} sphere - Bounding sphere.
|
|
123
|
-
* @returns {boolean} -
|
|
124
|
-
*/
|
|
125
|
-
containsSphere(sphere: Sphere): boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Returns true if the frustum contains a bonding sphere.
|
|
128
|
-
* @public
|
|
129
|
-
* @param {Vec3} center - Sphere center.
|
|
130
|
-
* @param {number} radius - Sphere radius.
|
|
131
|
-
* @returns {boolean} -
|
|
132
|
-
*/
|
|
133
|
-
containsSphere2(center: Vec3, radius: number): boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Returns true if the frustum contains a bounding box.
|
|
136
|
-
* @public
|
|
137
|
-
* @param {Box} box - Bounding box.
|
|
138
|
-
* @returns {boolean} -
|
|
139
|
-
*/
|
|
140
|
-
containsBox(box: Box): boolean;
|
|
141
|
-
}
|
|
142
|
-
export { Frustum };
|