@openglobus/og 0.11.5 → 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 +5 -7
- package/src/og/Clock.js +6 -10
- package/src/og/Events.js +5 -7
- package/src/og/Extent.js +73 -32
- package/src/og/ImageCanvas.js +18 -15
- package/src/og/LonLat.js +13 -10
- package/src/og/Popup.js +18 -17
- package/src/og/QueueArray.js +3 -4
- package/src/og/Rectangle.js +4 -6
- package/src/og/Stack.js +2 -4
- package/src/og/ajax.js +20 -14
- package/src/og/astro/earth.js +21 -15
- package/src/og/bv/Box.js +2 -3
- package/src/og/bv/Sphere.js +10 -7
- package/src/og/camera/Frustum.js +19 -12
- package/src/og/camera/PlanetCamera.js +0 -1
- package/src/og/control/CompassButton.js +1 -2
- package/src/og/control/Control.js +7 -9
- package/src/og/control/DebugInfo.js +0 -1
- package/src/og/control/KeyboardNavigation.js +9 -9
- package/src/og/control/LayerSwitcher.js +21 -20
- package/src/og/control/SegmentBoundVisualization.js +5 -6
- package/src/og/control/ShowFps.js +12 -7
- package/src/og/control/SimpleNavigation.js +5 -7
- package/src/og/control/Sun.js +22 -12
- package/src/og/control/ToggleWireframe.js +3 -3
- package/src/og/control/TouchNavigation.js +43 -32
- package/src/og/control/ZoomControl.js +40 -24
- package/src/og/ellipsoid/Ellipsoid.js +148 -56
- package/src/og/ellipsoid/wgs84.js +3 -3
- package/src/og/entity/BaseBillboard.js +65 -14
- package/src/og/entity/Billboard.js +9 -5
- package/src/og/entity/BillboardHandler.js +310 -64
- package/src/og/entity/Entity.js +39 -1
- package/src/og/entity/EntityCollection.js +47 -24
- package/src/og/entity/GeoObject.js +228 -0
- package/src/og/entity/GeoObjectHandler.js +910 -0
- package/src/og/entity/GeometryHandler.js +595 -123
- package/src/og/entity/Label.js +53 -18
- package/src/og/entity/LabelHandler.js +42 -244
- package/src/og/entity/LabelWorker.js +213 -0
- package/src/og/entity/Object3d.js +504 -0
- package/src/og/entity/PointCloud.js +76 -28
- package/src/og/entity/PointCloudHandler.js +5 -5
- package/src/og/entity/Ray.js +49 -16
- package/src/og/entity/Strip.js +72 -43
- package/src/og/entity/StripHandler.js +23 -23
- package/src/og/layer/BaseGeoImage.js +50 -19
- package/src/og/layer/CanvasTiles.js +16 -16
- package/src/og/layer/GeoImage.js +6 -6
- package/src/og/layer/KML.js +55 -33
- package/src/og/layer/Layer.js +3 -3
- package/src/og/layer/Vector.js +94 -48
- package/src/og/layer/WMS.js +33 -16
- package/src/og/light/LightSource.js +19 -12
- package/src/og/math/Mat3.js +24 -12
- package/src/og/math/Mat4.js +603 -603
- package/src/og/math/Plane.js +19 -18
- package/src/og/math/Ray.js +17 -12
- package/src/og/math/Vec2.js +24 -14
- package/src/og/math/Vec3.js +60 -30
- package/src/og/math/coder.js +7 -7
- package/src/og/proj/EPSG3857.js +3 -3
- package/src/og/proj/EPSG4326.js +3 -3
- package/src/og/proj/Proj.js +2 -4
- package/src/og/quadTree/Node.js +31 -17
- package/src/og/renderer/Renderer.js +23 -6
- package/src/og/renderer/RendererEvents.js +1 -1
- package/src/og/scene/BaseNode.js +2 -3
- package/src/og/scene/Planet.js +2 -2
- package/src/og/scene/RenderNode.js +15 -8
- 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/shapes/BaseShape.js +107 -35
- package/src/og/shapes/Icosphere.js +25 -10
- package/src/og/shapes/Sphere.js +8 -11
- package/src/og/utils/TextureAtlas.js +16 -18
- package/src/og/utils/shared.js +1 -1
- package/src/og/webgl/Handler.js +68 -49
- package/src/og/webgl/Multisample.js +44 -16
- package/src/og/webgl/Program.js +78 -33
- package/src/og/webgl/callbacks.js +3 -3
- package/types/Deferred.d.ts +1 -1
- package/types/Events.d.ts +2 -2
- package/types/Extent.d.ts +1 -1
- package/types/Rectangle.d.ts +1 -1
- package/types/ajax.d.ts +1 -1
- package/types/bv/Box.d.ts +1 -1
- package/types/bv/Sphere.d.ts +1 -1
- package/types/camera/Camera.d.ts +5 -5
- package/types/camera/Frustum.d.ts +6 -6
- package/types/camera/PlanetCamera.d.ts +8 -8
- package/types/control/Control.d.ts +1 -1
- package/types/control/EarthCoordinates.d.ts +1 -1
- package/types/control/Sun.d.ts +1 -1
- package/types/entity/BaseBillboard.d.ts +15 -8
- package/types/entity/Entity.d.ts +24 -9
- package/types/entity/EntityCollection.d.ts +15 -9
- package/types/entity/GeoObject.d.ts +111 -0
- package/types/entity/GeoObjectHandler.d.ts +77 -0
- package/types/entity/Geometry.d.ts +1 -1
- package/types/entity/GeometryHandler.d.ts +1 -1
- package/types/entity/Label.d.ts +3 -3
- package/types/entity/LabelHandler.d.ts +2 -0
- package/types/entity/LabelWorker.d.ts +9 -0
- package/types/entity/PointCloud.d.ts +1 -1
- package/types/entity/Polyline.d.ts +5 -5
- package/types/entity/Ray.d.ts +1 -1
- package/types/entity/Strip.d.ts +1 -1
- package/types/layer/BaseGeoImage.d.ts +3 -3
- package/types/layer/CanvasTiles.d.ts +5 -5
- package/types/layer/GeoImage.d.ts +1 -1
- package/types/layer/GeoVideo.d.ts +1 -1
- package/types/layer/Layer.d.ts +5 -5
- package/types/layer/Vector.d.ts +9 -9
- package/types/layer/XYZ.d.ts +3 -3
- package/types/light/LightSource.d.ts +7 -7
- package/types/math/Plane.d.ts +1 -1
- package/types/math/Ray.d.ts +1 -1
- package/types/math/Vec2.d.ts +34 -34
- package/types/math/Vec3.d.ts +1 -1
- package/types/math/Vec4.d.ts +1 -1
- package/types/math/coder.d.ts +1 -1
- package/types/math.d.ts +1 -1
- package/types/proj/Proj.d.ts +2 -2
- package/types/quadTree/Node.d.ts +1 -1
- package/types/renderer/Renderer.d.ts +12 -10
- package/types/renderer/RendererEvents.d.ts +1 -1
- package/types/scene/BaseNode.d.ts +4 -4
- package/types/scene/Planet.d.ts +40 -40
- package/types/scene/RenderNode.d.ts +9 -9
- package/types/segment/Segment.d.ts +9 -9
- package/types/shaders/geoObject.d.ts +3 -0
- package/types/shapes/BaseShape.d.ts +5 -5
- package/types/terrain/EmptyTerrain.d.ts +2 -2
- package/types/terrain/GlobusTerrain.d.ts +4 -4
- package/types/utils/TextureAtlas.d.ts +4 -4
- package/types/utils/shared.d.ts +9 -9
- package/types/webgl/Framebuffer.d.ts +1 -1
- package/types/webgl/Handler.d.ts +16 -7
- package/types/webgl/Multisample.d.ts +2 -2
- package/types/webgl/Program.d.ts +6 -0
- package/types/webgl/ProgramController.d.ts +1 -1
package/types/entity/Entity.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export class Entity {
|
|
|
82
82
|
* @protected
|
|
83
83
|
* @type {EntityCollection}
|
|
84
84
|
*/
|
|
85
|
-
protected _entityCollection:
|
|
85
|
+
protected _entityCollection: EntityCollection;
|
|
86
86
|
/**
|
|
87
87
|
* Entity collection array store index.
|
|
88
88
|
* @protected
|
|
@@ -94,7 +94,7 @@ export class Entity {
|
|
|
94
94
|
* @protected
|
|
95
95
|
* @type {layer.Vector}
|
|
96
96
|
*/
|
|
97
|
-
protected _layer:
|
|
97
|
+
protected _layer: layer.Vector;
|
|
98
98
|
/**
|
|
99
99
|
* Assigned vector layer entity array index.
|
|
100
100
|
* @protected
|
|
@@ -110,10 +110,11 @@ export class Entity {
|
|
|
110
110
|
_featureConstructorArray: {
|
|
111
111
|
billboard: (typeof Billboard | ((billboard: Billboard) => Billboard))[];
|
|
112
112
|
label: (typeof Label | ((label: Label) => Label))[];
|
|
113
|
-
sphere: (typeof Sphere | ((shape:
|
|
113
|
+
sphere: (typeof Sphere | ((shape: BaseShape) => Polyline))[];
|
|
114
114
|
polyline: (typeof Polyline | ((polyline: Polyline) => Polyline))[];
|
|
115
115
|
pointCloud: (typeof PointCloud | ((pointCloud: PointCloud) => PointCloud))[];
|
|
116
116
|
geometry: (typeof Geometry | ((geometry: Geometry) => Geometry))[];
|
|
117
|
+
geoObject: (typeof GeoObject | ((geoObject: GeoObject) => GeoObject))[];
|
|
117
118
|
strip: (typeof Strip | ((strip: Strip) => Strip))[];
|
|
118
119
|
ray: (typeof Ray | ((ray: Ray) => Ray))[];
|
|
119
120
|
};
|
|
@@ -134,7 +135,7 @@ export class Entity {
|
|
|
134
135
|
* @public
|
|
135
136
|
* @type {shape.BaseShape}
|
|
136
137
|
*/
|
|
137
|
-
public shape:
|
|
138
|
+
public shape: shape.BaseShape;
|
|
138
139
|
/**
|
|
139
140
|
* Polyline entity.
|
|
140
141
|
* @public
|
|
@@ -146,7 +147,7 @@ export class Entity {
|
|
|
146
147
|
* @public
|
|
147
148
|
* @type {ray}
|
|
148
149
|
*/
|
|
149
|
-
public ray:
|
|
150
|
+
public ray: ray;
|
|
150
151
|
/**
|
|
151
152
|
* PointCloud entity.
|
|
152
153
|
* @public
|
|
@@ -159,6 +160,12 @@ export class Entity {
|
|
|
159
160
|
* @type {Geometry}
|
|
160
161
|
*/
|
|
161
162
|
public geometry: Geometry;
|
|
163
|
+
/**
|
|
164
|
+
* Geo object entity
|
|
165
|
+
* @public
|
|
166
|
+
* @type {og.Geometry}
|
|
167
|
+
*/
|
|
168
|
+
public geoObject: og.Geometry;
|
|
162
169
|
/**
|
|
163
170
|
* Strip entity.
|
|
164
171
|
* @public
|
|
@@ -171,11 +178,11 @@ export class Entity {
|
|
|
171
178
|
/**
|
|
172
179
|
* Adds current entity into the specified entity collection.
|
|
173
180
|
* @public
|
|
174
|
-
* @param {EntityCollection|
|
|
181
|
+
* @param {EntityCollection|Vector} collection - Specified entity collection or vector layer.
|
|
175
182
|
* @param {Boolean} [rightNow=false] - Entity insertion option for vector layer.
|
|
176
183
|
* @returns {Entity} - This object.
|
|
177
184
|
*/
|
|
178
|
-
public addTo(collection:
|
|
185
|
+
public addTo(collection: EntityCollection | Vector, rightNow?: boolean): Entity;
|
|
179
186
|
/**
|
|
180
187
|
* Removes current entity from collection and layer.
|
|
181
188
|
* @public
|
|
@@ -271,7 +278,7 @@ export class Entity {
|
|
|
271
278
|
* @param {BaseShape} shape - Shape object.
|
|
272
279
|
* @returns {Polyline} -
|
|
273
280
|
*/
|
|
274
|
-
public setShape(shape:
|
|
281
|
+
public setShape(shape: BaseShape): Polyline;
|
|
275
282
|
/**
|
|
276
283
|
* Sets entity polyline.
|
|
277
284
|
* @public
|
|
@@ -293,6 +300,13 @@ export class Entity {
|
|
|
293
300
|
* @returns {Geometry} -
|
|
294
301
|
*/
|
|
295
302
|
public setGeometry(geometry: Geometry): Geometry;
|
|
303
|
+
/**
|
|
304
|
+
* Sets entity geoObject.
|
|
305
|
+
* @public
|
|
306
|
+
* @param {GeoObject} geoObject - GeoObject.
|
|
307
|
+
* @returns {GeoObject} -
|
|
308
|
+
*/
|
|
309
|
+
public setGeoObject(geoObject: GeoObject): GeoObject;
|
|
296
310
|
/**
|
|
297
311
|
* Sets entity strip.
|
|
298
312
|
* @public
|
|
@@ -300,7 +314,7 @@ export class Entity {
|
|
|
300
314
|
* @returns {Strip} -
|
|
301
315
|
*/
|
|
302
316
|
public setStrip(strip: Strip): Strip;
|
|
303
|
-
get layer():
|
|
317
|
+
get layer(): layer.Vector;
|
|
304
318
|
get rendererEvents(): any;
|
|
305
319
|
/**
|
|
306
320
|
* Append child entity.
|
|
@@ -328,6 +342,7 @@ import { Sphere } from "../shapes/Sphere.js";
|
|
|
328
342
|
import { Polyline } from "./Polyline.js";
|
|
329
343
|
import { PointCloud } from "./PointCloud.js";
|
|
330
344
|
import { Geometry } from "./Geometry.js";
|
|
345
|
+
import { GeoObject } from "./GeoObject.js";
|
|
331
346
|
import { Strip } from "./Strip.js";
|
|
332
347
|
import { Ray } from "./Ray.js";
|
|
333
348
|
import { Extent } from "../Extent.js";
|
|
@@ -68,7 +68,7 @@ export class EntityCollection {
|
|
|
68
68
|
* @public
|
|
69
69
|
* @type {RenderNode}
|
|
70
70
|
*/
|
|
71
|
-
public renderNode:
|
|
71
|
+
public renderNode: RenderNode;
|
|
72
72
|
/**
|
|
73
73
|
* Visibility option.
|
|
74
74
|
* @protected
|
|
@@ -129,12 +129,18 @@ export class EntityCollection {
|
|
|
129
129
|
* @type {StripHandler}
|
|
130
130
|
*/
|
|
131
131
|
public stripHandler: StripHandler;
|
|
132
|
+
/**
|
|
133
|
+
* Geo object handler
|
|
134
|
+
* @public
|
|
135
|
+
* @type {og.GeoObjectHandler}
|
|
136
|
+
*/
|
|
137
|
+
public geoObjectHandler: og.GeoObjectHandler;
|
|
132
138
|
/**
|
|
133
139
|
* Entities array.
|
|
134
140
|
* @protected
|
|
135
141
|
* @type {Array.<Entity>}
|
|
136
142
|
*/
|
|
137
|
-
protected _entities: Array<
|
|
143
|
+
protected _entities: Array<Entity>;
|
|
138
144
|
/**
|
|
139
145
|
* First index - near distance to the entity, after entity becomes full scale.
|
|
140
146
|
* Second index - far distance to the entity, when entity becomes zero scale.
|
|
@@ -209,28 +215,28 @@ export class EntityCollection {
|
|
|
209
215
|
* @param {Entity} entity - Entity.
|
|
210
216
|
* @returns {EntityCollection} -
|
|
211
217
|
*/
|
|
212
|
-
public add(entity:
|
|
218
|
+
public add(entity: Entity): EntityCollection;
|
|
213
219
|
/**
|
|
214
220
|
* Adds entities array to the collection and returns collection.
|
|
215
221
|
* @public
|
|
216
222
|
* @param {Array.<Entity>} entities - Entities array.
|
|
217
223
|
* @returns {EntityCollection} -
|
|
218
224
|
*/
|
|
219
|
-
public addEntities(entities: Array<
|
|
225
|
+
public addEntities(entities: Array<Entity>): EntityCollection;
|
|
220
226
|
/**
|
|
221
227
|
* Returns true if the entity belongs this collection, otherwise returns false.
|
|
222
228
|
* @public
|
|
223
229
|
* @param {Entity} entity - Entity.
|
|
224
230
|
* @returns {boolean} -
|
|
225
231
|
*/
|
|
226
|
-
public belongs(entity:
|
|
232
|
+
public belongs(entity: Entity): boolean;
|
|
227
233
|
_removeRecursively(entity: any): void;
|
|
228
234
|
/**
|
|
229
235
|
* Removes entity from this collection.
|
|
230
236
|
* @public
|
|
231
237
|
* @param {Entity} entity - Entity to remove.
|
|
232
238
|
*/
|
|
233
|
-
public removeEntity(entity:
|
|
239
|
+
public removeEntity(entity: Entity): void;
|
|
234
240
|
_removeEntitySilent(entity: any): void;
|
|
235
241
|
/**
|
|
236
242
|
* Creates or refresh collected entities picking color.
|
|
@@ -250,12 +256,12 @@ export class EntityCollection {
|
|
|
250
256
|
* @param {boolean} [isHidden] - Uses in vector layers that render in planet render specific function.
|
|
251
257
|
* @returns {EntityCollection} -
|
|
252
258
|
*/
|
|
253
|
-
public addTo(renderNode:
|
|
259
|
+
public addTo(renderNode: RenderNode, isHidden?: boolean): EntityCollection;
|
|
254
260
|
/**
|
|
255
261
|
* This function is called in the RenderNode assign function.
|
|
256
262
|
* @param {RenderNode} renderNode
|
|
257
263
|
*/
|
|
258
|
-
bindRenderNode(renderNode:
|
|
264
|
+
bindRenderNode(renderNode: RenderNode): void;
|
|
259
265
|
/**
|
|
260
266
|
* Updates coordiantes all lonLat entities in collection after collecction attached to the planet node.
|
|
261
267
|
* @private
|
|
@@ -282,7 +288,7 @@ export class EntityCollection {
|
|
|
282
288
|
* @public
|
|
283
289
|
* @returns {Array.<Entity>} -
|
|
284
290
|
*/
|
|
285
|
-
public getEntities(): Array<
|
|
291
|
+
public getEntities(): Array<Entity>;
|
|
286
292
|
/**
|
|
287
293
|
* Safety entities loop.
|
|
288
294
|
* @public
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @class
|
|
3
|
+
* @param {Object} options - Geo object parameters:
|
|
4
|
+
* @param {og.Vec3} [options.position] - Geo object position.
|
|
5
|
+
*/
|
|
6
|
+
export class GeoObject {
|
|
7
|
+
constructor(options: any);
|
|
8
|
+
scale: any;
|
|
9
|
+
scaleByDistance: Float32Array;
|
|
10
|
+
/**
|
|
11
|
+
* Geo object center cartesian position.
|
|
12
|
+
* @protected
|
|
13
|
+
* @type {og.Vec3}
|
|
14
|
+
*/
|
|
15
|
+
protected _position: og.Vec3;
|
|
16
|
+
_positionHigh: Vec3;
|
|
17
|
+
_positionLow: Vec3;
|
|
18
|
+
_pitch: any;
|
|
19
|
+
_yaw: any;
|
|
20
|
+
_roll: any;
|
|
21
|
+
_planet: any;
|
|
22
|
+
_lonLatAlt: LonLat;
|
|
23
|
+
/**
|
|
24
|
+
* RGBA color.
|
|
25
|
+
* @protected
|
|
26
|
+
* @type {og.Vec4}
|
|
27
|
+
*/
|
|
28
|
+
protected _color: og.Vec4;
|
|
29
|
+
_direction: Vec3;
|
|
30
|
+
_handler: any;
|
|
31
|
+
_handlerIndex: number;
|
|
32
|
+
_vertices: any;
|
|
33
|
+
_normals: any;
|
|
34
|
+
_indices: any;
|
|
35
|
+
instanced: any;
|
|
36
|
+
tag: any;
|
|
37
|
+
_indicesCount: any;
|
|
38
|
+
_verticesCount: number;
|
|
39
|
+
get planet(): any;
|
|
40
|
+
get renderer(): any;
|
|
41
|
+
/**
|
|
42
|
+
* Sets geo object opacity.
|
|
43
|
+
* @public
|
|
44
|
+
* @param {number} a - Billboard opacity.
|
|
45
|
+
*/
|
|
46
|
+
public setOpacity(a: number): void;
|
|
47
|
+
/**
|
|
48
|
+
* Sets RGBA color. Each channel from 0.0 to 1.0.
|
|
49
|
+
* @public
|
|
50
|
+
* @param {number} r - Red.
|
|
51
|
+
* @param {number} g - Green.
|
|
52
|
+
* @param {number} b - Blue.
|
|
53
|
+
* @param {number} a - Alpha.
|
|
54
|
+
*/
|
|
55
|
+
public setColor(r: number, g: number, b: number, a: number): void;
|
|
56
|
+
/**
|
|
57
|
+
* Sets RGBA color. Each channel from 0.0 to 1.0.
|
|
58
|
+
* @public
|
|
59
|
+
* @param {og.Vec4} color - RGBA vector.
|
|
60
|
+
*/
|
|
61
|
+
public setColor4v(color: og.Vec4): void;
|
|
62
|
+
/**
|
|
63
|
+
* Sets geo object visibility.
|
|
64
|
+
* @public
|
|
65
|
+
* @param {boolean} visibility - Visibility flag.
|
|
66
|
+
*/
|
|
67
|
+
public setVisibility(visibility: boolean): void;
|
|
68
|
+
_visibility: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Returns geo object visibility.
|
|
71
|
+
* @public
|
|
72
|
+
* @returns {boolean}
|
|
73
|
+
*/
|
|
74
|
+
public getVisibility(): boolean;
|
|
75
|
+
setLonLat(lon: any, lat: any, alt: any): void;
|
|
76
|
+
/**
|
|
77
|
+
* Sets geoObject position.
|
|
78
|
+
* @public
|
|
79
|
+
* @param {number} x - X coordinate.
|
|
80
|
+
* @param {number} y - Y coordinate.
|
|
81
|
+
* @param {number} z - Z coordinate.
|
|
82
|
+
*/
|
|
83
|
+
public setPosition(x: number, y: number, z: number): void;
|
|
84
|
+
/**
|
|
85
|
+
* Sets billboard position.
|
|
86
|
+
* @public
|
|
87
|
+
* @param {og.Vec3} position - Cartesian coordinates.
|
|
88
|
+
*/
|
|
89
|
+
public setPosition3v(position: og.Vec3): void;
|
|
90
|
+
setYaw(yaw: any): void;
|
|
91
|
+
setPitch(pitch: any): void;
|
|
92
|
+
setRoll(roll: any): void;
|
|
93
|
+
setScale(scale: any): void;
|
|
94
|
+
/**
|
|
95
|
+
* Removes geo object from handler.
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
public remove(): void;
|
|
99
|
+
_entity: any;
|
|
100
|
+
/**
|
|
101
|
+
* Sets billboard picking color.
|
|
102
|
+
* @public
|
|
103
|
+
* @param {og.Vec3} color - Picking color.
|
|
104
|
+
*/
|
|
105
|
+
public setPickingColor3v(color: og.Vec3): void;
|
|
106
|
+
updateDirection(): void;
|
|
107
|
+
_qNorthFrame: Quat;
|
|
108
|
+
}
|
|
109
|
+
import { Vec3 } from "../math/index.js";
|
|
110
|
+
import { LonLat } from "../LonLat.js";
|
|
111
|
+
import { Quat } from "../math/index.js";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export class GeoObjectHandler {
|
|
2
|
+
static set _staticCounter(arg: any);
|
|
3
|
+
static get _staticCounter(): any;
|
|
4
|
+
constructor(entityCollection: any);
|
|
5
|
+
/**
|
|
6
|
+
* Picking rendering option.
|
|
7
|
+
* @public
|
|
8
|
+
* @type {boolean}
|
|
9
|
+
*/
|
|
10
|
+
public pickingEnabled: boolean;
|
|
11
|
+
_entityCollection: any;
|
|
12
|
+
_renderer: any;
|
|
13
|
+
_planet: any;
|
|
14
|
+
_geoObjects: any[];
|
|
15
|
+
_pitchRollArr: any[][];
|
|
16
|
+
_sizeArr: any[][];
|
|
17
|
+
_vertexArr: any[][];
|
|
18
|
+
_positionHighArr: any[][];
|
|
19
|
+
_positionLowArr: any[][];
|
|
20
|
+
_directionArr: any[][];
|
|
21
|
+
_rgbaArr: any[][];
|
|
22
|
+
_normalsArr: any[][];
|
|
23
|
+
_indicesArr: any[][];
|
|
24
|
+
_pickingColorArr: any[][];
|
|
25
|
+
_pitchRollBuffer: any[];
|
|
26
|
+
_sizeBuffer: any[];
|
|
27
|
+
_vertexBuffer: any[];
|
|
28
|
+
_positionHighBuffer: any[];
|
|
29
|
+
_positionLowBuffer: any[];
|
|
30
|
+
_directionBuffer: any[];
|
|
31
|
+
_rgbaBuffer: any[];
|
|
32
|
+
_normalsBuffer: any[];
|
|
33
|
+
_indicesBuffer: any[];
|
|
34
|
+
_pickingColorBuffer: any[];
|
|
35
|
+
__staticId: number;
|
|
36
|
+
_buffersUpdateCallbacks: (() => void)[];
|
|
37
|
+
_changedBuffers: any[];
|
|
38
|
+
_instancedTags: any;
|
|
39
|
+
getObjectByIndex(index: any): any;
|
|
40
|
+
createVertexBuffer(): void;
|
|
41
|
+
createPitchRollBuffer(): void;
|
|
42
|
+
createSizeBuffer(): void;
|
|
43
|
+
createPositionBuffer(): void;
|
|
44
|
+
createRgbaBuffer(): void;
|
|
45
|
+
createDirectionBuffer(): void;
|
|
46
|
+
createNormalsBuffer(): void;
|
|
47
|
+
createIndicesBuffer(): void;
|
|
48
|
+
createPickingColorBuffer(): void;
|
|
49
|
+
initProgram(): void;
|
|
50
|
+
setRenderNode(renderNode: any): void;
|
|
51
|
+
setRenderer(planet: any): void;
|
|
52
|
+
_addGeoObjectToArray(geoObject: any): void;
|
|
53
|
+
_displayPASS(): void;
|
|
54
|
+
drawPicking(): void;
|
|
55
|
+
_pickingPASS(): void;
|
|
56
|
+
_recalculateIndices(): void;
|
|
57
|
+
setVertexArr(index: any, vertexArr: any): void;
|
|
58
|
+
setDirectionArr(index: any, direction: any): void;
|
|
59
|
+
setVisibility(index: any, visibility: any): void;
|
|
60
|
+
setPositionArr(index: any, positionHigh: any, positionLow: any): void;
|
|
61
|
+
setRgbaArr(index: any, rgba: any): void;
|
|
62
|
+
getTagIndexByObjectIndex(index: any): any;
|
|
63
|
+
getTagDataByObjectIndex(index: any): any;
|
|
64
|
+
setPickingColorArr(index: any, color: any): void;
|
|
65
|
+
setPitchRollArr(index: any, pitch: any, roll: any): void;
|
|
66
|
+
setScaleArr(index: any, scale: any): void;
|
|
67
|
+
refresh(): void;
|
|
68
|
+
_removeGeoObjects(): void;
|
|
69
|
+
clear(): void;
|
|
70
|
+
_deleteBuffers(): void;
|
|
71
|
+
update(): void;
|
|
72
|
+
draw(): void;
|
|
73
|
+
_reindexGeoObjects(startIndex: any, tag: any): void;
|
|
74
|
+
add(geoObject: any): void;
|
|
75
|
+
remove(geoObject: any): void;
|
|
76
|
+
_removeGeoObject(geoObject: any): void;
|
|
77
|
+
}
|
|
@@ -46,7 +46,7 @@ export class GeometryHandler {
|
|
|
46
46
|
* @public
|
|
47
47
|
* @param {Geometry} geometry - Geometry object.
|
|
48
48
|
*/
|
|
49
|
-
public add(geometry:
|
|
49
|
+
public add(geometry: Geometry): void;
|
|
50
50
|
remove(geometry: any): void;
|
|
51
51
|
_refreshRecursevely(geometry: any, treeNode: any): void;
|
|
52
52
|
_refreshRecursevelyExt(extent: any, treeNode: any): void;
|
package/types/entity/Label.d.ts
CHANGED
|
@@ -85,13 +85,13 @@ export class Label extends BaseBillboard {
|
|
|
85
85
|
* @public
|
|
86
86
|
* @param {Label.ALIGN} align - Text align.
|
|
87
87
|
*/
|
|
88
|
-
public setAlign(align:
|
|
88
|
+
public setAlign(align: Label.ALIGN): void;
|
|
89
89
|
/**
|
|
90
90
|
* Gets label text current alignment.
|
|
91
91
|
* @public
|
|
92
92
|
* @returns {Label.ALIGN}
|
|
93
93
|
*/
|
|
94
|
-
public getAlign():
|
|
94
|
+
public getAlign(): Label.ALIGN;
|
|
95
95
|
/**
|
|
96
96
|
* Sets font face family.
|
|
97
97
|
* @public
|
|
@@ -178,7 +178,7 @@ export class Label extends BaseBillboard {
|
|
|
178
178
|
* @public
|
|
179
179
|
* @param {utils.FontAtlas} fontAtlas - Font atlas.
|
|
180
180
|
*/
|
|
181
|
-
public assignFontAtlas(fontAtlas:
|
|
181
|
+
public assignFontAtlas(fontAtlas: utils.FontAtlas): void;
|
|
182
182
|
}
|
|
183
183
|
export namespace ALIGN {
|
|
184
184
|
const RIGHT: number;
|
|
@@ -16,7 +16,9 @@ export class LabelHandler extends BillboardHandler {
|
|
|
16
16
|
_outlineArr: Float32Array;
|
|
17
17
|
_outlineColorArr: Float32Array;
|
|
18
18
|
_maxLetters: any;
|
|
19
|
+
_addLabelToArrays(label: any): void;
|
|
19
20
|
assignFontAtlas(label: any): void;
|
|
21
|
+
workerCallback(data: any, label: any): void;
|
|
20
22
|
setText(index: any, text: any, fontIndex: any, align: any): void;
|
|
21
23
|
setOutlineColorArr(index: any, rgba: any): void;
|
|
22
24
|
setOutlineArr(index: any, outline: any): void;
|
|
@@ -122,7 +122,7 @@ export class PointCloud {
|
|
|
122
122
|
* @public
|
|
123
123
|
* @param {RenderNode} renderNode - Assigned render node.
|
|
124
124
|
*/
|
|
125
|
-
public setRenderNode(renderNode:
|
|
125
|
+
public setRenderNode(renderNode: RenderNode): void;
|
|
126
126
|
/**
|
|
127
127
|
* Removes from entity.
|
|
128
128
|
* @public
|
|
@@ -30,7 +30,7 @@ export class Polyline {
|
|
|
30
30
|
* @param {Array} [outColors]
|
|
31
31
|
* @static
|
|
32
32
|
*/
|
|
33
|
-
static appendLineData3v(path3v: Array<Array<number>>, pathColors: any, defaultColor: any, isClosed: boolean, outVerticesHigh: any, outVerticesLow: any, outOrders: number[], outIndexes: number[], ellipsoid?:
|
|
33
|
+
static appendLineData3v(path3v: Array<Array<number>>, pathColors: any, defaultColor: any, isClosed: boolean, outVerticesHigh: any, outVerticesLow: any, outOrders: number[], outIndexes: number[], ellipsoid?: Ellipsoid, outTransformedPathLonLat?: Array<Array<LonLat>>, outPath3v?: Array<Array<LonLat>>, outTransformedPathMerc?: Array<Array<LonLat>>, outExtent?: Extent, outColors?: any[]): void;
|
|
34
34
|
/**
|
|
35
35
|
* Appends to the line new cartesian coordinates point data.
|
|
36
36
|
* @param {Array.<Array.<number>>} path3v - Line coordinates path array. [[0,0,0], [1,1,1],...]
|
|
@@ -45,7 +45,7 @@ export class Polyline {
|
|
|
45
45
|
* @param {Extent} [outExtent] - Geodetic line extent.
|
|
46
46
|
* @static
|
|
47
47
|
*/
|
|
48
|
-
static appendPoint3v(path3v: Array<Array<number>>, point3v: any, pathColors: any, color: any, isClosed: boolean, outVerticesHigh: any, outVerticesLow: any, outColors: any, outOrders: number[], outIndexes: number[], ellipsoid?:
|
|
48
|
+
static appendPoint3v(path3v: Array<Array<number>>, point3v: any, pathColors: any, color: any, isClosed: boolean, outVerticesHigh: any, outVerticesLow: any, outColors: any, outOrders: number[], outIndexes: number[], ellipsoid?: Ellipsoid, outTransformedPathLonLat?: Array<Array<LonLat>>, outTransformedPathMerc?: Array<Array<LonLat>>, outExtent?: Extent): void;
|
|
49
49
|
/**
|
|
50
50
|
* Appends to the line array new geodetic coordinates line data.
|
|
51
51
|
* @param {Array.<Array.<number>>} pathLonLat - Line geodetic coordinates path array. [[0,0,0], [1,1,1],...]
|
|
@@ -60,7 +60,7 @@ export class Polyline {
|
|
|
60
60
|
* @param {Extent} outExtent - Geodetic line extent.
|
|
61
61
|
* @static
|
|
62
62
|
*/
|
|
63
|
-
static appendLineDataLonLat(pathLonLat: Array<Array<number>>, pathColors: any, defaultColor: any, isClosed: boolean, outVerticesHigh: any, outVerticesLow: any, outOrders: number[], outIndexes: number[], ellipsoid:
|
|
63
|
+
static appendLineDataLonLat(pathLonLat: Array<Array<number>>, pathColors: any, defaultColor: any, isClosed: boolean, outVerticesHigh: any, outVerticesLow: any, outOrders: number[], outIndexes: number[], ellipsoid: Ellipsoid, outTransformedPathCartesian: Array<Array<number>>, outPathLonLat: Array<Array<LonLat>>, outTransformedPathMerc: Array<Array<LonLat>>, outExtent: Extent, outColors: any): void;
|
|
64
64
|
constructor(options: any);
|
|
65
65
|
/**
|
|
66
66
|
* Object unic identifier.
|
|
@@ -152,7 +152,7 @@ export class Polyline {
|
|
|
152
152
|
* @protected
|
|
153
153
|
* @param {pg.math.Vector3[]} path3v - Cartesian coordinates.
|
|
154
154
|
*/
|
|
155
|
-
protected _setEqualPath3v(path3v:
|
|
155
|
+
protected _setEqualPath3v(path3v: pg.math.Vector3[]): void;
|
|
156
156
|
/**
|
|
157
157
|
* Sets polyline with geodetic coordinates.
|
|
158
158
|
* @protected
|
|
@@ -226,7 +226,7 @@ export class Polyline {
|
|
|
226
226
|
* @public
|
|
227
227
|
* @param {RenderNode} renderNode -
|
|
228
228
|
*/
|
|
229
|
-
public setRenderNode(renderNode:
|
|
229
|
+
public setRenderNode(renderNode: RenderNode): void;
|
|
230
230
|
/**
|
|
231
231
|
* @protected
|
|
232
232
|
*/
|
package/types/entity/Ray.d.ts
CHANGED
package/types/entity/Strip.d.ts
CHANGED
|
@@ -62,20 +62,20 @@ export class BaseGeoImage extends Layer {
|
|
|
62
62
|
* @virtual
|
|
63
63
|
* @param {Material} material - GeoImage material.
|
|
64
64
|
*/
|
|
65
|
-
abortMaterialLoading(material:
|
|
65
|
+
abortMaterialLoading(material: Material): void;
|
|
66
66
|
/**
|
|
67
67
|
* @virtual
|
|
68
68
|
* @protected
|
|
69
69
|
* @param {Material} material - GeoImage material.
|
|
70
70
|
*/
|
|
71
|
-
protected clearMaterial(material:
|
|
71
|
+
protected clearMaterial(material: Material): void;
|
|
72
72
|
/**
|
|
73
73
|
* @virtual
|
|
74
74
|
* @protected
|
|
75
75
|
* @param {Material} material - GeoImage material.
|
|
76
76
|
* @returns {Array<number> } -
|
|
77
77
|
*/
|
|
78
|
-
protected applyMaterial(material:
|
|
78
|
+
protected applyMaterial(material: Material): Array<number>;
|
|
79
79
|
/**
|
|
80
80
|
* Gets frame width size in pixels.
|
|
81
81
|
* @public
|
|
@@ -29,13 +29,13 @@ export class CanvasTiles extends Layer {
|
|
|
29
29
|
* @protected
|
|
30
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
35
|
* @type {layer.CanvasTiles~drawTileCallback}
|
|
36
36
|
* @public
|
|
37
37
|
*/
|
|
38
|
-
public drawTile:
|
|
38
|
+
public drawTile: layer.CanvasTiles;
|
|
39
39
|
/**
|
|
40
40
|
* Abort loading tiles.
|
|
41
41
|
* @public
|
|
@@ -47,19 +47,19 @@ export class CanvasTiles extends Layer {
|
|
|
47
47
|
* @virtual
|
|
48
48
|
* @param {Material} material -
|
|
49
49
|
*/
|
|
50
|
-
public loadMaterial(material:
|
|
50
|
+
public loadMaterial(material: Material): void;
|
|
51
51
|
/**
|
|
52
52
|
* Loads material image and apply it to the planet segment.
|
|
53
53
|
* @protected
|
|
54
54
|
* @param {Material} material - Loads material image.
|
|
55
55
|
*/
|
|
56
|
-
protected _exec(material:
|
|
56
|
+
protected _exec(material: Material): void;
|
|
57
57
|
/**
|
|
58
58
|
* Abort exact material loading.
|
|
59
59
|
* @public
|
|
60
60
|
* @param {Material} material - Segment material.
|
|
61
61
|
*/
|
|
62
|
-
public abortMaterialLoading(material:
|
|
62
|
+
public abortMaterialLoading(material: Material): void;
|
|
63
63
|
_dequeueRequest(): void;
|
|
64
64
|
_whilePendings(): any;
|
|
65
65
|
applyMaterial(material: any): number[];
|
|
@@ -45,7 +45,7 @@ export class GeoImage extends BaseGeoImage {
|
|
|
45
45
|
* @public
|
|
46
46
|
* @param {Material} material - GeoImage planet material.
|
|
47
47
|
*/
|
|
48
|
-
public loadMaterial(material:
|
|
48
|
+
public loadMaterial(material: Material): void;
|
|
49
49
|
_renderingProjType1(): void;
|
|
50
50
|
_renderingProjType0(): void;
|
|
51
51
|
}
|
|
@@ -48,7 +48,7 @@ export class GeoVideo extends BaseGeoImage {
|
|
|
48
48
|
* @public
|
|
49
49
|
* @param {Material} material - GeoImage planet material.
|
|
50
50
|
*/
|
|
51
|
-
public loadMaterial(material:
|
|
51
|
+
public loadMaterial(material: Material): void;
|
|
52
52
|
_renderingProjType1(): void;
|
|
53
53
|
_renderingProjType0(): void;
|
|
54
54
|
}
|
package/types/layer/Layer.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export const FADING_FACTOR: 0.29;
|
|
|
17
17
|
* @param {Vec3} [options.ambient=[0.1, 0.1, 0.21]] - Ambient RGB color.
|
|
18
18
|
* @param {Vec3} [options.diffuse=[1.0, 1.0, 1.0]] - Diffuse RGB color.
|
|
19
19
|
* @param {Vec3} [options.specular=[0.00025, 0.00015, 0.0001]] - Specular RGB color.
|
|
20
|
-
* @param {string} [options.textureFilter=
|
|
20
|
+
* @param {string} [options.textureFilter="anisotropic"] - Image texture filter. Available values: "nearest", "linear", "mipmap" and "anisotropic".
|
|
21
21
|
* @param {Number} [options.shininess=100] - Shininess.
|
|
22
22
|
*
|
|
23
23
|
* @fires og.Layer#visibilitychange
|
|
@@ -112,7 +112,7 @@ export class Layer {
|
|
|
112
112
|
* @protected
|
|
113
113
|
* @type {Planet}
|
|
114
114
|
*/
|
|
115
|
-
protected _planet:
|
|
115
|
+
protected _planet: Planet;
|
|
116
116
|
/**
|
|
117
117
|
* Unic identifier.
|
|
118
118
|
* @protected
|
|
@@ -211,7 +211,7 @@ export class Layer {
|
|
|
211
211
|
* @virtual
|
|
212
212
|
* @param {Planet} planet - Planet render node.
|
|
213
213
|
*/
|
|
214
|
-
protected _assignPlanet(planet:
|
|
214
|
+
protected _assignPlanet(planet: Planet): void;
|
|
215
215
|
/**
|
|
216
216
|
* Assign picking color to the layer.
|
|
217
217
|
* @protected
|
|
@@ -223,7 +223,7 @@ export class Layer {
|
|
|
223
223
|
* @public
|
|
224
224
|
* @param {Planet} planet - Adds layer to the planet.
|
|
225
225
|
*/
|
|
226
|
-
public addTo(planet:
|
|
226
|
+
public addTo(planet: Planet): Layer;
|
|
227
227
|
/**
|
|
228
228
|
* Removes from planet.
|
|
229
229
|
* @public
|
|
@@ -239,7 +239,7 @@ export class Layer {
|
|
|
239
239
|
* Returns planet instance.
|
|
240
240
|
* @virtual
|
|
241
241
|
*/
|
|
242
|
-
get planet():
|
|
242
|
+
get planet(): Planet;
|
|
243
243
|
/**
|
|
244
244
|
* Sets layer attribution text.
|
|
245
245
|
* @public
|