@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.
Files changed (145) hide show
  1. package/package.json +5 -7
  2. package/src/og/Clock.js +6 -10
  3. package/src/og/Events.js +5 -7
  4. package/src/og/Extent.js +73 -32
  5. package/src/og/ImageCanvas.js +18 -15
  6. package/src/og/LonLat.js +13 -10
  7. package/src/og/Popup.js +18 -17
  8. package/src/og/QueueArray.js +3 -4
  9. package/src/og/Rectangle.js +4 -6
  10. package/src/og/Stack.js +2 -4
  11. package/src/og/ajax.js +20 -14
  12. package/src/og/astro/earth.js +21 -15
  13. package/src/og/bv/Box.js +2 -3
  14. package/src/og/bv/Sphere.js +10 -7
  15. package/src/og/camera/Frustum.js +19 -12
  16. package/src/og/camera/PlanetCamera.js +0 -1
  17. package/src/og/control/CompassButton.js +1 -2
  18. package/src/og/control/Control.js +7 -9
  19. package/src/og/control/DebugInfo.js +0 -1
  20. package/src/og/control/KeyboardNavigation.js +9 -9
  21. package/src/og/control/LayerSwitcher.js +21 -20
  22. package/src/og/control/SegmentBoundVisualization.js +5 -6
  23. package/src/og/control/ShowFps.js +12 -7
  24. package/src/og/control/SimpleNavigation.js +5 -7
  25. package/src/og/control/Sun.js +22 -12
  26. package/src/og/control/ToggleWireframe.js +3 -3
  27. package/src/og/control/TouchNavigation.js +43 -32
  28. package/src/og/control/ZoomControl.js +40 -24
  29. package/src/og/ellipsoid/Ellipsoid.js +148 -56
  30. package/src/og/ellipsoid/wgs84.js +3 -3
  31. package/src/og/entity/BaseBillboard.js +65 -14
  32. package/src/og/entity/Billboard.js +9 -5
  33. package/src/og/entity/BillboardHandler.js +310 -64
  34. package/src/og/entity/Entity.js +39 -1
  35. package/src/og/entity/EntityCollection.js +47 -24
  36. package/src/og/entity/GeoObject.js +228 -0
  37. package/src/og/entity/GeoObjectHandler.js +910 -0
  38. package/src/og/entity/GeometryHandler.js +595 -123
  39. package/src/og/entity/Label.js +53 -18
  40. package/src/og/entity/LabelHandler.js +42 -244
  41. package/src/og/entity/LabelWorker.js +213 -0
  42. package/src/og/entity/Object3d.js +504 -0
  43. package/src/og/entity/PointCloud.js +76 -28
  44. package/src/og/entity/PointCloudHandler.js +5 -5
  45. package/src/og/entity/Ray.js +49 -16
  46. package/src/og/entity/Strip.js +72 -43
  47. package/src/og/entity/StripHandler.js +23 -23
  48. package/src/og/layer/BaseGeoImage.js +50 -19
  49. package/src/og/layer/CanvasTiles.js +16 -16
  50. package/src/og/layer/GeoImage.js +6 -6
  51. package/src/og/layer/KML.js +55 -33
  52. package/src/og/layer/Layer.js +3 -3
  53. package/src/og/layer/Vector.js +94 -48
  54. package/src/og/layer/WMS.js +33 -16
  55. package/src/og/light/LightSource.js +19 -12
  56. package/src/og/math/Mat3.js +24 -12
  57. package/src/og/math/Mat4.js +603 -603
  58. package/src/og/math/Plane.js +19 -18
  59. package/src/og/math/Ray.js +17 -12
  60. package/src/og/math/Vec2.js +24 -14
  61. package/src/og/math/Vec3.js +60 -30
  62. package/src/og/math/coder.js +7 -7
  63. package/src/og/proj/EPSG3857.js +3 -3
  64. package/src/og/proj/EPSG4326.js +3 -3
  65. package/src/og/proj/Proj.js +2 -4
  66. package/src/og/quadTree/Node.js +31 -17
  67. package/src/og/renderer/Renderer.js +23 -6
  68. package/src/og/renderer/RendererEvents.js +1 -1
  69. package/src/og/scene/BaseNode.js +2 -3
  70. package/src/og/scene/Planet.js +2 -2
  71. package/src/og/scene/RenderNode.js +15 -8
  72. package/src/og/shaders/geoObject.js +211 -0
  73. package/src/og/shaders/pointCloud.js +41 -41
  74. package/src/og/shaders/shape.js +12 -18
  75. package/src/og/shaders/skybox.js +36 -36
  76. package/src/og/shapes/BaseShape.js +107 -35
  77. package/src/og/shapes/Icosphere.js +25 -10
  78. package/src/og/shapes/Sphere.js +8 -11
  79. package/src/og/utils/TextureAtlas.js +16 -18
  80. package/src/og/utils/shared.js +1 -1
  81. package/src/og/webgl/Handler.js +68 -49
  82. package/src/og/webgl/Multisample.js +44 -16
  83. package/src/og/webgl/Program.js +78 -33
  84. package/src/og/webgl/callbacks.js +3 -3
  85. package/types/Deferred.d.ts +1 -1
  86. package/types/Events.d.ts +2 -2
  87. package/types/Extent.d.ts +1 -1
  88. package/types/Rectangle.d.ts +1 -1
  89. package/types/ajax.d.ts +1 -1
  90. package/types/bv/Box.d.ts +1 -1
  91. package/types/bv/Sphere.d.ts +1 -1
  92. package/types/camera/Camera.d.ts +5 -5
  93. package/types/camera/Frustum.d.ts +6 -6
  94. package/types/camera/PlanetCamera.d.ts +8 -8
  95. package/types/control/Control.d.ts +1 -1
  96. package/types/control/EarthCoordinates.d.ts +1 -1
  97. package/types/control/Sun.d.ts +1 -1
  98. package/types/entity/BaseBillboard.d.ts +15 -8
  99. package/types/entity/Entity.d.ts +24 -9
  100. package/types/entity/EntityCollection.d.ts +15 -9
  101. package/types/entity/GeoObject.d.ts +111 -0
  102. package/types/entity/GeoObjectHandler.d.ts +77 -0
  103. package/types/entity/Geometry.d.ts +1 -1
  104. package/types/entity/GeometryHandler.d.ts +1 -1
  105. package/types/entity/Label.d.ts +3 -3
  106. package/types/entity/LabelHandler.d.ts +2 -0
  107. package/types/entity/LabelWorker.d.ts +9 -0
  108. package/types/entity/PointCloud.d.ts +1 -1
  109. package/types/entity/Polyline.d.ts +5 -5
  110. package/types/entity/Ray.d.ts +1 -1
  111. package/types/entity/Strip.d.ts +1 -1
  112. package/types/layer/BaseGeoImage.d.ts +3 -3
  113. package/types/layer/CanvasTiles.d.ts +5 -5
  114. package/types/layer/GeoImage.d.ts +1 -1
  115. package/types/layer/GeoVideo.d.ts +1 -1
  116. package/types/layer/Layer.d.ts +5 -5
  117. package/types/layer/Vector.d.ts +9 -9
  118. package/types/layer/XYZ.d.ts +3 -3
  119. package/types/light/LightSource.d.ts +7 -7
  120. package/types/math/Plane.d.ts +1 -1
  121. package/types/math/Ray.d.ts +1 -1
  122. package/types/math/Vec2.d.ts +34 -34
  123. package/types/math/Vec3.d.ts +1 -1
  124. package/types/math/Vec4.d.ts +1 -1
  125. package/types/math/coder.d.ts +1 -1
  126. package/types/math.d.ts +1 -1
  127. package/types/proj/Proj.d.ts +2 -2
  128. package/types/quadTree/Node.d.ts +1 -1
  129. package/types/renderer/Renderer.d.ts +12 -10
  130. package/types/renderer/RendererEvents.d.ts +1 -1
  131. package/types/scene/BaseNode.d.ts +4 -4
  132. package/types/scene/Planet.d.ts +40 -40
  133. package/types/scene/RenderNode.d.ts +9 -9
  134. package/types/segment/Segment.d.ts +9 -9
  135. package/types/shaders/geoObject.d.ts +3 -0
  136. package/types/shapes/BaseShape.d.ts +5 -5
  137. package/types/terrain/EmptyTerrain.d.ts +2 -2
  138. package/types/terrain/GlobusTerrain.d.ts +4 -4
  139. package/types/utils/TextureAtlas.d.ts +4 -4
  140. package/types/utils/shared.d.ts +9 -9
  141. package/types/webgl/Framebuffer.d.ts +1 -1
  142. package/types/webgl/Handler.d.ts +16 -7
  143. package/types/webgl/Multisample.d.ts +2 -2
  144. package/types/webgl/Program.d.ts +6 -0
  145. package/types/webgl/ProgramController.d.ts +1 -1
@@ -82,7 +82,7 @@ export class Entity {
82
82
  * @protected
83
83
  * @type {EntityCollection}
84
84
  */
85
- protected _entityCollection: any;
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: any;
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: any) => Polyline))[];
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: any;
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: any;
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|og.layer.Vector} collection - Specified entity collection or vector layer.
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: any | any, rightNow?: boolean): Entity;
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: any): Polyline;
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(): any;
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: any;
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<any>;
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: any): EntityCollection;
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<any>): EntityCollection;
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: any): boolean;
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: any): void;
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: any, isHidden?: boolean): EntityCollection;
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: any): void;
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<any>;
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
+ }
@@ -17,7 +17,7 @@ export class Geometry {
17
17
  * @protected
18
18
  * @type {Entity}
19
19
  */
20
- protected _entity: any;
20
+ protected _entity: Entity;
21
21
  _handler: any;
22
22
  _handlerIndex: number;
23
23
  _polyVerticesHighMerc: any[];
@@ -46,7 +46,7 @@ export class GeometryHandler {
46
46
  * @public
47
47
  * @param {Geometry} geometry - Geometry object.
48
48
  */
49
- public add(geometry: any): void;
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;
@@ -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: any): void;
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(): any;
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: any): void;
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;
@@ -0,0 +1,9 @@
1
+ export class LabelWorker {
2
+ constructor(numWorkers?: number);
3
+ _id: number;
4
+ _source: {};
5
+ _freeWorkerQueue: Worker[];
6
+ _pendingQueue: any[];
7
+ check(): void;
8
+ make(handler: any, label: any): void;
9
+ }
@@ -122,7 +122,7 @@ export class PointCloud {
122
122
  * @public
123
123
  * @param {RenderNode} renderNode - Assigned render node.
124
124
  */
125
- public setRenderNode(renderNode: any): void;
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?: any, outTransformedPathLonLat?: Array<Array<LonLat>>, outPath3v?: Array<Array<LonLat>>, outTransformedPathMerc?: Array<Array<LonLat>>, outExtent?: Extent, outColors?: any[]): void;
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?: any, outTransformedPathLonLat?: Array<Array<LonLat>>, outTransformedPathMerc?: Array<Array<LonLat>>, outExtent?: Extent): void;
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: any, outTransformedPathCartesian: Array<Array<number>>, outPathLonLat: Array<Array<LonLat>>, outTransformedPathMerc: Array<Array<LonLat>>, outExtent: Extent, outColors: any): void;
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: any[]): void;
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: any): void;
229
+ public setRenderNode(renderNode: RenderNode): void;
230
230
  /**
231
231
  * @protected
232
232
  */
@@ -45,7 +45,7 @@ export class Ray {
45
45
  * @protected
46
46
  * @type {BillboardHandler}
47
47
  */
48
- protected _handler: any;
48
+ protected _handler: BillboardHandler;
49
49
  /**
50
50
  * Billboard handler array index.
51
51
  * @protected
@@ -93,7 +93,7 @@ export class Strip {
93
93
  * @public
94
94
  * @param {RenderNode} renderNode - Assigned render node.
95
95
  */
96
- public setRenderNode(renderNode: any): void;
96
+ public setRenderNode(renderNode: RenderNode): void;
97
97
  /**
98
98
  * Removes from entity.
99
99
  * @public
@@ -62,20 +62,20 @@ export class BaseGeoImage extends Layer {
62
62
  * @virtual
63
63
  * @param {Material} material - GeoImage material.
64
64
  */
65
- abortMaterialLoading(material: any): void;
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: any): void;
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: any): Array<number>;
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<any>;
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: any;
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: any): void;
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: any): void;
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: any): void;
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: any): void;
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: any): void;
51
+ public loadMaterial(material: Material): void;
52
52
  _renderingProjType1(): void;
53
53
  _renderingProjType0(): void;
54
54
  }
@@ -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=["anisotrophyc"]] - Image texture filter. Available values: "nearest", "linear", "mipmap" and "anisotrophic".
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: any;
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: any): void;
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: any): Layer;
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(): any;
242
+ get planet(): Planet;
243
243
  /**
244
244
  * Sets layer attribution text.
245
245
  * @public