@openglobus/og 0.15.4 → 0.16.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/README.md +4 -8
- package/css/og.css +1 -1
- package/dist/@openglobus/og.css +1 -1
- package/dist/@openglobus/og.esm.js +2 -2
- package/dist/@openglobus/og.esm.js.map +1 -1
- package/dist/@openglobus/og.umd.js +2 -2
- package/dist/@openglobus/og.umd.js.map +1 -1
- package/package.json +13 -14
- package/src/og/Globe.js +5 -2
- package/src/og/LonLat.js +224 -193
- package/src/og/Object3d.js +21 -2
- package/src/og/bv/index.js +2 -2
- package/src/og/camera/Camera.js +4 -16
- package/src/og/camera/PlanetCamera.js +15 -15
- package/src/og/control/KeyboardNavigation.js +153 -169
- package/src/og/control/MouseNavigation.js +0 -20
- package/src/og/control/RulerSwitcher.js +2 -2
- package/src/og/control/SimpleNavigation.js +10 -10
- package/src/og/control/ZoomControl.js +2 -2
- package/src/og/control/heightRuler/HeightRulerScene.js +6 -2
- package/src/og/control/index.js +5 -2
- package/src/og/control/ruler/RulerScene.js +11 -8
- package/src/og/control/timeline/TimelineControl.js +5 -3
- package/src/og/control/timeline/TimelineModel.js +4 -0
- package/src/og/control/timeline/TimelineView.js +10 -3
- package/src/og/control/visibleExtent/Segment.js +36 -42
- package/src/og/ellipsoid/Ellipsoid.js +41 -11
- package/src/og/entity/Entity.js +3 -3
- package/src/og/entity/EntityCollection.js +2 -2
- package/src/og/entity/Label.js +1 -1
- package/src/og/entity/Polyline.js +4 -2
- package/src/og/index.js +4 -7
- package/src/og/layer/CanvasTiles.js +70 -23
- package/src/og/layer/GeoImage.js +40 -18
- package/src/og/layer/Vector.js +21 -17
- package/src/og/layer/WMS.js +2 -2
- package/src/og/layer/XYZ.js +2 -2
- package/src/og/math.js +2 -1
- package/src/og/quadTree/EPSG4326QuadTreeStrategy.js +26 -0
- package/src/og/quadTree/EntityCollectionNode.js +8 -2
- package/src/og/quadTree/Node.js +44 -50
- package/src/og/quadTree/index.js +2 -0
- package/src/og/renderer/Renderer.js +14 -1
- package/src/og/scene/Planet.js +12 -8
- package/src/og/scene/index.js +3 -3
- package/src/og/segment/Segment.js +125 -120
- package/src/og/terrain/EmptyTerrain.js +19 -7
- package/src/og/terrain/GlobusTerrain.js +23 -18
- package/src/og/terrain/MapboxTerrain.js +7 -8
- package/src/og/terrain/index.js +4 -4
- package/src/og/utils/objParser.js +227 -0
- package/src/og/utils/shared.js +9 -0
- package/src/og/webgl/Handler.js +1 -3
- package/types/Globe.d.ts +2 -0
- package/types/LonLat.d.ts +20 -1
- package/types/Object3d.d.ts +2 -0
- package/types/Popup.d.ts +1 -1
- package/types/bv/index.d.ts +2 -2
- package/types/camera/PlanetCamera.d.ts +1 -8
- package/types/camera/index.d.ts +2 -2
- package/types/control/GeoImageDragControl.d.ts +1 -1
- package/types/control/LayerAnimation.d.ts +1 -1
- package/types/control/Lighting.d.ts +2 -2
- package/types/control/heightRuler/HeightRulerScene.d.ts +1 -1
- package/types/control/index.d.ts +3 -2
- package/types/control/ruler/RulerScene.d.ts +5 -4
- package/types/control/selection/SelectionScene.d.ts +3 -3
- package/types/control/timeline/TimelineControl.d.ts +10 -0
- package/types/control/timeline/TimelineModel.d.ts +33 -0
- package/types/control/timeline/TimelineView.d.ts +57 -0
- package/types/control/timeline/timelineUtils.d.ts +9 -0
- package/types/ellipsoid/Ellipsoid.d.ts +27 -8
- package/types/ellipsoid/index.d.ts +2 -2
- package/types/entity/Entity.d.ts +3 -3
- package/types/entity/EntityCollection.d.ts +2 -2
- package/types/entity/Label.d.ts +1 -1
- package/types/entity/Polyline.d.ts +1 -0
- package/types/index.d.ts +45 -46
- package/types/layer/CanvasTiles.d.ts +2 -1
- package/types/layer/GeoImage.d.ts +7 -1
- package/types/layer/GeoTexture2d.d.ts +1 -1
- package/types/layer/Vector.d.ts +3 -3
- package/types/layer/XYZ.d.ts +1 -1
- package/types/layer/index.d.ts +9 -9
- package/types/math/Line2.d.ts +1 -1
- package/types/math/Line3.d.ts +1 -1
- package/types/math/index.d.ts +10 -10
- package/types/mercator.d.ts +1 -1
- package/types/quadTree/EPSG4326QuadTreeStrategy.d.ts +3 -0
- package/types/quadTree/EntityCollectionNode.d.ts +1 -1
- package/types/quadTree/index.d.ts +2 -0
- package/types/renderer/Renderer.d.ts +2 -2
- package/types/scene/Axes.d.ts +1 -1
- package/types/scene/SkyBox.d.ts +1 -1
- package/types/scene/index.d.ts +3 -3
- package/types/segment/Segment.d.ts +11 -14
- package/types/shaders/atmos.d.ts +1 -1
- package/types/shaders/billboard.d.ts +1 -1
- package/types/shaders/depth.d.ts +1 -1
- package/types/shaders/label.d.ts +1 -1
- package/types/shaders/pickingMask.d.ts +1 -1
- package/types/shaders/pointCloud.d.ts +1 -1
- package/types/shaders/polyline.d.ts +1 -1
- package/types/shaders/ray.d.ts +1 -1
- package/types/shaders/screenFrame.d.ts +1 -1
- package/types/shaders/skybox.d.ts +1 -1
- package/types/shaders/toneMapping.d.ts +1 -1
- package/types/terrain/BilTerrain.d.ts +1 -0
- package/types/terrain/EmptyTerrain.d.ts +13 -2
- package/types/terrain/GlobusTerrain.d.ts +2 -1
- package/types/terrain/MapboxTerrain.d.ts +1 -3
- package/types/terrain/index.d.ts +4 -4
- package/types/ui/Button.d.ts +1 -1
- package/types/ui/ButtonGroup.d.ts +12 -0
- package/types/ui/Dialog.d.ts +2 -2
- package/types/ui/Slider.d.ts +1 -1
- package/types/ui/ToggleButton.d.ts +1 -1
- package/types/ui/View.d.ts +1 -1
- package/types/utils/GeoImageCreator.d.ts +2 -2
- package/types/utils/ImagesCacheManager.d.ts +1 -1
- package/types/utils/Loader.d.ts +1 -1
- package/types/utils/VectorTileCreator.d.ts +1 -1
- package/types/utils/objParser.d.ts +8 -0
- package/types/utils/shared.d.ts +6 -0
- package/types/webgl/Handler.d.ts +2 -2
- package/src/og/index.core.js +0 -116
- package/src/og/index.webgl.js +0 -17
- package/types/index.core.d.ts +0 -65
- package/types/index.webgl.d.ts +0 -7
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export class ButtonGroup {
|
|
2
|
+
constructor(options: any);
|
|
3
|
+
_events: Events;
|
|
4
|
+
_buttons: any;
|
|
5
|
+
on(eventName: any, callback: any, sender: any): void;
|
|
6
|
+
off(eventName: any, callback: any): void;
|
|
7
|
+
_bindButton(button: any): void;
|
|
8
|
+
add(button: any): void;
|
|
9
|
+
_onChange(isActive: any, btn: any): void;
|
|
10
|
+
remove(button: any): void;
|
|
11
|
+
}
|
|
12
|
+
import { Events } from '../Events.js';
|
package/types/ui/Dialog.d.ts
CHANGED
package/types/ui/Slider.d.ts
CHANGED
package/types/ui/View.d.ts
CHANGED
|
@@ -26,5 +26,5 @@ export class GeoImageCreator {
|
|
|
26
26
|
_quadVertexBuffer: any;
|
|
27
27
|
_initShaders(): void;
|
|
28
28
|
}
|
|
29
|
-
import { Framebuffer } from
|
|
30
|
-
import { LonLat } from
|
|
29
|
+
import { Framebuffer } from '../webgl/Framebuffer.js';
|
|
30
|
+
import { LonLat } from '../LonLat.js';
|
package/types/utils/Loader.d.ts
CHANGED
package/types/utils/shared.d.ts
CHANGED
|
@@ -221,6 +221,12 @@ export function cloneArray(items: any): any;
|
|
|
221
221
|
* @returns {Promise<Image>} Returns promise.
|
|
222
222
|
*/
|
|
223
223
|
export function loadImage(url: string): Promise<new (width?: number, height?: number) => HTMLImageElement>;
|
|
224
|
+
/**
|
|
225
|
+
* Gets image is loaded
|
|
226
|
+
* @param {HTMLImageElement} image
|
|
227
|
+
* @returns {boolean} Returns true is the image is loaded
|
|
228
|
+
*/
|
|
229
|
+
export function isImageLoaded(image: HTMLImageElement): boolean;
|
|
224
230
|
export namespace castType {
|
|
225
231
|
function string(v: any): any;
|
|
226
232
|
function date(v: any): any;
|
package/types/webgl/Handler.d.ts
CHANGED
|
@@ -145,10 +145,10 @@ export class Handler {
|
|
|
145
145
|
/**
|
|
146
146
|
* Creates NEAREST filter texture.
|
|
147
147
|
* @public
|
|
148
|
-
* @param {
|
|
148
|
+
* @param {HTMLCanvasElement | Image} image - Image or Canvas object.
|
|
149
149
|
* @returns {Object} - WebGL texture object.
|
|
150
150
|
*/
|
|
151
|
-
public createTexture_n_webgl1(image:
|
|
151
|
+
public createTexture_n_webgl1(image: HTMLCanvasElement | (new (width?: number, height?: number) => HTMLImageElement), internalFormat: any, texture: any): any;
|
|
152
152
|
/**
|
|
153
153
|
* Creates LINEAR filter texture.
|
|
154
154
|
* @public
|
package/src/og/index.core.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import * as jd from './astro/jd.js';
|
|
4
|
-
import * as math from './math.js';
|
|
5
|
-
import * as utils from './utils/shared.js';
|
|
6
|
-
|
|
7
|
-
import { Box } from './bv/Box.js';
|
|
8
|
-
import { Sphere } from './bv/Sphere.js';
|
|
9
|
-
|
|
10
|
-
import { Control } from './control/Control.js';
|
|
11
|
-
import { DebugInfo } from './control/DebugInfo';
|
|
12
|
-
import { ShowFps } from './control/ShowFps.js';
|
|
13
|
-
import { SimpleNavigation } from './control/SimpleNavigation.js';
|
|
14
|
-
|
|
15
|
-
import { Billboard } from './entity/Billboard.js';
|
|
16
|
-
import { Entity } from './entity/Entity.js';
|
|
17
|
-
import { EntityCollection } from './entity/EntityCollection.js';
|
|
18
|
-
import { Label } from './entity/Label.js';
|
|
19
|
-
import { PointCloud } from './entity/PointCloud.js';
|
|
20
|
-
import { Polyline } from './entity/Polyline.js';
|
|
21
|
-
|
|
22
|
-
import { input } from './input/input.js';
|
|
23
|
-
|
|
24
|
-
import { Camera } from './camera/Camera.js';
|
|
25
|
-
|
|
26
|
-
import { Line2 } from './math/Line2.js';
|
|
27
|
-
import { Line3 } from './math/Line3.js';
|
|
28
|
-
import { Mat3 } from './math/Mat3.js';
|
|
29
|
-
import { Mat4 } from './math/Mat4.js';
|
|
30
|
-
import { Plane } from './math/Plane.js';
|
|
31
|
-
import { Quat } from './math/Quat.js';
|
|
32
|
-
import { Ray } from './math/Ray.js';
|
|
33
|
-
import { Vec2 } from './math/Vec2.js';
|
|
34
|
-
import { Vec3 } from './math/Vec3.js';
|
|
35
|
-
import { Vec4 } from './math/Vec4.js';
|
|
36
|
-
|
|
37
|
-
import { Framebuffer } from './webgl/Framebuffer.js';
|
|
38
|
-
import { Handler } from './webgl/Handler.js';
|
|
39
|
-
import { Multisample } from './webgl/Multisample.js';
|
|
40
|
-
import { Program } from './webgl/Program.js';
|
|
41
|
-
import { types } from './webgl/types.js';
|
|
42
|
-
|
|
43
|
-
import { Renderer } from './renderer/Renderer.js';
|
|
44
|
-
|
|
45
|
-
import { LightSource } from './light/LightSource.js';
|
|
46
|
-
|
|
47
|
-
import { Clock } from './Clock.js';
|
|
48
|
-
import { Events } from './Events.js';
|
|
49
|
-
|
|
50
|
-
import { Axes } from './scene/Axes.js';
|
|
51
|
-
import { RenderNode } from './scene/RenderNode.js';
|
|
52
|
-
|
|
53
|
-
import { TextureAtlas } from './utils/TextureAtlas.js';
|
|
54
|
-
|
|
55
|
-
const bv = {
|
|
56
|
-
Box: Box,
|
|
57
|
-
Sphere: Sphere
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const control = {
|
|
61
|
-
DebugInfo: DebugInfo,
|
|
62
|
-
SimpleNavigation: SimpleNavigation,
|
|
63
|
-
ShowFps: ShowFps
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const entity = {
|
|
67
|
-
Billboard: Billboard,
|
|
68
|
-
Label: Label,
|
|
69
|
-
PointCloud: PointCloud,
|
|
70
|
-
Polyline: Polyline
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const webgl = {
|
|
74
|
-
Framebuffer: Framebuffer,
|
|
75
|
-
Handler: Handler,
|
|
76
|
-
Multisample: Multisample,
|
|
77
|
-
types: types,
|
|
78
|
-
Program: Program
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
const scene = {
|
|
82
|
-
Axes: Axes
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export {
|
|
86
|
-
bv,
|
|
87
|
-
jd,
|
|
88
|
-
math,
|
|
89
|
-
utils,
|
|
90
|
-
input,
|
|
91
|
-
Control,
|
|
92
|
-
control,
|
|
93
|
-
webgl,
|
|
94
|
-
Camera,
|
|
95
|
-
LightSource,
|
|
96
|
-
EntityCollection,
|
|
97
|
-
Handler,
|
|
98
|
-
Renderer,
|
|
99
|
-
Clock,
|
|
100
|
-
Events,
|
|
101
|
-
scene,
|
|
102
|
-
RenderNode,
|
|
103
|
-
Line2,
|
|
104
|
-
Line3,
|
|
105
|
-
Mat3,
|
|
106
|
-
Mat4,
|
|
107
|
-
Plane,
|
|
108
|
-
Quat,
|
|
109
|
-
Ray,
|
|
110
|
-
TextureAtlas,
|
|
111
|
-
Vec2,
|
|
112
|
-
Vec3,
|
|
113
|
-
Vec4,
|
|
114
|
-
entity,
|
|
115
|
-
Entity
|
|
116
|
-
};
|
package/src/og/index.webgl.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import { TextureAtlas } from './utils/TextureAtlas.js';
|
|
4
|
-
import { Framebuffer } from './webgl/Framebuffer.js';
|
|
5
|
-
import { Handler } from './webgl/Handler.js';
|
|
6
|
-
import { Multisample } from './webgl/Multisample.js';
|
|
7
|
-
import { Program } from './webgl/Program.js';
|
|
8
|
-
import { types } from './webgl/types.js';
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
Handler,
|
|
12
|
-
Framebuffer,
|
|
13
|
-
Multisample,
|
|
14
|
-
types,
|
|
15
|
-
Program,
|
|
16
|
-
TextureAtlas
|
|
17
|
-
};
|
package/types/index.core.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export namespace bv {
|
|
2
|
-
export { Box };
|
|
3
|
-
export { Sphere };
|
|
4
|
-
}
|
|
5
|
-
import * as jd from "./astro/jd.js";
|
|
6
|
-
import * as math from "./math.js";
|
|
7
|
-
import * as utils from "./utils/shared.js";
|
|
8
|
-
import { input } from "./input/input.js";
|
|
9
|
-
import { Control } from "./control/Control.js";
|
|
10
|
-
export namespace control {
|
|
11
|
-
export { DebugInfo };
|
|
12
|
-
export { SimpleNavigation };
|
|
13
|
-
export { ShowFps };
|
|
14
|
-
}
|
|
15
|
-
export namespace webgl {
|
|
16
|
-
export { Framebuffer };
|
|
17
|
-
export { Handler };
|
|
18
|
-
export { Multisample };
|
|
19
|
-
export { types };
|
|
20
|
-
export { Program };
|
|
21
|
-
}
|
|
22
|
-
import { Camera } from "./camera/Camera.js";
|
|
23
|
-
import { LightSource } from "./light/LightSource.js";
|
|
24
|
-
import { EntityCollection } from "./entity/EntityCollection.js";
|
|
25
|
-
import { Handler } from "./webgl/Handler.js";
|
|
26
|
-
import { Renderer } from "./renderer/Renderer.js";
|
|
27
|
-
import { Clock } from "./Clock.js";
|
|
28
|
-
import { Events } from "./Events.js";
|
|
29
|
-
export namespace scene {
|
|
30
|
-
export { Axes };
|
|
31
|
-
}
|
|
32
|
-
import { RenderNode } from "./scene/RenderNode.js";
|
|
33
|
-
import { Line2 } from "./math/Line2.js";
|
|
34
|
-
import { Line3 } from "./math/Line3.js";
|
|
35
|
-
import { Mat3 } from "./math/Mat3.js";
|
|
36
|
-
import { Mat4 } from "./math/Mat4.js";
|
|
37
|
-
import { Plane } from "./math/Plane.js";
|
|
38
|
-
import { Quat } from "./math/Quat.js";
|
|
39
|
-
import { Ray } from "./math/Ray.js";
|
|
40
|
-
import { TextureAtlas } from "./utils/TextureAtlas.js";
|
|
41
|
-
import { Vec2 } from "./math/Vec2.js";
|
|
42
|
-
import { Vec3 } from "./math/Vec3.js";
|
|
43
|
-
import { Vec4 } from "./math/Vec4.js";
|
|
44
|
-
export namespace entity {
|
|
45
|
-
export { Billboard };
|
|
46
|
-
export { Label };
|
|
47
|
-
export { PointCloud };
|
|
48
|
-
export { Polyline };
|
|
49
|
-
}
|
|
50
|
-
import { Entity } from "./entity/Entity.js";
|
|
51
|
-
import { Box } from "./bv/Box.js";
|
|
52
|
-
import { Sphere } from "./bv/Sphere.js";
|
|
53
|
-
import { DebugInfo } from "./control/DebugInfo";
|
|
54
|
-
import { SimpleNavigation } from "./control/SimpleNavigation.js";
|
|
55
|
-
import { ShowFps } from "./control/ShowFps.js";
|
|
56
|
-
import { Framebuffer } from "./webgl/Framebuffer.js";
|
|
57
|
-
import { Multisample } from "./webgl/Multisample.js";
|
|
58
|
-
import { types } from "./webgl/types.js";
|
|
59
|
-
import { Program } from "./webgl/Program.js";
|
|
60
|
-
import { Axes } from "./scene/Axes.js";
|
|
61
|
-
import { Billboard } from "./entity/Billboard.js";
|
|
62
|
-
import { Label } from "./entity/Label.js";
|
|
63
|
-
import { PointCloud } from "./entity/PointCloud.js";
|
|
64
|
-
import { Polyline } from "./entity/Polyline.js";
|
|
65
|
-
export { jd, math, utils, input, Control, Camera, LightSource, EntityCollection, Handler, Renderer, Clock, Events, RenderNode, Line2, Line3, Mat3, Mat4, Plane, Quat, Ray, TextureAtlas, Vec2, Vec3, Vec4, Entity };
|
package/types/index.webgl.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Handler } from "./webgl/Handler.js";
|
|
2
|
-
import { Framebuffer } from "./webgl/Framebuffer.js";
|
|
3
|
-
import { Multisample } from "./webgl/Multisample.js";
|
|
4
|
-
import { types } from "./webgl/types.js";
|
|
5
|
-
import { Program } from "./webgl/Program.js";
|
|
6
|
-
import { TextureAtlas } from "./utils/TextureAtlas.js";
|
|
7
|
-
export { Handler, Framebuffer, Multisample, types, Program, TextureAtlas };
|