@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/QueueArray.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export class QueueArray {
|
|
2
|
-
constructor(size: any);
|
|
3
|
-
_size: any;
|
|
4
|
-
_array: any[];
|
|
5
|
-
_popIndex: number;
|
|
6
|
-
_shiftIndex: number;
|
|
7
|
-
length: number;
|
|
8
|
-
reset(): void;
|
|
9
|
-
clear(): void;
|
|
10
|
-
push(data: any): void;
|
|
11
|
-
pop(): any;
|
|
12
|
-
unshift(data: any): void;
|
|
13
|
-
shift(): any;
|
|
14
|
-
each(callback: any): void;
|
|
15
|
-
}
|
package/types/Rectangle.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 2D Rectangle class.
|
|
3
|
-
* @class
|
|
4
|
-
* @param {number} [left] - Left coordinate. 0 - default.
|
|
5
|
-
* @param {number} [top] - Top coordinate. 0 - default.
|
|
6
|
-
* @param {number} [right] - Right coordinate. 0 - default.
|
|
7
|
-
* @param {number} [bottom] - Bottom coordinate. 0 - default.
|
|
8
|
-
*/
|
|
9
|
-
export class Rectangle {
|
|
10
|
-
constructor(left: any, top: any, right: any, bottom: any);
|
|
11
|
-
/**
|
|
12
|
-
* Left coordinate.
|
|
13
|
-
* @public
|
|
14
|
-
* @type {number}
|
|
15
|
-
*/
|
|
16
|
-
public left: number;
|
|
17
|
-
/**
|
|
18
|
-
* Right coordinate.
|
|
19
|
-
* @public
|
|
20
|
-
* @type {number}
|
|
21
|
-
*/
|
|
22
|
-
public right: number;
|
|
23
|
-
/**
|
|
24
|
-
* Top coordinate.
|
|
25
|
-
* @public
|
|
26
|
-
* @type {number}
|
|
27
|
-
*/
|
|
28
|
-
public top: number;
|
|
29
|
-
/**
|
|
30
|
-
* Top coordinate.
|
|
31
|
-
* @public
|
|
32
|
-
* @type {number}
|
|
33
|
-
*/
|
|
34
|
-
public bottom: number;
|
|
35
|
-
/**
|
|
36
|
-
* Clone rectangle object.
|
|
37
|
-
* @public
|
|
38
|
-
* @returns {og.Rectangle}
|
|
39
|
-
*/
|
|
40
|
-
public clone(): any;
|
|
41
|
-
/**
|
|
42
|
-
* Returns rectangle width.
|
|
43
|
-
* @public
|
|
44
|
-
* @type {number}
|
|
45
|
-
*/
|
|
46
|
-
public getWidth(): number;
|
|
47
|
-
/**
|
|
48
|
-
* Returns rectangle height.
|
|
49
|
-
* @public
|
|
50
|
-
* @type {number}
|
|
51
|
-
*/
|
|
52
|
-
public getHeight(): number;
|
|
53
|
-
/**
|
|
54
|
-
* Returns rectangle area.
|
|
55
|
-
* @public
|
|
56
|
-
* @type {number}
|
|
57
|
-
*/
|
|
58
|
-
public getSquare(): number;
|
|
59
|
-
/**
|
|
60
|
-
* Returns rectangle diagonal size.
|
|
61
|
-
* @public
|
|
62
|
-
* @type {number}
|
|
63
|
-
*/
|
|
64
|
-
public getDiagonal(): number;
|
|
65
|
-
/**
|
|
66
|
-
* Returns true if rectangle fits their size in width and height.
|
|
67
|
-
* @public
|
|
68
|
-
* @param {number} width - Width.
|
|
69
|
-
* @param {number} height - Height.
|
|
70
|
-
* @type {boolean}
|
|
71
|
-
*/
|
|
72
|
-
public fit(width: number, height: number): boolean;
|
|
73
|
-
isInside(x: any, y: any): boolean;
|
|
74
|
-
}
|
package/types/Stack.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export class Stack {
|
|
2
|
-
constructor(size?: number);
|
|
3
|
-
_current: Node;
|
|
4
|
-
_head: Node;
|
|
5
|
-
current(): Node;
|
|
6
|
-
push(data: any): void;
|
|
7
|
-
pop(data: any): any;
|
|
8
|
-
popPrev(data: any): any;
|
|
9
|
-
}
|
|
10
|
-
declare class Node {
|
|
11
|
-
next: any;
|
|
12
|
-
prev: any;
|
|
13
|
-
data: any;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
package/types/ajax.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export namespace ajax {
|
|
2
|
-
/**
|
|
3
|
-
* Send an ajax request.
|
|
4
|
-
* @function
|
|
5
|
-
* @param {string} url - Url path.
|
|
6
|
-
* @param {Object} [params] - Ajax parameters:
|
|
7
|
-
* @param {ajax.Method|string} [params.type] - 'POST' or 'GET' ajax method. 'GET' is default.
|
|
8
|
-
* @param {boolean} [params.async] - Asynchronous ajax flag. True is default.
|
|
9
|
-
* @param {Object} [params.data] - Qery data.
|
|
10
|
-
* @param {Object} [params.sender] - Sender object, that success callback binded with. ActiveXObject is default.
|
|
11
|
-
* @param {string} [params.responseType] - Responce data type. Culd be 'text', 'json', 'jsonp', 'html'. 'text' is default.
|
|
12
|
-
* @param {ajax.Xhr~successCallback} [params.success] - The callback that handles the success response.
|
|
13
|
-
* @param {ajax.Xhr~errorCallback} [params.error] - The callback that handles the failed response.
|
|
14
|
-
* @param {ajax.Xhr~abortCallback} [params.abort] - The callback that handles aborted requests.
|
|
15
|
-
* @returns {ajax.Xhr} - Returns object that could be aborted.
|
|
16
|
-
*/
|
|
17
|
-
function request(url: string, params?: {
|
|
18
|
-
type?: any;
|
|
19
|
-
async?: boolean;
|
|
20
|
-
data?: any;
|
|
21
|
-
sender?: any;
|
|
22
|
-
responseType?: string;
|
|
23
|
-
}): any;
|
|
24
|
-
}
|
package/types/arial.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export namespace data {
|
|
2
|
-
const pages: string[];
|
|
3
|
-
const chars: {
|
|
4
|
-
id: number;
|
|
5
|
-
index: number;
|
|
6
|
-
char: string;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
xoffset: number;
|
|
10
|
-
yoffset: number;
|
|
11
|
-
xadvance: number;
|
|
12
|
-
chnl: number;
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
page: number;
|
|
16
|
-
}[];
|
|
17
|
-
namespace info {
|
|
18
|
-
const face: string;
|
|
19
|
-
const size: number;
|
|
20
|
-
const bold: number;
|
|
21
|
-
const italic: number;
|
|
22
|
-
const charset: string[];
|
|
23
|
-
const unicode: number;
|
|
24
|
-
const stretchH: number;
|
|
25
|
-
const smooth: number;
|
|
26
|
-
const aa: number;
|
|
27
|
-
const padding: number[];
|
|
28
|
-
const spacing: number[];
|
|
29
|
-
}
|
|
30
|
-
namespace common {
|
|
31
|
-
export const lineHeight: number;
|
|
32
|
-
export const base: number;
|
|
33
|
-
export const scaleW: number;
|
|
34
|
-
export const scaleH: number;
|
|
35
|
-
const pages_1: number;
|
|
36
|
-
export { pages_1 as pages };
|
|
37
|
-
export const packed: number;
|
|
38
|
-
export const alphaChnl: number;
|
|
39
|
-
export const redChnl: number;
|
|
40
|
-
export const greenChnl: number;
|
|
41
|
-
export const blueChnl: number;
|
|
42
|
-
}
|
|
43
|
-
namespace distanceField {
|
|
44
|
-
const fieldType: string;
|
|
45
|
-
const distanceRange: number;
|
|
46
|
-
}
|
|
47
|
-
const kernings: any[];
|
|
48
|
-
}
|
package/types/astro/astro.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts atomic time to barycentric dynamical time.
|
|
3
|
-
* @param {Number} tai - Atomic time.
|
|
4
|
-
* @returns {Number} - returns barycentric dynamical time.
|
|
5
|
-
*/
|
|
6
|
-
export function TAItoTDB(tai: number): number;
|
|
7
|
-
/**
|
|
8
|
-
* Angle between J2000 mean equator and the ecliptic plane.
|
|
9
|
-
* 23 deg 26' 21".448 (Seidelmann, _Explanatory Supplement to the
|
|
10
|
-
* Astronomical Almanac_ (1992), eqn 3.222-1.
|
|
11
|
-
* @const
|
|
12
|
-
* @type{Number}
|
|
13
|
-
*/
|
|
14
|
-
export const J2000_OBLIQUITY: number;
|
|
15
|
-
/**
|
|
16
|
-
* IAU 1976 value
|
|
17
|
-
* @const
|
|
18
|
-
* @type{Number}
|
|
19
|
-
*/
|
|
20
|
-
export const AU_TO_METERS: number;
|
|
21
|
-
/**
|
|
22
|
-
* Terestrial and atomic time difference.
|
|
23
|
-
* @const
|
|
24
|
-
* @type{Number}
|
|
25
|
-
*/
|
|
26
|
-
export const TDT_TAI: number;
|
|
27
|
-
/**
|
|
28
|
-
* Earth gravitational parameter product of gravitational constant G and the mass M of the Earth.
|
|
29
|
-
* @const
|
|
30
|
-
* @type{Number}
|
|
31
|
-
*/
|
|
32
|
-
export const EARTH_GRAVITATIONAL_PARAMETER: number;
|
|
33
|
-
/**
|
|
34
|
-
* Sun gravitational parameter product of gravitational constant G and the mass M of the Sun.
|
|
35
|
-
* @const
|
|
36
|
-
* @type{Number}
|
|
37
|
-
*/
|
|
38
|
-
export const SUN_GRAVITATIONAL_PARAMETER: number;
|
package/types/astro/earth.d.ts
DELETED
package/types/astro/jd.d.ts
DELETED
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns julian days from Epoch.
|
|
3
|
-
* @param {number} jd - Julian date.
|
|
4
|
-
* @returns {number} Days from epoch
|
|
5
|
-
*/
|
|
6
|
-
export function T(jd: number): number;
|
|
7
|
-
/**
|
|
8
|
-
* Gets the date's julian day.
|
|
9
|
-
* @param {number} year - Year.
|
|
10
|
-
* @param {number} month - Month.
|
|
11
|
-
* @param {number} day - Day.
|
|
12
|
-
* @returns {Number} Day number
|
|
13
|
-
*/
|
|
14
|
-
export function getDayNumber(year: number, month: number, day: number): number;
|
|
15
|
-
/**
|
|
16
|
-
* Converts javascript date to the universal(UTC) julian date.
|
|
17
|
-
* @param {Date} date - Date.
|
|
18
|
-
* @returns {number} UTC julian date
|
|
19
|
-
*/
|
|
20
|
-
export function DateToUTC(date: Date): number;
|
|
21
|
-
/**
|
|
22
|
-
* Converts javascript date to the atomic(TAI) julian date.
|
|
23
|
-
* @param {Date} date - Date.
|
|
24
|
-
* @returns {number} TAI julian date
|
|
25
|
-
*/
|
|
26
|
-
export function DateToTAI(date: Date): number;
|
|
27
|
-
/**
|
|
28
|
-
* Converts coordinated universal(UTC) julian date to atomic(TAI) julian date.
|
|
29
|
-
* @param {number} jd - UTC julian date.
|
|
30
|
-
* @returns {number} TAI julian date
|
|
31
|
-
*/
|
|
32
|
-
export function UTCtoTAI(jd: number): number;
|
|
33
|
-
/**
|
|
34
|
-
* Converts atomic julian date(TAI) to the coordinated universal(UTC) julian date.
|
|
35
|
-
* @param {number} tai - TAI julian date.
|
|
36
|
-
* @returns {number} UTC julian date
|
|
37
|
-
*/
|
|
38
|
-
export function TAItoUTC(tai: number): number;
|
|
39
|
-
/**
|
|
40
|
-
* Converts UTC julian date to the javascript date object.
|
|
41
|
-
* @param {number} utc - UTC julian date.
|
|
42
|
-
* @returns {Date} JavaScript Date object
|
|
43
|
-
*/
|
|
44
|
-
export function UTCtoDate(utc: number): Date;
|
|
45
|
-
/**
|
|
46
|
-
* Converts TAI julian date to the javascript date object.
|
|
47
|
-
* @param {number} tai - TAI julian date.
|
|
48
|
-
* @returns {Date} JavaScript Date object
|
|
49
|
-
*/
|
|
50
|
-
export function TAItoDate(tai: number): Date;
|
|
51
|
-
/**
|
|
52
|
-
* Adds milliseconds to the julian date.
|
|
53
|
-
* @param {number} jd - Julian date.
|
|
54
|
-
* @param {number} milliseconds - Milliseconds to add.
|
|
55
|
-
* @returns {number} Julian date
|
|
56
|
-
*/
|
|
57
|
-
export function addMilliseconds(jd: number, milliseconds: number): number;
|
|
58
|
-
/**
|
|
59
|
-
* Adds seconds to the julian date.
|
|
60
|
-
* @param {number} jd - Julian date.
|
|
61
|
-
* @param {number} seconds - Seconds to add.
|
|
62
|
-
* @returns {number} Julian date
|
|
63
|
-
*/
|
|
64
|
-
export function addSeconds(jd: number, seconds: number): number;
|
|
65
|
-
/**
|
|
66
|
-
* Adds hours to the julian date.
|
|
67
|
-
* @param {number} jd - Julian date.
|
|
68
|
-
* @param {number} hours - Hours to add.
|
|
69
|
-
* @returns {number} Julian date
|
|
70
|
-
*/
|
|
71
|
-
export function addHours(jd: number, hours: number): number;
|
|
72
|
-
/**
|
|
73
|
-
* Adds minutes to the julian date.
|
|
74
|
-
* @param {number} jd - Julian date.
|
|
75
|
-
* @param {number} minutes - Minutes to add.
|
|
76
|
-
* @returns {number} Julian date
|
|
77
|
-
*/
|
|
78
|
-
export function addMinutes(jd: number, minutes: number): number;
|
|
79
|
-
/**
|
|
80
|
-
* Adds days to the julian date.
|
|
81
|
-
* @param {number} jd - Julian date.
|
|
82
|
-
* @param {number} days - Days to add.
|
|
83
|
-
* @returns {number} Julian date
|
|
84
|
-
*/
|
|
85
|
-
export function addDays(jd: number, days: number): number;
|
|
86
|
-
/**
|
|
87
|
-
* Gets milliseconds of a julian date.
|
|
88
|
-
* @param {number} js - julian date.
|
|
89
|
-
* @returns {number} Milliseconds
|
|
90
|
-
*/
|
|
91
|
-
export function getMilliseconds(jd: any): number;
|
|
92
|
-
/**
|
|
93
|
-
* Gets seconds of a julian date.
|
|
94
|
-
* @param {number} js - julian date.
|
|
95
|
-
* @returns {number} Seconds
|
|
96
|
-
*/
|
|
97
|
-
export function getSeconds(jd: any): number;
|
|
98
|
-
/**
|
|
99
|
-
* Gets hours of a julian date.
|
|
100
|
-
* @param {number} js - julian date.
|
|
101
|
-
* @returns {number} Hours
|
|
102
|
-
*/
|
|
103
|
-
export function getHours(jd: any): number;
|
|
104
|
-
/**
|
|
105
|
-
* Gets minutes of a julian date.
|
|
106
|
-
* @param {number} js - julian date.
|
|
107
|
-
* @returns {number} Minutes
|
|
108
|
-
*/
|
|
109
|
-
export function getMinutes(jd: any): number;
|
|
110
|
-
/**
|
|
111
|
-
* Gets days of a julian date.
|
|
112
|
-
* @param {number} js - julian date.
|
|
113
|
-
* @returns {number} Days
|
|
114
|
-
*/
|
|
115
|
-
export function getDays(jd: any): number;
|
|
116
|
-
/**
|
|
117
|
-
* Returns days in seconds.
|
|
118
|
-
* @param {number} s - Seconds.
|
|
119
|
-
* @returns {number} Days
|
|
120
|
-
*/
|
|
121
|
-
export function secondsToDays(s: number): number;
|
|
122
|
-
/**
|
|
123
|
-
* Returns seconds in days.
|
|
124
|
-
* @param {number} d - Days.
|
|
125
|
-
* @returns {number} Seconds
|
|
126
|
-
*/
|
|
127
|
-
export function daysToSeconds(d: number): number;
|
|
128
|
-
/**
|
|
129
|
-
* Seconds in millisecond.
|
|
130
|
-
* @const
|
|
131
|
-
* @default
|
|
132
|
-
*/
|
|
133
|
-
export const SECONDS_PER_MILLISECOND: 0.001;
|
|
134
|
-
/**
|
|
135
|
-
* Milliseconds in second.
|
|
136
|
-
* @const
|
|
137
|
-
* @default
|
|
138
|
-
*/
|
|
139
|
-
export const MILLISECONDS_PER_SECOND: 1000;
|
|
140
|
-
/**
|
|
141
|
-
* Seconds in minute.
|
|
142
|
-
* @const
|
|
143
|
-
* @default
|
|
144
|
-
*/
|
|
145
|
-
export const SECONDS_PER_MINUTE: 60;
|
|
146
|
-
/**
|
|
147
|
-
* One by seconds in minute.
|
|
148
|
-
* @const
|
|
149
|
-
* @default
|
|
150
|
-
*/
|
|
151
|
-
export const ONE_BY_SECONDS_PER_MINUTE: number;
|
|
152
|
-
/**
|
|
153
|
-
* Minutes in hour.
|
|
154
|
-
* @const
|
|
155
|
-
* @default
|
|
156
|
-
*/
|
|
157
|
-
export const MINUTES_PER_HOUR: 60;
|
|
158
|
-
/**
|
|
159
|
-
* Hours in day.
|
|
160
|
-
* @const
|
|
161
|
-
* @default
|
|
162
|
-
*/
|
|
163
|
-
export const HOURS_PER_DAY: 24;
|
|
164
|
-
/**
|
|
165
|
-
* One by hours in day.
|
|
166
|
-
* @const
|
|
167
|
-
* @default
|
|
168
|
-
*/
|
|
169
|
-
export const ONE_BY_HOURS_PER_DAY: number;
|
|
170
|
-
/**
|
|
171
|
-
* Seconds in hour.
|
|
172
|
-
* @const
|
|
173
|
-
* @default
|
|
174
|
-
*/
|
|
175
|
-
export const SECONDS_PER_HOUR: 3600;
|
|
176
|
-
/**
|
|
177
|
-
* One by seconds in hour.
|
|
178
|
-
* @const
|
|
179
|
-
* @default
|
|
180
|
-
*/
|
|
181
|
-
export const ONE_BY_SECONDS_PER_HOUR: number;
|
|
182
|
-
/**
|
|
183
|
-
* Seconds in 12 hours.
|
|
184
|
-
* @const
|
|
185
|
-
* @default
|
|
186
|
-
*/
|
|
187
|
-
export const SECONDS_PER_12_HOURS: number;
|
|
188
|
-
/**
|
|
189
|
-
* Minutes in day.
|
|
190
|
-
* @const
|
|
191
|
-
* @default
|
|
192
|
-
*/
|
|
193
|
-
export const MINUTES_PER_DAY: 1440;
|
|
194
|
-
/**
|
|
195
|
-
* One by minutes in day.
|
|
196
|
-
* @const
|
|
197
|
-
* @default
|
|
198
|
-
*/
|
|
199
|
-
export const ONE_BY_MINUTES_PER_DAY: number;
|
|
200
|
-
/**
|
|
201
|
-
* Seconds in day.
|
|
202
|
-
* @const
|
|
203
|
-
* @default
|
|
204
|
-
*/
|
|
205
|
-
export const SECONDS_PER_DAY: 86400;
|
|
206
|
-
/**
|
|
207
|
-
* Milliseconds in day.
|
|
208
|
-
* @const
|
|
209
|
-
* @default
|
|
210
|
-
*/
|
|
211
|
-
export const MILLISECONDS_PER_DAY: 86400000;
|
|
212
|
-
/**
|
|
213
|
-
* One by milliseconds in day.
|
|
214
|
-
* @const
|
|
215
|
-
* @default
|
|
216
|
-
*/
|
|
217
|
-
export const ONE_BY_MILLISECONDS_PER_DAY: number;
|
|
218
|
-
/**
|
|
219
|
-
* One by seconds in day.
|
|
220
|
-
* @const
|
|
221
|
-
* @default
|
|
222
|
-
*/
|
|
223
|
-
export const ONE_BY_SECONDS_PER_DAY: number;
|
|
224
|
-
/**
|
|
225
|
-
* Days in julian century.
|
|
226
|
-
* @const
|
|
227
|
-
* @default
|
|
228
|
-
*/
|
|
229
|
-
export const DAYS_PER_JULIAN_CENTURY: 36525;
|
|
230
|
-
/**
|
|
231
|
-
* Days in julian year.
|
|
232
|
-
* @const
|
|
233
|
-
* @default
|
|
234
|
-
*/
|
|
235
|
-
export const DAYS_PER_JULIAN_YEAR: 365.25;
|
|
236
|
-
/**
|
|
237
|
-
* Seconds in picosecond.
|
|
238
|
-
* @const
|
|
239
|
-
* @default
|
|
240
|
-
*/
|
|
241
|
-
export const PICOSECOND: 1e-9;
|
|
242
|
-
/**
|
|
243
|
-
* Modified julian date difference.
|
|
244
|
-
* @const
|
|
245
|
-
* @default
|
|
246
|
-
*/
|
|
247
|
-
export const MODIFIED_JULIAN_DATE_DIFFERENCE: 2400000.5;
|
|
248
|
-
/**
|
|
249
|
-
* Julian date of 2000 year. Epoch.
|
|
250
|
-
* @const
|
|
251
|
-
* @default
|
|
252
|
-
*/
|
|
253
|
-
export const J2000: 2451545;
|
|
254
|
-
export const J2000TAI: number;
|
package/types/bv/Box.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bounding box class.
|
|
3
|
-
* @class
|
|
4
|
-
*/
|
|
5
|
-
export class Box {
|
|
6
|
-
constructor(boundsArr: any);
|
|
7
|
-
/**
|
|
8
|
-
* Vertices array.
|
|
9
|
-
* @public
|
|
10
|
-
* @type{Array.<og.Vec3>}
|
|
11
|
-
*/
|
|
12
|
-
public vertices: Array<any>;
|
|
13
|
-
copy(bbox: any): void;
|
|
14
|
-
/**
|
|
15
|
-
* Sets bounding box coordinates by the bounds array.
|
|
16
|
-
* @param {Array.<number>} bounds - Bounds is an array where [minX, minY, minZ, maxX, maxY, maxZ]
|
|
17
|
-
*/
|
|
18
|
-
setFromBoundsArr(bounds: Array<number>): void;
|
|
19
|
-
/**
|
|
20
|
-
* Sets bounding box coordiantes by ellipsoid geodetic extend.
|
|
21
|
-
* @param {og.Ellipsoid} ellipsoid - Ellipsoid.
|
|
22
|
-
* @param {og.Extent} extent - Geodetic extent.
|
|
23
|
-
*/
|
|
24
|
-
setFromExtent(ellipsoid: any, extent: any): void;
|
|
25
|
-
}
|
package/types/bv/Sphere.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bounding sphere class.
|
|
3
|
-
* @class
|
|
4
|
-
* @param {Number} [radius] - Bounding sphere radius.
|
|
5
|
-
* @param {og.Vec3} [center] - Bounding sphere coordiantes.
|
|
6
|
-
*/
|
|
7
|
-
export class Sphere {
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param {number} radius
|
|
11
|
-
* @param {Vec3} center
|
|
12
|
-
*/
|
|
13
|
-
constructor(radius: number, center: Vec3);
|
|
14
|
-
/**
|
|
15
|
-
* Sphere radius.
|
|
16
|
-
* @public
|
|
17
|
-
* @type {Number}
|
|
18
|
-
*/
|
|
19
|
-
public radius: number;
|
|
20
|
-
/**
|
|
21
|
-
* Sphere coordiantes.
|
|
22
|
-
* @public
|
|
23
|
-
* @type {og.Vec3}
|
|
24
|
-
*/
|
|
25
|
-
public center: any;
|
|
26
|
-
/**
|
|
27
|
-
* Sets bounding sphere coordinates by the bounds array.
|
|
28
|
-
* @param {Array.<number>} bounds - Bounds is an array where [minX, minY, minZ, maxX, maxY, maxZ]
|
|
29
|
-
*/
|
|
30
|
-
setFromBounds(bounds: Array<number>): void;
|
|
31
|
-
/**
|
|
32
|
-
* Sets bounding sphere coordiantes by ellipsoid geodetic extend.
|
|
33
|
-
* @param {og.Ellipsoid} ellipsoid - Ellipsoid.
|
|
34
|
-
* @param {og.Extent} extent - Geodetic extent.
|
|
35
|
-
*/
|
|
36
|
-
setFromExtent(ellipsoid: any, extent: any): void;
|
|
37
|
-
}
|
|
38
|
-
import { Vec3 } from "../math/Vec3.js";
|
package/types/bv/index.d.ts
DELETED