@openglobus/og 0.11.2 → 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 (273) hide show
  1. package/package.json +13 -13
  2. package/src/og/Clock.js +10 -10
  3. package/src/og/Events.js +8 -6
  4. package/src/og/Extent.js +82 -41
  5. package/src/og/Globe.js +25 -13
  6. package/src/og/ImageCanvas.js +22 -16
  7. package/src/og/LonLat.js +16 -13
  8. package/src/og/Popup.js +21 -14
  9. package/src/og/QueueArray.js +6 -2
  10. package/src/og/Rectangle.js +11 -6
  11. package/src/og/Stack.js +5 -2
  12. package/src/og/ajax.js +21 -33
  13. package/src/og/astro/astro.js +5 -5
  14. package/src/og/astro/earth.js +22 -16
  15. package/src/og/astro/jd.js +23 -18
  16. package/src/og/astro/orbit.js +13 -11
  17. package/src/og/astro/rotation.js +17 -8
  18. package/src/og/bv/Box.js +7 -3
  19. package/src/og/bv/Sphere.js +14 -11
  20. package/src/og/camera/Camera.js +51 -54
  21. package/src/og/camera/Frustum.js +29 -18
  22. package/src/og/camera/PlanetCamera.js +32 -23
  23. package/src/og/control/CompassButton.js +5 -1
  24. package/src/og/control/Control.js +12 -10
  25. package/src/og/control/DebugInfo.js +4 -1
  26. package/src/og/control/EarthCoordinates.js +54 -33
  27. package/src/og/control/KeyboardNavigation.js +10 -10
  28. package/src/og/control/LayerSwitcher.js +22 -21
  29. package/src/og/control/Lighting.js +34 -3
  30. package/src/og/control/MouseNavigation.js +1 -1
  31. package/src/og/control/ScaleControl.js +1 -1
  32. package/src/og/control/SegmentBoundVisualization.js +6 -7
  33. package/src/og/control/ShowFps.js +13 -8
  34. package/src/og/control/SimpleNavigation.js +6 -8
  35. package/src/og/control/Sun.js +25 -15
  36. package/src/og/control/ToggleWireframe.js +4 -4
  37. package/src/og/control/TouchNavigation.js +44 -33
  38. package/src/og/control/ZoomControl.js +41 -25
  39. package/src/og/ellipsoid/Ellipsoid.js +162 -66
  40. package/src/og/ellipsoid/wgs84.js +4 -4
  41. package/src/og/entity/BaseBillboard.js +100 -56
  42. package/src/og/entity/Billboard.js +14 -10
  43. package/src/og/entity/BillboardHandler.js +317 -60
  44. package/src/og/entity/Entity.js +100 -68
  45. package/src/og/entity/EntityCollection.js +70 -47
  46. package/src/og/entity/GeoObject.js +228 -0
  47. package/src/og/entity/GeoObjectHandler.js +910 -0
  48. package/src/og/entity/Geometry.js +27 -24
  49. package/src/og/entity/GeometryHandler.js +596 -124
  50. package/src/og/entity/Label.js +80 -49
  51. package/src/og/entity/LabelHandler.js +45 -244
  52. package/src/og/entity/LabelWorker.js +218 -0
  53. package/src/og/entity/Object3d.js +504 -0
  54. package/src/og/entity/PointCloud.js +80 -32
  55. package/src/og/entity/PointCloudHandler.js +8 -8
  56. package/src/og/entity/Polyline.js +16 -16
  57. package/src/og/entity/Ray.js +60 -27
  58. package/src/og/entity/Strip.js +77 -48
  59. package/src/og/entity/StripHandler.js +26 -26
  60. package/src/og/entity/index.js +8 -16
  61. package/src/og/layer/BaseGeoImage.js +54 -23
  62. package/src/og/layer/CanvasTiles.js +24 -24
  63. package/src/og/layer/GeoImage.js +9 -9
  64. package/src/og/layer/GeoVideo.js +3 -3
  65. package/src/og/layer/KML.js +63 -37
  66. package/src/og/layer/Layer.js +44 -21
  67. package/src/og/layer/Material.js +23 -20
  68. package/src/og/layer/Vector.js +114 -68
  69. package/src/og/layer/WMS.js +34 -17
  70. package/src/og/layer/XYZ.js +48 -46
  71. package/src/og/light/LightSource.js +46 -39
  72. package/src/og/math/Mat3.js +34 -22
  73. package/src/og/math/Mat4.js +603 -459
  74. package/src/og/math/Plane.js +21 -20
  75. package/src/og/math/Quat.js +182 -139
  76. package/src/og/math/Ray.js +38 -33
  77. package/src/og/math/Vec2.js +85 -75
  78. package/src/og/math/Vec3.js +142 -112
  79. package/src/og/math/Vec4.js +27 -31
  80. package/src/og/math/coder.js +10 -10
  81. package/src/og/math.js +12 -12
  82. package/src/og/proj/EPSG3857.js +4 -4
  83. package/src/og/proj/EPSG4326.js +4 -4
  84. package/src/og/proj/Proj.js +4 -6
  85. package/src/og/quadTree/Node.js +8 -8
  86. package/src/og/renderer/Renderer.js +59 -52
  87. package/src/og/renderer/RendererEvents.js +50 -27
  88. package/src/og/scene/BaseNode.js +7 -8
  89. package/src/og/scene/Planet.js +102 -103
  90. package/src/og/scene/RenderNode.js +28 -21
  91. package/src/og/segment/Segment.js +26 -21
  92. package/src/og/segment/SegmentLonLat.js +5 -5
  93. package/src/og/shaders/drawnode.js +135 -142
  94. package/src/og/shaders/geoObject.js +211 -0
  95. package/src/og/shaders/pointCloud.js +41 -41
  96. package/src/og/shaders/shape.js +12 -18
  97. package/src/og/shaders/skybox.js +36 -36
  98. package/src/og/shaders/toneMapping.js +1 -0
  99. package/src/og/shapes/BaseShape.js +126 -54
  100. package/src/og/shapes/Icosphere.js +29 -14
  101. package/src/og/shapes/Sphere.js +12 -15
  102. package/src/og/terrain/BilTerrain.js +1 -0
  103. package/src/og/terrain/EmptyTerrain.js +2 -2
  104. package/src/og/terrain/GlobusTerrain.js +9 -9
  105. package/src/og/utils/FontAtlas.js +6 -2
  106. package/src/og/utils/TextureAtlas.js +22 -24
  107. package/src/og/utils/VectorTileCreator.js +1 -3
  108. package/src/og/utils/shared.js +16 -16
  109. package/src/og/webgl/Framebuffer.js +88 -40
  110. package/src/og/webgl/Handler.js +243 -169
  111. package/src/og/webgl/Multisample.js +47 -19
  112. package/src/og/webgl/Program.js +79 -34
  113. package/src/og/webgl/ProgramController.js +17 -13
  114. package/src/og/webgl/callbacks.js +8 -8
  115. package/src/og/inherits.js +0 -8
  116. package/src/og/utils/polylabel.js +0 -176
  117. package/types/Clock.d.ts +0 -90
  118. package/types/Deferred.d.ts +0 -6
  119. package/types/Events.d.ts +0 -73
  120. package/types/Extent.d.ts +0 -166
  121. package/types/Globe.d.ts +0 -75
  122. package/types/ImageCanvas.d.ts +0 -121
  123. package/types/Lock.d.ts +0 -12
  124. package/types/LonLat.d.ts +0 -108
  125. package/types/Popup.d.ts +0 -38
  126. package/types/QueueArray.d.ts +0 -15
  127. package/types/Rectangle.d.ts +0 -74
  128. package/types/Stack.d.ts +0 -15
  129. package/types/ajax.d.ts +0 -24
  130. package/types/arial.d.ts +0 -48
  131. package/types/astro/astro.d.ts +0 -38
  132. package/types/astro/earth.d.ts +0 -6
  133. package/types/astro/jd.d.ts +0 -254
  134. package/types/bv/Box.d.ts +0 -25
  135. package/types/bv/Sphere.d.ts +0 -38
  136. package/types/bv/index.d.ts +0 -3
  137. package/types/camera/Camera.d.ts +0 -303
  138. package/types/camera/Frustum.d.ts +0 -129
  139. package/types/camera/PlanetCamera.d.ts +0 -223
  140. package/types/camera/index.d.ts +0 -3
  141. package/types/cons.d.ts +0 -40
  142. package/types/control/CompassButton.d.ts +0 -18
  143. package/types/control/Control.d.ts +0 -101
  144. package/types/control/DebugInfo.d.ts +0 -16
  145. package/types/control/EarthCoordinates.d.ts +0 -47
  146. package/types/control/EarthNavigation.d.ts +0 -42
  147. package/types/control/GeoImageDragControl.d.ts +0 -6
  148. package/types/control/KeyboardNavigation.d.ts +0 -22
  149. package/types/control/LayerSwitcher.d.ts +0 -23
  150. package/types/control/Lighting.d.ts +0 -16
  151. package/types/control/MouseNavigation.d.ts +0 -51
  152. package/types/control/ScaleControl.d.ts +0 -22
  153. package/types/control/ShowFps.d.ts +0 -12
  154. package/types/control/SimpleNavigation.d.ts +0 -28
  155. package/types/control/Sun.d.ts +0 -52
  156. package/types/control/ToggleWireframe.d.ts +0 -12
  157. package/types/control/TouchNavigation.d.ts +0 -50
  158. package/types/control/ZoomControl.d.ts +0 -28
  159. package/types/control/index.d.ts +0 -17
  160. package/types/ellipsoid/Ellipsoid.d.ts +0 -142
  161. package/types/ellipsoid/index.d.ts +0 -3
  162. package/types/ellipsoid/wgs84.d.ts +0 -5
  163. package/types/entity/BaseBillboard.d.ts +0 -208
  164. package/types/entity/Billboard.d.ts +0 -94
  165. package/types/entity/BillboardHandler.d.ts +0 -74
  166. package/types/entity/Entity.d.ts +0 -331
  167. package/types/entity/EntityCollection.d.ts +0 -303
  168. package/types/entity/Geometry.d.ts +0 -73
  169. package/types/entity/GeometryHandler.d.ts +0 -76
  170. package/types/entity/Label.d.ts +0 -194
  171. package/types/entity/LabelHandler.d.ts +0 -24
  172. package/types/entity/PointCloud.d.ts +0 -174
  173. package/types/entity/PointCloudHandler.d.ts +0 -38
  174. package/types/entity/Polyline.d.ts +0 -304
  175. package/types/entity/PolylineHandler.d.ts +0 -18
  176. package/types/entity/Ray.d.ts +0 -123
  177. package/types/entity/RayHandler.d.ts +0 -67
  178. package/types/entity/ShapeHandler.d.ts +0 -22
  179. package/types/entity/Strip.d.ts +0 -118
  180. package/types/entity/StripHandler.d.ts +0 -38
  181. package/types/entity/index.d.ts +0 -8
  182. package/types/index.core.d.ts +0 -65
  183. package/types/index.d.ts +0 -45
  184. package/types/index.webgl.d.ts +0 -7
  185. package/types/inherits.d.ts +0 -4
  186. package/types/input/KeyboardHandler.d.ts +0 -10
  187. package/types/input/MouseHandler.d.ts +0 -5
  188. package/types/input/TouchHandler.d.ts +0 -5
  189. package/types/input/input.d.ts +0 -34
  190. package/types/layer/BaseGeoImage.d.ts +0 -107
  191. package/types/layer/CanvasTiles.d.ts +0 -75
  192. package/types/layer/GeoImage.d.ts +0 -65
  193. package/types/layer/GeoTexture2d.d.ts +0 -8
  194. package/types/layer/GeoVideo.d.ts +0 -80
  195. package/types/layer/KML.d.ts +0 -58
  196. package/types/layer/Layer.d.ts +0 -321
  197. package/types/layer/Material.d.ts +0 -48
  198. package/types/layer/Vector.d.ts +0 -228
  199. package/types/layer/WMS.d.ts +0 -66
  200. package/types/layer/XYZ.d.ts +0 -130
  201. package/types/layer/index.d.ts +0 -10
  202. package/types/light/LightSource.d.ts +0 -177
  203. package/types/math/Line2.d.ts +0 -11
  204. package/types/math/Line3.d.ts +0 -10
  205. package/types/math/Mat3.d.ts +0 -63
  206. package/types/math/Mat4.d.ts +0 -173
  207. package/types/math/Plane.d.ts +0 -17
  208. package/types/math/Quat.d.ts +0 -376
  209. package/types/math/Ray.d.ts +0 -81
  210. package/types/math/Vec2.d.ts +0 -308
  211. package/types/math/Vec3.d.ts +0 -459
  212. package/types/math/Vec4.d.ts +0 -161
  213. package/types/math/coder.d.ts +0 -42
  214. package/types/math/index.d.ts +0 -11
  215. package/types/math.d.ts +0 -261
  216. package/types/mercator.d.ts +0 -92
  217. package/types/proj/EPSG3857.d.ts +0 -5
  218. package/types/proj/EPSG4326.d.ts +0 -5
  219. package/types/proj/Proj.d.ts +0 -42
  220. package/types/quadTree/EntityCollectionNode.d.ts +0 -34
  221. package/types/quadTree/Node.d.ts +0 -61
  222. package/types/quadTree/quadTree.d.ts +0 -40
  223. package/types/renderer/Renderer.d.ts +0 -296
  224. package/types/renderer/RendererEvents.d.ts +0 -230
  225. package/types/res/images.d.ts +0 -3
  226. package/types/scene/Axes.d.ts +0 -11
  227. package/types/scene/BaseNode.d.ts +0 -60
  228. package/types/scene/Planet.d.ts +0 -574
  229. package/types/scene/RenderNode.d.ts +0 -143
  230. package/types/scene/SkyBox.d.ts +0 -10
  231. package/types/scene/index.d.ts +0 -4
  232. package/types/segment/Segment.d.ts +0 -271
  233. package/types/segment/SegmentLonLat.d.ts +0 -62
  234. package/types/segment/segmentHelper.d.ts +0 -13
  235. package/types/shaders/billboard.d.ts +0 -3
  236. package/types/shaders/depth.d.ts +0 -2
  237. package/types/shaders/drawnode.d.ts +0 -7
  238. package/types/shaders/label.d.ts +0 -4
  239. package/types/shaders/pointCloud.d.ts +0 -2
  240. package/types/shaders/polyline.d.ts +0 -3
  241. package/types/shaders/ray.d.ts +0 -2
  242. package/types/shaders/screenFrame.d.ts +0 -2
  243. package/types/shaders/shape.d.ts +0 -4
  244. package/types/shaders/skybox.d.ts +0 -2
  245. package/types/shaders/toneMapping.d.ts +0 -2
  246. package/types/shapes/BaseShape.d.ts +0 -247
  247. package/types/shapes/Sphere.d.ts +0 -41
  248. package/types/terrain/BilTerrain.d.ts +0 -8
  249. package/types/terrain/EmptyTerrain.d.ts +0 -72
  250. package/types/terrain/Geoid.d.ts +0 -26
  251. package/types/terrain/GlobusTerrain.d.ts +0 -153
  252. package/types/terrain/MapboxTerrain.d.ts +0 -8
  253. package/types/terrain/index.d.ts +0 -5
  254. package/types/utils/FontAtlas.d.ts +0 -14
  255. package/types/utils/GeoImageCreator.d.ts +0 -30
  256. package/types/utils/ImagesCacheManager.d.ts +0 -10
  257. package/types/utils/Loader.d.ts +0 -25
  258. package/types/utils/NormalMapCreator.d.ts +0 -39
  259. package/types/utils/PlainSegmentWorker.d.ts +0 -10
  260. package/types/utils/TerrainWorker.d.ts +0 -9
  261. package/types/utils/TextureAtlas.d.ts +0 -111
  262. package/types/utils/VectorTileCreator.d.ts +0 -16
  263. package/types/utils/colorTable.d.ts +0 -143
  264. package/types/utils/earcut.d.ts +0 -6
  265. package/types/utils/shared.d.ts +0 -230
  266. package/types/webgl/Framebuffer.d.ts +0 -135
  267. package/types/webgl/Handler.d.ts +0 -372
  268. package/types/webgl/Multisample.d.ts +0 -89
  269. package/types/webgl/Program.d.ts +0 -155
  270. package/types/webgl/ProgramController.d.ts +0 -84
  271. package/types/webgl/callbacks.d.ts +0 -1
  272. package/types/webgl/index.d.ts +0 -6
  273. package/types/webgl/types.d.ts +0 -2
@@ -1,331 +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 {og.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.<og.Entity>}
42
- */
43
- public childrenNodes: Array<any>;
44
- /**
45
- * Parent entity.
46
- * @public
47
- * @type {og.Entity}
48
- */
49
- public parent: any;
50
- /**
51
- * Entity cartesian position.
52
- * @protected
53
- * @type {og.Vec3}
54
- */
55
- protected _cartesian: any;
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 {og.EntityCollection}
84
- */
85
- protected _entityCollection: any;
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 {og.layer.Vector}
96
- */
97
- protected _layer: any;
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 {og.Vec3}
108
- */
109
- protected _pickingColor: any;
110
- _featureConstructorArray: {
111
- billboard: (typeof Billboard | ((billboard: any) => any))[];
112
- label: (typeof Label | ((label: any) => any))[];
113
- sphere: (typeof Sphere | ((shape: any) => any))[];
114
- polyline: (typeof Polyline | ((polyline: any) => any))[];
115
- pointCloud: (typeof PointCloud | ((pointCloud: any) => any))[];
116
- geometry: (typeof Geometry | ((geometry: any) => any))[];
117
- strip: (typeof Strip | ((strip: any) => any))[];
118
- ray: (typeof Ray | ((ray: any) => any))[];
119
- };
120
- /**
121
- * Billboard entity.
122
- * @public
123
- * @type {og.Billboard}
124
- */
125
- public billboard: any;
126
- /**
127
- * Text label entity.
128
- * @public
129
- * @type {og.Label}
130
- */
131
- public label: any;
132
- /**
133
- * Shape entity.
134
- * @public
135
- * @type {og.shape.BaseShape}
136
- */
137
- public shape: any;
138
- /**
139
- * Polyline entity.
140
- * @public
141
- * @type {og.Polyline}
142
- */
143
- public polyline: any;
144
- /**
145
- * Ray entity.
146
- * @public
147
- * @type {og.ray}
148
- */
149
- public ray: any;
150
- /**
151
- * PointCloud entity.
152
- * @public
153
- * @type {og.PointCloud}
154
- */
155
- public pointCloud: any;
156
- /**
157
- * Geometry entity(available for vector layer only).
158
- * @public
159
- * @type {og.Geometry}
160
- */
161
- public geometry: any;
162
- /**
163
- * Strip entity.
164
- * @public
165
- * @type {og.Strip}
166
- */
167
- public strip: any;
168
- get instanceName(): string;
169
- _createOptionFeature(featureName: any, options: any): any;
170
- getCollectionIndex(): number;
171
- /**
172
- * Adds current entity into the specified entity collection.
173
- * @public
174
- * @param {og.EntityCollection|og.layer.Vector} collection - Specified entity collection or vector layer.
175
- * @param {Boolean} [rightNow=false] - Entity insertion option for vector layer.
176
- * @returns {og.Entity} - This object.
177
- */
178
- public addTo(collection: any | any, rightNow?: boolean): any;
179
- /**
180
- * Removes current entity from collection and layer.
181
- * @public
182
- */
183
- public remove(): void;
184
- /**
185
- * Sets the entity visibility.
186
- * @public
187
- * @param {boolean} visibility - Entity visibility.
188
- */
189
- public setVisibility(visibility: boolean): void;
190
- /**
191
- * Returns entity visibility.
192
- * @public
193
- * @returns {boolean} -
194
- */
195
- public getVisibility(): boolean;
196
- /**
197
- * Sets entity cartesian position.
198
- * @public
199
- * @param {og.Vec3} cartesian - Cartesian position in 3d space.
200
- */
201
- public setCartesian3v(cartesian: any): void;
202
- /**
203
- * Sets entity cartesian position.
204
- * @public
205
- * @param {number} x - 3d space X - position.
206
- * @param {number} y - 3d space Y - position.
207
- * @param {number} z - 3d space Z - position.
208
- */
209
- public setCartesian(x: number, y: number, z: number): void;
210
- /**
211
- * Sets entity cartesian position without event dispatching.
212
- * @protected
213
- * @param {og.Vec3} cartesian - Cartesian position in 3d space.
214
- * @param {boolean} skipLonLat - skip geodetic calculation.
215
- */
216
- protected _setCartesian3vSilent(cartesian: any, skipLonLat: boolean): void;
217
- /**
218
- * Gets entity geodetic coordinates.
219
- * @public
220
- * @returns {LonLat} -
221
- */
222
- public getLonLat(): LonLat;
223
- /**
224
- * Sets geodetic coordinates of the entity point object.
225
- * @public
226
- * @param {LonLat} lonlat - WGS84 coordinates.
227
- */
228
- public setLonLat(lonlat: LonLat): void;
229
- /**
230
- * Sets entity altitude over the planet.
231
- * @public
232
- * @param {number} altitude - Altitude.
233
- */
234
- public setAltitude(altitude: number): void;
235
- /**
236
- * Sets entity altitude over the planet.
237
- * @public
238
- * @return {number} Altitude.
239
- */
240
- public getAltitude(): number;
241
- /**
242
- * Returns carteain position.
243
- * @public
244
- * @returns {og.Vec3} -
245
- */
246
- public getCartesian(): any;
247
- /**
248
- * Sets entity billboard.
249
- * @public
250
- * @param {og.Billboard} billboard - Billboard object.
251
- * @returns {og.Billboard} -
252
- */
253
- public setBillboard(billboard: any): any;
254
- /**
255
- * Sets entity label.
256
- * @public
257
- * @param {og.Label} label - Text label.
258
- * @returns {og.Label} -
259
- */
260
- public setLabel(label: any): any;
261
- /**
262
- * Sets entity ray.
263
- * @public
264
- * @param {og.Ray} ray - Ray object.
265
- * @returns {og.Ray} -
266
- */
267
- public setRay(ray: any): any;
268
- /**
269
- * Sets entity shape.
270
- * @public
271
- * @param {og.BaseShape} shape - Shape object.
272
- * @returns {og.Polyline} -
273
- */
274
- public setShape(shape: any): any;
275
- /**
276
- * Sets entity polyline.
277
- * @public
278
- * @param {og.Polyline} polyline - Polyline object.
279
- * @returns {og.Polyline} -
280
- */
281
- public setPolyline(polyline: any): any;
282
- /**
283
- * Sets entity pointCloud.
284
- * @public
285
- * @param {og.PointCloud} pointCloud - PointCloud object.
286
- * @returns {og.PointCloud} -
287
- */
288
- public setPointCloud(pointCloud: any): any;
289
- /**
290
- * Sets entity geometry.
291
- * @public
292
- * @param {og.Geometry} geometry - Geometry object.
293
- * @returns {og.Geometry} -
294
- */
295
- public setGeometry(geometry: any): any;
296
- /**
297
- * Sets entity strip.
298
- * @public
299
- * @param {og.Strip} strip - Strip object.
300
- * @returns {og.Strip} -
301
- */
302
- public setStrip(strip: any): any;
303
- get layer(): any;
304
- get rendererEvents(): any;
305
- /**
306
- * Append child entity.
307
- * @public
308
- * @param {og.Entity} entity - Child entity.
309
- */
310
- public appendChild(entity: any): void;
311
- /**
312
- * Appends entity items(billboard, label etc.) picking color.
313
- * @public
314
- */
315
- public setPickingColor(): void;
316
- /**
317
- * Return geodethic extent.
318
- * @returns {og.Extent} -
319
- */
320
- getExtent(): any;
321
- isEqual(entity: any): boolean;
322
- }
323
- import { LonLat } from "../LonLat.js";
324
- import { Billboard } from "./Billboard.js";
325
- import { Label } from "./Label.js";
326
- import { Sphere } from "../shapes/Sphere.js";
327
- import { Polyline } from "./Polyline.js";
328
- import { PointCloud } from "./PointCloud.js";
329
- import { Geometry } from "./Geometry.js";
330
- import { Strip } from "./Strip.js";
331
- import { Ray } from "./Ray.js";
@@ -1,303 +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.<og.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 {og.scene.RenderNode}
70
- */
71
- public renderNode: any;
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 {og.BillboardHandler}
94
- */
95
- public billboardHandler: any;
96
- /**
97
- * Labels handler
98
- * @public
99
- * @type {og.LabelHandler}
100
- */
101
- public labelHandler: any;
102
- /**
103
- * Shape handler
104
- * @public
105
- * @type {og.ShapeHandler}
106
- */
107
- public shapeHandler: any;
108
- /**
109
- * Polyline handler
110
- * @public
111
- * @type {og.PolylineHandler}
112
- */
113
- public polylineHandler: any;
114
- /**
115
- * Ray handler
116
- * @public
117
- * @type {og.RayHandler}
118
- */
119
- public rayHandler: any;
120
- /**
121
- * PointCloud handler
122
- * @public
123
- * @type {og.PointCloudHandler}
124
- */
125
- public pointCloudHandler: any;
126
- /**
127
- * Strip handler
128
- * @public
129
- * @type {og.StripHandler}
130
- */
131
- public stripHandler: any;
132
- /**
133
- * Entities array.
134
- * @protected
135
- * @type {Array.<og.Entity>}
136
- */
137
- protected _entities: Array<any>;
138
- /**
139
- * First index - near distance to the entity, after entity becomes full scale.
140
- * Second index - far distance to the entity, when entity becomes zero scale.
141
- * Third index - far distance to the entity, when entity becomes invisible.
142
- * @public
143
- * @type {Array.<number>} - (exactly 3 entries)
144
- */
145
- public scaleByDistance: Array<number>;
146
- pickingScale: any;
147
- /**
148
- * Global opacity.
149
- * @protected
150
- * @type {number}
151
- */
152
- protected _opacity: number;
153
- /**
154
- * Opacity state during the animated opacity.
155
- * @protected
156
- * @type {number}
157
- */
158
- protected _fadingOpacity: number;
159
- /**
160
- * Entity collection events handler.
161
- * @public
162
- * @type {og.Events}
163
- */
164
- public events: any;
165
- rendererEvents: any;
166
- setPolygonOffset(factor: any, units: any): void;
167
- /**
168
- * Sets collection visibility.
169
- * @public
170
- * @param {boolean} visibility - Visibility flag.
171
- */
172
- public setVisibility(visibility: boolean): void;
173
- /**
174
- * Returns collection visibility.
175
- * @public
176
- * @returns {boolean} -
177
- */
178
- public getVisibility(): boolean;
179
- /**
180
- * Sets collection opacity.
181
- * @public
182
- * @param {number} opacity - Opacity.
183
- */
184
- public setOpacity(opacity: number): void;
185
- /**
186
- * Sets collection picking ability.
187
- * @public
188
- * @param {boolean} enable - Picking enable flag.
189
- */
190
- public setPickingEnabled(enable: boolean): void;
191
- /**
192
- * Gets collection opacity.
193
- * @public
194
- * @returns {number} -
195
- */
196
- public getOpacity(): number;
197
- /**
198
- * Sets scale by distance parameters.
199
- * @public
200
- * @param {number} near - Full scale entity distance.
201
- * @param {number} far - Zerol scale entity distance.
202
- * @param {number} [farInvisible] - Entity visibility distance.
203
- */
204
- public setScaleByDistance(near: number, far: number, farInvisible?: number): void;
205
- _addRecursively(entity: any): void;
206
- /**
207
- * Adds entity to the collection and returns collection.
208
- * @public
209
- * @param {og.Entity} entity - Entity.
210
- * @returns {og.EntityCollection} -
211
- */
212
- public add(entity: any): any;
213
- /**
214
- * Adds entities array to the collection and returns collection.
215
- * @public
216
- * @param {Array.<og.Entity>} entities - Entities array.
217
- * @returns {og.EntityCollection} -
218
- */
219
- public addEntities(entities: Array<any>): any;
220
- /**
221
- * Returns true if the entity belongs this collection, otherwise returns false.
222
- * @public
223
- * @param {og.Entity} entity - Entity.
224
- * @returns {boolean} -
225
- */
226
- public belongs(entity: any): boolean;
227
- _removeRecursively(entity: any): void;
228
- /**
229
- * Removes entity from this collection.
230
- * @public
231
- * @param {og.Entity} entity - Entity to remove.
232
- */
233
- public removeEntity(entity: any): void;
234
- _removeEntitySilent(entity: any): void;
235
- /**
236
- * Creates or refresh collected entities picking color.
237
- * @public
238
- */
239
- public createPickingColors(): void;
240
- /**
241
- * Refresh collected entities indexes from startIndex entitytes collection array position.
242
- * @public
243
- * @param {number} startIndex - Entities collection array index.
244
- */
245
- public reindexEntitiesArray(startIndex: number): void;
246
- /**
247
- * Adds this collection to render node.
248
- * @public
249
- * @param {og.scene.RenderNode} renderNode - Render node.
250
- * @param {boolean} [isHidden] - Uses in vector layers that render in planet render specific function.
251
- * @returns {og.EntityCollection} -
252
- */
253
- public addTo(renderNode: any, isHidden?: boolean): any;
254
- /**
255
- * This function is called in the RenderNode assign function.
256
- * @param {og.RenderNode} renderNode
257
- */
258
- bindRenderNode(renderNode: any): void;
259
- /**
260
- * Updates coordiantes all lonLat entities in collection after collecction attached to the planet node.
261
- * @private
262
- * @param {og.Ellipsoid} ellipsoid - Globe ellipsoid.
263
- */
264
- private _updateGeodeticCoordinates;
265
- /**
266
- * Updates billboard texture atlas.
267
- * @public
268
- */
269
- public updateBillboardsTextureAtlas(): void;
270
- /**
271
- * Updates labels font atlas.
272
- * @public
273
- */
274
- public updateLabelsFontAtlas(): void;
275
- /**
276
- * Removes collection from render node.
277
- * @public
278
- */
279
- public remove(): void;
280
- /**
281
- * Gets entity array.
282
- * @public
283
- * @returns {Array.<og.Entity>} -
284
- */
285
- public getEntities(): Array<any>;
286
- /**
287
- * Safety entities loop.
288
- * @public
289
- * @param {function} callback - Entity callback.
290
- */
291
- public each(callback: Function): void;
292
- /**
293
- * Removes all entities from colection and clear handlers.
294
- * @public
295
- */
296
- public clear(): void;
297
- /**
298
- * Clears entity recursevely.
299
- * @private
300
- * @param {og.Entity} entity - Entity to clear.
301
- */
302
- private _clearEntity;
303
- }
@@ -1,73 +0,0 @@
1
- export class Geometry {
2
- static set _staticCounter(arg: any);
3
- static get _staticCounter(): any;
4
- static getType(typeStr: any): any;
5
- /**
6
- * Returns geometry feature extent.
7
- @static
8
- @param {Object} geometryObj - GeoJSON style geometry feature.
9
- @param {LonLat[]} outCoordinates - Geometry feature coordinates clone.
10
- @returns {og.Extent} -
11
- */
12
- static getExtent(geometryObj: any, outCoordinates: LonLat[]): any;
13
- constructor(options: any);
14
- _id: number;
15
- /**
16
- * Entity instance that holds this geometry.
17
- * @protected
18
- * @type {og.Entity}
19
- */
20
- protected _entity: any;
21
- _handler: any;
22
- _handlerIndex: number;
23
- _polyVerticesHighMerc: any[];
24
- _polyVerticesLowMerc: any[];
25
- _polyVerticesLength: number;
26
- _polyIndexesLength: number;
27
- _polyVerticesHandlerIndex: number;
28
- _polyIndexesHandlerIndex: number;
29
- _lineVerticesHighMerc: any[];
30
- _lineVerticesLowMerc: any[];
31
- _lineVerticesLength: number;
32
- _lineOrdersLength: number;
33
- _lineIndexesLength: number;
34
- _lineColorsLength: number;
35
- _lineThicknessLength: number;
36
- _lineVerticesHandlerIndex: number;
37
- _lineOrdersHandlerIndex: number;
38
- _lineIndexesHandlerIndex: number;
39
- _lineThicknessHandlerIndex: number;
40
- _lineColorsHandlerIndex: number;
41
- _type: any;
42
- _coordinates: any[];
43
- _extent: any;
44
- _style: any;
45
- _visibility: any;
46
- _pickingReady: boolean;
47
- setGeometry(geoJson: any): Geometry;
48
- setFillColor(r: any, g: any, b: any, a: any): Geometry;
49
- setFillColor4v(rgba: any): Geometry;
50
- setStrokeColor(r: any, g: any, b: any, a: any): Geometry;
51
- setLineColor(r: any, g: any, b: any, a: any): Geometry;
52
- setStrokeColor4v(rgba: any): Geometry;
53
- setLineColor4v(rgba: any): Geometry;
54
- setStrokeOpacity(opacity: any): Geometry;
55
- setLineOpacity(opacity: any): Geometry;
56
- setStrokeWidth(width: any): Geometry;
57
- bringToFront(): Geometry;
58
- setLineWidth(width: any): Geometry;
59
- setFillOpacity(opacity: any): Geometry;
60
- setVisibility(visibility: any): Geometry;
61
- getVisibility(): any;
62
- remove(): void;
63
- getExtent(): any;
64
- getType(): any;
65
- }
66
- export namespace GeometryType {
67
- const POINT: number;
68
- const LINESTRING: number;
69
- const POLYGON: number;
70
- const MULTIPOLYGON: number;
71
- const MULTILINESTRING: number;
72
- }
73
- import { LonLat } from "../LonLat.js";