@openglobus/og 0.11.2 → 0.11.7
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/package.json +13 -13
- package/src/og/Clock.js +10 -10
- package/src/og/Events.js +8 -6
- package/src/og/Extent.js +82 -41
- package/src/og/Globe.js +25 -13
- package/src/og/ImageCanvas.js +22 -16
- package/src/og/LonLat.js +16 -13
- package/src/og/Popup.js +21 -14
- package/src/og/QueueArray.js +6 -2
- package/src/og/Rectangle.js +11 -6
- package/src/og/Stack.js +5 -2
- package/src/og/ajax.js +21 -33
- package/src/og/astro/astro.js +5 -5
- package/src/og/astro/earth.js +22 -16
- package/src/og/astro/jd.js +23 -18
- package/src/og/astro/orbit.js +13 -11
- package/src/og/astro/rotation.js +17 -8
- package/src/og/bv/Box.js +7 -3
- package/src/og/bv/Sphere.js +14 -11
- package/src/og/camera/Camera.js +51 -54
- package/src/og/camera/Frustum.js +29 -18
- package/src/og/camera/PlanetCamera.js +32 -23
- package/src/og/control/CompassButton.js +5 -1
- package/src/og/control/Control.js +12 -10
- package/src/og/control/DebugInfo.js +4 -1
- package/src/og/control/EarthCoordinates.js +54 -33
- package/src/og/control/KeyboardNavigation.js +10 -10
- package/src/og/control/LayerSwitcher.js +22 -21
- package/src/og/control/Lighting.js +34 -3
- package/src/og/control/MouseNavigation.js +1 -1
- package/src/og/control/ScaleControl.js +1 -1
- package/src/og/control/SegmentBoundVisualization.js +6 -7
- package/src/og/control/ShowFps.js +13 -8
- package/src/og/control/SimpleNavigation.js +6 -8
- package/src/og/control/Sun.js +25 -15
- package/src/og/control/ToggleWireframe.js +4 -4
- package/src/og/control/TouchNavigation.js +44 -33
- package/src/og/control/ZoomControl.js +41 -25
- package/src/og/ellipsoid/Ellipsoid.js +162 -66
- package/src/og/ellipsoid/wgs84.js +4 -4
- package/src/og/entity/BaseBillboard.js +100 -56
- package/src/og/entity/Billboard.js +14 -10
- package/src/og/entity/BillboardHandler.js +317 -60
- package/src/og/entity/Entity.js +100 -68
- package/src/og/entity/EntityCollection.js +70 -47
- package/src/og/entity/GeoObject.js +228 -0
- package/src/og/entity/GeoObjectHandler.js +910 -0
- package/src/og/entity/Geometry.js +27 -24
- package/src/og/entity/GeometryHandler.js +596 -124
- package/src/og/entity/Label.js +80 -49
- package/src/og/entity/LabelHandler.js +45 -244
- package/src/og/entity/LabelWorker.js +218 -0
- package/src/og/entity/Object3d.js +504 -0
- package/src/og/entity/PointCloud.js +80 -32
- package/src/og/entity/PointCloudHandler.js +8 -8
- package/src/og/entity/Polyline.js +16 -16
- package/src/og/entity/Ray.js +60 -27
- package/src/og/entity/Strip.js +77 -48
- package/src/og/entity/StripHandler.js +26 -26
- package/src/og/entity/index.js +8 -16
- package/src/og/layer/BaseGeoImage.js +54 -23
- package/src/og/layer/CanvasTiles.js +24 -24
- package/src/og/layer/GeoImage.js +9 -9
- package/src/og/layer/GeoVideo.js +3 -3
- package/src/og/layer/KML.js +63 -37
- package/src/og/layer/Layer.js +44 -21
- package/src/og/layer/Material.js +23 -20
- package/src/og/layer/Vector.js +114 -68
- package/src/og/layer/WMS.js +34 -17
- package/src/og/layer/XYZ.js +48 -46
- package/src/og/light/LightSource.js +46 -39
- package/src/og/math/Mat3.js +34 -22
- package/src/og/math/Mat4.js +603 -459
- package/src/og/math/Plane.js +21 -20
- package/src/og/math/Quat.js +182 -139
- package/src/og/math/Ray.js +38 -33
- package/src/og/math/Vec2.js +85 -75
- package/src/og/math/Vec3.js +142 -112
- package/src/og/math/Vec4.js +27 -31
- package/src/og/math/coder.js +10 -10
- package/src/og/math.js +12 -12
- package/src/og/proj/EPSG3857.js +4 -4
- package/src/og/proj/EPSG4326.js +4 -4
- package/src/og/proj/Proj.js +4 -6
- package/src/og/quadTree/Node.js +8 -8
- package/src/og/renderer/Renderer.js +59 -52
- package/src/og/renderer/RendererEvents.js +50 -27
- package/src/og/scene/BaseNode.js +7 -8
- package/src/og/scene/Planet.js +102 -103
- package/src/og/scene/RenderNode.js +28 -21
- package/src/og/segment/Segment.js +26 -21
- package/src/og/segment/SegmentLonLat.js +5 -5
- package/src/og/shaders/drawnode.js +135 -142
- package/src/og/shaders/geoObject.js +211 -0
- package/src/og/shaders/pointCloud.js +41 -41
- package/src/og/shaders/shape.js +12 -18
- package/src/og/shaders/skybox.js +36 -36
- package/src/og/shaders/toneMapping.js +1 -0
- package/src/og/shapes/BaseShape.js +126 -54
- package/src/og/shapes/Icosphere.js +29 -14
- package/src/og/shapes/Sphere.js +12 -15
- package/src/og/terrain/BilTerrain.js +1 -0
- package/src/og/terrain/EmptyTerrain.js +2 -2
- package/src/og/terrain/GlobusTerrain.js +9 -9
- package/src/og/utils/FontAtlas.js +6 -2
- package/src/og/utils/TextureAtlas.js +22 -24
- package/src/og/utils/VectorTileCreator.js +1 -3
- package/src/og/utils/shared.js +16 -16
- package/src/og/webgl/Framebuffer.js +88 -40
- package/src/og/webgl/Handler.js +243 -169
- package/src/og/webgl/Multisample.js +47 -19
- package/src/og/webgl/Program.js +79 -34
- package/src/og/webgl/ProgramController.js +17 -13
- package/src/og/webgl/callbacks.js +8 -8
- package/src/og/inherits.js +0 -8
- package/src/og/utils/polylabel.js +0 -176
- package/types/Clock.d.ts +0 -90
- package/types/Deferred.d.ts +0 -6
- package/types/Events.d.ts +0 -73
- package/types/Extent.d.ts +0 -166
- package/types/Globe.d.ts +0 -75
- package/types/ImageCanvas.d.ts +0 -121
- package/types/Lock.d.ts +0 -12
- package/types/LonLat.d.ts +0 -108
- package/types/Popup.d.ts +0 -38
- package/types/QueueArray.d.ts +0 -15
- package/types/Rectangle.d.ts +0 -74
- package/types/Stack.d.ts +0 -15
- package/types/ajax.d.ts +0 -24
- package/types/arial.d.ts +0 -48
- package/types/astro/astro.d.ts +0 -38
- package/types/astro/earth.d.ts +0 -6
- package/types/astro/jd.d.ts +0 -254
- package/types/bv/Box.d.ts +0 -25
- package/types/bv/Sphere.d.ts +0 -38
- package/types/bv/index.d.ts +0 -3
- package/types/camera/Camera.d.ts +0 -303
- package/types/camera/Frustum.d.ts +0 -129
- package/types/camera/PlanetCamera.d.ts +0 -223
- package/types/camera/index.d.ts +0 -3
- package/types/cons.d.ts +0 -40
- package/types/control/CompassButton.d.ts +0 -18
- package/types/control/Control.d.ts +0 -101
- package/types/control/DebugInfo.d.ts +0 -16
- package/types/control/EarthCoordinates.d.ts +0 -47
- package/types/control/EarthNavigation.d.ts +0 -42
- package/types/control/GeoImageDragControl.d.ts +0 -6
- package/types/control/KeyboardNavigation.d.ts +0 -22
- package/types/control/LayerSwitcher.d.ts +0 -23
- package/types/control/Lighting.d.ts +0 -16
- package/types/control/MouseNavigation.d.ts +0 -51
- package/types/control/ScaleControl.d.ts +0 -22
- package/types/control/ShowFps.d.ts +0 -12
- package/types/control/SimpleNavigation.d.ts +0 -28
- package/types/control/Sun.d.ts +0 -52
- package/types/control/ToggleWireframe.d.ts +0 -12
- package/types/control/TouchNavigation.d.ts +0 -50
- package/types/control/ZoomControl.d.ts +0 -28
- package/types/control/index.d.ts +0 -17
- package/types/ellipsoid/Ellipsoid.d.ts +0 -142
- package/types/ellipsoid/index.d.ts +0 -3
- package/types/ellipsoid/wgs84.d.ts +0 -5
- package/types/entity/BaseBillboard.d.ts +0 -208
- package/types/entity/Billboard.d.ts +0 -94
- package/types/entity/BillboardHandler.d.ts +0 -74
- package/types/entity/Entity.d.ts +0 -331
- package/types/entity/EntityCollection.d.ts +0 -303
- package/types/entity/Geometry.d.ts +0 -73
- package/types/entity/GeometryHandler.d.ts +0 -76
- package/types/entity/Label.d.ts +0 -194
- package/types/entity/LabelHandler.d.ts +0 -24
- package/types/entity/PointCloud.d.ts +0 -174
- package/types/entity/PointCloudHandler.d.ts +0 -38
- package/types/entity/Polyline.d.ts +0 -304
- package/types/entity/PolylineHandler.d.ts +0 -18
- package/types/entity/Ray.d.ts +0 -123
- package/types/entity/RayHandler.d.ts +0 -67
- package/types/entity/ShapeHandler.d.ts +0 -22
- package/types/entity/Strip.d.ts +0 -118
- package/types/entity/StripHandler.d.ts +0 -38
- package/types/entity/index.d.ts +0 -8
- package/types/index.core.d.ts +0 -65
- package/types/index.d.ts +0 -45
- package/types/index.webgl.d.ts +0 -7
- package/types/inherits.d.ts +0 -4
- package/types/input/KeyboardHandler.d.ts +0 -10
- package/types/input/MouseHandler.d.ts +0 -5
- package/types/input/TouchHandler.d.ts +0 -5
- package/types/input/input.d.ts +0 -34
- package/types/layer/BaseGeoImage.d.ts +0 -107
- package/types/layer/CanvasTiles.d.ts +0 -75
- package/types/layer/GeoImage.d.ts +0 -65
- package/types/layer/GeoTexture2d.d.ts +0 -8
- package/types/layer/GeoVideo.d.ts +0 -80
- package/types/layer/KML.d.ts +0 -58
- package/types/layer/Layer.d.ts +0 -321
- package/types/layer/Material.d.ts +0 -48
- package/types/layer/Vector.d.ts +0 -228
- package/types/layer/WMS.d.ts +0 -66
- package/types/layer/XYZ.d.ts +0 -130
- package/types/layer/index.d.ts +0 -10
- package/types/light/LightSource.d.ts +0 -177
- package/types/math/Line2.d.ts +0 -11
- package/types/math/Line3.d.ts +0 -10
- package/types/math/Mat3.d.ts +0 -63
- package/types/math/Mat4.d.ts +0 -173
- package/types/math/Plane.d.ts +0 -17
- package/types/math/Quat.d.ts +0 -376
- package/types/math/Ray.d.ts +0 -81
- package/types/math/Vec2.d.ts +0 -308
- package/types/math/Vec3.d.ts +0 -459
- package/types/math/Vec4.d.ts +0 -161
- package/types/math/coder.d.ts +0 -42
- package/types/math/index.d.ts +0 -11
- package/types/math.d.ts +0 -261
- package/types/mercator.d.ts +0 -92
- package/types/proj/EPSG3857.d.ts +0 -5
- package/types/proj/EPSG4326.d.ts +0 -5
- package/types/proj/Proj.d.ts +0 -42
- package/types/quadTree/EntityCollectionNode.d.ts +0 -34
- package/types/quadTree/Node.d.ts +0 -61
- package/types/quadTree/quadTree.d.ts +0 -40
- package/types/renderer/Renderer.d.ts +0 -296
- package/types/renderer/RendererEvents.d.ts +0 -230
- package/types/res/images.d.ts +0 -3
- package/types/scene/Axes.d.ts +0 -11
- package/types/scene/BaseNode.d.ts +0 -60
- package/types/scene/Planet.d.ts +0 -574
- package/types/scene/RenderNode.d.ts +0 -143
- package/types/scene/SkyBox.d.ts +0 -10
- package/types/scene/index.d.ts +0 -4
- package/types/segment/Segment.d.ts +0 -271
- package/types/segment/SegmentLonLat.d.ts +0 -62
- package/types/segment/segmentHelper.d.ts +0 -13
- package/types/shaders/billboard.d.ts +0 -3
- package/types/shaders/depth.d.ts +0 -2
- package/types/shaders/drawnode.d.ts +0 -7
- package/types/shaders/label.d.ts +0 -4
- package/types/shaders/pointCloud.d.ts +0 -2
- package/types/shaders/polyline.d.ts +0 -3
- package/types/shaders/ray.d.ts +0 -2
- package/types/shaders/screenFrame.d.ts +0 -2
- package/types/shaders/shape.d.ts +0 -4
- package/types/shaders/skybox.d.ts +0 -2
- package/types/shaders/toneMapping.d.ts +0 -2
- package/types/shapes/BaseShape.d.ts +0 -247
- package/types/shapes/Sphere.d.ts +0 -41
- package/types/terrain/BilTerrain.d.ts +0 -8
- package/types/terrain/EmptyTerrain.d.ts +0 -72
- package/types/terrain/Geoid.d.ts +0 -26
- package/types/terrain/GlobusTerrain.d.ts +0 -153
- package/types/terrain/MapboxTerrain.d.ts +0 -8
- package/types/terrain/index.d.ts +0 -5
- package/types/utils/FontAtlas.d.ts +0 -14
- package/types/utils/GeoImageCreator.d.ts +0 -30
- package/types/utils/ImagesCacheManager.d.ts +0 -10
- package/types/utils/Loader.d.ts +0 -25
- package/types/utils/NormalMapCreator.d.ts +0 -39
- package/types/utils/PlainSegmentWorker.d.ts +0 -10
- package/types/utils/TerrainWorker.d.ts +0 -9
- package/types/utils/TextureAtlas.d.ts +0 -111
- package/types/utils/VectorTileCreator.d.ts +0 -16
- package/types/utils/colorTable.d.ts +0 -143
- package/types/utils/earcut.d.ts +0 -6
- package/types/utils/shared.d.ts +0 -230
- package/types/webgl/Framebuffer.d.ts +0 -135
- package/types/webgl/Handler.d.ts +0 -372
- package/types/webgl/Multisample.d.ts +0 -89
- package/types/webgl/Program.d.ts +0 -155
- package/types/webgl/ProgramController.d.ts +0 -84
- package/types/webgl/callbacks.d.ts +0 -1
- package/types/webgl/index.d.ts +0 -6
- package/types/webgl/types.d.ts +0 -2
package/types/Clock.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Class represents application timer that stores custom current julian datetime, and time speed multiplier.
|
|
3
|
-
* @class
|
|
4
|
-
* @param {Object} [params]: - Clock parameters:
|
|
5
|
-
* @param {number} [params.startDate=0.0] - Julian start date.
|
|
6
|
-
* @param {number} [params.endDate=0.0] - Julian end date.
|
|
7
|
-
* @param {number} [params.currentDate] - Julian current date. Default: current date.
|
|
8
|
-
* @param {number} [params.multiplier=1.0] - Time speed multiolier.
|
|
9
|
-
*/
|
|
10
|
-
export class Clock {
|
|
11
|
-
static set _staticCounter(arg: any);
|
|
12
|
-
static get _staticCounter(): any;
|
|
13
|
-
constructor(params: any);
|
|
14
|
-
_id: number;
|
|
15
|
-
/**
|
|
16
|
-
* Clock name.
|
|
17
|
-
* @public
|
|
18
|
-
* @type {string}
|
|
19
|
-
*/
|
|
20
|
-
public name: string;
|
|
21
|
-
/**
|
|
22
|
-
* Clock events.
|
|
23
|
-
* @public
|
|
24
|
-
* @type {Events}
|
|
25
|
-
*/
|
|
26
|
-
public events: Events;
|
|
27
|
-
/**
|
|
28
|
-
* Start julian date clock loop.
|
|
29
|
-
* @public
|
|
30
|
-
* @type {number}
|
|
31
|
-
*/
|
|
32
|
-
public startDate: number;
|
|
33
|
-
/**
|
|
34
|
-
* End julian date clock loop.
|
|
35
|
-
* @public
|
|
36
|
-
* @type {number}
|
|
37
|
-
*/
|
|
38
|
-
public endDate: number;
|
|
39
|
-
/**
|
|
40
|
-
* Current julian datetime.
|
|
41
|
-
* @public
|
|
42
|
-
* @type {number}
|
|
43
|
-
*/
|
|
44
|
-
public currentDate: number;
|
|
45
|
-
/**
|
|
46
|
-
* Timer speed multiplier.
|
|
47
|
-
* @public
|
|
48
|
-
* @type {number}
|
|
49
|
-
*/
|
|
50
|
-
public multiplier: number;
|
|
51
|
-
/**
|
|
52
|
-
* Animation frame delta time.
|
|
53
|
-
* @public
|
|
54
|
-
* @readonly
|
|
55
|
-
* @type {number}
|
|
56
|
-
*/
|
|
57
|
-
public readonly deltaTicks: number;
|
|
58
|
-
/**
|
|
59
|
-
* Timer activity.
|
|
60
|
-
* @public
|
|
61
|
-
* @type {boolean}
|
|
62
|
-
*/
|
|
63
|
-
public active: boolean;
|
|
64
|
-
_intervalDelay: number;
|
|
65
|
-
_intervalStart: number;
|
|
66
|
-
_intervalCallback: any;
|
|
67
|
-
clearInterval(): void;
|
|
68
|
-
setInterval(delay: any, callback: any): void;
|
|
69
|
-
/**
|
|
70
|
-
* Sets current clock datetime.
|
|
71
|
-
* @public
|
|
72
|
-
* @param {Object} date - JavaScript Date object.
|
|
73
|
-
*/
|
|
74
|
-
public setDate(date: any): void;
|
|
75
|
-
/**
|
|
76
|
-
* Returns current application date.
|
|
77
|
-
* @public
|
|
78
|
-
* @returns {Date} - Current date.
|
|
79
|
-
*/
|
|
80
|
-
public getDate(): Date;
|
|
81
|
-
reset(): void;
|
|
82
|
-
_tick(dt: any): void;
|
|
83
|
-
/**
|
|
84
|
-
* @public
|
|
85
|
-
* @param {Clock} clock - Clock instance to compare.
|
|
86
|
-
* @returns {boolean} - Returns true if a clock is the same instance.
|
|
87
|
-
*/
|
|
88
|
-
public equal(clock: Clock): boolean;
|
|
89
|
-
}
|
|
90
|
-
import { Events } from "./Events.js";
|
package/types/Deferred.d.ts
DELETED
package/types/Events.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base events class to handle custom events.
|
|
3
|
-
* @class
|
|
4
|
-
* @param {Array.<string>} [eventNames] - Event names that could be dispatched.
|
|
5
|
-
*/
|
|
6
|
-
export class Events {
|
|
7
|
-
static set _staticCounter(arg: any);
|
|
8
|
-
static get _staticCounter(): any;
|
|
9
|
-
constructor(eventNames: any, sender: any);
|
|
10
|
-
/**
|
|
11
|
-
* Registered event names.
|
|
12
|
-
* @protected
|
|
13
|
-
* @type {Array.<string>}
|
|
14
|
-
*/
|
|
15
|
-
protected _eventNames: Array<string>;
|
|
16
|
-
_sender: any;
|
|
17
|
-
/**
|
|
18
|
-
* Stop propagation flag
|
|
19
|
-
* @protected
|
|
20
|
-
* @type {boolean}
|
|
21
|
-
*/
|
|
22
|
-
protected _stopPropagation: boolean;
|
|
23
|
-
_stampCache: {};
|
|
24
|
-
__id: number;
|
|
25
|
-
bindSender(sender: any): void;
|
|
26
|
-
/**
|
|
27
|
-
* Function that creates event object properties that would be dispatched.
|
|
28
|
-
* @public
|
|
29
|
-
* @param {Array.<string>} eventNames - Specified event names list.
|
|
30
|
-
*/
|
|
31
|
-
public registerNames(eventNames: Array<string>): void;
|
|
32
|
-
_getStamp(name: any, id: any, ogid: any): string;
|
|
33
|
-
/**
|
|
34
|
-
* Returns true if event callback has stamped.
|
|
35
|
-
* @protected
|
|
36
|
-
* @param {Object} name - Event identifier.
|
|
37
|
-
* @param {Object} obj - Event callback.
|
|
38
|
-
* @return {boolean} -
|
|
39
|
-
*/
|
|
40
|
-
protected _stamp(name: any, obj: any): boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Attach listener.
|
|
43
|
-
* @public
|
|
44
|
-
* @param {string} name - Event name to listen.
|
|
45
|
-
* @param {eventCallback} callback - Event callback function.
|
|
46
|
-
* @param {Object} sender - Event callback function owner.
|
|
47
|
-
*/
|
|
48
|
-
public on(name: string, callback: any, sender: any, priority?: number): void;
|
|
49
|
-
/**
|
|
50
|
-
* Stop listening event name with specified callback function.
|
|
51
|
-
* @public
|
|
52
|
-
* @param {string} name - Event name.
|
|
53
|
-
* @param {eventCallback} callback - Attached event callback.
|
|
54
|
-
*/
|
|
55
|
-
public off(name: string, callback: any): void;
|
|
56
|
-
/**
|
|
57
|
-
* Dispatch event.
|
|
58
|
-
* @public
|
|
59
|
-
* @param {Object} event - Event instance property that created by event name.
|
|
60
|
-
* @param {Object} [obj] - Event object.
|
|
61
|
-
*/
|
|
62
|
-
public dispatch(event: any, ...args: any[]): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Brakes events propagation.
|
|
65
|
-
* @public
|
|
66
|
-
*/
|
|
67
|
-
public stopPropagation(): void;
|
|
68
|
-
/**
|
|
69
|
-
* Removes all events.
|
|
70
|
-
* @public
|
|
71
|
-
*/
|
|
72
|
-
public clear(): void;
|
|
73
|
-
}
|
package/types/Extent.d.ts
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents geographical coordinates extent.
|
|
3
|
-
* @class
|
|
4
|
-
* @param {LonLat} [sw] - South West extent corner coordiantes.
|
|
5
|
-
* @param {LonLat} [ne] - North East extent corner coordiantes.
|
|
6
|
-
*/
|
|
7
|
-
export class Extent {
|
|
8
|
-
/**
|
|
9
|
-
* Whole mercator extent.
|
|
10
|
-
* @const
|
|
11
|
-
*/
|
|
12
|
-
static get FULL_MERC(): Extent;
|
|
13
|
-
/**
|
|
14
|
-
* Degrees extent from north mercator limit to north pole.
|
|
15
|
-
* @const
|
|
16
|
-
*/
|
|
17
|
-
static get NORTH_POLE_DEG(): Extent;
|
|
18
|
-
/**
|
|
19
|
-
* Degrees extent from south pole to south mercator limit.
|
|
20
|
-
* @const
|
|
21
|
-
*/
|
|
22
|
-
static get SOUTH_POLE_DEG(): Extent;
|
|
23
|
-
/**
|
|
24
|
-
* Creates extent instance from values in array.
|
|
25
|
-
* @static
|
|
26
|
-
* @param {Array.<number>} arr - South west and north east longitude and latidudes packed in array. (exactly 4 entries)
|
|
27
|
-
* @return {og.Extent} Extent object.
|
|
28
|
-
*/
|
|
29
|
-
static createFromArray(arr: Array<number>): any;
|
|
30
|
-
/**
|
|
31
|
-
* Creates bound extent instance by coordinate array.
|
|
32
|
-
* @static
|
|
33
|
-
* @param {Array.<LonLat>} arr - Coordinate array.
|
|
34
|
-
* @return {Extent} Extent object.
|
|
35
|
-
*/
|
|
36
|
-
static createByCoordinates(arr: Array<LonLat>): Extent;
|
|
37
|
-
/**
|
|
38
|
-
* Creates bound extent instance by coordinate array.
|
|
39
|
-
* @static
|
|
40
|
-
* @param {Array.<Array<number>>} arr - Coordinate array. (exactly 2 entries)
|
|
41
|
-
* @return {og.Extent} Extent object.
|
|
42
|
-
*/
|
|
43
|
-
static createByCoordinatesArr(arr: Array<Array<number>>): any;
|
|
44
|
-
/**
|
|
45
|
-
* Creates extent by meractor grid tile coordinates.
|
|
46
|
-
* @static
|
|
47
|
-
* @param {number} x -
|
|
48
|
-
* @param {number} y -
|
|
49
|
-
* @param {number} z -
|
|
50
|
-
* @param {number} width -
|
|
51
|
-
* @param {number} height -
|
|
52
|
-
* @returns {og.Extent} -
|
|
53
|
-
*/
|
|
54
|
-
static fromTile(x: number, y: number, z: number, width: number, height: number): any;
|
|
55
|
-
/**
|
|
56
|
-
* @param {LonLat} [sw] - South West extent corner coordiantes.
|
|
57
|
-
* @param {LonLat} [ne] - North East extent corner coordiantes.
|
|
58
|
-
*/
|
|
59
|
-
constructor(sw?: LonLat, ne?: LonLat);
|
|
60
|
-
/**
|
|
61
|
-
* @public
|
|
62
|
-
*/
|
|
63
|
-
public southWest: LonLat;
|
|
64
|
-
/**
|
|
65
|
-
* @public
|
|
66
|
-
*/
|
|
67
|
-
public northEast: LonLat;
|
|
68
|
-
/**
|
|
69
|
-
* Sets current bounding extent object by coordinate array.
|
|
70
|
-
* @public
|
|
71
|
-
* @param {Array.<LonLat>} arr - Coordinate array.
|
|
72
|
-
* @return {og.Extent} Current extent.
|
|
73
|
-
*/
|
|
74
|
-
public setByCoordinates(arr: Array<LonLat>): any;
|
|
75
|
-
/**
|
|
76
|
-
* Determines if point inside extent.
|
|
77
|
-
* @public
|
|
78
|
-
* @param {LonLat} lonlat - Coordinate point.
|
|
79
|
-
* @return {boolean} Returns true if point inside extent.
|
|
80
|
-
*/
|
|
81
|
-
public isInside(lonlat: LonLat): boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Returns true if two extent overlap each other.
|
|
84
|
-
* @public
|
|
85
|
-
* @param {Extent} e - Another extent.
|
|
86
|
-
* @return {boolean} -
|
|
87
|
-
*/
|
|
88
|
-
public overlaps(e: Extent): boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Gets extent width.
|
|
91
|
-
* @public
|
|
92
|
-
* @return {number} Extent width.
|
|
93
|
-
*/
|
|
94
|
-
public getWidth(): number;
|
|
95
|
-
/**
|
|
96
|
-
* Gets extent height.
|
|
97
|
-
* @public
|
|
98
|
-
* @return {number} Extent height.
|
|
99
|
-
*/
|
|
100
|
-
public getHeight(): number;
|
|
101
|
-
/**
|
|
102
|
-
* Creates clone instance of the current extent.
|
|
103
|
-
* @public
|
|
104
|
-
* @return {og.Extent} Extent clone.
|
|
105
|
-
*/
|
|
106
|
-
public clone(): any;
|
|
107
|
-
/**
|
|
108
|
-
* Gets the center coordinate of the extent.
|
|
109
|
-
* @public
|
|
110
|
-
* @return {number} Center coordinate.
|
|
111
|
-
*/
|
|
112
|
-
public getCenter(): number;
|
|
113
|
-
/**
|
|
114
|
-
* @public
|
|
115
|
-
*/
|
|
116
|
-
public getNorthWest(): LonLat;
|
|
117
|
-
/**
|
|
118
|
-
* @public
|
|
119
|
-
*/
|
|
120
|
-
public getNorthEast(): LonLat;
|
|
121
|
-
getSouthWest(): LonLat;
|
|
122
|
-
/**
|
|
123
|
-
* @public
|
|
124
|
-
*/
|
|
125
|
-
public getSouthEast(): LonLat;
|
|
126
|
-
/**
|
|
127
|
-
* @public
|
|
128
|
-
*/
|
|
129
|
-
public getNorth(): number;
|
|
130
|
-
getEast(): number;
|
|
131
|
-
/**
|
|
132
|
-
* @public
|
|
133
|
-
*/
|
|
134
|
-
public getWest(): number;
|
|
135
|
-
/**
|
|
136
|
-
* @public
|
|
137
|
-
*/
|
|
138
|
-
public getSouth(): number;
|
|
139
|
-
/**
|
|
140
|
-
* Returns extents are equals.
|
|
141
|
-
* @param {og.Extent} extent - Extent.
|
|
142
|
-
* @returns {boolean} -
|
|
143
|
-
*/
|
|
144
|
-
equals(extent: any): boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Converts extent coordinates to mercator projection coordinates.
|
|
147
|
-
* @public
|
|
148
|
-
* @return {og.Extent} New instance of the current extent.
|
|
149
|
-
*/
|
|
150
|
-
public forwardMercator(): any;
|
|
151
|
-
/**
|
|
152
|
-
* Converts extent coordinates from mercator projection to degrees.
|
|
153
|
-
* @public
|
|
154
|
-
* @return {og.Extent} New instance of the current extent.
|
|
155
|
-
*/
|
|
156
|
-
public inverseMercator(): any;
|
|
157
|
-
/**
|
|
158
|
-
* Gets cartesian bounding bounds of the current ellipsoid.
|
|
159
|
-
* @public
|
|
160
|
-
* @param {og.Ellipsoid} ellipsoid - Ellipsoid.
|
|
161
|
-
* @return {Array.<number>} Cartesian 3d coordinate array. (exactly 6 entries)
|
|
162
|
-
*/
|
|
163
|
-
public getCartesianBounds(ellipsoid: any): Array<number>;
|
|
164
|
-
toString(): string;
|
|
165
|
-
}
|
|
166
|
-
import { LonLat } from "./LonLat.js";
|
package/types/Globe.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a WebGL context with globe.
|
|
3
|
-
* @class
|
|
4
|
-
*
|
|
5
|
-
* @example <caption>Basic initialization</caption>
|
|
6
|
-
* globus = new og.Globe({
|
|
7
|
-
* 'atmosphere': false,
|
|
8
|
-
* 'target': 'globus',
|
|
9
|
-
* 'name': 'Earth',
|
|
10
|
-
* 'controls': [
|
|
11
|
-
* new og.control.MouseNavigation({ autoActivate: true }),
|
|
12
|
-
* new og.control.KeyboardNavigation({ autoActivate: true }),
|
|
13
|
-
* new og.control.EarthCoordinates({ autoActivate: true, center: false }),
|
|
14
|
-
* new og.control.LayerSwitcher({ autoActivate: true }),
|
|
15
|
-
* new og.control.ZoomControl({ autoActivate: true }),
|
|
16
|
-
* new og.control.TouchNavigation({ autoActivate: true }),
|
|
17
|
-
* new og.control.Sun({ autoActivate: true })
|
|
18
|
-
* ],
|
|
19
|
-
* 'terrain': new og.terrain.GlobusTerrain(),
|
|
20
|
-
* 'layers': [
|
|
21
|
-
* new og.layer.XYZ("OpenStreetMap", { isBaseLayer: true, url: "http://b.tile.openstreetmap.org/{z}/{x}/{y}.png", visibility: true, attribution: 'Data @ <a href="http://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="http://www.openstreetmap.org/copyright">ODbL</a>' })
|
|
22
|
-
* ],
|
|
23
|
-
* 'autoActivate': true
|
|
24
|
-
* });
|
|
25
|
-
*
|
|
26
|
-
* @param {object} options - Options:
|
|
27
|
-
* @param {string} options.target - HTML element id where planet canvas have to be created.
|
|
28
|
-
* @param {og.scene.RenderNode} [options.skybox] - Render skybox. null - default.
|
|
29
|
-
* @param {string} [options.name] - Planet name. Default is unic identifier.
|
|
30
|
-
* @param {og.terrain.Terrain} [options.terrain] - Terrain provider. Default no terrain - og.terrain.EmptyTerrain.
|
|
31
|
-
* @param {Array.<og.control.Control>} [options.controls] - Renderer controls array.
|
|
32
|
-
* @param {Array.<og.Layer>} [options.layers] - Planet layers.
|
|
33
|
-
* @param {og.Extent} [options.viewExtent] - Viewable starting extent.
|
|
34
|
-
* @param {boolean} [options.autoActivate] - Globe rendering auto activation flag. True is default.
|
|
35
|
-
* @param {DOMElement} [options.attributionContainer] - Container for attribution list.
|
|
36
|
-
* @param {Number} [options.maxGridSize] = Maximal segment grid size. 128 is default
|
|
37
|
-
* @param {boolean} [options.useSpecularTexture] - use specular water mask
|
|
38
|
-
* @param {boolean} [options.useNightTexture] - show night cities
|
|
39
|
-
*/
|
|
40
|
-
export class Globe {
|
|
41
|
-
static set _staticCounter(arg: any);
|
|
42
|
-
static get _staticCounter(): any;
|
|
43
|
-
constructor(options: any);
|
|
44
|
-
_canvas: HTMLCanvasElement;
|
|
45
|
-
div: any;
|
|
46
|
-
/**
|
|
47
|
-
* Interface for the renderer context(events, input states, renderer nodes etc.)
|
|
48
|
-
* @public
|
|
49
|
-
* @type {og.Renderer}
|
|
50
|
-
*/
|
|
51
|
-
public renderer: any;
|
|
52
|
-
/**
|
|
53
|
-
* Planet node name. Access with this.renderer.<name>
|
|
54
|
-
* @private
|
|
55
|
-
* @type {String}
|
|
56
|
-
*/
|
|
57
|
-
private _planetName;
|
|
58
|
-
planet: Planet;
|
|
59
|
-
sun: any;
|
|
60
|
-
_opacityCounter: number;
|
|
61
|
-
_fadeHandler: any;
|
|
62
|
-
_stopHandler: any;
|
|
63
|
-
/**
|
|
64
|
-
* Starts screen brightness fading in effect by the duration time.
|
|
65
|
-
* @public
|
|
66
|
-
*/
|
|
67
|
-
public fadeIn(): void;
|
|
68
|
-
/**
|
|
69
|
-
* Starts screen brightness fading out effect by the duration time.
|
|
70
|
-
* @public
|
|
71
|
-
* @param {number} duration - Fadeout duration time.
|
|
72
|
-
*/
|
|
73
|
-
public fadeOut(): void;
|
|
74
|
-
}
|
|
75
|
-
import { Planet } from "./scene/Planet.js";
|
package/types/ImageCanvas.d.ts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Usefull class for working with JS canvas object.
|
|
3
|
-
* @class
|
|
4
|
-
* @param {number} [width] - Canvas width. Default 256.
|
|
5
|
-
* @param {number} [height] - Canvas height. Default 256.
|
|
6
|
-
*/
|
|
7
|
-
export class ImageCanvas {
|
|
8
|
-
constructor(width: any, height: any);
|
|
9
|
-
/**
|
|
10
|
-
* Canvas object.
|
|
11
|
-
* @protected
|
|
12
|
-
* @type {Object}
|
|
13
|
-
*/
|
|
14
|
-
protected _canvas: any;
|
|
15
|
-
/**
|
|
16
|
-
* Canvas context.
|
|
17
|
-
* @protected
|
|
18
|
-
* @type {Object}
|
|
19
|
-
*/
|
|
20
|
-
protected _context: any;
|
|
21
|
-
/**
|
|
22
|
-
* Returns canvas object.
|
|
23
|
-
* @public
|
|
24
|
-
* @returns {Object}
|
|
25
|
-
*/
|
|
26
|
-
public getCanvas(): any;
|
|
27
|
-
/**
|
|
28
|
-
* Returns canvas context pointer.
|
|
29
|
-
* @public
|
|
30
|
-
* @returns {Object}
|
|
31
|
-
*/
|
|
32
|
-
public getContext(): any;
|
|
33
|
-
/**
|
|
34
|
-
* Fills canvas RGBA with zeroes.
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
public fillEmpty(): void;
|
|
38
|
-
/**
|
|
39
|
-
* Gets canvas pixels RGBA data.
|
|
40
|
-
* @public
|
|
41
|
-
* @returns {Array.<number>}
|
|
42
|
-
*/
|
|
43
|
-
public getData(): Array<number>;
|
|
44
|
-
/**
|
|
45
|
-
* Fill the canvas by color.
|
|
46
|
-
* @public
|
|
47
|
-
* @param {string} color - CSS string color.
|
|
48
|
-
*/
|
|
49
|
-
public fillColor(color: string): void;
|
|
50
|
-
/**
|
|
51
|
-
* Sets RGBA pixel data.
|
|
52
|
-
* @public
|
|
53
|
-
* @param {Array.<number>} data - Array RGBA data.
|
|
54
|
-
*/
|
|
55
|
-
public setData(data: Array<number>): void;
|
|
56
|
-
/**
|
|
57
|
-
* Resize canvas.
|
|
58
|
-
* @public
|
|
59
|
-
* @param {number} width - Width.
|
|
60
|
-
* @param {number} height - Height.
|
|
61
|
-
*/
|
|
62
|
-
public resize(width: number, height: number): void;
|
|
63
|
-
/**
|
|
64
|
-
* Draw an image on the canvas.
|
|
65
|
-
* @public
|
|
66
|
-
* @param {Image} img - Draw image.
|
|
67
|
-
* @param {number} [x] - Left top image corner X coordinate on the canvas.
|
|
68
|
-
* @param {number} [y] - Left top image corner Y coordinate on the canvas.
|
|
69
|
-
* @param {number} [width] - Image width slice. Image width is default.
|
|
70
|
-
* @param {number} [height] - Image height slice. Image height is default.
|
|
71
|
-
*/
|
|
72
|
-
public drawImage(img: new (width?: number, height?: number) => HTMLImageElement, x?: number, y?: number, width?: number, height?: number): void;
|
|
73
|
-
/**
|
|
74
|
-
* Converts canvas to JS image object.
|
|
75
|
-
* @public
|
|
76
|
-
* @returns {Image}
|
|
77
|
-
*/
|
|
78
|
-
public getImage(): new (width?: number, height?: number) => HTMLImageElement;
|
|
79
|
-
/**
|
|
80
|
-
* Get measured text width.
|
|
81
|
-
* @public
|
|
82
|
-
* @param {string} text - Measured text.
|
|
83
|
-
* @returns {number}
|
|
84
|
-
*/
|
|
85
|
-
public getTextWidth(text: string): number;
|
|
86
|
-
/**
|
|
87
|
-
* Draw a text on the canvas.
|
|
88
|
-
* @public
|
|
89
|
-
* @param {string} text - Text.
|
|
90
|
-
* @param {number} [x] - Canvas X - coordinate. 0 - default.
|
|
91
|
-
* @param {number} [y] - Canvas Y - coordinate. 0 - default.
|
|
92
|
-
* @param {string} [font] - Font style. 'normal 14px Verdana' - is default.
|
|
93
|
-
* @param {string} [color] - Css font color.
|
|
94
|
-
*/
|
|
95
|
-
public drawText(text: string, x?: number, y?: number, font?: string, color?: string): void;
|
|
96
|
-
/**
|
|
97
|
-
* Gets canvas width.
|
|
98
|
-
* @public
|
|
99
|
-
* @returns {number}
|
|
100
|
-
*/
|
|
101
|
-
public getWidth(): number;
|
|
102
|
-
/**
|
|
103
|
-
* Gets canvas height.
|
|
104
|
-
* @public
|
|
105
|
-
* @returns {number}
|
|
106
|
-
*/
|
|
107
|
-
public getHeight(): number;
|
|
108
|
-
/**
|
|
109
|
-
* Load image to canvas.
|
|
110
|
-
* @public
|
|
111
|
-
* @param {string} url - Image url.
|
|
112
|
-
* @pararm {imageCallback} [callback] - Image onload callback.
|
|
113
|
-
*/
|
|
114
|
-
public load(url: string, callback: any): void;
|
|
115
|
-
/**
|
|
116
|
-
* Open canvas image in the new window.
|
|
117
|
-
* @public
|
|
118
|
-
*/
|
|
119
|
-
public openImage(): void;
|
|
120
|
-
destroy(): void;
|
|
121
|
-
}
|
package/types/Lock.d.ts
DELETED
package/types/LonLat.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a geographical point with a certain latitude, longitude and height.
|
|
3
|
-
* @class
|
|
4
|
-
* @param {number} [lon] - Longitude.
|
|
5
|
-
* @param {number} [lat] - Latitude.
|
|
6
|
-
* @param {number} [height] - Height over the surface.
|
|
7
|
-
*/
|
|
8
|
-
export class LonLat {
|
|
9
|
-
/**
|
|
10
|
-
* Creates coordinates array.
|
|
11
|
-
* @static
|
|
12
|
-
* @param{Array.<Array<number>>} arr - Coordinates array data. (exactly 3 entries)
|
|
13
|
-
* @return{Array.<LonLat>} the same coordinates array but each element is LonLat instance.
|
|
14
|
-
*/
|
|
15
|
-
static join(arr: Array<Array<number>>): Array<LonLat>;
|
|
16
|
-
/**
|
|
17
|
-
* Creates an object by coordinate array.
|
|
18
|
-
* @static
|
|
19
|
-
* @param {Array.<number>} arr - Coordiante array, where first is longitude, second is latitude and third is a height. (exactly 3 entries)
|
|
20
|
-
* @returns {LonLat} -
|
|
21
|
-
*/
|
|
22
|
-
static createFromArray(arr: Array<number>): LonLat;
|
|
23
|
-
/**
|
|
24
|
-
* Converts degrees to mercator coordinates.
|
|
25
|
-
* @static
|
|
26
|
-
* @param {number} lon - Degrees longitude.
|
|
27
|
-
* @param {number} lat - Degrees latitude.
|
|
28
|
-
* @param {number} [height] - Height.
|
|
29
|
-
* @returns {LonLat} -
|
|
30
|
-
*/
|
|
31
|
-
static forwardMercator(lon: number, lat: number, height?: number): LonLat;
|
|
32
|
-
/**
|
|
33
|
-
* Converts mercator to degrees coordinates.
|
|
34
|
-
* @static
|
|
35
|
-
* @param {number} x - Mercator longitude.
|
|
36
|
-
* @param {number} y - Mercator latitude.
|
|
37
|
-
* @param {number} [height] - Height.
|
|
38
|
-
* @returns {LonLat} -
|
|
39
|
-
*/
|
|
40
|
-
static inverseMercator(x: number, y: number, height?: number): LonLat;
|
|
41
|
-
/**
|
|
42
|
-
* @param {number} [lon]
|
|
43
|
-
* @param {number} [lat]
|
|
44
|
-
* @param {number} [height]
|
|
45
|
-
*/
|
|
46
|
-
constructor(lon?: number, lat?: number, height?: number);
|
|
47
|
-
/**
|
|
48
|
-
* Longitude.
|
|
49
|
-
* @public
|
|
50
|
-
* @type {number}
|
|
51
|
-
*/
|
|
52
|
-
public lon: number;
|
|
53
|
-
/**
|
|
54
|
-
* Latitude.
|
|
55
|
-
* @public
|
|
56
|
-
* @type {number}
|
|
57
|
-
*/
|
|
58
|
-
public lat: number;
|
|
59
|
-
/**
|
|
60
|
-
* Height.
|
|
61
|
-
* @public
|
|
62
|
-
* @type {number}
|
|
63
|
-
*/
|
|
64
|
-
public height: number;
|
|
65
|
-
isZero(): boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Sets coordinates.
|
|
68
|
-
* @public
|
|
69
|
-
* @param {number} [lon] - Longitude.
|
|
70
|
-
* @param {number} [lat] - Latitude.
|
|
71
|
-
* @param {number} [height] - Height.
|
|
72
|
-
* @returns {LonLat} -
|
|
73
|
-
*/
|
|
74
|
-
public set(lon?: number, lat?: number, height?: number): LonLat;
|
|
75
|
-
/**
|
|
76
|
-
* Copy coordinates.
|
|
77
|
-
* @public
|
|
78
|
-
* @param {LonLat} [lonLat] - Coordinates to copy.
|
|
79
|
-
* @returns {LonLat} -
|
|
80
|
-
*/
|
|
81
|
-
public copy(lonLat?: LonLat): LonLat;
|
|
82
|
-
/**
|
|
83
|
-
* Clone the coordiante.
|
|
84
|
-
* @public
|
|
85
|
-
* @returns {LonLat} -
|
|
86
|
-
*/
|
|
87
|
-
public clone(): LonLat;
|
|
88
|
-
/**
|
|
89
|
-
* Converts to mercator coordinates.
|
|
90
|
-
* @public
|
|
91
|
-
* @returns {LonLat} -
|
|
92
|
-
*/
|
|
93
|
-
public forwardMercator(): LonLat;
|
|
94
|
-
forwardMercatorEPS01(): LonLat;
|
|
95
|
-
/**
|
|
96
|
-
* Converts from mercator coordinates.
|
|
97
|
-
* @public
|
|
98
|
-
* @returns {LonLat} -
|
|
99
|
-
*/
|
|
100
|
-
public inverseMercator(): LonLat;
|
|
101
|
-
/**
|
|
102
|
-
* Compares coordinates.
|
|
103
|
-
* @public
|
|
104
|
-
* @param {LonLat} b - Coordinate to compare with.
|
|
105
|
-
* @returns {boolean} -
|
|
106
|
-
*/
|
|
107
|
-
public equal(b: LonLat): boolean;
|
|
108
|
-
}
|
package/types/Popup.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export class Popup {
|
|
2
|
-
static set _staticCounter(arg: any);
|
|
3
|
-
static get _staticCounter(): any;
|
|
4
|
-
constructor(options: any);
|
|
5
|
-
_id: number;
|
|
6
|
-
events: Events;
|
|
7
|
-
_template: string;
|
|
8
|
-
el: ChildNode;
|
|
9
|
-
_title: any;
|
|
10
|
-
_content: any;
|
|
11
|
-
_contentEl: any;
|
|
12
|
-
_titleEl: any;
|
|
13
|
-
_planet: any;
|
|
14
|
-
_offset: any;
|
|
15
|
-
_lonLat: any;
|
|
16
|
-
_cartPos: Vec3;
|
|
17
|
-
_visibility: any;
|
|
18
|
-
_renderTemplate(): ChildNode;
|
|
19
|
-
_updatePosition(): void;
|
|
20
|
-
setScreen(p: any): void;
|
|
21
|
-
get clientWidth(): any;
|
|
22
|
-
get clientHeight(): any;
|
|
23
|
-
setOffset(x?: number, y?: number): Popup;
|
|
24
|
-
render(params: any): Popup;
|
|
25
|
-
_tipEl: any;
|
|
26
|
-
setVisibility(visibility: any): Popup;
|
|
27
|
-
getContainer(): any;
|
|
28
|
-
getToolbarContainer(): any;
|
|
29
|
-
show(): Popup;
|
|
30
|
-
hide(): Popup;
|
|
31
|
-
setCartesian3v(cart: any, height?: number): Popup;
|
|
32
|
-
setTitle(html: any): Popup;
|
|
33
|
-
setLonLat(lonLat: any): Popup;
|
|
34
|
-
setContent(content: any): Popup;
|
|
35
|
-
clear(): void;
|
|
36
|
-
}
|
|
37
|
-
import { Events } from "./Events.js";
|
|
38
|
-
import { Vec3 } from "./math/Vec3.js";
|