@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
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import { Entity } from "./Entity";
|
|
2
|
-
import { Quat, Vec3, Vec4 } from "../math/index";
|
|
3
|
-
import { GeoObjectHandler } from "./GeoObjectHandler";
|
|
4
|
-
import { InstanceData } from "./InstanceData";
|
|
5
|
-
import type { NumberArray3 } from "../math/Vec3";
|
|
6
|
-
import type { NumberArray4 } from "../math/Vec4";
|
|
7
|
-
import { Object3d } from "../Object3d";
|
|
8
|
-
export declare const LOCAL_FORWARD: Vec3;
|
|
9
|
-
/**
|
|
10
|
-
* Interface for GeoObject parameters.
|
|
11
|
-
* @typedef {Object} IGeoObjectParams
|
|
12
|
-
* @property {Object3d} [object3d] - 3D object associated with the geo object.
|
|
13
|
-
* @property {string} [objSrc] - Source url of the 3D object.
|
|
14
|
-
* @property {string} [tag] - Unique instancing drawing identifier tag.
|
|
15
|
-
* @property {Vec3 | NumberArray3} [position] - Position in Cartesian coordinates.
|
|
16
|
-
* @property {number | Vec3 | NumberArray3} [scale] - Scale of the object.
|
|
17
|
-
* @property {Vec3 | NumberArray3} [translate] - Translation offset.
|
|
18
|
-
* @property {Vec4 | NumberArray4 | string} [color] - RGBA color or HTML color string.
|
|
19
|
-
* @property {boolean} [visibility] - Visibility flag.
|
|
20
|
-
*/
|
|
21
|
-
export interface IGeoObjectParams {
|
|
22
|
-
object3d?: Object3d;
|
|
23
|
-
objSrc?: string;
|
|
24
|
-
tag?: string;
|
|
25
|
-
position?: Vec3 | NumberArray3;
|
|
26
|
-
scale?: number | Vec3 | NumberArray3;
|
|
27
|
-
translate?: Vec3 | NumberArray3;
|
|
28
|
-
color?: Vec4 | NumberArray4 | string;
|
|
29
|
-
visibility?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Represents 3D object on the the globe or 3d space
|
|
33
|
-
* @class
|
|
34
|
-
* @param {IGeoObjectParams} options - Geo object parameters:
|
|
35
|
-
* @param {Object3d} [options.object3d] - 3D object associated with the geo object.
|
|
36
|
-
* @param {string} [options.objSrc] - Source url of the 3D object.
|
|
37
|
-
* @param {string} [options.tag] - Unique instancing drawing identifier tag.
|
|
38
|
-
* @param {Vec3 | NumberArray3} [options.position] - Position in Cartesian coordinates.
|
|
39
|
-
* @param {number | Vec3 | NumberArray3} [options.scale=1] - Scale of the object.
|
|
40
|
-
* @param {Vec3 | NumberArray3} [options.translate] - Translation offset.
|
|
41
|
-
* @param {Vec4 | NumberArray4 | string} [options.color] - RGBA color or HTML color string.
|
|
42
|
-
* @param {boolean} [options.visibility=true] - Visibility flag.
|
|
43
|
-
*
|
|
44
|
-
* @todo: GeoObject and GeoObjectHandler provides instanced objects only.
|
|
45
|
-
* It would be nice if it could provide not instanced rendering loop too.
|
|
46
|
-
*/
|
|
47
|
-
declare class GeoObject {
|
|
48
|
-
protected _tag: string;
|
|
49
|
-
static __counter__: number;
|
|
50
|
-
/**
|
|
51
|
-
* Entity instance that holds this geo object.
|
|
52
|
-
* @public
|
|
53
|
-
* @type {Entity}
|
|
54
|
-
*/
|
|
55
|
-
_entity: Entity | null;
|
|
56
|
-
/**
|
|
57
|
-
* Geo object center cartesian position.
|
|
58
|
-
* @protected
|
|
59
|
-
* @type {Vec3}
|
|
60
|
-
*/
|
|
61
|
-
protected _position: Vec3;
|
|
62
|
-
_rtcPositionHigh: Vec3;
|
|
63
|
-
_rtcPositionLow: Vec3;
|
|
64
|
-
protected _scale: Vec3;
|
|
65
|
-
protected _translate: Vec3;
|
|
66
|
-
protected _localPosition: Vec3;
|
|
67
|
-
/**
|
|
68
|
-
* RGBA color.
|
|
69
|
-
* @public
|
|
70
|
-
* @type {Vec4}
|
|
71
|
-
*/
|
|
72
|
-
_color: Vec4;
|
|
73
|
-
protected _qFrame: Quat;
|
|
74
|
-
_qRot: Quat;
|
|
75
|
-
protected _direction: Vec3;
|
|
76
|
-
_handler: GeoObjectHandler | null;
|
|
77
|
-
_handlerIndex: number;
|
|
78
|
-
_tagData: InstanceData | null;
|
|
79
|
-
_tagDataIndex: number;
|
|
80
|
-
protected _object3d: Object3d;
|
|
81
|
-
_objectSrc?: string;
|
|
82
|
-
protected _visibility: boolean;
|
|
83
|
-
protected _children: GeoObject[];
|
|
84
|
-
constructor(options: IGeoObjectParams);
|
|
85
|
-
/**
|
|
86
|
-
* Gets the unique tag of the geo object.
|
|
87
|
-
* @returns {string}
|
|
88
|
-
*/
|
|
89
|
-
get tag(): string;
|
|
90
|
-
/**
|
|
91
|
-
* Gets the position of the geo object.
|
|
92
|
-
* @public
|
|
93
|
-
* @returns {Vec3}
|
|
94
|
-
*/
|
|
95
|
-
getPosition(): Vec3;
|
|
96
|
-
/**
|
|
97
|
-
* Gets the 3D object associated with this geo object.
|
|
98
|
-
* @public
|
|
99
|
-
* @returns {Object3d}
|
|
100
|
-
*/
|
|
101
|
-
get object3d(): Object3d;
|
|
102
|
-
/**
|
|
103
|
-
* Gets geometry mesh vertices.
|
|
104
|
-
* @public
|
|
105
|
-
* @returns {number[]}
|
|
106
|
-
*/
|
|
107
|
-
get vertices(): number[];
|
|
108
|
-
/**
|
|
109
|
-
* Gets geometry mesh normals.
|
|
110
|
-
* @public
|
|
111
|
-
* @returns {number[]}
|
|
112
|
-
*/
|
|
113
|
-
get normals(): number[];
|
|
114
|
-
/**
|
|
115
|
-
* Gets geometry mesh texture coordinates.
|
|
116
|
-
* @public
|
|
117
|
-
* @returns {number[]}
|
|
118
|
-
*/
|
|
119
|
-
get texCoords(): number[];
|
|
120
|
-
/**
|
|
121
|
-
* Gets geometry mesh indices.
|
|
122
|
-
* @public
|
|
123
|
-
* @returns {number[]}
|
|
124
|
-
*/
|
|
125
|
-
get indices(): number[];
|
|
126
|
-
/**
|
|
127
|
-
* Sets the opacity of the geo object.
|
|
128
|
-
* @param {number} a - Opacity value (0 to 1).
|
|
129
|
-
*/
|
|
130
|
-
setOpacity(a: number): void;
|
|
131
|
-
/**
|
|
132
|
-
* Gets the opacity of the geo object.
|
|
133
|
-
* @returns {number}
|
|
134
|
-
*/
|
|
135
|
-
getOpacity(): number;
|
|
136
|
-
/**
|
|
137
|
-
* Sets the color of the geo object.
|
|
138
|
-
* @param {number} r - Red component.
|
|
139
|
-
* @param {number} g - Green component.
|
|
140
|
-
* @param {number} b - Blue component.
|
|
141
|
-
* @param {number} [a] - Alpha component.
|
|
142
|
-
*/
|
|
143
|
-
setColor(r: number, g: number, b: number, a?: number): void;
|
|
144
|
-
/**
|
|
145
|
-
* Sets color.
|
|
146
|
-
* @public
|
|
147
|
-
* @param {Vec3 | Vec4} color - RGBA vector.
|
|
148
|
-
*/
|
|
149
|
-
setColor4v(color: Vec3 | Vec4): void;
|
|
150
|
-
/**
|
|
151
|
-
* Sets geo object visibility.
|
|
152
|
-
* @public
|
|
153
|
-
* @param {boolean} visibility - Visibility flag.
|
|
154
|
-
*/
|
|
155
|
-
setVisibility(visibility: boolean): void;
|
|
156
|
-
/**
|
|
157
|
-
* Returns geo object visibility.
|
|
158
|
-
* @public
|
|
159
|
-
* @returns {boolean}
|
|
160
|
-
*/
|
|
161
|
-
getVisibility(): boolean;
|
|
162
|
-
/**
|
|
163
|
-
* Sets geo object position.
|
|
164
|
-
* @public
|
|
165
|
-
* @param {number} x - X coordinate.
|
|
166
|
-
* @param {number} y - Y coordinate.
|
|
167
|
-
* @param {number} z - Z coordinate.
|
|
168
|
-
*/
|
|
169
|
-
setPosition(x: number, y: number, z: number): void;
|
|
170
|
-
updateRTCPosition(): void;
|
|
171
|
-
/**
|
|
172
|
-
* Sets geo object position.
|
|
173
|
-
* @public
|
|
174
|
-
* @param {Vec3} position - Cartesian coordinates.
|
|
175
|
-
*/
|
|
176
|
-
setPosition3v(position: Vec3): void;
|
|
177
|
-
/**
|
|
178
|
-
* Sets Object3d for the object
|
|
179
|
-
* @param {Object3d} object
|
|
180
|
-
*/
|
|
181
|
-
setObject(object: Object3d): void;
|
|
182
|
-
/**
|
|
183
|
-
* Sets the object url source.
|
|
184
|
-
* @param {string} src
|
|
185
|
-
*/
|
|
186
|
-
setObjectSrc(src: string): void;
|
|
187
|
-
/**
|
|
188
|
-
* Sets object HTML color.
|
|
189
|
-
* @param {string} color
|
|
190
|
-
*/
|
|
191
|
-
setColorHTML(color: string): void;
|
|
192
|
-
/**
|
|
193
|
-
* Sets scales.
|
|
194
|
-
* @public
|
|
195
|
-
* @param {number} scale
|
|
196
|
-
*/
|
|
197
|
-
setScale(scale: number): void;
|
|
198
|
-
/**
|
|
199
|
-
* Sets X, Y, Z axis scales
|
|
200
|
-
* @public
|
|
201
|
-
* @param {Vec3} scale
|
|
202
|
-
*/
|
|
203
|
-
setScale3v(scale: Vec3): void;
|
|
204
|
-
/**
|
|
205
|
-
* Gets scale.
|
|
206
|
-
* @publci
|
|
207
|
-
* @returns {Vec3}
|
|
208
|
-
*/
|
|
209
|
-
getScale(): Vec3;
|
|
210
|
-
setTranslate3v(translate: Vec3): void;
|
|
211
|
-
getTranslate(): Vec3;
|
|
212
|
-
/**
|
|
213
|
-
* Sets local offset position.
|
|
214
|
-
* @param {Vec3} localPosition
|
|
215
|
-
*/
|
|
216
|
-
setLocalPosition3v(localPosition: Vec3): void;
|
|
217
|
-
/**
|
|
218
|
-
* Gets local offset position.
|
|
219
|
-
* @public
|
|
220
|
-
* @returns {Vec3}
|
|
221
|
-
*/
|
|
222
|
-
getLocalPosition(): Vec3;
|
|
223
|
-
/**
|
|
224
|
-
* Removes the geo object from the handler.
|
|
225
|
-
* @public
|
|
226
|
-
*/
|
|
227
|
-
remove(): void;
|
|
228
|
-
/**
|
|
229
|
-
* Sets billboard picking color.
|
|
230
|
-
* @public
|
|
231
|
-
* @param {Vec3} color - Picking color.
|
|
232
|
-
*/
|
|
233
|
-
setPickingColor3v(color: Vec3): void;
|
|
234
|
-
/**
|
|
235
|
-
* Sets the rotation quaternion.
|
|
236
|
-
* @public
|
|
237
|
-
* @param {Quat} qRot - Rotation quaternion.
|
|
238
|
-
*/
|
|
239
|
-
setRotation(qRot: Quat): void;
|
|
240
|
-
/**
|
|
241
|
-
* Returns orientation quaternion.
|
|
242
|
-
* @public
|
|
243
|
-
* @returns {Quat}
|
|
244
|
-
*/
|
|
245
|
-
getRotation(): Quat;
|
|
246
|
-
/**
|
|
247
|
-
* Update object rotation
|
|
248
|
-
*/
|
|
249
|
-
updateRotation(): void;
|
|
250
|
-
/**
|
|
251
|
-
* Returns object direction
|
|
252
|
-
* @publcu
|
|
253
|
-
* @returns {Vec3}
|
|
254
|
-
*/
|
|
255
|
-
getDirection(): Vec3;
|
|
256
|
-
}
|
|
257
|
-
export { GeoObject };
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import * as utils from "../utils/shared";
|
|
2
|
-
import { Quat, Vec3, Vec4 } from "../math/index";
|
|
3
|
-
import { Object3d } from "../Object3d";
|
|
4
|
-
export const LOCAL_FORWARD = new Vec3(0.0, 0.0, -1.0);
|
|
5
|
-
/**
|
|
6
|
-
* Represents 3D object on the the globe or 3d space
|
|
7
|
-
* @class
|
|
8
|
-
* @param {IGeoObjectParams} options - Geo object parameters:
|
|
9
|
-
* @param {Object3d} [options.object3d] - 3D object associated with the geo object.
|
|
10
|
-
* @param {string} [options.objSrc] - Source url of the 3D object.
|
|
11
|
-
* @param {string} [options.tag] - Unique instancing drawing identifier tag.
|
|
12
|
-
* @param {Vec3 | NumberArray3} [options.position] - Position in Cartesian coordinates.
|
|
13
|
-
* @param {number | Vec3 | NumberArray3} [options.scale=1] - Scale of the object.
|
|
14
|
-
* @param {Vec3 | NumberArray3} [options.translate] - Translation offset.
|
|
15
|
-
* @param {Vec4 | NumberArray4 | string} [options.color] - RGBA color or HTML color string.
|
|
16
|
-
* @param {boolean} [options.visibility=true] - Visibility flag.
|
|
17
|
-
*
|
|
18
|
-
* @todo: GeoObject and GeoObjectHandler provides instanced objects only.
|
|
19
|
-
* It would be nice if it could provide not instanced rendering loop too.
|
|
20
|
-
*/
|
|
21
|
-
class GeoObject {
|
|
22
|
-
constructor(options) {
|
|
23
|
-
this._handlerIndex = -1;
|
|
24
|
-
this._tag = options.tag || `tag_${GeoObject.__counter__++}`;
|
|
25
|
-
this._entity = null;
|
|
26
|
-
this._position = utils.createVector3(options.position);
|
|
27
|
-
this._rtcPositionHigh = new Vec3();
|
|
28
|
-
this._rtcPositionLow = new Vec3();
|
|
29
|
-
this._scale = utils.createVector3(options.scale, new Vec3(1, 1, 1));
|
|
30
|
-
this._translate = utils.createVector3(options.translate, new Vec3());
|
|
31
|
-
this._localPosition = new Vec3();
|
|
32
|
-
this._color = utils.createColorRGBA(options.color, new Vec4(0.15, 0.15, 0.15, 1.0));
|
|
33
|
-
this._handler = null;
|
|
34
|
-
this._handlerIndex = -1;
|
|
35
|
-
this._tagData = null;
|
|
36
|
-
this._tagDataIndex = -1;
|
|
37
|
-
let object3d = options.object3d;
|
|
38
|
-
if ((!options.object3d || options.object3d?.vertices.length === 0)) {
|
|
39
|
-
object3d = new Object3d();
|
|
40
|
-
}
|
|
41
|
-
if (options.objSrc) {
|
|
42
|
-
this.setObjectSrc(options.objSrc);
|
|
43
|
-
this._objectSrc = options.objSrc;
|
|
44
|
-
}
|
|
45
|
-
this._object3d = object3d;
|
|
46
|
-
// if (options.colorTexture) {
|
|
47
|
-
// this.setColorTexture(options.colorTexture)
|
|
48
|
-
// }
|
|
49
|
-
this._visibility = (options.visibility != undefined ? options.visibility : true);
|
|
50
|
-
this._children = [];
|
|
51
|
-
this._direction = new Vec3();
|
|
52
|
-
this._qFrame = new Quat();
|
|
53
|
-
this._qRot = Quat.IDENTITY;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Gets the unique tag of the geo object.
|
|
57
|
-
* @returns {string}
|
|
58
|
-
*/
|
|
59
|
-
get tag() {
|
|
60
|
-
return this._tag;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Gets the position of the geo object.
|
|
64
|
-
* @public
|
|
65
|
-
* @returns {Vec3}
|
|
66
|
-
*/
|
|
67
|
-
getPosition() {
|
|
68
|
-
return this._position;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Gets the 3D object associated with this geo object.
|
|
72
|
-
* @public
|
|
73
|
-
* @returns {Object3d}
|
|
74
|
-
*/
|
|
75
|
-
get object3d() {
|
|
76
|
-
return this._object3d;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Gets geometry mesh vertices.
|
|
80
|
-
* @public
|
|
81
|
-
* @returns {number[]}
|
|
82
|
-
*/
|
|
83
|
-
get vertices() {
|
|
84
|
-
return this._object3d.vertices;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Gets geometry mesh normals.
|
|
88
|
-
* @public
|
|
89
|
-
* @returns {number[]}
|
|
90
|
-
*/
|
|
91
|
-
get normals() {
|
|
92
|
-
return this._object3d.normals;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Gets geometry mesh texture coordinates.
|
|
96
|
-
* @public
|
|
97
|
-
* @returns {number[]}
|
|
98
|
-
*/
|
|
99
|
-
get texCoords() {
|
|
100
|
-
return this._object3d.texCoords;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Gets geometry mesh indices.
|
|
104
|
-
* @public
|
|
105
|
-
* @returns {number[]}
|
|
106
|
-
*/
|
|
107
|
-
get indices() {
|
|
108
|
-
return this._object3d.indices;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Sets the opacity of the geo object.
|
|
112
|
-
* @param {number} a - Opacity value (0 to 1).
|
|
113
|
-
*/
|
|
114
|
-
setOpacity(a) {
|
|
115
|
-
this._color.w = a;
|
|
116
|
-
this.setColor(this._color.x, this._color.y, this._color.z, a);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Gets the opacity of the geo object.
|
|
120
|
-
* @returns {number}
|
|
121
|
-
*/
|
|
122
|
-
getOpacity() {
|
|
123
|
-
return this._color.w;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Sets the color of the geo object.
|
|
127
|
-
* @param {number} r - Red component.
|
|
128
|
-
* @param {number} g - Green component.
|
|
129
|
-
* @param {number} b - Blue component.
|
|
130
|
-
* @param {number} [a] - Alpha component.
|
|
131
|
-
*/
|
|
132
|
-
setColor(r, g, b, a) {
|
|
133
|
-
this._color.x = r;
|
|
134
|
-
this._color.y = g;
|
|
135
|
-
this._color.z = b;
|
|
136
|
-
a != undefined && (this._color.w = a);
|
|
137
|
-
this._handler && this._handler.setRgbaArr(this._tagData, this._tagDataIndex, this._color);
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Sets color.
|
|
141
|
-
* @public
|
|
142
|
-
* @param {Vec3 | Vec4} color - RGBA vector.
|
|
143
|
-
*/
|
|
144
|
-
setColor4v(color) {
|
|
145
|
-
this._color.x = color.x;
|
|
146
|
-
this._color.y = color.y;
|
|
147
|
-
this._color.z = color.z;
|
|
148
|
-
color.w != undefined && (this._color.w = color.w);
|
|
149
|
-
this._handler && this._handler.setRgbaArr(this._tagData, this._tagDataIndex, this._color);
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Sets geo object visibility.
|
|
153
|
-
* @public
|
|
154
|
-
* @param {boolean} visibility - Visibility flag.
|
|
155
|
-
*/
|
|
156
|
-
setVisibility(visibility) {
|
|
157
|
-
this._visibility = visibility;
|
|
158
|
-
this._handler && this._handler.setVisibility(this._tagData, this._tagDataIndex, visibility);
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Returns geo object visibility.
|
|
162
|
-
* @public
|
|
163
|
-
* @returns {boolean}
|
|
164
|
-
*/
|
|
165
|
-
getVisibility() {
|
|
166
|
-
return this._visibility;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Sets geo object position.
|
|
170
|
-
* @public
|
|
171
|
-
* @param {number} x - X coordinate.
|
|
172
|
-
* @param {number} y - Y coordinate.
|
|
173
|
-
* @param {number} z - Z coordinate.
|
|
174
|
-
*/
|
|
175
|
-
setPosition(x, y, z) {
|
|
176
|
-
this._position.x = x;
|
|
177
|
-
this._position.y = y;
|
|
178
|
-
this._position.z = z;
|
|
179
|
-
this.updateRTCPosition();
|
|
180
|
-
this.updateRotation();
|
|
181
|
-
}
|
|
182
|
-
updateRTCPosition() {
|
|
183
|
-
//Vec3.doubleToTwoFloats(this._position, this._rtcPositionHigh, this._rtcPositionLow);
|
|
184
|
-
if (this._handler) {
|
|
185
|
-
this._handler.getRTCPosition(this._position, this._rtcPositionHigh, this._rtcPositionLow);
|
|
186
|
-
this._handler.setRTCPositionArr(this._tagData, this._tagDataIndex, this._rtcPositionHigh, this._rtcPositionLow);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Sets geo object position.
|
|
191
|
-
* @public
|
|
192
|
-
* @param {Vec3} position - Cartesian coordinates.
|
|
193
|
-
*/
|
|
194
|
-
setPosition3v(position) {
|
|
195
|
-
this.setPosition(position.x, position.y, position.z);
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Sets Object3d for the object
|
|
199
|
-
* @param {Object3d} object
|
|
200
|
-
*/
|
|
201
|
-
setObject(object) {
|
|
202
|
-
this._object3d = object;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Sets the object url source.
|
|
206
|
-
* @param {string} src
|
|
207
|
-
*/
|
|
208
|
-
setObjectSrc(src) {
|
|
209
|
-
this._objectSrc = src;
|
|
210
|
-
this._handler && this._handler.setObjectSrc(src, this.tag);
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Sets object HTML color.
|
|
214
|
-
* @param {string} color
|
|
215
|
-
*/
|
|
216
|
-
setColorHTML(color) {
|
|
217
|
-
this.setColor4v(utils.htmlColorToRgba(color));
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Sets scales.
|
|
221
|
-
* @public
|
|
222
|
-
* @param {number} scale
|
|
223
|
-
*/
|
|
224
|
-
setScale(scale) {
|
|
225
|
-
this._scale.x = this._scale.y = this._scale.z = scale;
|
|
226
|
-
this._handler && this._handler.setScaleArr(this._tagData, this._tagDataIndex, this._scale);
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Sets X, Y, Z axis scales
|
|
230
|
-
* @public
|
|
231
|
-
* @param {Vec3} scale
|
|
232
|
-
*/
|
|
233
|
-
setScale3v(scale) {
|
|
234
|
-
this._scale.copy(scale);
|
|
235
|
-
this._handler && this._handler.setScaleArr(this._tagData, this._tagDataIndex, scale);
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Gets scale.
|
|
239
|
-
* @publci
|
|
240
|
-
* @returns {Vec3}
|
|
241
|
-
*/
|
|
242
|
-
getScale() {
|
|
243
|
-
return this._scale;
|
|
244
|
-
}
|
|
245
|
-
setTranslate3v(translate) {
|
|
246
|
-
this._translate.copy(translate);
|
|
247
|
-
this._handler && this._handler.setTranslateArr(this._tagData, this._tagDataIndex, translate);
|
|
248
|
-
}
|
|
249
|
-
getTranslate() {
|
|
250
|
-
return this._translate.clone();
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Sets local offset position.
|
|
254
|
-
* @param {Vec3} localPosition
|
|
255
|
-
*/
|
|
256
|
-
setLocalPosition3v(localPosition) {
|
|
257
|
-
this._localPosition.copy(localPosition);
|
|
258
|
-
this._handler && this._handler.setLocalPositionArr(this._tagData, this._tagDataIndex, localPosition);
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Gets local offset position.
|
|
262
|
-
* @public
|
|
263
|
-
* @returns {Vec3}
|
|
264
|
-
*/
|
|
265
|
-
getLocalPosition() {
|
|
266
|
-
return this._localPosition.clone();
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Removes the geo object from the handler.
|
|
270
|
-
* @public
|
|
271
|
-
*/
|
|
272
|
-
remove() {
|
|
273
|
-
this._entity = null;
|
|
274
|
-
this._handler && this._handler.remove(this);
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Sets billboard picking color.
|
|
278
|
-
* @public
|
|
279
|
-
* @param {Vec3} color - Picking color.
|
|
280
|
-
*/
|
|
281
|
-
setPickingColor3v(color) {
|
|
282
|
-
this._handler && this._handler.setPickingColorArr(this._tagData, this._tagDataIndex, color);
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Sets the rotation quaternion.
|
|
286
|
-
* @public
|
|
287
|
-
* @param {Quat} qRot - Rotation quaternion.
|
|
288
|
-
*/
|
|
289
|
-
setRotation(qRot) {
|
|
290
|
-
this._qRot.copy(qRot);
|
|
291
|
-
this._qRot.mulVec3Res(LOCAL_FORWARD, this._direction).normalize();
|
|
292
|
-
this.updateRotation();
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Returns orientation quaternion.
|
|
296
|
-
* @public
|
|
297
|
-
* @returns {Quat}
|
|
298
|
-
*/
|
|
299
|
-
getRotation() {
|
|
300
|
-
return this._qRot;
|
|
301
|
-
}
|
|
302
|
-
/**
|
|
303
|
-
* Update object rotation
|
|
304
|
-
*/
|
|
305
|
-
updateRotation() {
|
|
306
|
-
this._handler && this._handler.setQRotArr(this._tagData, this._tagDataIndex, this._qRot);
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Returns object direction
|
|
310
|
-
* @publcu
|
|
311
|
-
* @returns {Vec3}
|
|
312
|
-
*/
|
|
313
|
-
getDirection() {
|
|
314
|
-
return this._direction.clone();
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
GeoObject.__counter__ = 0;
|
|
318
|
-
export { GeoObject };
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { EntityCollection } from "./EntityCollection";
|
|
2
|
-
import { GeoObject } from "./GeoObject";
|
|
3
|
-
import { Vec3 } from "../math/Vec3";
|
|
4
|
-
import { Vec4 } from "../math/Vec4";
|
|
5
|
-
import { Quat } from "../math/Quat";
|
|
6
|
-
import { Object3d } from "../Object3d";
|
|
7
|
-
import { InstanceData } from "./InstanceData";
|
|
8
|
-
import { Renderer } from "../renderer/Renderer";
|
|
9
|
-
import { RenderNode } from "../scene/RenderNode";
|
|
10
|
-
export declare const VERTEX_BUFFER = 0;
|
|
11
|
-
export declare const RTC_POSITION_BUFFER = 1;
|
|
12
|
-
export declare const RGBA_BUFFER = 2;
|
|
13
|
-
export declare const NORMALS_BUFFER = 3;
|
|
14
|
-
export declare const INDEX_BUFFER = 4;
|
|
15
|
-
export declare const QROT_BUFFER = 5;
|
|
16
|
-
export declare const SIZE_BUFFER = 6;
|
|
17
|
-
export declare const PICKINGCOLOR_BUFFER = 7;
|
|
18
|
-
export declare const VISIBLE_BUFFER = 8;
|
|
19
|
-
export declare const TEXCOORD_BUFFER = 9;
|
|
20
|
-
export declare const TRANSLATE_BUFFER = 10;
|
|
21
|
-
export declare const LOCALPOSITION_BUFFER = 11;
|
|
22
|
-
export declare class GeoObjectHandler {
|
|
23
|
-
static __counter__: number;
|
|
24
|
-
protected __id: number;
|
|
25
|
-
/**
|
|
26
|
-
* Picking rendering option.
|
|
27
|
-
* @public
|
|
28
|
-
* @type {boolean}
|
|
29
|
-
*/
|
|
30
|
-
pickingEnabled: boolean;
|
|
31
|
-
protected _entityCollection: EntityCollection;
|
|
32
|
-
_renderNode: RenderNode | null;
|
|
33
|
-
_renderer: Renderer | null;
|
|
34
|
-
protected _geoObjects: GeoObject[];
|
|
35
|
-
protected _instanceDataMap: Map<string, InstanceData>;
|
|
36
|
-
protected _instanceDataMapValues: InstanceData[];
|
|
37
|
-
protected _dataTagUpdateQueue: InstanceData[];
|
|
38
|
-
protected _relativeCenter: Vec3;
|
|
39
|
-
protected _rtcEyePositionHigh: Float32Array;
|
|
40
|
-
protected _rtcEyePositionLow: Float32Array;
|
|
41
|
-
constructor(entityCollection: EntityCollection);
|
|
42
|
-
initProgram(): void;
|
|
43
|
-
setRenderNode(renderNode: RenderNode): void;
|
|
44
|
-
setColorTextureTag(src: string, tag: string): void;
|
|
45
|
-
setNormalTextureTag(src: string, tag: string): void;
|
|
46
|
-
setMetallicRoughnessTextureTag(src: string, tag: string): void;
|
|
47
|
-
setObjectSrc(src: string, tag: string): void;
|
|
48
|
-
_updateInstanceData(object: Object3d, tag: string): void;
|
|
49
|
-
protected _addGeoObjectToArray(geoObject: GeoObject): void;
|
|
50
|
-
protected _bindCommon(): void;
|
|
51
|
-
_displayOpaquePASS(): void;
|
|
52
|
-
_displayTransparentPASS(): void;
|
|
53
|
-
protected _depthPASS(): void;
|
|
54
|
-
drawDepth(): void;
|
|
55
|
-
drawPicking(): void;
|
|
56
|
-
protected _pickingPASS(): void;
|
|
57
|
-
_loadColorTexture(tagData: InstanceData): Promise<void>;
|
|
58
|
-
_loadNormalTexture(tagData: InstanceData): Promise<void>;
|
|
59
|
-
_loadMetallicRoughnessTexture(tagData: InstanceData): Promise<void>;
|
|
60
|
-
setQRotArr(tagData: InstanceData, tagDataIndex: number, qRot: Quat): void;
|
|
61
|
-
setVisibility(tagData: InstanceData, tagDataIndex: number, visibility: boolean): void;
|
|
62
|
-
setRTCPositionArr(tagData: InstanceData, tagDataIndex: number, rtcPositionHigh: Vec3, rtcPositionLow: Vec3): void;
|
|
63
|
-
setRgbaArr(tagData: InstanceData, tagDataIndex: number, rgba: Vec4): void;
|
|
64
|
-
setPickingColorArr(tagData: InstanceData, tagDataIndex: number, color: Vec3): void;
|
|
65
|
-
setScaleArr(tagData: InstanceData, tagDataIndex: number, scale: Vec3): void;
|
|
66
|
-
setTranslateArr(tagData: InstanceData, tagDataIndex: number, translate: Vec3): void;
|
|
67
|
-
setLocalPositionArr(tagData: InstanceData, tagDataIndex: number, localPosition: Vec3): void;
|
|
68
|
-
protected _updateTag(dataTag: InstanceData): void;
|
|
69
|
-
update(): void;
|
|
70
|
-
_removeAll(): void;
|
|
71
|
-
clear(): void;
|
|
72
|
-
getRTCPosition(pos: Vec3, rtcPositionHigh: Vec3, rtcPositionLow: Vec3): void;
|
|
73
|
-
setRelativeCenter(c: Vec3): void;
|
|
74
|
-
protected _updateRTCEyePosition(): void;
|
|
75
|
-
draw(): void;
|
|
76
|
-
drawTransparent(): void;
|
|
77
|
-
add(geoObject: GeoObject): void;
|
|
78
|
-
remove(geoObject: GeoObject): void;
|
|
79
|
-
_clearDataTagQueue(): void;
|
|
80
|
-
_removeGeoObject(geoObject: GeoObject): void;
|
|
81
|
-
}
|