@openglobus/og 0.11.1 → 0.11.6
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 +18 -20
- package/src/og/Clock.js +11 -11
- package/src/og/Deferred.js +1 -1
- package/src/og/Events.js +9 -7
- package/src/og/Extent.js +117 -72
- package/src/og/Globe.js +35 -22
- package/src/og/ImageCanvas.js +24 -18
- package/src/og/Lock.js +2 -2
- package/src/og/LonLat.js +40 -37
- package/src/og/Popup.js +21 -15
- package/src/og/QueueArray.js +7 -3
- package/src/og/Rectangle.js +11 -6
- package/src/og/Stack.js +8 -5
- package/src/og/ajax.js +21 -33
- package/src/og/astro/astro.js +5 -5
- package/src/og/astro/earth.js +23 -17
- package/src/og/astro/jd.js +44 -39
- package/src/og/astro/orbit.js +20 -18
- package/src/og/astro/rotation.js +17 -8
- package/src/og/bv/Box.js +7 -3
- package/src/og/bv/Sphere.js +17 -9
- package/src/og/camera/Camera.js +137 -86
- package/src/og/camera/Frustum.js +30 -19
- package/src/og/camera/PlanetCamera.js +30 -26
- package/src/og/control/CompassButton.js +8 -2
- package/src/og/control/Control.js +13 -11
- package/src/og/control/DebugInfo.js +4 -1
- package/src/og/control/EarthCoordinates.js +62 -41
- package/src/og/control/EarthNavigation.js +20 -22
- package/src/og/control/GeoImageDragControl.js +1 -1
- package/src/og/control/KeyboardNavigation.js +12 -12
- package/src/og/control/LayerSwitcher.js +24 -23
- package/src/og/control/Lighting.js +1 -1
- package/src/og/control/MouseNavigation.js +1 -1
- package/src/og/control/ScaleControl.js +1 -1
- package/src/og/control/SegmentBoundVisualization.js +8 -9
- package/src/og/control/ShowFps.js +15 -10
- package/src/og/control/SimpleNavigation.js +8 -10
- package/src/og/control/Sun.js +25 -15
- package/src/og/control/ToggleWireframe.js +5 -5
- package/src/og/control/TouchNavigation.js +58 -45
- package/src/og/control/ZoomControl.js +41 -25
- package/src/og/control/index.js +4 -0
- package/src/og/ellipsoid/Ellipsoid.js +181 -85
- package/src/og/ellipsoid/wgs84.js +4 -4
- package/src/og/entity/BaseBillboard.js +97 -44
- package/src/og/entity/Billboard.js +15 -11
- package/src/og/entity/BillboardHandler.js +314 -64
- package/src/og/entity/Entity.js +106 -74
- package/src/og/entity/EntityCollection.js +72 -49
- package/src/og/entity/GeoObject.js +228 -0
- package/src/og/entity/GeoObjectHandler.js +910 -0
- package/src/og/entity/Geometry.js +29 -26
- package/src/og/entity/GeometryHandler.js +598 -126
- package/src/og/entity/Label.js +74 -40
- package/src/og/entity/LabelHandler.js +47 -246
- package/src/og/entity/LabelWorker.js +213 -0
- package/src/og/entity/Object3d.js +504 -0
- package/src/og/entity/PointCloud.js +81 -33
- package/src/og/entity/PointCloudHandler.js +9 -9
- package/src/og/entity/Polyline.js +39 -39
- package/src/og/entity/Ray.js +61 -28
- package/src/og/entity/ShapeHandler.js +1 -1
- package/src/og/entity/Strip.js +77 -48
- package/src/og/entity/StripHandler.js +27 -27
- package/src/og/entity/index.js +8 -16
- package/src/og/input/KeyboardHandler.js +107 -104
- package/src/og/input/MouseHandler.js +81 -78
- package/src/og/input/TouchHandler.js +55 -51
- package/src/og/layer/BaseGeoImage.js +61 -30
- package/src/og/layer/CanvasTiles.js +26 -24
- package/src/og/layer/GeoImage.js +10 -10
- package/src/og/layer/GeoTexture2d.js +1 -1
- package/src/og/layer/GeoVideo.js +3 -3
- package/src/og/layer/KML.js +66 -40
- package/src/og/layer/Layer.js +27 -17
- package/src/og/layer/Material.js +93 -61
- package/src/og/layer/Vector.js +118 -72
- package/src/og/layer/WMS.js +36 -19
- package/src/og/layer/XYZ.js +55 -48
- package/src/og/light/LightSource.js +47 -40
- package/src/og/math/Line2.js +24 -24
- package/src/og/math/Line3.js +103 -102
- package/src/og/math/Mat3.js +134 -121
- package/src/og/math/Mat4.js +603 -459
- package/src/og/math/Plane.js +21 -20
- package/src/og/math/Quat.js +980 -927
- package/src/og/math/Ray.js +195 -187
- package/src/og/math/Vec2.js +127 -117
- package/src/og/math/Vec3.js +206 -176
- package/src/og/math/Vec4.js +49 -53
- package/src/og/math/coder.js +18 -18
- package/src/og/math.js +12 -12
- package/src/og/mercator.js +11 -11
- package/src/og/proj/EPSG3857.js +4 -4
- package/src/og/proj/EPSG4326.js +4 -4
- package/src/og/proj/Proj.js +31 -31
- package/src/og/quadTree/EntityCollectionNode.js +310 -300
- package/src/og/quadTree/Node.js +1008 -993
- package/src/og/renderer/Renderer.js +768 -747
- package/src/og/renderer/RendererEvents.js +9 -6
- package/src/og/scene/Axes.js +1 -1
- package/src/og/scene/BaseNode.js +8 -9
- package/src/og/scene/Planet.js +115 -87
- package/src/og/scene/RenderNode.js +29 -22
- package/src/og/scene/SkyBox.js +1 -1
- package/src/og/segment/Segment.js +1886 -1878
- package/src/og/segment/SegmentLonLat.js +298 -268
- package/src/og/segment/segmentHelper.js +11 -11
- package/src/og/shaders/bloom.js +1 -1
- package/src/og/shaders/blur.js +2 -2
- package/src/og/shaders/depth.js +1 -1
- package/src/og/shaders/geoObject.js +211 -0
- package/src/og/shaders/label.js +1 -1
- package/src/og/shaders/lumFilter.js +1 -1
- package/src/og/shaders/pointCloud.js +42 -42
- package/src/og/shaders/screenFrame.js +1 -1
- package/src/og/shaders/shape.js +15 -21
- package/src/og/shaders/skybox.js +37 -37
- package/src/og/shaders/toneMapping.js +1 -1
- package/src/og/shapes/BaseShape.js +129 -57
- package/src/og/shapes/Icosphere.js +30 -15
- package/src/og/shapes/Sphere.js +13 -16
- package/src/og/terrain/BilTerrain.js +2 -1
- package/src/og/terrain/EmptyTerrain.js +2 -2
- package/src/og/terrain/Geoid.js +2 -2
- package/src/og/terrain/GlobusTerrain.js +10 -10
- package/src/og/terrain/MapboxTerrain.js +1 -1
- package/src/og/utils/GeoImageCreator.js +9 -9
- package/src/og/utils/Loader.js +6 -6
- package/src/og/utils/NormalMapCreator.js +13 -13
- package/src/og/utils/TerrainWorker.js +1 -1
- package/src/og/utils/TextureAtlas.js +20 -22
- package/src/og/utils/VectorTileCreator.js +5 -5
- package/src/og/utils/earcut.js +1 -1
- package/src/og/utils/shared.js +15 -15
- package/src/og/webgl/Framebuffer.js +101 -53
- package/src/og/webgl/Handler.js +125 -85
- package/src/og/webgl/Multisample.js +55 -27
- package/src/og/webgl/Program.js +80 -35
- package/src/og/webgl/ProgramController.js +27 -23
- package/src/og/webgl/callbacks.js +8 -8
- package/types/Clock.d.ts +6 -2
- package/types/Deferred.d.ts +1 -1
- package/types/Events.d.ts +8 -4
- package/types/Extent.d.ts +37 -33
- package/types/Globe.d.ts +15 -13
- package/types/ImageCanvas.d.ts +5 -3
- package/types/LonLat.d.ts +24 -24
- package/types/Popup.d.ts +4 -0
- package/types/QueueArray.d.ts +6 -2
- package/types/Rectangle.d.ts +10 -4
- package/types/Stack.d.ts +4 -0
- package/types/ajax.d.ts +1 -1
- package/types/astro/earth.d.ts +3 -2
- package/types/bv/Box.d.ts +10 -5
- package/types/bv/Sphere.d.ts +13 -7
- package/types/camera/Camera.d.ts +90 -81
- package/types/camera/Frustum.d.ts +26 -22
- package/types/camera/PlanetCamera.d.ts +49 -53
- package/types/control/CompassButton.d.ts +4 -4
- package/types/control/Control.d.ts +7 -4
- package/types/control/DebugInfo.d.ts +3 -4
- package/types/control/EarthCoordinates.d.ts +6 -6
- package/types/control/EarthNavigation.d.ts +42 -0
- package/types/control/KeyboardNavigation.d.ts +3 -4
- package/types/control/LayerSwitcher.d.ts +3 -5
- package/types/control/Lighting.d.ts +3 -3
- package/types/control/MouseNavigation.d.ts +47 -0
- package/types/control/ScaleControl.d.ts +3 -3
- package/types/control/ShowFps.d.ts +3 -4
- package/types/control/SimpleNavigation.d.ts +3 -6
- package/types/control/Sun.d.ts +8 -10
- package/types/control/ToggleWireframe.d.ts +3 -3
- package/types/control/TouchNavigation.d.ts +48 -0
- package/types/control/ZoomControl.d.ts +3 -4
- package/types/control/index.d.ts +3 -1
- package/types/ellipsoid/Ellipsoid.d.ts +47 -43
- package/types/ellipsoid/wgs84.d.ts +3 -2
- package/types/entity/BaseBillboard.d.ts +41 -34
- package/types/entity/Billboard.d.ts +7 -7
- package/types/entity/BillboardHandler.d.ts +4 -0
- package/types/entity/Entity.d.ts +101 -83
- package/types/entity/EntityCollection.d.ts +57 -43
- package/types/entity/GeoObject.d.ts +111 -0
- package/types/entity/GeoObjectHandler.d.ts +77 -0
- package/types/entity/Geometry.d.ts +9 -7
- package/types/entity/GeometryHandler.d.ts +2 -2
- package/types/entity/Label.d.ts +24 -29
- package/types/entity/LabelHandler.d.ts +9 -2
- package/types/entity/LabelWorker.d.ts +9 -0
- package/types/entity/PointCloud.d.ts +8 -8
- package/types/entity/PointCloudHandler.d.ts +3 -3
- package/types/entity/Polyline.d.ts +58 -55
- package/types/entity/Ray.d.ts +19 -18
- package/types/entity/Strip.d.ts +8 -7
- package/types/entity/StripHandler.d.ts +3 -3
- package/types/entity/index.d.ts +7 -7
- 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/layer/BaseGeoImage.d.ts +23 -35
- package/types/layer/CanvasTiles.d.ts +15 -22
- package/types/layer/GeoImage.d.ts +5 -18
- package/types/layer/GeoVideo.d.ts +5 -30
- package/types/layer/KML.d.ts +20 -15
- package/types/layer/Layer.d.ts +326 -0
- package/types/layer/Material.d.ts +45 -0
- package/types/layer/Vector.d.ts +208 -0
- package/types/layer/WMS.d.ts +4 -7
- package/types/layer/XYZ.d.ts +19 -25
- package/types/light/LightSource.d.ts +54 -53
- package/types/math/Line2.d.ts +11 -0
- package/types/math/Line3.d.ts +10 -0
- package/types/math/Mat3.d.ts +30 -18
- package/types/math/Mat4.d.ts +71 -52
- package/types/math/Plane.d.ts +5 -4
- package/types/math/Quat.d.ts +379 -0
- package/types/math/Ray.d.ts +82 -0
- package/types/math/Vec2.d.ts +102 -101
- package/types/math/Vec3.d.ts +143 -142
- package/types/math/Vec4.d.ts +40 -39
- package/types/math/coder.d.ts +12 -11
- package/types/math.d.ts +8 -8
- package/types/mercator.d.ts +3 -3
- package/types/proj/EPSG3857.d.ts +3 -2
- package/types/proj/EPSG4326.d.ts +3 -2
- package/types/proj/Proj.d.ts +42 -0
- package/types/quadTree/EntityCollectionNode.d.ts +34 -0
- package/types/quadTree/Node.d.ts +61 -0
- package/types/renderer/Renderer.d.ts +300 -0
- package/types/renderer/RendererEvents.d.ts +10 -7
- package/types/scene/BaseNode.d.ts +9 -9
- package/types/scene/Planet.d.ts +131 -126
- package/types/scene/RenderNode.d.ts +22 -23
- package/types/segment/Segment.d.ts +279 -0
- package/types/segment/SegmentLonLat.d.ts +16 -0
- package/types/shaders/geoObject.d.ts +3 -0
- package/types/shapes/BaseShape.d.ts +43 -40
- package/types/shapes/Sphere.d.ts +7 -7
- package/types/terrain/BilTerrain.d.ts +0 -1
- package/types/terrain/EmptyTerrain.d.ts +4 -4
- package/types/terrain/GlobusTerrain.d.ts +17 -54
- package/types/terrain/MapboxTerrain.d.ts +0 -1
- package/types/utils/GeoImageCreator.d.ts +3 -2
- package/types/utils/TextureAtlas.d.ts +8 -8
- package/types/utils/shared.d.ts +25 -24
- package/types/webgl/Framebuffer.d.ts +5 -5
- package/types/webgl/Handler.d.ts +68 -43
- package/types/webgl/Multisample.d.ts +5 -5
- package/types/webgl/Program.d.ts +8 -2
- package/types/webgl/ProgramController.d.ts +18 -13
- package/src/og/inherits.js +0 -8
- package/src/og/utils/polylabel.js +0 -176
- package/types/inherits.d.ts +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* BaseGeoImage layer represents square imagery layer that could be an static image, or animated video or webgl buffer object displayed on the globe.
|
|
3
3
|
* @class
|
|
4
|
-
* @extends {
|
|
4
|
+
* @extends {Layer}
|
|
5
5
|
*/
|
|
6
|
-
export class BaseGeoImage {
|
|
6
|
+
export class BaseGeoImage extends Layer {
|
|
7
7
|
constructor(name: any, options: any);
|
|
8
8
|
_projType: number;
|
|
9
9
|
_frameWidth: number;
|
|
@@ -12,7 +12,7 @@ export class BaseGeoImage {
|
|
|
12
12
|
_sourceTexture: any;
|
|
13
13
|
_materialTexture: any;
|
|
14
14
|
_gridBuffer: any;
|
|
15
|
-
_extentWgs84Params:
|
|
15
|
+
_extentWgs84Params: number[];
|
|
16
16
|
_refreshFrame: boolean;
|
|
17
17
|
_frameCreated: boolean;
|
|
18
18
|
_sourceCreated: boolean;
|
|
@@ -21,75 +21,61 @@ export class BaseGeoImage {
|
|
|
21
21
|
_creationProceeding: boolean;
|
|
22
22
|
_isRendering: boolean;
|
|
23
23
|
_extentWgs84: Extent;
|
|
24
|
-
_cornersWgs84:
|
|
24
|
+
_cornersWgs84: number[] | LonLat[];
|
|
25
25
|
rendering: any;
|
|
26
|
-
get instanceName(): string;
|
|
27
26
|
/**
|
|
28
27
|
* Gets corners coordinates.
|
|
29
28
|
* @public
|
|
30
|
-
* @return {Array.<
|
|
29
|
+
* @return {Array.<LonLat>} - (exactly 4 entries)
|
|
31
30
|
*/
|
|
32
|
-
public getCornersLonLat(): Array<
|
|
31
|
+
public getCornersLonLat(): Array<LonLat>;
|
|
33
32
|
/**
|
|
34
33
|
* Gets corners coordinates.
|
|
35
34
|
* @public
|
|
36
|
-
* @return {Array.<Array<number
|
|
35
|
+
* @return {Array.<Array<number>>} - (exactly 3 entries)
|
|
37
36
|
*/
|
|
38
|
-
public getCorners(): Array<Array<number
|
|
37
|
+
public getCorners(): Array<Array<number>>;
|
|
39
38
|
/**
|
|
40
39
|
* Sets geoImage geographical corners coordinates.
|
|
41
40
|
* @public
|
|
42
|
-
* @param {Array.<Array.<number
|
|
41
|
+
* @param {Array.<Array.<number>>} corners - GeoImage corners coordinates. Where first coordinate (exactly 3 entries)
|
|
43
42
|
* coincedents to the left top image corner, secont to the right top image corner, third to the right bottom
|
|
44
43
|
* and fourth - left bottom image corner.
|
|
45
44
|
*/
|
|
46
|
-
public setCorners(corners: Array<Array<number
|
|
45
|
+
public setCorners(corners: Array<Array<number>>): void;
|
|
47
46
|
/**
|
|
48
47
|
* Sets geoImage geographical corners coordinates.
|
|
49
48
|
* @public
|
|
50
|
-
* @param {Array.<
|
|
49
|
+
* @param {Array.<LonLat>} corners - GeoImage corners coordinates. Where first coordinate
|
|
51
50
|
* coincedents to the left top image corner, secont to the right top image corner, third to the right bottom
|
|
52
|
-
* and fourth - left bottom image corner.
|
|
51
|
+
* and fourth - left bottom image corner. (exactly 4 entries)
|
|
53
52
|
*/
|
|
54
|
-
public setCornersLonLat(corners: Array<
|
|
53
|
+
public setCornersLonLat(corners: Array<LonLat>): void;
|
|
55
54
|
/**
|
|
56
55
|
* Creates geoImage frame.
|
|
57
56
|
* @protected
|
|
58
57
|
*/
|
|
59
58
|
protected _createFrame(): void;
|
|
60
59
|
_cornersMerc: any[];
|
|
61
|
-
|
|
62
|
-
_extentMercParams: any[];
|
|
63
|
-
/**
|
|
64
|
-
* @virtual
|
|
65
|
-
* @param {og.planetSegment.Material} material - GeoImage material.
|
|
66
|
-
*/
|
|
67
|
-
abortMaterialLoading(material: any): void;
|
|
60
|
+
_extentMercParams: number[];
|
|
68
61
|
/**
|
|
69
|
-
* Clear layer material.
|
|
70
|
-
* @virtual
|
|
71
|
-
*/
|
|
72
|
-
clear(): void;
|
|
73
|
-
/**
|
|
74
|
-
* Sets layer visibility.
|
|
75
|
-
* @public
|
|
76
62
|
* @virtual
|
|
77
|
-
* @param {
|
|
63
|
+
* @param {Material} material - GeoImage material.
|
|
78
64
|
*/
|
|
79
|
-
|
|
65
|
+
abortMaterialLoading(material: Material): void;
|
|
80
66
|
/**
|
|
81
67
|
* @virtual
|
|
82
68
|
* @protected
|
|
83
|
-
* @param {
|
|
69
|
+
* @param {Material} material - GeoImage material.
|
|
84
70
|
*/
|
|
85
|
-
protected clearMaterial(material:
|
|
71
|
+
protected clearMaterial(material: Material): void;
|
|
86
72
|
/**
|
|
87
73
|
* @virtual
|
|
88
74
|
* @protected
|
|
89
|
-
* @param {
|
|
90
|
-
* @returns {Array<
|
|
75
|
+
* @param {Material} material - GeoImage material.
|
|
76
|
+
* @returns {Array<number> } -
|
|
91
77
|
*/
|
|
92
|
-
protected applyMaterial(material:
|
|
78
|
+
protected applyMaterial(material: Material): Array<number>;
|
|
93
79
|
/**
|
|
94
80
|
* Gets frame width size in pixels.
|
|
95
81
|
* @public
|
|
@@ -103,4 +89,6 @@ export class BaseGeoImage {
|
|
|
103
89
|
*/
|
|
104
90
|
public get getFrameHeight(): number;
|
|
105
91
|
}
|
|
92
|
+
import { Layer } from "./Layer.js";
|
|
106
93
|
import { Extent } from "../Extent.js";
|
|
94
|
+
import { LonLat } from "../LonLat.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Layer used to rendering each tile as a separate canvas object.
|
|
3
3
|
* @class
|
|
4
|
-
* @extends {
|
|
4
|
+
* @extends {Layer}
|
|
5
5
|
* //TODO: make asynchronous handler.
|
|
6
6
|
* @param {String} [name="noname"] - Layer name.
|
|
7
7
|
* @param {Object} options:
|
|
8
8
|
* @param {number} [options.opacity=1.0] - Layer opacity.
|
|
9
|
-
* @param {Array.<number
|
|
9
|
+
* @param {Array.<number>} [options.transparentColor=[-1,-1,-1]] - RGB color that defines transparent color. (exactly 3 entries)
|
|
10
10
|
* @param {number} [options.minZoom=0] - Minimal visibility zoom level.
|
|
11
11
|
* @param {number} [options.maxZoom=0] - Maximal visibility zoom level.
|
|
12
12
|
* @param {string} [options.attribution] - Layer attribution that displayed in the attribution area on the screen.
|
|
13
13
|
* @param {boolean} [options.isBaseLayer=false] - Base layer flag.
|
|
14
14
|
* @param {boolean} [options.visibility=true] - Layer visibility.
|
|
15
|
-
* @param {
|
|
15
|
+
* @param {layer.CanvasTiles~drawTileCallback} [options.drawTile] - Draw tile callback.
|
|
16
16
|
* @fires og.layer.CanvasTiles#load
|
|
17
17
|
* @fires og.layer.CanvasTiles#loadend
|
|
18
18
|
*/
|
|
19
|
-
export class CanvasTiles {
|
|
19
|
+
export class CanvasTiles extends Layer {
|
|
20
20
|
constructor(name: any, options: any);
|
|
21
21
|
/**
|
|
22
22
|
* Current creating tiles couter.
|
|
@@ -27,49 +27,42 @@ export class CanvasTiles {
|
|
|
27
27
|
/**
|
|
28
28
|
* Tile pending queue that waiting for create.
|
|
29
29
|
* @protected
|
|
30
|
-
* @type {Array.<
|
|
30
|
+
* @type {Array.<planetSegment.Material>}
|
|
31
31
|
*/
|
|
32
|
-
protected _pendingsQueue: Array<
|
|
32
|
+
protected _pendingsQueue: Array<planetSegment.Material>;
|
|
33
33
|
/**
|
|
34
34
|
* Draw tile callback.
|
|
35
|
-
* @type {
|
|
35
|
+
* @type {layer.CanvasTiles~drawTileCallback}
|
|
36
36
|
* @public
|
|
37
37
|
*/
|
|
38
|
-
public drawTile:
|
|
39
|
-
get instanceName(): string;
|
|
38
|
+
public drawTile: layer.CanvasTiles;
|
|
40
39
|
/**
|
|
41
40
|
* Abort loading tiles.
|
|
42
41
|
* @public
|
|
43
42
|
*/
|
|
44
43
|
public abortLoading(): void;
|
|
45
|
-
/**
|
|
46
|
-
* Sets layer visibility.
|
|
47
|
-
* @public
|
|
48
|
-
* @param {boolean} visibility - Layer visibility.
|
|
49
|
-
*/
|
|
50
|
-
public setVisibility(visibility: boolean): void;
|
|
51
|
-
_visibility: any;
|
|
52
44
|
/**
|
|
53
45
|
* Start to load tile material.
|
|
54
46
|
* @public
|
|
55
47
|
* @virtual
|
|
56
|
-
* @param {
|
|
48
|
+
* @param {Material} material -
|
|
57
49
|
*/
|
|
58
|
-
public loadMaterial(material:
|
|
50
|
+
public loadMaterial(material: Material): void;
|
|
59
51
|
/**
|
|
60
52
|
* Loads material image and apply it to the planet segment.
|
|
61
53
|
* @protected
|
|
62
|
-
* @param {
|
|
54
|
+
* @param {Material} material - Loads material image.
|
|
63
55
|
*/
|
|
64
|
-
protected _exec(material:
|
|
56
|
+
protected _exec(material: Material): void;
|
|
65
57
|
/**
|
|
66
58
|
* Abort exact material loading.
|
|
67
59
|
* @public
|
|
68
|
-
* @param {
|
|
60
|
+
* @param {Material} material - Segment material.
|
|
69
61
|
*/
|
|
70
|
-
public abortMaterialLoading(material:
|
|
62
|
+
public abortMaterialLoading(material: Material): void;
|
|
71
63
|
_dequeueRequest(): void;
|
|
72
64
|
_whilePendings(): any;
|
|
73
65
|
applyMaterial(material: any): number[];
|
|
74
66
|
clearMaterial(material: any): void;
|
|
75
67
|
}
|
|
68
|
+
import { Layer } from "./Layer.js";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Used to load and display a single image over specific corner coordinates on the globe, implements og.layer.BaseGeoImage interface.
|
|
3
3
|
* @class
|
|
4
|
-
* @extends {
|
|
4
|
+
* @extends {BaseGeoImage}
|
|
5
5
|
*/
|
|
6
|
-
export class GeoImage {
|
|
7
|
-
constructor(name: any, options: any);
|
|
6
|
+
export class GeoImage extends BaseGeoImage {
|
|
8
7
|
/**
|
|
9
8
|
* Image object.
|
|
10
9
|
* @private
|
|
@@ -17,14 +16,12 @@ export class GeoImage {
|
|
|
17
16
|
* @type {String}
|
|
18
17
|
*/
|
|
19
18
|
private _src;
|
|
20
|
-
get instanceName(): string;
|
|
21
19
|
/**
|
|
22
20
|
* Sets image source url path.
|
|
23
21
|
* @public
|
|
24
22
|
* @param {String} srs - Image url path.
|
|
25
23
|
*/
|
|
26
24
|
public setSrc(src: any): void;
|
|
27
|
-
_sourceReady: boolean;
|
|
28
25
|
/**
|
|
29
26
|
* Sets image object.
|
|
30
27
|
* @public
|
|
@@ -37,29 +34,19 @@ export class GeoImage {
|
|
|
37
34
|
* @protected
|
|
38
35
|
*/
|
|
39
36
|
protected _createSourceTexture(): void;
|
|
40
|
-
_sourceTexture: any;
|
|
41
|
-
_sourceCreated: boolean;
|
|
42
37
|
/**
|
|
43
38
|
* @private
|
|
44
39
|
* @param {Image} img
|
|
45
40
|
*/
|
|
46
41
|
private _onLoad;
|
|
47
|
-
_frameWidth: any;
|
|
48
|
-
_frameHeight: any;
|
|
49
42
|
/**
|
|
50
43
|
* Loads planet segment material. In this case - GeoImage source image.
|
|
51
44
|
* @virtual
|
|
52
45
|
* @public
|
|
53
|
-
* @param {
|
|
46
|
+
* @param {Material} material - GeoImage planet material.
|
|
54
47
|
*/
|
|
55
|
-
public loadMaterial(material:
|
|
56
|
-
_creationProceeding: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* @virtual
|
|
59
|
-
* @param {og.planetSegment.Material} material - GeoImage material.
|
|
60
|
-
*/
|
|
61
|
-
abortMaterialLoading(material: any): void;
|
|
48
|
+
public loadMaterial(material: Material): void;
|
|
62
49
|
_renderingProjType1(): void;
|
|
63
|
-
_ready: boolean;
|
|
64
50
|
_renderingProjType0(): void;
|
|
65
51
|
}
|
|
52
|
+
import { BaseGeoImage } from "./BaseGeoImage.js";
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Used to load and display a video stream by specific corners coordinates on the globe, implements og.layer.BaseGeoImage interface.
|
|
3
3
|
* @class
|
|
4
|
-
* @extends {
|
|
4
|
+
* @extends {BaseGeoImage}
|
|
5
5
|
*/
|
|
6
|
-
export class GeoVideo {
|
|
7
|
-
constructor(name: any, options: any);
|
|
8
|
-
/**
|
|
9
|
-
* @protected
|
|
10
|
-
* @const
|
|
11
|
-
* @type {Boolean}
|
|
12
|
-
*/
|
|
13
|
-
protected _animate: boolean;
|
|
6
|
+
export class GeoVideo extends BaseGeoImage {
|
|
14
7
|
/**
|
|
15
8
|
* HTML5 video element object.
|
|
16
9
|
* @private
|
|
@@ -23,40 +16,28 @@ export class GeoVideo {
|
|
|
23
16
|
* @type {String}
|
|
24
17
|
*/
|
|
25
18
|
private _src;
|
|
26
|
-
get instanceName(): string;
|
|
27
19
|
/**
|
|
28
20
|
* Sets video source url path.
|
|
29
21
|
* @public
|
|
30
22
|
* @param {String} srs - Video url path.
|
|
31
23
|
*/
|
|
32
24
|
public setSrc(src: any): void;
|
|
33
|
-
_sourceReady: boolean;
|
|
34
25
|
/**
|
|
35
26
|
* Sets HTML5 video object.
|
|
36
27
|
* @public
|
|
37
28
|
* @param {Object} video - HTML5 video element object.
|
|
38
29
|
*/
|
|
39
30
|
public setVideoElement(video: any): void;
|
|
40
|
-
/**
|
|
41
|
-
* Sets layer visibility.
|
|
42
|
-
* @public
|
|
43
|
-
* @param {boolean} visibility - Layer visibility.
|
|
44
|
-
*/
|
|
45
|
-
public setVisibility(visibility: boolean): void;
|
|
46
31
|
/**
|
|
47
32
|
* Creates or refresh source video GL texture.
|
|
48
33
|
* @virtual
|
|
49
34
|
* @protected
|
|
50
35
|
*/
|
|
51
36
|
protected _createSourceTexture(): void;
|
|
52
|
-
_sourceTexture: any;
|
|
53
|
-
_sourceCreated: boolean;
|
|
54
37
|
/**
|
|
55
38
|
* @private
|
|
56
39
|
*/
|
|
57
40
|
private _onCanPlay;
|
|
58
|
-
_frameWidth: any;
|
|
59
|
-
_frameHeight: any;
|
|
60
41
|
/**
|
|
61
42
|
* @private
|
|
62
43
|
*/
|
|
@@ -65,16 +46,10 @@ export class GeoVideo {
|
|
|
65
46
|
* Loads planet segment material. In this case - GeoImage source video.
|
|
66
47
|
* @virtual
|
|
67
48
|
* @public
|
|
68
|
-
* @param {
|
|
69
|
-
*/
|
|
70
|
-
public loadMaterial(material: any): void;
|
|
71
|
-
_creationProceeding: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* @virtual
|
|
74
|
-
* @param {og.planetSegment.Material} material - GeoImage material.
|
|
49
|
+
* @param {Material} material - GeoImage planet material.
|
|
75
50
|
*/
|
|
76
|
-
|
|
51
|
+
public loadMaterial(material: Material): void;
|
|
77
52
|
_renderingProjType1(): void;
|
|
78
|
-
_ready: boolean;
|
|
79
53
|
_renderingProjType0(): void;
|
|
80
54
|
}
|
|
55
|
+
import { BaseGeoImage } from "./BaseGeoImage.js";
|
package/types/layer/KML.d.ts
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Layer to render KMLs files
|
|
3
3
|
* @class
|
|
4
|
-
* @extends {
|
|
4
|
+
* @extends {Vector}
|
|
5
5
|
*/
|
|
6
|
-
export class KML {
|
|
6
|
+
export class KML extends Vector {
|
|
7
|
+
_billboard: any;
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @param {string} name
|
|
10
|
-
* @param {*} [options]
|
|
9
|
+
* @type {string}
|
|
11
10
|
*/
|
|
12
|
-
|
|
13
|
-
_extent: any;
|
|
14
|
-
_billboard: any;
|
|
15
|
-
_color: any;
|
|
16
|
-
get instanceName(): string;
|
|
11
|
+
_color: string;
|
|
17
12
|
/**
|
|
18
13
|
* @private
|
|
19
14
|
*/
|
|
@@ -23,11 +18,12 @@ export class KML {
|
|
|
23
18
|
* @private
|
|
24
19
|
* @param {Array} coordonates
|
|
25
20
|
* @param {string} color
|
|
26
|
-
* @returns {Array<
|
|
21
|
+
* @returns {Array<Entity>}
|
|
27
22
|
*/
|
|
28
23
|
private _convertCoordonatesIntoEntities;
|
|
29
24
|
/**
|
|
30
25
|
* @private
|
|
26
|
+
* @returns {Document}
|
|
31
27
|
*/
|
|
32
28
|
private _getXmlContent;
|
|
33
29
|
/**
|
|
@@ -37,9 +33,12 @@ export class KML {
|
|
|
37
33
|
/**
|
|
38
34
|
* @public
|
|
39
35
|
* @param {File[]} kmls
|
|
40
|
-
* @returns {Promise}
|
|
36
|
+
* @returns {Promise<{entities: Entity[], extent: Extent}>}
|
|
41
37
|
*/
|
|
42
|
-
public addKmlFromFiles(kmls: File[]): Promise<
|
|
38
|
+
public addKmlFromFiles(kmls: File[]): Promise<{
|
|
39
|
+
entities: Entity[];
|
|
40
|
+
extent: Extent;
|
|
41
|
+
}>;
|
|
43
42
|
/**
|
|
44
43
|
* @param {string} color
|
|
45
44
|
* @public
|
|
@@ -52,7 +51,13 @@ export class KML {
|
|
|
52
51
|
/**
|
|
53
52
|
* @public
|
|
54
53
|
* @param {string} url - Url of the KML to display. './myFile.kml' or 'http://mySite/myFile.kml' for example.
|
|
55
|
-
* @returns {Promise}
|
|
54
|
+
* @returns {Promise<{entities: Entity[], extent: Extent}>}
|
|
56
55
|
*/
|
|
57
|
-
public addKmlFromUrl(url: string): Promise<
|
|
56
|
+
public addKmlFromUrl(url: string): Promise<{
|
|
57
|
+
entities: Entity[];
|
|
58
|
+
extent: Extent;
|
|
59
|
+
}>;
|
|
58
60
|
}
|
|
61
|
+
import { Vector } from "./Vector.js";
|
|
62
|
+
import { Entity } from "../entity/Entity.js";
|
|
63
|
+
import { Extent } from "../Extent.js";
|