@openglobus/og 0.11.6 → 0.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/package.json +11 -11
  2. package/src/og/Globe.js +8 -5
  3. package/src/og/Popup.js +3 -2
  4. package/src/og/camera/PlanetCamera.js +9 -4
  5. package/src/og/control/Lighting.js +33 -2
  6. package/src/og/ellipsoid/Ellipsoid.js +1 -1
  7. package/src/og/entity/BaseBillboard.js +67 -76
  8. package/src/og/entity/BillboardHandler.js +15 -8
  9. package/src/og/entity/Label.js +44 -47
  10. package/src/og/entity/LabelHandler.js +25 -25
  11. package/src/og/entity/LabelWorker.js +21 -16
  12. package/src/og/layer/Layer.js +28 -15
  13. package/src/og/layer/Material.js +1 -1
  14. package/src/og/quadTree/Node.js +16 -30
  15. package/src/og/renderer/Renderer.js +19 -29
  16. package/src/og/renderer/RendererEvents.js +41 -21
  17. package/src/og/scene/Planet.js +11 -28
  18. package/src/og/shaders/drawnode.js +135 -142
  19. package/src/og/shaders/toneMapping.js +1 -0
  20. package/src/og/shapes/BaseShape.js +1 -1
  21. package/src/og/utils/FontAtlas.js +6 -2
  22. package/src/og/utils/TextureAtlas.js +2 -2
  23. package/src/og/utils/VectorTileCreator.js +1 -3
  24. package/src/og/utils/shared.js +1 -1
  25. package/src/og/webgl/Handler.js +152 -118
  26. package/types/Clock.d.ts +0 -94
  27. package/types/Deferred.d.ts +0 -6
  28. package/types/Events.d.ts +0 -77
  29. package/types/Extent.d.ts +0 -166
  30. package/types/Globe.d.ts +0 -82
  31. package/types/ImageCanvas.d.ts +0 -123
  32. package/types/Lock.d.ts +0 -12
  33. package/types/LonLat.d.ts +0 -108
  34. package/types/Popup.d.ts +0 -42
  35. package/types/QueueArray.d.ts +0 -19
  36. package/types/Rectangle.d.ts +0 -80
  37. package/types/Stack.d.ts +0 -19
  38. package/types/ajax.d.ts +0 -24
  39. package/types/arial.d.ts +0 -48
  40. package/types/astro/astro.d.ts +0 -38
  41. package/types/astro/earth.d.ts +0 -7
  42. package/types/astro/jd.d.ts +0 -254
  43. package/types/bv/Box.d.ts +0 -30
  44. package/types/bv/Sphere.d.ts +0 -38
  45. package/types/bv/index.d.ts +0 -3
  46. package/types/camera/Camera.d.ts +0 -312
  47. package/types/camera/Frustum.d.ts +0 -133
  48. package/types/camera/PlanetCamera.d.ts +0 -218
  49. package/types/camera/index.d.ts +0 -3
  50. package/types/cons.d.ts +0 -40
  51. package/types/control/CompassButton.d.ts +0 -17
  52. package/types/control/Control.d.ts +0 -104
  53. package/types/control/DebugInfo.d.ts +0 -15
  54. package/types/control/EarthCoordinates.d.ts +0 -47
  55. package/types/control/EarthNavigation.d.ts +0 -42
  56. package/types/control/GeoImageDragControl.d.ts +0 -6
  57. package/types/control/KeyboardNavigation.d.ts +0 -21
  58. package/types/control/LayerSwitcher.d.ts +0 -21
  59. package/types/control/Lighting.d.ts +0 -16
  60. package/types/control/MouseNavigation.d.ts +0 -47
  61. package/types/control/ScaleControl.d.ts +0 -22
  62. package/types/control/ShowFps.d.ts +0 -11
  63. package/types/control/SimpleNavigation.d.ts +0 -25
  64. package/types/control/Sun.d.ts +0 -50
  65. package/types/control/ToggleWireframe.d.ts +0 -12
  66. package/types/control/TouchNavigation.d.ts +0 -48
  67. package/types/control/ZoomControl.d.ts +0 -27
  68. package/types/control/index.d.ts +0 -17
  69. package/types/ellipsoid/Ellipsoid.d.ts +0 -146
  70. package/types/ellipsoid/index.d.ts +0 -3
  71. package/types/ellipsoid/wgs84.d.ts +0 -6
  72. package/types/entity/BaseBillboard.d.ts +0 -215
  73. package/types/entity/Billboard.d.ts +0 -94
  74. package/types/entity/BillboardHandler.d.ts +0 -78
  75. package/types/entity/Entity.d.ts +0 -348
  76. package/types/entity/EntityCollection.d.ts +0 -317
  77. package/types/entity/GeoObject.d.ts +0 -111
  78. package/types/entity/GeoObjectHandler.d.ts +0 -77
  79. package/types/entity/Geometry.d.ts +0 -74
  80. package/types/entity/GeometryHandler.d.ts +0 -76
  81. package/types/entity/Label.d.ts +0 -189
  82. package/types/entity/LabelHandler.d.ts +0 -31
  83. package/types/entity/LabelWorker.d.ts +0 -9
  84. package/types/entity/PointCloud.d.ts +0 -174
  85. package/types/entity/PointCloudHandler.d.ts +0 -38
  86. package/types/entity/Polyline.d.ts +0 -306
  87. package/types/entity/PolylineHandler.d.ts +0 -18
  88. package/types/entity/Ray.d.ts +0 -124
  89. package/types/entity/RayHandler.d.ts +0 -67
  90. package/types/entity/ShapeHandler.d.ts +0 -22
  91. package/types/entity/Strip.d.ts +0 -119
  92. package/types/entity/StripHandler.d.ts +0 -38
  93. package/types/entity/index.d.ts +0 -8
  94. package/types/index.core.d.ts +0 -65
  95. package/types/index.d.ts +0 -45
  96. package/types/index.webgl.d.ts +0 -7
  97. package/types/input/KeyboardHandler.d.ts +0 -10
  98. package/types/input/MouseHandler.d.ts +0 -5
  99. package/types/input/TouchHandler.d.ts +0 -5
  100. package/types/input/input.d.ts +0 -34
  101. package/types/layer/BaseGeoImage.d.ts +0 -94
  102. package/types/layer/CanvasTiles.d.ts +0 -68
  103. package/types/layer/GeoImage.d.ts +0 -52
  104. package/types/layer/GeoTexture2d.d.ts +0 -8
  105. package/types/layer/GeoVideo.d.ts +0 -55
  106. package/types/layer/KML.d.ts +0 -63
  107. package/types/layer/Layer.d.ts +0 -326
  108. package/types/layer/Material.d.ts +0 -45
  109. package/types/layer/Vector.d.ts +0 -208
  110. package/types/layer/WMS.d.ts +0 -63
  111. package/types/layer/XYZ.d.ts +0 -120
  112. package/types/layer/index.d.ts +0 -10
  113. package/types/light/LightSource.d.ts +0 -178
  114. package/types/math/Line2.d.ts +0 -11
  115. package/types/math/Line3.d.ts +0 -10
  116. package/types/math/Mat3.d.ts +0 -65
  117. package/types/math/Mat4.d.ts +0 -176
  118. package/types/math/Plane.d.ts +0 -18
  119. package/types/math/Quat.d.ts +0 -379
  120. package/types/math/Ray.d.ts +0 -82
  121. package/types/math/Vec2.d.ts +0 -309
  122. package/types/math/Vec3.d.ts +0 -460
  123. package/types/math/Vec4.d.ts +0 -162
  124. package/types/math/coder.d.ts +0 -43
  125. package/types/math/index.d.ts +0 -11
  126. package/types/math.d.ts +0 -261
  127. package/types/mercator.d.ts +0 -92
  128. package/types/proj/EPSG3857.d.ts +0 -6
  129. package/types/proj/EPSG4326.d.ts +0 -6
  130. package/types/proj/Proj.d.ts +0 -42
  131. package/types/quadTree/EntityCollectionNode.d.ts +0 -34
  132. package/types/quadTree/Node.d.ts +0 -61
  133. package/types/quadTree/quadTree.d.ts +0 -40
  134. package/types/renderer/Renderer.d.ts +0 -300
  135. package/types/renderer/RendererEvents.d.ts +0 -233
  136. package/types/res/images.d.ts +0 -3
  137. package/types/scene/Axes.d.ts +0 -11
  138. package/types/scene/BaseNode.d.ts +0 -60
  139. package/types/scene/Planet.d.ts +0 -577
  140. package/types/scene/RenderNode.d.ts +0 -142
  141. package/types/scene/SkyBox.d.ts +0 -10
  142. package/types/scene/index.d.ts +0 -4
  143. package/types/segment/Segment.d.ts +0 -279
  144. package/types/segment/SegmentLonLat.d.ts +0 -16
  145. package/types/segment/segmentHelper.d.ts +0 -13
  146. package/types/shaders/billboard.d.ts +0 -3
  147. package/types/shaders/depth.d.ts +0 -2
  148. package/types/shaders/drawnode.d.ts +0 -7
  149. package/types/shaders/geoObject.d.ts +0 -3
  150. package/types/shaders/label.d.ts +0 -4
  151. package/types/shaders/pointCloud.d.ts +0 -2
  152. package/types/shaders/polyline.d.ts +0 -3
  153. package/types/shaders/ray.d.ts +0 -2
  154. package/types/shaders/screenFrame.d.ts +0 -2
  155. package/types/shaders/shape.d.ts +0 -4
  156. package/types/shaders/skybox.d.ts +0 -2
  157. package/types/shaders/toneMapping.d.ts +0 -2
  158. package/types/shapes/BaseShape.d.ts +0 -250
  159. package/types/shapes/Sphere.d.ts +0 -41
  160. package/types/terrain/BilTerrain.d.ts +0 -7
  161. package/types/terrain/EmptyTerrain.d.ts +0 -72
  162. package/types/terrain/Geoid.d.ts +0 -26
  163. package/types/terrain/GlobusTerrain.d.ts +0 -116
  164. package/types/terrain/MapboxTerrain.d.ts +0 -7
  165. package/types/terrain/index.d.ts +0 -5
  166. package/types/utils/FontAtlas.d.ts +0 -14
  167. package/types/utils/GeoImageCreator.d.ts +0 -30
  168. package/types/utils/ImagesCacheManager.d.ts +0 -10
  169. package/types/utils/Loader.d.ts +0 -25
  170. package/types/utils/NormalMapCreator.d.ts +0 -39
  171. package/types/utils/PlainSegmentWorker.d.ts +0 -10
  172. package/types/utils/TerrainWorker.d.ts +0 -9
  173. package/types/utils/TextureAtlas.d.ts +0 -111
  174. package/types/utils/VectorTileCreator.d.ts +0 -16
  175. package/types/utils/colorTable.d.ts +0 -143
  176. package/types/utils/earcut.d.ts +0 -6
  177. package/types/utils/shared.d.ts +0 -231
  178. package/types/webgl/Framebuffer.d.ts +0 -135
  179. package/types/webgl/Handler.d.ts +0 -397
  180. package/types/webgl/Multisample.d.ts +0 -89
  181. package/types/webgl/Program.d.ts +0 -161
  182. package/types/webgl/ProgramController.d.ts +0 -89
  183. package/types/webgl/callbacks.d.ts +0 -1
  184. package/types/webgl/index.d.ts +0 -6
  185. package/types/webgl/types.d.ts +0 -2
@@ -1,348 +0,0 @@
1
- /**
2
- * Entity instances aggregate multiple forms of visualization into a single high-level object.
3
- * They can be created manually and added to entity collection.
4
- *
5
- * @class
6
- * @param {Object} [options] - Entity options:
7
- * @param {string} [options.name] - A human readable name to display to users. It does not have to be unique.
8
- * @param {Vec3|Array.<number>} [options.cartesian] - Spatial entities like billboard, label, sphere etc. cartesian position.
9
- * @param {LonLat} [options.lonlat] - Geodetic coordiantes for an entities like billboard, label, sphere etc.
10
- * @param {boolean} [options.aground] - True for entities that have to be placed on the relief.
11
- * @param {boolean} [options.visibility] - Entity visibility.
12
- * @param {*} [options.billboard] - Billboard options(see {@link og.Billboard}).
13
- * @param {*} [options.label] - Label options(see {@link og.Label}).
14
- * @param {*} [options.sphere] - Sphere options(see {@link og.shape.Sphere}).
15
- * @param {*} [options.box] - Sphere options(see {@link og.shape.Box}).
16
- * @param {*} [options.polyline] - Polyline options(see {@link og.Polyline}).
17
- * @param {*} [options.ray] - Ray options(see {@link og.Ray}).
18
- * @param {*} [options.pointCloud] - Point cloud options(see {@link og.PointCloud}).
19
- * @param {*} [options.geometry] - Geometry options (see {@link og.Geometry}), available for vector layer only.
20
- * @param {*} [options.properties] - Entity custom properties.
21
- */
22
- export class Entity {
23
- static set _staticCounter(arg: any);
24
- static get _staticCounter(): any;
25
- constructor(options: any);
26
- /**
27
- * Unic identifier.
28
- * @public
29
- * @readonly
30
- */
31
- public readonly id: number;
32
- /**
33
- * Entity user defined properties.
34
- * @public
35
- * @type {Object}
36
- */
37
- public properties: any;
38
- /**
39
- * Children entities.
40
- * @public
41
- * @type {Array.<Entity>}
42
- */
43
- public childrenNodes: Array<Entity>;
44
- /**
45
- * Parent entity.
46
- * @public
47
- * @type {Entity}
48
- */
49
- public parent: Entity;
50
- /**
51
- * Entity cartesian position.
52
- * @protected
53
- * @type {Vec3}
54
- */
55
- protected _cartesian: Vec3;
56
- /**
57
- * Geodetic entity coordiantes.
58
- * @protected
59
- * @type {LonLat}
60
- */
61
- protected _lonlat: LonLat;
62
- /**
63
- * World Mercator entity coordinates.
64
- * @protected
65
- * @type {LonLat}
66
- */
67
- protected _lonlatMerc: LonLat;
68
- /**
69
- * Entity visible terrain altitude.
70
- * @protected
71
- * @type {number}
72
- */
73
- protected _altitude: number;
74
- /**
75
- * Visibility flag.
76
- * @protected
77
- * @type {boolean}
78
- */
79
- protected _visibility: boolean;
80
- /**
81
- * Entity collection that this entity belongs to.
82
- * @protected
83
- * @type {EntityCollection}
84
- */
85
- protected _entityCollection: EntityCollection;
86
- /**
87
- * Entity collection array store index.
88
- * @protected
89
- * @type {number}
90
- */
91
- protected _entityCollectionIndex: number;
92
- /**
93
- * Assigned vector layer pointer.
94
- * @protected
95
- * @type {layer.Vector}
96
- */
97
- protected _layer: layer.Vector;
98
- /**
99
- * Assigned vector layer entity array index.
100
- * @protected
101
- * @type {number}
102
- */
103
- protected _layerIndex: number;
104
- /**
105
- * Picking color.
106
- * @protected
107
- * @type {Vec3}
108
- */
109
- protected _pickingColor: Vec3;
110
- _featureConstructorArray: {
111
- billboard: (typeof Billboard | ((billboard: Billboard) => Billboard))[];
112
- label: (typeof Label | ((label: Label) => Label))[];
113
- sphere: (typeof Sphere | ((shape: BaseShape) => Polyline))[];
114
- polyline: (typeof Polyline | ((polyline: Polyline) => Polyline))[];
115
- pointCloud: (typeof PointCloud | ((pointCloud: PointCloud) => PointCloud))[];
116
- geometry: (typeof Geometry | ((geometry: Geometry) => Geometry))[];
117
- geoObject: (typeof GeoObject | ((geoObject: GeoObject) => GeoObject))[];
118
- strip: (typeof Strip | ((strip: Strip) => Strip))[];
119
- ray: (typeof Ray | ((ray: Ray) => Ray))[];
120
- };
121
- /**
122
- * Billboard entity.
123
- * @public
124
- * @type {Billboard}
125
- */
126
- public billboard: Billboard;
127
- /**
128
- * Text label entity.
129
- * @public
130
- * @type {Label}
131
- */
132
- public label: Label;
133
- /**
134
- * Shape entity.
135
- * @public
136
- * @type {shape.BaseShape}
137
- */
138
- public shape: shape.BaseShape;
139
- /**
140
- * Polyline entity.
141
- * @public
142
- * @type {Polyline}
143
- */
144
- public polyline: Polyline;
145
- /**
146
- * Ray entity.
147
- * @public
148
- * @type {ray}
149
- */
150
- public ray: ray;
151
- /**
152
- * PointCloud entity.
153
- * @public
154
- * @type {PointCloud}
155
- */
156
- public pointCloud: PointCloud;
157
- /**
158
- * Geometry entity(available for vector layer only).
159
- * @public
160
- * @type {Geometry}
161
- */
162
- public geometry: Geometry;
163
- /**
164
- * Geo object entity
165
- * @public
166
- * @type {og.Geometry}
167
- */
168
- public geoObject: og.Geometry;
169
- /**
170
- * Strip entity.
171
- * @public
172
- * @type {Strip}
173
- */
174
- public strip: Strip;
175
- get instanceName(): string;
176
- _createOptionFeature(featureName: any, options: any): any;
177
- getCollectionIndex(): number;
178
- /**
179
- * Adds current entity into the specified entity collection.
180
- * @public
181
- * @param {EntityCollection|Vector} collection - Specified entity collection or vector layer.
182
- * @param {Boolean} [rightNow=false] - Entity insertion option for vector layer.
183
- * @returns {Entity} - This object.
184
- */
185
- public addTo(collection: EntityCollection | Vector, rightNow?: boolean): Entity;
186
- /**
187
- * Removes current entity from collection and layer.
188
- * @public
189
- */
190
- public remove(): void;
191
- /**
192
- * Sets the entity visibility.
193
- * @public
194
- * @param {boolean} visibility - Entity visibility.
195
- */
196
- public setVisibility(visibility: boolean): void;
197
- /**
198
- * Returns entity visibility.
199
- * @public
200
- * @returns {boolean} -
201
- */
202
- public getVisibility(): boolean;
203
- /**
204
- * Sets entity cartesian position.
205
- * @public
206
- * @param {Vec3} cartesian - Cartesian position in 3d space.
207
- */
208
- public setCartesian3v(cartesian: Vec3): void;
209
- /**
210
- * Sets entity cartesian position.
211
- * @public
212
- * @param {number} x - 3d space X - position.
213
- * @param {number} y - 3d space Y - position.
214
- * @param {number} z - 3d space Z - position.
215
- */
216
- public setCartesian(x: number, y: number, z: number): void;
217
- /**
218
- * Sets entity cartesian position without event dispatching.
219
- * @protected
220
- * @param {Vec3} cartesian - Cartesian position in 3d space.
221
- * @param {boolean} skipLonLat - skip geodetic calculation.
222
- */
223
- protected _setCartesian3vSilent(cartesian: Vec3, skipLonLat: boolean): void;
224
- /**
225
- * Gets entity geodetic coordinates.
226
- * @public
227
- * @returns {LonLat} -
228
- */
229
- public getLonLat(): LonLat;
230
- /**
231
- * Sets geodetic coordinates of the entity point object.
232
- * @public
233
- * @param {LonLat} lonlat - WGS84 coordinates.
234
- */
235
- public setLonLat(lonlat: LonLat): void;
236
- /**
237
- * Sets entity altitude over the planet.
238
- * @public
239
- * @param {number} altitude - Altitude.
240
- */
241
- public setAltitude(altitude: number): void;
242
- /**
243
- * Sets entity altitude over the planet.
244
- * @public
245
- * @return {number} Altitude.
246
- */
247
- public getAltitude(): number;
248
- /**
249
- * Returns carteain position.
250
- * @public
251
- * @returns {Vec3} -
252
- */
253
- public getCartesian(): Vec3;
254
- /**
255
- * Sets entity billboard.
256
- * @public
257
- * @param {Billboard} billboard - Billboard object.
258
- * @returns {Billboard} -
259
- */
260
- public setBillboard(billboard: Billboard): Billboard;
261
- /**
262
- * Sets entity label.
263
- * @public
264
- * @param {Label} label - Text label.
265
- * @returns {Label} -
266
- */
267
- public setLabel(label: Label): Label;
268
- /**
269
- * Sets entity ray.
270
- * @public
271
- * @param {Ray} ray - Ray object.
272
- * @returns {Ray} -
273
- */
274
- public setRay(ray: Ray): Ray;
275
- /**
276
- * Sets entity shape.
277
- * @public
278
- * @param {BaseShape} shape - Shape object.
279
- * @returns {Polyline} -
280
- */
281
- public setShape(shape: BaseShape): Polyline;
282
- /**
283
- * Sets entity polyline.
284
- * @public
285
- * @param {Polyline} polyline - Polyline object.
286
- * @returns {Polyline} -
287
- */
288
- public setPolyline(polyline: Polyline): Polyline;
289
- /**
290
- * Sets entity pointCloud.
291
- * @public
292
- * @param {PointCloud} pointCloud - PointCloud object.
293
- * @returns {PointCloud} -
294
- */
295
- public setPointCloud(pointCloud: PointCloud): PointCloud;
296
- /**
297
- * Sets entity geometry.
298
- * @public
299
- * @param {Geometry} geometry - Geometry object.
300
- * @returns {Geometry} -
301
- */
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;
310
- /**
311
- * Sets entity strip.
312
- * @public
313
- * @param {Strip} strip - Strip object.
314
- * @returns {Strip} -
315
- */
316
- public setStrip(strip: Strip): Strip;
317
- get layer(): layer.Vector;
318
- get rendererEvents(): any;
319
- /**
320
- * Append child entity.
321
- * @public
322
- * @param {Entity} entity - Child entity.
323
- */
324
- public appendChild(entity: Entity): void;
325
- /**
326
- * Appends entity items(billboard, label etc.) picking color.
327
- * @public
328
- */
329
- public setPickingColor(): void;
330
- /**
331
- * Return geodethic extent.
332
- * @returns {Extent} -
333
- */
334
- getExtent(): Extent;
335
- isEqual(entity: any): boolean;
336
- }
337
- import { Vec3 } from "../math/Vec3.js";
338
- import { LonLat } from "../LonLat.js";
339
- import { Billboard } from "./Billboard.js";
340
- import { Label } from "./Label.js";
341
- import { Sphere } from "../shapes/Sphere.js";
342
- import { Polyline } from "./Polyline.js";
343
- import { PointCloud } from "./PointCloud.js";
344
- import { Geometry } from "./Geometry.js";
345
- import { GeoObject } from "./GeoObject.js";
346
- import { Strip } from "./Strip.js";
347
- import { Ray } from "./Ray.js";
348
- import { Extent } from "../Extent.js";
@@ -1,317 +0,0 @@
1
- /**
2
- * An observable collection of og.Entity instances where each entity has a unique id.
3
- * Entity collection provide handlers for an each type of entity like billboard, label or 3ds object.
4
- * @constructor
5
- * @param {Object} [options] - Entity options:
6
- * @param {Array.<Entity>} [options.entities] - Entities array.
7
- * @param {boolean} [options.visibility=true] - Entity visibility.
8
- * @param {Array.<number>} [options.scaleByDistance] - Entity scale by distance parameters. (exactly 3 entries)
9
- * First index - near distance to the entity, after entity becomes full scale.
10
- * Second index - far distance to the entity, when entity becomes zero scale.
11
- * Third index - far distance to the entity, when entity becomes invisible.
12
- * @param {number} [options.opacity] - Entity global opacity.
13
- * @param {boolean} [options.pickingEnabled=true] - Entity picking enable.
14
- * @param {Number} [options.polygonOffsetFactor=0.0] - The scale factor for the variable depth offset. The default value is 0.
15
- * @param {Number} [options.polygonOffsetUnits=0.0] - The multiplier by which an implementation-specific value is multiplied with to create a constant depth offset. The default value is 0.
16
- * @fires og.EntityCollection#entitymove
17
- * @fires og.EntityCollection#draw
18
- * @fires og.EntityCollection#drawend
19
- * @fires og.EntityCollection#add
20
- * @fires og.EntityCollection#remove
21
- * @fires og.EntityCollection#entityadd
22
- * @fires og.EntityCollection#entityremove
23
- * @fires og.EntityCollection#visibilitychange
24
- * @fires og.EntityCollection#mousemove
25
- * @fires og.EntityCollection#mouseenter
26
- * @fires og.EntityCollection#mouseleave
27
- * @fires og.EntityCollection#lclick
28
- * @fires og.EntityCollection#rclick
29
- * @fires og.EntityCollection#mclick
30
- * @fires og.EntityCollection#ldblclick
31
- * @fires og.EntityCollection#rdblclick
32
- * @fires og.EntityCollection#mdblclick
33
- * @fires og.EntityCollection#lup
34
- * @fires og.EntityCollection#rup
35
- * @fires og.EntityCollection#mup
36
- * @fires og.EntityCollection#ldown
37
- * @fires og.EntityCollection#rdown
38
- * @fires og.EntityCollection#mdown
39
- * @fires og.EntityCollection#lhold
40
- * @fires og.EntityCollection#rhold
41
- * @fires og.EntityCollection#mhold
42
- * @fires og.EntityCollection#mousewheel
43
- * @fires og.EntityCollection#touchmove
44
- * @fires og.EntityCollection#touchstart
45
- * @fires og.EntityCollection#touchend
46
- * @fires og.EntityCollection#doubletouch
47
- * @fires og.EntityCollection#touchleave
48
- * @fires og.EntityCollection#touchenter
49
- */
50
- export class EntityCollection {
51
- static set _staticCounter(arg: any);
52
- static get _staticCounter(): any;
53
- constructor(options: any);
54
- /**
55
- * Unic identifier.
56
- * @public
57
- * @readonly
58
- */
59
- public readonly id: number;
60
- /**
61
- * Render node collections array index.
62
- * @protected
63
- * @type {number}
64
- */
65
- protected _renderNodeIndex: number;
66
- /**
67
- * Render node context.
68
- * @public
69
- * @type {RenderNode}
70
- */
71
- public renderNode: RenderNode;
72
- /**
73
- * Visibility option.
74
- * @protected
75
- * @type {boolean}
76
- */
77
- protected _visibility: boolean;
78
- /**
79
- * Specifies the scale factor for gl.polygonOffset function to calculate depth values, 0.0 is default.
80
- * @public
81
- * @type {Number}
82
- */
83
- public polygonOffsetFactor: number;
84
- /**
85
- * Specifies the scale Units for gl.polygonOffset function to calculate depth values, 0.0 is default.
86
- * @public
87
- * @type {Number}
88
- */
89
- public polygonOffsetUnits: number;
90
- /**
91
- * Billboards handler
92
- * @public
93
- * @type {BillboardHandler}
94
- */
95
- public billboardHandler: BillboardHandler;
96
- /**
97
- * Labels handler
98
- * @public
99
- * @type {LabelHandler}
100
- */
101
- public labelHandler: LabelHandler;
102
- /**
103
- * Shape handler
104
- * @public
105
- * @type {ShapeHandler}
106
- */
107
- public shapeHandler: ShapeHandler;
108
- /**
109
- * Polyline handler
110
- * @public
111
- * @type {PolylineHandler}
112
- */
113
- public polylineHandler: PolylineHandler;
114
- /**
115
- * Ray handler
116
- * @public
117
- * @type {RayHandler}
118
- */
119
- public rayHandler: RayHandler;
120
- /**
121
- * PointCloud handler
122
- * @public
123
- * @type {PointCloudHandler}
124
- */
125
- public pointCloudHandler: PointCloudHandler;
126
- /**
127
- * Strip handler
128
- * @public
129
- * @type {StripHandler}
130
- */
131
- public stripHandler: StripHandler;
132
- /**
133
- * Geo object handler
134
- * @public
135
- * @type {og.GeoObjectHandler}
136
- */
137
- public geoObjectHandler: og.GeoObjectHandler;
138
- /**
139
- * Entities array.
140
- * @protected
141
- * @type {Array.<Entity>}
142
- */
143
- protected _entities: Array<Entity>;
144
- /**
145
- * First index - near distance to the entity, after entity becomes full scale.
146
- * Second index - far distance to the entity, when entity becomes zero scale.
147
- * Third index - far distance to the entity, when entity becomes invisible.
148
- * @public
149
- * @type {Array.<number>} - (exactly 3 entries)
150
- */
151
- public scaleByDistance: Array<number>;
152
- pickingScale: any;
153
- /**
154
- * Global opacity.
155
- * @protected
156
- * @type {number}
157
- */
158
- protected _opacity: number;
159
- /**
160
- * Opacity state during the animated opacity.
161
- * @protected
162
- * @type {number}
163
- */
164
- protected _fadingOpacity: number;
165
- /**
166
- * Entity collection events handler.
167
- * @public
168
- * @type {Events}
169
- */
170
- public events: Events;
171
- rendererEvents: Events;
172
- setPolygonOffset(factor: any, units: any): void;
173
- /**
174
- * Sets collection visibility.
175
- * @public
176
- * @param {boolean} visibility - Visibility flag.
177
- */
178
- public setVisibility(visibility: boolean): void;
179
- /**
180
- * Returns collection visibility.
181
- * @public
182
- * @returns {boolean} -
183
- */
184
- public getVisibility(): boolean;
185
- /**
186
- * Sets collection opacity.
187
- * @public
188
- * @param {number} opacity - Opacity.
189
- */
190
- public setOpacity(opacity: number): void;
191
- /**
192
- * Sets collection picking ability.
193
- * @public
194
- * @param {boolean} enable - Picking enable flag.
195
- */
196
- public setPickingEnabled(enable: boolean): void;
197
- /**
198
- * Gets collection opacity.
199
- * @public
200
- * @returns {number} -
201
- */
202
- public getOpacity(): number;
203
- /**
204
- * Sets scale by distance parameters.
205
- * @public
206
- * @param {number} near - Full scale entity distance.
207
- * @param {number} far - Zerol scale entity distance.
208
- * @param {number} [farInvisible] - Entity visibility distance.
209
- */
210
- public setScaleByDistance(near: number, far: number, farInvisible?: number): void;
211
- _addRecursively(entity: any): void;
212
- /**
213
- * Adds entity to the collection and returns collection.
214
- * @public
215
- * @param {Entity} entity - Entity.
216
- * @returns {EntityCollection} -
217
- */
218
- public add(entity: Entity): EntityCollection;
219
- /**
220
- * Adds entities array to the collection and returns collection.
221
- * @public
222
- * @param {Array.<Entity>} entities - Entities array.
223
- * @returns {EntityCollection} -
224
- */
225
- public addEntities(entities: Array<Entity>): EntityCollection;
226
- /**
227
- * Returns true if the entity belongs this collection, otherwise returns false.
228
- * @public
229
- * @param {Entity} entity - Entity.
230
- * @returns {boolean} -
231
- */
232
- public belongs(entity: Entity): boolean;
233
- _removeRecursively(entity: any): void;
234
- /**
235
- * Removes entity from this collection.
236
- * @public
237
- * @param {Entity} entity - Entity to remove.
238
- */
239
- public removeEntity(entity: Entity): void;
240
- _removeEntitySilent(entity: any): void;
241
- /**
242
- * Creates or refresh collected entities picking color.
243
- * @public
244
- */
245
- public createPickingColors(): void;
246
- /**
247
- * Refresh collected entities indexes from startIndex entitytes collection array position.
248
- * @public
249
- * @param {number} startIndex - Entities collection array index.
250
- */
251
- public reindexEntitiesArray(startIndex: number): void;
252
- /**
253
- * Adds this collection to render node.
254
- * @public
255
- * @param {RenderNode} renderNode - Render node.
256
- * @param {boolean} [isHidden] - Uses in vector layers that render in planet render specific function.
257
- * @returns {EntityCollection} -
258
- */
259
- public addTo(renderNode: RenderNode, isHidden?: boolean): EntityCollection;
260
- /**
261
- * This function is called in the RenderNode assign function.
262
- * @param {RenderNode} renderNode
263
- */
264
- bindRenderNode(renderNode: RenderNode): void;
265
- /**
266
- * Updates coordiantes all lonLat entities in collection after collecction attached to the planet node.
267
- * @private
268
- * @param {Ellipsoid} ellipsoid - Globe ellipsoid.
269
- */
270
- private _updateGeodeticCoordinates;
271
- /**
272
- * Updates billboard texture atlas.
273
- * @public
274
- */
275
- public updateBillboardsTextureAtlas(): void;
276
- /**
277
- * Updates labels font atlas.
278
- * @public
279
- */
280
- public updateLabelsFontAtlas(): void;
281
- /**
282
- * Removes collection from render node.
283
- * @public
284
- */
285
- public remove(): void;
286
- /**
287
- * Gets entity array.
288
- * @public
289
- * @returns {Array.<Entity>} -
290
- */
291
- public getEntities(): Array<Entity>;
292
- /**
293
- * Safety entities loop.
294
- * @public
295
- * @param {function} callback - Entity callback.
296
- */
297
- public each(callback: Function): void;
298
- /**
299
- * Removes all entities from colection and clear handlers.
300
- * @public
301
- */
302
- public clear(): void;
303
- /**
304
- * Clears entity recursevely.
305
- * @private
306
- * @param {Entity} entity - Entity to clear.
307
- */
308
- private _clearEntity;
309
- }
310
- import { BillboardHandler } from "./BillboardHandler.js";
311
- import { LabelHandler } from "./LabelHandler.js";
312
- import { ShapeHandler } from "./ShapeHandler.js";
313
- import { PolylineHandler } from "./PolylineHandler.js";
314
- import { RayHandler } from "./RayHandler.js";
315
- import { PointCloudHandler } from "./PointCloudHandler.js";
316
- import { StripHandler } from "./StripHandler.js";
317
- import { Events } from "../Events.js";