@openglobus/og 0.11.7 → 0.12.3
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/css/og.css +5 -2
- package/dist/@openglobus/og.css +1 -0
- package/dist/@openglobus/og.esm.js +21 -0
- package/dist/@openglobus/og.esm.js.map +1 -0
- package/dist/@openglobus/og.umd.js +21 -0
- package/dist/@openglobus/og.umd.js.map +1 -0
- package/package.json +11 -11
- package/src/og/Globe.js +18 -6
- package/src/og/camera/Camera.js +70 -79
- package/src/og/camera/PlanetCamera.js +25 -30
- package/src/og/control/DebugInfo.js +2 -2
- package/src/og/control/EarthNavigation.js +26 -17
- package/src/og/control/Lighting.js +52 -73
- package/src/og/control/MouseNavigation.js +30 -29
- package/src/og/control/MouseWheelZoomControl.js +257 -0
- package/src/og/control/Sun.js +3 -3
- package/src/og/control/index.js +2 -0
- package/src/og/control/visibleExtent/Segment.js +1862 -0
- package/src/og/control/visibleExtent/VisibleExtent.js +80 -0
- package/src/og/control/visibleExtent/drawnode.js +751 -0
- package/src/og/entity/BaseBillboard.js +9 -9
- package/src/og/entity/Entity.js +742 -742
- package/src/og/entity/GeoObjectHandler.js +138 -134
- package/src/og/entity/Label.js +7 -7
- package/src/og/entity/LabelHandler.js +2 -1
- package/src/og/layer/CanvasTiles.js +8 -12
- package/src/og/layer/GeoImage.js +2 -10
- package/src/og/layer/GeoTexture2d.js +2 -10
- package/src/og/layer/GeoVideo.js +2 -10
- package/src/og/layer/KML.js +19 -12
- package/src/og/layer/Layer.js +4 -23
- package/src/og/layer/WMS.js +0 -2
- package/src/og/layer/XYZ.js +31 -33
- package/src/og/math/Vec3.js +18 -2
- package/src/og/quadTree/Node.js +48 -93
- package/src/og/quadTree/quadTree.js +1 -1
- package/src/og/renderer/Renderer.js +69 -96
- package/src/og/renderer/RendererEvents.js +3 -1
- package/src/og/scene/Planet.js +171 -173
- package/src/og/segment/Segment.js +99 -268
- package/src/og/segment/Slice.js +45 -0
- package/src/og/shaders/drawnode.js +171 -350
- package/src/og/shaders/geoObject.js +15 -6
- package/src/og/terrain/EmptyTerrain.js +3 -2
- package/src/og/terrain/GlobusTerrain.js +2 -0
- package/src/og/utils/GeoImageCreator.js +5 -1
- package/src/og/utils/Loader.js +1 -1
- package/src/og/utils/PlainSegmentWorker.js +0 -13
- package/src/og/webgl/Handler.js +14 -10
- package/types/Clock.d.ts +94 -0
- package/types/Deferred.d.ts +6 -0
- package/types/Events.d.ts +77 -0
- package/types/Extent.d.ts +166 -0
- package/types/Globe.d.ts +85 -0
- package/types/ImageCanvas.d.ts +123 -0
- package/types/Lock.d.ts +12 -0
- package/types/LonLat.d.ts +108 -0
- package/types/Popup.d.ts +42 -0
- package/types/QueueArray.d.ts +19 -0
- package/types/Rectangle.d.ts +80 -0
- package/types/Stack.d.ts +19 -0
- package/types/ajax.d.ts +24 -0
- package/types/arial.d.ts +48 -0
- package/types/astro/astro.d.ts +38 -0
- package/types/astro/earth.d.ts +7 -0
- package/types/astro/jd.d.ts +254 -0
- package/types/bv/Box.d.ts +30 -0
- package/types/bv/Sphere.d.ts +38 -0
- package/types/bv/index.d.ts +3 -0
- package/types/camera/Camera.d.ts +312 -0
- package/types/camera/Frustum.d.ts +133 -0
- package/types/camera/PlanetCamera.d.ts +219 -0
- package/types/camera/index.d.ts +3 -0
- package/types/cons.d.ts +40 -0
- package/types/control/CompassButton.d.ts +17 -0
- package/types/control/Control.d.ts +104 -0
- package/types/control/DebugInfo.d.ts +15 -0
- package/types/control/EarthCoordinates.d.ts +47 -0
- package/types/control/EarthNavigation.d.ts +43 -0
- package/types/control/GeoImageDragControl.d.ts +6 -0
- package/types/control/KeyboardNavigation.d.ts +21 -0
- package/types/control/LayerSwitcher.d.ts +21 -0
- package/types/control/Lighting.d.ts +16 -0
- package/types/control/MouseNavigation.d.ts +48 -0
- package/types/control/MouseWheelZoomControl.d.ts +45 -0
- package/types/control/ScaleControl.d.ts +22 -0
- package/types/control/ShowFps.d.ts +11 -0
- package/types/control/SimpleNavigation.d.ts +25 -0
- package/types/control/Sun.d.ts +50 -0
- package/types/control/ToggleWireframe.d.ts +12 -0
- package/types/control/TouchNavigation.d.ts +48 -0
- package/types/control/ZoomControl.d.ts +27 -0
- package/types/control/index.d.ts +18 -0
- package/types/ellipsoid/Ellipsoid.d.ts +146 -0
- package/types/ellipsoid/index.d.ts +3 -0
- package/types/ellipsoid/wgs84.d.ts +6 -0
- package/types/entity/BaseBillboard.d.ts +215 -0
- package/types/entity/Billboard.d.ts +94 -0
- package/types/entity/BillboardHandler.d.ts +79 -0
- package/types/entity/Entity.d.ts +348 -0
- package/types/entity/EntityCollection.d.ts +317 -0
- package/types/entity/GeoObject.d.ts +111 -0
- package/types/entity/GeoObjectHandler.d.ts +81 -0
- package/types/entity/Geometry.d.ts +74 -0
- package/types/entity/GeometryHandler.d.ts +76 -0
- package/types/entity/Label.d.ts +189 -0
- package/types/entity/LabelHandler.d.ts +31 -0
- package/types/entity/LabelWorker.d.ts +11 -0
- package/types/entity/PointCloud.d.ts +174 -0
- package/types/entity/PointCloudHandler.d.ts +38 -0
- package/types/entity/Polyline.d.ts +306 -0
- package/types/entity/PolylineHandler.d.ts +18 -0
- package/types/entity/Ray.d.ts +124 -0
- package/types/entity/RayHandler.d.ts +67 -0
- package/types/entity/ShapeHandler.d.ts +22 -0
- package/types/entity/Strip.d.ts +119 -0
- package/types/entity/StripHandler.d.ts +38 -0
- package/types/entity/index.d.ts +8 -0
- package/types/index.core.d.ts +65 -0
- package/types/index.d.ts +45 -0
- package/types/index.webgl.d.ts +7 -0
- package/types/input/KeyboardHandler.d.ts +10 -0
- package/types/input/MouseHandler.d.ts +5 -0
- package/types/input/TouchHandler.d.ts +5 -0
- package/types/input/input.d.ts +34 -0
- package/types/layer/BaseGeoImage.d.ts +94 -0
- package/types/layer/CanvasTiles.d.ts +67 -0
- package/types/layer/GeoImage.d.ts +52 -0
- package/types/layer/GeoTexture2d.d.ts +8 -0
- package/types/layer/GeoVideo.d.ts +55 -0
- package/types/layer/KML.d.ts +68 -0
- package/types/layer/Layer.d.ts +310 -0
- package/types/layer/Material.d.ts +45 -0
- package/types/layer/Vector.d.ts +208 -0
- package/types/layer/WMS.d.ts +61 -0
- package/types/layer/XYZ.d.ts +119 -0
- package/types/layer/index.d.ts +10 -0
- package/types/light/LightSource.d.ts +178 -0
- package/types/math/Line2.d.ts +11 -0
- package/types/math/Line3.d.ts +10 -0
- package/types/math/Mat3.d.ts +65 -0
- package/types/math/Mat4.d.ts +176 -0
- package/types/math/Plane.d.ts +18 -0
- package/types/math/Quat.d.ts +379 -0
- package/types/math/Ray.d.ts +82 -0
- package/types/math/Vec2.d.ts +309 -0
- package/types/math/Vec3.d.ts +467 -0
- package/types/math/Vec4.d.ts +162 -0
- package/types/math/coder.d.ts +43 -0
- package/types/math/index.d.ts +11 -0
- package/types/math.d.ts +261 -0
- package/types/mercator.d.ts +92 -0
- package/types/proj/EPSG3857.d.ts +6 -0
- package/types/proj/EPSG4326.d.ts +6 -0
- package/types/proj/Proj.d.ts +42 -0
- package/types/quadTree/EntityCollectionNode.d.ts +34 -0
- package/types/quadTree/Node.d.ts +60 -0
- package/types/quadTree/quadTree.d.ts +40 -0
- package/types/renderer/Renderer.d.ts +290 -0
- package/types/renderer/RendererEvents.d.ts +237 -0
- package/types/res/images.d.ts +3 -0
- package/types/scene/Axes.d.ts +11 -0
- package/types/scene/BaseNode.d.ts +60 -0
- package/types/scene/Planet.d.ts +576 -0
- package/types/scene/RenderNode.d.ts +142 -0
- package/types/scene/SkyBox.d.ts +10 -0
- package/types/scene/index.d.ts +4 -0
- package/types/segment/Segment.d.ts +275 -0
- package/types/segment/SegmentLonLat.d.ts +17 -0
- package/types/segment/Slice.d.ts +10 -0
- package/types/segment/segmentHelper.d.ts +13 -0
- package/types/shaders/billboard.d.ts +3 -0
- package/types/shaders/depth.d.ts +2 -0
- package/types/shaders/drawnode.d.ts +7 -0
- package/types/shaders/geoObject.d.ts +3 -0
- package/types/shaders/label.d.ts +4 -0
- package/types/shaders/pointCloud.d.ts +2 -0
- package/types/shaders/polyline.d.ts +3 -0
- package/types/shaders/ray.d.ts +2 -0
- package/types/shaders/screenFrame.d.ts +2 -0
- package/types/shaders/shape.d.ts +4 -0
- package/types/shaders/skybox.d.ts +2 -0
- package/types/shaders/toneMapping.d.ts +2 -0
- package/types/shapes/BaseShape.d.ts +250 -0
- package/types/shapes/Sphere.d.ts +41 -0
- package/types/terrain/BilTerrain.d.ts +7 -0
- package/types/terrain/EmptyTerrain.d.ts +73 -0
- package/types/terrain/Geoid.d.ts +26 -0
- package/types/terrain/GlobusTerrain.d.ts +116 -0
- package/types/terrain/MapboxTerrain.d.ts +7 -0
- package/types/terrain/index.d.ts +5 -0
- package/types/utils/FontAtlas.d.ts +15 -0
- package/types/utils/GeoImageCreator.d.ts +30 -0
- package/types/utils/ImagesCacheManager.d.ts +10 -0
- package/types/utils/Loader.d.ts +25 -0
- package/types/utils/NormalMapCreator.d.ts +39 -0
- package/types/utils/PlainSegmentWorker.d.ts +10 -0
- package/types/utils/TerrainWorker.d.ts +9 -0
- package/types/utils/TextureAtlas.d.ts +111 -0
- package/types/utils/VectorTileCreator.d.ts +16 -0
- package/types/utils/colorTable.d.ts +143 -0
- package/types/utils/earcut.d.ts +6 -0
- package/types/utils/shared.d.ts +231 -0
- package/types/webgl/Framebuffer.d.ts +135 -0
- package/types/webgl/Handler.d.ts +417 -0
- package/types/webgl/Multisample.d.ts +89 -0
- package/types/webgl/Program.d.ts +161 -0
- package/types/webgl/ProgramController.d.ts +89 -0
- package/types/webgl/callbacks.d.ts +1 -0
- package/types/webgl/index.d.ts +6 -0
- package/types/webgl/types.d.ts +2 -0
|
@@ -133,7 +133,7 @@ class BaseBillboard {
|
|
|
133
133
|
this._position.y = y;
|
|
134
134
|
this._position.z = z;
|
|
135
135
|
Vec3.doubleToTwoFloats(this._position, this._positionHigh, this._positionLow);
|
|
136
|
-
if (this._isReady) {
|
|
136
|
+
if (this._isReady && this._handler) {
|
|
137
137
|
this._handler.setPositionArr(this._handlerIndex, this._positionHigh, this._positionLow);
|
|
138
138
|
} else if (this._lockId !== LOCK_FREE) {
|
|
139
139
|
this._lockId = LOCK_UPDATE;
|
|
@@ -150,7 +150,7 @@ class BaseBillboard {
|
|
|
150
150
|
this._position.y = position.y;
|
|
151
151
|
this._position.z = position.z;
|
|
152
152
|
Vec3.doubleToTwoFloats(position, this._positionHigh, this._positionLow);
|
|
153
|
-
if (this._isReady) {
|
|
153
|
+
if (this._isReady && this._handler) {
|
|
154
154
|
this._handler.setPositionArr(this._handlerIndex, this._positionHigh, this._positionLow);
|
|
155
155
|
} else if (this._lockId !== LOCK_FREE) {
|
|
156
156
|
this._lockId = LOCK_UPDATE;
|
|
@@ -177,7 +177,7 @@ class BaseBillboard {
|
|
|
177
177
|
this._offset.x = x;
|
|
178
178
|
this._offset.y = y;
|
|
179
179
|
z != undefined && (this._offset.z = z);
|
|
180
|
-
if (this._isReady) {
|
|
180
|
+
if (this._isReady && this._handler) {
|
|
181
181
|
this._handler.setOffsetArr(this._handlerIndex, this._offset);
|
|
182
182
|
} else if (this._lockId !== LOCK_FREE) {
|
|
183
183
|
this._lockId = LOCK_UPDATE;
|
|
@@ -210,7 +210,7 @@ class BaseBillboard {
|
|
|
210
210
|
setRotation(rotation) {
|
|
211
211
|
if (rotation !== this._rotation) {
|
|
212
212
|
this._rotation = rotation;
|
|
213
|
-
if (this._isReady) {
|
|
213
|
+
if (this._isReady && this._handler) {
|
|
214
214
|
this._handler.setRotationArr(this._handlerIndex, rotation);
|
|
215
215
|
} else if (this._lockId !== LOCK_FREE) {
|
|
216
216
|
this._lockId = LOCK_UPDATE;
|
|
@@ -235,7 +235,7 @@ class BaseBillboard {
|
|
|
235
235
|
setOpacity(a) {
|
|
236
236
|
if (a !== this._color.w) {
|
|
237
237
|
a != undefined && (this._color.w = a);
|
|
238
|
-
if (this._isReady) {
|
|
238
|
+
if (this._isReady && this._handler) {
|
|
239
239
|
this._handler.setRgbaArr(this._handlerIndex, this._color);
|
|
240
240
|
} else if (this._lockId !== LOCK_FREE) {
|
|
241
241
|
this._lockId = LOCK_UPDATE;
|
|
@@ -257,7 +257,7 @@ class BaseBillboard {
|
|
|
257
257
|
this._color.y = g;
|
|
258
258
|
this._color.z = b;
|
|
259
259
|
a != undefined && (this._color.w = a);
|
|
260
|
-
if (this._isReady) {
|
|
260
|
+
if (this._isReady && this._handler) {
|
|
261
261
|
this._handler.setRgbaArr(this._handlerIndex, this._color);
|
|
262
262
|
} else if (this._lockId !== LOCK_FREE) {
|
|
263
263
|
this._lockId = LOCK_UPDATE;
|
|
@@ -300,7 +300,7 @@ class BaseBillboard {
|
|
|
300
300
|
setVisibility(visibility) {
|
|
301
301
|
if (visibility !== this._visibility) {
|
|
302
302
|
this._visibility = visibility;
|
|
303
|
-
if (this._isReady) {
|
|
303
|
+
if (this._isReady && this._handler) {
|
|
304
304
|
this._handler.setVisibility(this._handlerIndex, visibility);
|
|
305
305
|
} else if (this._lockId !== LOCK_FREE) {
|
|
306
306
|
this._lockId = LOCK_UPDATE;
|
|
@@ -328,7 +328,7 @@ class BaseBillboard {
|
|
|
328
328
|
this._alignedAxis.x = x;
|
|
329
329
|
this._alignedAxis.y = y;
|
|
330
330
|
this._alignedAxis.z = z;
|
|
331
|
-
if (this._isReady) {
|
|
331
|
+
if (this._isReady && this._handler) {
|
|
332
332
|
this._handler.setAlignedAxisArr(this._handlerIndex, this._alignedAxis);
|
|
333
333
|
} else if (this._lockId !== LOCK_FREE) {
|
|
334
334
|
this._lockId = LOCK_UPDATE;
|
|
@@ -368,7 +368,7 @@ class BaseBillboard {
|
|
|
368
368
|
* @param {Vec3} color - Picking color.
|
|
369
369
|
*/
|
|
370
370
|
setPickingColor3v(color) {
|
|
371
|
-
if (this._isReady) {
|
|
371
|
+
if (this._isReady && this._handler) {
|
|
372
372
|
this._handler.setPickingColorArr(this._handlerIndex, color);
|
|
373
373
|
} else if (this._lockId !== LOCK_FREE) {
|
|
374
374
|
this._lockId = LOCK_UPDATE;
|