@openglobus/og 0.11.7 → 0.12.3

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 (211) hide show
  1. package/css/og.css +5 -2
  2. package/dist/@openglobus/og.css +1 -0
  3. package/dist/@openglobus/og.esm.js +21 -0
  4. package/dist/@openglobus/og.esm.js.map +1 -0
  5. package/dist/@openglobus/og.umd.js +21 -0
  6. package/dist/@openglobus/og.umd.js.map +1 -0
  7. package/package.json +11 -11
  8. package/src/og/Globe.js +18 -6
  9. package/src/og/camera/Camera.js +70 -79
  10. package/src/og/camera/PlanetCamera.js +25 -30
  11. package/src/og/control/DebugInfo.js +2 -2
  12. package/src/og/control/EarthNavigation.js +26 -17
  13. package/src/og/control/Lighting.js +52 -73
  14. package/src/og/control/MouseNavigation.js +30 -29
  15. package/src/og/control/MouseWheelZoomControl.js +257 -0
  16. package/src/og/control/Sun.js +3 -3
  17. package/src/og/control/index.js +2 -0
  18. package/src/og/control/visibleExtent/Segment.js +1862 -0
  19. package/src/og/control/visibleExtent/VisibleExtent.js +80 -0
  20. package/src/og/control/visibleExtent/drawnode.js +751 -0
  21. package/src/og/entity/BaseBillboard.js +9 -9
  22. package/src/og/entity/Entity.js +742 -742
  23. package/src/og/entity/GeoObjectHandler.js +138 -134
  24. package/src/og/entity/Label.js +7 -7
  25. package/src/og/entity/LabelHandler.js +2 -1
  26. package/src/og/layer/CanvasTiles.js +8 -12
  27. package/src/og/layer/GeoImage.js +2 -10
  28. package/src/og/layer/GeoTexture2d.js +2 -10
  29. package/src/og/layer/GeoVideo.js +2 -10
  30. package/src/og/layer/KML.js +19 -12
  31. package/src/og/layer/Layer.js +4 -23
  32. package/src/og/layer/WMS.js +0 -2
  33. package/src/og/layer/XYZ.js +31 -33
  34. package/src/og/math/Vec3.js +18 -2
  35. package/src/og/quadTree/Node.js +48 -93
  36. package/src/og/quadTree/quadTree.js +1 -1
  37. package/src/og/renderer/Renderer.js +69 -96
  38. package/src/og/renderer/RendererEvents.js +3 -1
  39. package/src/og/scene/Planet.js +171 -173
  40. package/src/og/segment/Segment.js +99 -268
  41. package/src/og/segment/Slice.js +45 -0
  42. package/src/og/shaders/drawnode.js +171 -350
  43. package/src/og/shaders/geoObject.js +15 -6
  44. package/src/og/terrain/EmptyTerrain.js +3 -2
  45. package/src/og/terrain/GlobusTerrain.js +2 -0
  46. package/src/og/utils/GeoImageCreator.js +5 -1
  47. package/src/og/utils/Loader.js +1 -1
  48. package/src/og/utils/PlainSegmentWorker.js +0 -13
  49. package/src/og/webgl/Handler.js +14 -10
  50. package/types/Clock.d.ts +94 -0
  51. package/types/Deferred.d.ts +6 -0
  52. package/types/Events.d.ts +77 -0
  53. package/types/Extent.d.ts +166 -0
  54. package/types/Globe.d.ts +85 -0
  55. package/types/ImageCanvas.d.ts +123 -0
  56. package/types/Lock.d.ts +12 -0
  57. package/types/LonLat.d.ts +108 -0
  58. package/types/Popup.d.ts +42 -0
  59. package/types/QueueArray.d.ts +19 -0
  60. package/types/Rectangle.d.ts +80 -0
  61. package/types/Stack.d.ts +19 -0
  62. package/types/ajax.d.ts +24 -0
  63. package/types/arial.d.ts +48 -0
  64. package/types/astro/astro.d.ts +38 -0
  65. package/types/astro/earth.d.ts +7 -0
  66. package/types/astro/jd.d.ts +254 -0
  67. package/types/bv/Box.d.ts +30 -0
  68. package/types/bv/Sphere.d.ts +38 -0
  69. package/types/bv/index.d.ts +3 -0
  70. package/types/camera/Camera.d.ts +312 -0
  71. package/types/camera/Frustum.d.ts +133 -0
  72. package/types/camera/PlanetCamera.d.ts +219 -0
  73. package/types/camera/index.d.ts +3 -0
  74. package/types/cons.d.ts +40 -0
  75. package/types/control/CompassButton.d.ts +17 -0
  76. package/types/control/Control.d.ts +104 -0
  77. package/types/control/DebugInfo.d.ts +15 -0
  78. package/types/control/EarthCoordinates.d.ts +47 -0
  79. package/types/control/EarthNavigation.d.ts +43 -0
  80. package/types/control/GeoImageDragControl.d.ts +6 -0
  81. package/types/control/KeyboardNavigation.d.ts +21 -0
  82. package/types/control/LayerSwitcher.d.ts +21 -0
  83. package/types/control/Lighting.d.ts +16 -0
  84. package/types/control/MouseNavigation.d.ts +48 -0
  85. package/types/control/MouseWheelZoomControl.d.ts +45 -0
  86. package/types/control/ScaleControl.d.ts +22 -0
  87. package/types/control/ShowFps.d.ts +11 -0
  88. package/types/control/SimpleNavigation.d.ts +25 -0
  89. package/types/control/Sun.d.ts +50 -0
  90. package/types/control/ToggleWireframe.d.ts +12 -0
  91. package/types/control/TouchNavigation.d.ts +48 -0
  92. package/types/control/ZoomControl.d.ts +27 -0
  93. package/types/control/index.d.ts +18 -0
  94. package/types/ellipsoid/Ellipsoid.d.ts +146 -0
  95. package/types/ellipsoid/index.d.ts +3 -0
  96. package/types/ellipsoid/wgs84.d.ts +6 -0
  97. package/types/entity/BaseBillboard.d.ts +215 -0
  98. package/types/entity/Billboard.d.ts +94 -0
  99. package/types/entity/BillboardHandler.d.ts +79 -0
  100. package/types/entity/Entity.d.ts +348 -0
  101. package/types/entity/EntityCollection.d.ts +317 -0
  102. package/types/entity/GeoObject.d.ts +111 -0
  103. package/types/entity/GeoObjectHandler.d.ts +81 -0
  104. package/types/entity/Geometry.d.ts +74 -0
  105. package/types/entity/GeometryHandler.d.ts +76 -0
  106. package/types/entity/Label.d.ts +189 -0
  107. package/types/entity/LabelHandler.d.ts +31 -0
  108. package/types/entity/LabelWorker.d.ts +11 -0
  109. package/types/entity/PointCloud.d.ts +174 -0
  110. package/types/entity/PointCloudHandler.d.ts +38 -0
  111. package/types/entity/Polyline.d.ts +306 -0
  112. package/types/entity/PolylineHandler.d.ts +18 -0
  113. package/types/entity/Ray.d.ts +124 -0
  114. package/types/entity/RayHandler.d.ts +67 -0
  115. package/types/entity/ShapeHandler.d.ts +22 -0
  116. package/types/entity/Strip.d.ts +119 -0
  117. package/types/entity/StripHandler.d.ts +38 -0
  118. package/types/entity/index.d.ts +8 -0
  119. package/types/index.core.d.ts +65 -0
  120. package/types/index.d.ts +45 -0
  121. package/types/index.webgl.d.ts +7 -0
  122. package/types/input/KeyboardHandler.d.ts +10 -0
  123. package/types/input/MouseHandler.d.ts +5 -0
  124. package/types/input/TouchHandler.d.ts +5 -0
  125. package/types/input/input.d.ts +34 -0
  126. package/types/layer/BaseGeoImage.d.ts +94 -0
  127. package/types/layer/CanvasTiles.d.ts +67 -0
  128. package/types/layer/GeoImage.d.ts +52 -0
  129. package/types/layer/GeoTexture2d.d.ts +8 -0
  130. package/types/layer/GeoVideo.d.ts +55 -0
  131. package/types/layer/KML.d.ts +68 -0
  132. package/types/layer/Layer.d.ts +310 -0
  133. package/types/layer/Material.d.ts +45 -0
  134. package/types/layer/Vector.d.ts +208 -0
  135. package/types/layer/WMS.d.ts +61 -0
  136. package/types/layer/XYZ.d.ts +119 -0
  137. package/types/layer/index.d.ts +10 -0
  138. package/types/light/LightSource.d.ts +178 -0
  139. package/types/math/Line2.d.ts +11 -0
  140. package/types/math/Line3.d.ts +10 -0
  141. package/types/math/Mat3.d.ts +65 -0
  142. package/types/math/Mat4.d.ts +176 -0
  143. package/types/math/Plane.d.ts +18 -0
  144. package/types/math/Quat.d.ts +379 -0
  145. package/types/math/Ray.d.ts +82 -0
  146. package/types/math/Vec2.d.ts +309 -0
  147. package/types/math/Vec3.d.ts +467 -0
  148. package/types/math/Vec4.d.ts +162 -0
  149. package/types/math/coder.d.ts +43 -0
  150. package/types/math/index.d.ts +11 -0
  151. package/types/math.d.ts +261 -0
  152. package/types/mercator.d.ts +92 -0
  153. package/types/proj/EPSG3857.d.ts +6 -0
  154. package/types/proj/EPSG4326.d.ts +6 -0
  155. package/types/proj/Proj.d.ts +42 -0
  156. package/types/quadTree/EntityCollectionNode.d.ts +34 -0
  157. package/types/quadTree/Node.d.ts +60 -0
  158. package/types/quadTree/quadTree.d.ts +40 -0
  159. package/types/renderer/Renderer.d.ts +290 -0
  160. package/types/renderer/RendererEvents.d.ts +237 -0
  161. package/types/res/images.d.ts +3 -0
  162. package/types/scene/Axes.d.ts +11 -0
  163. package/types/scene/BaseNode.d.ts +60 -0
  164. package/types/scene/Planet.d.ts +576 -0
  165. package/types/scene/RenderNode.d.ts +142 -0
  166. package/types/scene/SkyBox.d.ts +10 -0
  167. package/types/scene/index.d.ts +4 -0
  168. package/types/segment/Segment.d.ts +275 -0
  169. package/types/segment/SegmentLonLat.d.ts +17 -0
  170. package/types/segment/Slice.d.ts +10 -0
  171. package/types/segment/segmentHelper.d.ts +13 -0
  172. package/types/shaders/billboard.d.ts +3 -0
  173. package/types/shaders/depth.d.ts +2 -0
  174. package/types/shaders/drawnode.d.ts +7 -0
  175. package/types/shaders/geoObject.d.ts +3 -0
  176. package/types/shaders/label.d.ts +4 -0
  177. package/types/shaders/pointCloud.d.ts +2 -0
  178. package/types/shaders/polyline.d.ts +3 -0
  179. package/types/shaders/ray.d.ts +2 -0
  180. package/types/shaders/screenFrame.d.ts +2 -0
  181. package/types/shaders/shape.d.ts +4 -0
  182. package/types/shaders/skybox.d.ts +2 -0
  183. package/types/shaders/toneMapping.d.ts +2 -0
  184. package/types/shapes/BaseShape.d.ts +250 -0
  185. package/types/shapes/Sphere.d.ts +41 -0
  186. package/types/terrain/BilTerrain.d.ts +7 -0
  187. package/types/terrain/EmptyTerrain.d.ts +73 -0
  188. package/types/terrain/Geoid.d.ts +26 -0
  189. package/types/terrain/GlobusTerrain.d.ts +116 -0
  190. package/types/terrain/MapboxTerrain.d.ts +7 -0
  191. package/types/terrain/index.d.ts +5 -0
  192. package/types/utils/FontAtlas.d.ts +15 -0
  193. package/types/utils/GeoImageCreator.d.ts +30 -0
  194. package/types/utils/ImagesCacheManager.d.ts +10 -0
  195. package/types/utils/Loader.d.ts +25 -0
  196. package/types/utils/NormalMapCreator.d.ts +39 -0
  197. package/types/utils/PlainSegmentWorker.d.ts +10 -0
  198. package/types/utils/TerrainWorker.d.ts +9 -0
  199. package/types/utils/TextureAtlas.d.ts +111 -0
  200. package/types/utils/VectorTileCreator.d.ts +16 -0
  201. package/types/utils/colorTable.d.ts +143 -0
  202. package/types/utils/earcut.d.ts +6 -0
  203. package/types/utils/shared.d.ts +231 -0
  204. package/types/webgl/Framebuffer.d.ts +135 -0
  205. package/types/webgl/Handler.d.ts +417 -0
  206. package/types/webgl/Multisample.d.ts +89 -0
  207. package/types/webgl/Program.d.ts +161 -0
  208. package/types/webgl/ProgramController.d.ts +89 -0
  209. package/types/webgl/callbacks.d.ts +1 -0
  210. package/types/webgl/index.d.ts +6 -0
  211. package/types/webgl/types.d.ts +2 -0
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Represents basic quad billboard image.
3
+ * @class
4
+ * @extends {BaseBillboard}
5
+ * @param {Object} [options] - Options:
6
+ * @param {Vec3|Array.<number>} [options.position] - Billboard spatial position.
7
+ * @param {number} [options.rotation] - Screen angle rotaion.
8
+ * @param {Vec4|string|Array.<number>} [options.color] - Billboard color.
9
+ * @param {Vec3|Array.<number>} [options.alignedAxis] - Billboard aligned vector.
10
+ * @param {Vec3|Array.<number>} [options.offset] - Billboard center screen offset.
11
+ * @param {boolean} [options.visibility] - Visibility.
12
+ * @param {string} [options.src] - Billboard image url source.
13
+ * @param {Image} [options.image] - Billboard image object.
14
+ * @param {number} [options.width] - Screen width.
15
+ * @param {number} [options.height] - Screen height.
16
+ * @param {number} [options.scale] - Billboard scale.
17
+ */
18
+ export class Billboard extends BaseBillboard {
19
+ /**
20
+ * Image src.
21
+ * @protected
22
+ * @type {string}
23
+ */
24
+ protected _src: string;
25
+ /**
26
+ * Image object.
27
+ * @protected
28
+ * @type {Object}
29
+ */
30
+ protected _image: any;
31
+ _scale: number;
32
+ /**
33
+ * Billboard screen width.
34
+ * @protected
35
+ * @type {number}
36
+ */
37
+ protected _width: number;
38
+ /**
39
+ * Billboard screen height.
40
+ * @protected
41
+ * @type {number}
42
+ */
43
+ protected _height: number;
44
+ /**
45
+ * Sets billboard image url source.
46
+ * @public
47
+ * @param {string} src - Image url.
48
+ */
49
+ public setSrc(src: string): void;
50
+ /**
51
+ * Sets image object.
52
+ * @public
53
+ * @param {Object} image - JavaScript image object.
54
+ */
55
+ public setImage(image: any): void;
56
+ /**
57
+ * Sets billboard screen size in pixels.
58
+ * @public
59
+ * @param {number} width - Billboard width.
60
+ * @param {number} height - Billboard height.
61
+ */
62
+ public setSize(width: number, height: number): void;
63
+ /**
64
+ * Returns billboard screen size.
65
+ * @public
66
+ * @returns {Object}
67
+ */
68
+ public getSize(): any;
69
+ /**
70
+ * Sets billboard screen width.
71
+ * @public
72
+ * @param {number} width - Width.
73
+ */
74
+ public setWidth(width: number): void;
75
+ /**
76
+ * Gets billboard screen width.
77
+ * @public
78
+ * @returns {number}
79
+ */
80
+ public getWidth(): number;
81
+ /**
82
+ * Sets billboard screen heigh.
83
+ * @public
84
+ * @param {number} height - Height.
85
+ */
86
+ public setHeight(height: number): void;
87
+ /**
88
+ * Gets billboard screen height.
89
+ * @public
90
+ * @returns {number}
91
+ */
92
+ public getHeight(): number;
93
+ }
94
+ import { BaseBillboard } from "./BaseBillboard.js";
@@ -0,0 +1,79 @@
1
+ export class BillboardHandler {
2
+ static set _staticCounter(arg: any);
3
+ static get _staticCounter(): any;
4
+ static concArr(dest: any, curr: any): void;
5
+ /**
6
+ *
7
+ * @param {*} entityCollection
8
+ */
9
+ constructor(entityCollection: any);
10
+ /**
11
+ * Picking rendering option.
12
+ * @public
13
+ * @type {boolean}
14
+ */
15
+ public pickingEnabled: boolean;
16
+ _entityCollection: any;
17
+ _renderer: any;
18
+ _billboards: any[];
19
+ _positionHighBuffer: any;
20
+ _positionLowBuffer: any;
21
+ _sizeBuffer: any;
22
+ _offsetBuffer: any;
23
+ _rgbaBuffer: any;
24
+ _rotationBuffer: any;
25
+ _texCoordBuffer: any;
26
+ _vertexBuffer: any;
27
+ _alignedAxisBuffer: any;
28
+ _texCoordArr: Float32Array;
29
+ _vertexArr: Float32Array;
30
+ _positionHighArr: Float32Array;
31
+ _positionLowArr: Float32Array;
32
+ _sizeArr: Float32Array;
33
+ _offsetArr: Float32Array;
34
+ _rgbaArr: Float32Array;
35
+ _rotationArr: Float32Array;
36
+ _alignedAxisArr: Float32Array;
37
+ _pickingColorBuffer: any;
38
+ _pickingColorArr: Float32Array;
39
+ _buffersUpdateCallbacks: (() => void)[];
40
+ _changedBuffers: any[];
41
+ __staticId: number;
42
+ isEqual(handler: any): boolean;
43
+ initProgram(): void;
44
+ setRenderer(renderer: any): void;
45
+ refresh(): void;
46
+ _removeBillboards(): void;
47
+ clear(): void;
48
+ _deleteBuffers(): void;
49
+ update(): void;
50
+ add(billboard: any): void;
51
+ _addBillboardToArrays(billboard: any): void;
52
+ _displayPASS(): void;
53
+ _pickingPASS(): void;
54
+ draw(): void;
55
+ drawPicking(): void;
56
+ reindexBillbordsArray(startIndex: any): void;
57
+ _removeBillboard(billboard: any): void;
58
+ remove(billboard: any): void;
59
+ setPositionArr(index: any, positionHigh: any, positionLow: any): void;
60
+ setPickingColorArr(index: any, color: any): void;
61
+ setSizeArr(index: any, width: any, height: any): void;
62
+ setOffsetArr(index: any, offset: any): void;
63
+ setRgbaArr(index: any, rgba: any): void;
64
+ setRotationArr(index: any, rotation: any): void;
65
+ setTexCoordArr(index: any, tcoordArr: any): void;
66
+ setVisibility(index: any, visibility: any): void;
67
+ setVertexArr(index: any, vertexArr: any): void;
68
+ setAlignedAxisArr(index: any, alignedAxis: any): void;
69
+ createPositionBuffer(): void;
70
+ createSizeBuffer(): void;
71
+ createOffsetBuffer(): void;
72
+ createRgbaBuffer(): void;
73
+ createRotationBuffer(): void;
74
+ createVertexBuffer(): void;
75
+ createTexCoordBuffer(): void;
76
+ createAlignedAxisBuffer(): void;
77
+ createPickingColorBuffer(): void;
78
+ refreshTexCoordsArr(): void;
79
+ }
@@ -0,0 +1,348 @@
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";