@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,146 +0,0 @@
1
- /**
2
- * Class represents a plant ellipsoid.
3
- * @class
4
- * @param {number} equatorialSize - Equatorial ellipsoid size.
5
- * @param {number} polarSize - Polar ellipsoid size.
6
- */
7
- export class Ellipsoid {
8
- static getRelativeBearing(a: any, b: any): number;
9
- /**
10
- * Returns the midpoint between two points on the great circle.
11
- * @param {LonLat} lonLat1 - Longitude/latitude of first point.
12
- * @param {LonLat} lonLat2 - Longitude/latitude of second point.
13
- * @return {LonLat} Midpoint between points.
14
- */
15
- static getMiddlePointOnGreatCircle(lonLat1: LonLat, lonLat2: LonLat): LonLat;
16
- /**
17
- * Returns the point at given fraction between two points on the great circle.
18
- * @param {LonLat} lonLat1 - Longitude/Latitude of source point.
19
- * @param {LonLat} lonLat2 - Longitude/Latitude of destination point.
20
- * @param {number} fraction - Fraction between the two points (0 = source point, 1 = destination point).
21
- * @returns {LonLat} Intermediate point between points.
22
- */
23
- static getIntermediatePointOnGreatCircle(lonLat1: LonLat, lonLat2: LonLat, fraction: number): LonLat;
24
- static getRhumbBearing(lonLat1: any, lonLat2: any): number;
25
- static getBearing(lonLat1: any, lonLat2: any): number;
26
- /**
27
- * Returns the (initial) bearing from source to destination point on the great circle.
28
- * @param {LonLat} lonLat1 - Longitude/latitude of source point.
29
- * @param {LonLat} lonLat2 - Longitude/latitude of destination point.
30
- * @return {number} Initial bearing in degrees from north.
31
- */
32
- static getInitialBearing(lonLat1: LonLat, lonLat2: LonLat): number;
33
- /**
34
- * Returns the point of intersection of two paths defined by point and bearing.
35
- * @param {LonLat} p1 - First point.
36
- * @param {number} brng1 - Initial bearing from first point.
37
- * @param {LonLat} p2 - Second point.
38
- * @param {number} brng2 - Initial bearing from second point.
39
- * @return {LonLat|null} Destination point (null if no unique intersection defined).
40
- */
41
- static intersection(p1: LonLat, brng1: number, p2: LonLat, brng2: number): LonLat | null;
42
- /**
43
- * Returns final bearing arriving at destination destination point from lonLat1 point; the final bearing
44
- * will differ from the initial bearing by varying degrees according to distance and latitude.
45
- * @param {LonLat} lonLat1 - Longitude/latitude of source point.
46
- * @param {LonLat} lonLat2 - Longitude/latitude of destination point.
47
- * @return {number} Final bearing in degrees from north.
48
- */
49
- static getFinalBearing(lonLat1: LonLat, lonLat2: LonLat): number;
50
- /**
51
- * @param {number} equatorialSize - Equatorial ellipsoid size.
52
- * @param {number} polarSize - Polar ellipsoid size.
53
- */
54
- constructor(equatorialSize: number, polarSize: number);
55
- _a: number;
56
- _b: number;
57
- _flattening: number;
58
- _f: number;
59
- _a2: number;
60
- _b2: number;
61
- _e: number;
62
- _e2: number;
63
- _e22: number;
64
- _k: number;
65
- _k2: number;
66
- _radii: Vec3;
67
- _radii2: Vec3;
68
- _invRadii: Vec3;
69
- _invRadii2: Vec3;
70
- /**
71
- * Gets ellipsoid equatorial size.
72
- * @public
73
- * @returns {number} -
74
- */
75
- public getEquatorialSize(): number;
76
- /**
77
- * Gets ellipsoid polar size.
78
- * @public
79
- * @returns {number} -
80
- */
81
- public getPolarSize(): number;
82
- /**
83
- * Gets cartesian ECEF from Wgs84 geodetic coordiantes.
84
- * @public
85
- * @param {LonLat} lonlat - Degrees geodetic coordiantes.
86
- * @returns {Vec3} -
87
- */
88
- public lonLatToCartesian(lonlat: LonLat): Vec3;
89
- /**
90
- * Gets cartesian ECEF from Wgs84 geodetic coordiantes.
91
- * @public
92
- * @param {LonLat} lonlat - Degrees geodetic coordiantes.
93
- * @param {Vec3} res - Output result.
94
- * @returns {Vec3} -
95
- */
96
- public lonLatToCartesianRes(lonlat: LonLat, res: Vec3): Vec3;
97
- /**
98
- * Gets cartesian ECEF from Wgs84 geodetic coordiantes.
99
- * @public
100
- * @param {Number} lon - Longitude.
101
- * @param {Number} lat - Latitude.
102
- * @param {Number} height - Height.
103
- * @returns {Vec3} -
104
- */
105
- public geodeticToCartesian(lon: number, lat: number, height?: number): Vec3;
106
- /**
107
- * Gets Wgs84 geodetic coordiantes from cartesian ECEF.
108
- * @public
109
- * @param {Vec3} cartesian - Cartesian coordinates.
110
- * @returns {LonLat} -
111
- */
112
- public cartesianToLonLat(cartesian: Vec3): LonLat;
113
- /**
114
- * Gets ellipsoid surface normal.
115
- * @public
116
- * @param {Vec3} coord - Spatial coordiantes.
117
- * @returns {Vec3} -
118
- */
119
- public getSurfaceNormal3v(coord: Vec3): Vec3;
120
- getBearingDestination(lonLat1: any, bearing: any, distance: any): LonLat;
121
- /**
122
- * Returns the distance from one point to another(using haversine formula) on the great circle.
123
- * @param {LonLat} lonLat1 - Longitude/latitude of source point.
124
- * @param {LonLat} lonLat2 - Longitude/latitude of destination point.
125
- * @return {number} Distance between points.
126
- */
127
- getGreatCircleDistance(lonLat1: LonLat, lonLat2: LonLat): number;
128
- /**
129
- * Calculates the destination point given start point lat / lon, bearing(deg) and distance (m).
130
- *
131
- * Taken from http://movable-type.co.uk/scripts/latlong-vincenty-direct.html and optimized / cleaned up by Mathias Bynens <http://mathiasbynens.be/>
132
- * Based on the Vincenty direct formula by T. Vincenty, “Direct and Inverse Solutions of Geodesics on the Ellipsoid with application of nested equations”, Survey Review, vol XXII no 176, 1975 <http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf>
133
- */
134
- getGreatCircleDestination(lonLat: any, brng: any, dist: any): LonLat;
135
- /**
136
- * Returns ray vector hit ellipsoid coordinates.
137
- * If the ray doesn't hit ellipsoid returns null.
138
- * @public
139
- * @param {Vec3} origin - Ray origin point.
140
- * @param {Vec3} direction - Ray direction.
141
- * @returns {Vec3} -
142
- */
143
- public hitRay(origin: Vec3, direction: Vec3): Vec3;
144
- }
145
- import { Vec3 } from "../math/Vec3.js";
146
- import { LonLat } from "../LonLat.js";
@@ -1,3 +0,0 @@
1
- import { Ellipsoid } from "./Ellipsoid.js";
2
- import { wgs84 } from "./wgs84.js";
3
- export { Ellipsoid, wgs84 };
@@ -1,6 +0,0 @@
1
- /**
2
- * WGS84 ellipsoid object.
3
- * @type {Ellipsoid}
4
- */
5
- export const wgs84: Ellipsoid;
6
- import { Ellipsoid } from "./Ellipsoid.js";
@@ -1,215 +0,0 @@
1
- /**
2
- * Base prototype for billboard and label classes.
3
- * @class
4
- * @param {Object} [options] - Options:
5
- * @param {Vec3|Array.<number>} [options.position] - Billboard spatial position.
6
- * @param {number} [options.rotation] - Screen angle rotaion.
7
- * @param {Vec4|string|Array.<number>} [options.color] - Billboard color.
8
- * @param {Vec3|Array.<number>} [options.alignedAxis] - Billboard aligned vector.
9
- * @param {Vec3|Array.<number>} [options.offset] - Billboard center screen offset.
10
- * @param {boolean} [options.visibility] - Visibility.
11
- */
12
- export class BaseBillboard {
13
- static set _staticCounter(arg: any);
14
- static get _staticCounter(): any;
15
- constructor(options: any);
16
- /**
17
- * Object unic identifier.
18
- * @public
19
- * @readonly
20
- * @type {number}
21
- */
22
- public readonly id: number;
23
- /**
24
- * Billboard center cartesian position.
25
- * @protected
26
- * @type {Vec3}
27
- */
28
- protected _position: Vec3;
29
- _positionHigh: Vec3;
30
- _positionLow: Vec3;
31
- /**
32
- * Screen space rotation angle.
33
- * @protected
34
- * @type {number}
35
- */
36
- protected _rotation: number;
37
- /**
38
- * RGBA color.
39
- * @protected
40
- * @type {Vec4}
41
- */
42
- protected _color: Vec4;
43
- /**
44
- * Cartesian aligned axis vector.
45
- * @protected
46
- * @type {Vec3}
47
- */
48
- protected _alignedAxis: Vec3;
49
- /**
50
- * Billboard center screen space offset. Where x,y - screen space offset and z - depth offset.
51
- * @protected
52
- * @type {math.Vecto3}
53
- */
54
- protected _offset: math.Vecto3;
55
- /**
56
- * Billboard visibility.
57
- * @protected
58
- * @type {boolean}
59
- */
60
- protected _visibility: boolean;
61
- /**
62
- * Entity instance that holds this billboard.
63
- * @protected
64
- * @type {Entity}
65
- */
66
- protected _entity: Entity;
67
- /**
68
- * Handler that stores and renders this billboard object.
69
- * @protected
70
- * @type {BillboardHandler}
71
- */
72
- protected _handler: BillboardHandler;
73
- /**
74
- * Billboard handler array index.
75
- * @protected
76
- * @type {number}
77
- */
78
- protected _handlerIndex: number;
79
- /**
80
- * An indication that the object is ready to draw
81
- * @protected
82
- * @type {number}
83
- */
84
- protected _isReady: number;
85
- _lockId: number;
86
- /**
87
- * Sets billboard position.
88
- * @public
89
- * @param {number} x - X coordinate.
90
- * @param {number} y - Y coordinate.
91
- * @param {number} z - Z coordinate.
92
- */
93
- public setPosition(x: number, y: number, z: number): void;
94
- /**
95
- * Sets billboard position.
96
- * @public
97
- * @param {Vec3} position - Cartesian coordinates.
98
- */
99
- public setPosition3v(position: Vec3): void;
100
- /**
101
- * Returns billboard position.
102
- * @public
103
- * @returns {Vec3}
104
- */
105
- public getPosition(): Vec3;
106
- /**
107
- * Sets screen space offset.
108
- * @public
109
- * @param {number} x - X offset.
110
- * @param {number} y - Y offset.
111
- * @param {number} [z] - Z offset.
112
- */
113
- public setOffset(x: number, y: number, z?: number): void;
114
- /**
115
- * Sets screen space offset.
116
- * @public
117
- * @param {Vec2} offset - Offset size.
118
- */
119
- public setOffset3v(offset: Vec2): void;
120
- /**
121
- * Returns billboard screen space offset size.
122
- * @public
123
- * @returns {Vec3}
124
- */
125
- public getOffset(): Vec3;
126
- /**
127
- * Sets billboard screen space rotation in radians.
128
- * @public
129
- * @param {number} rotation - Screen space rotation in radians.
130
- */
131
- public setRotation(rotation: number): void;
132
- /**
133
- * Gets screen space rotation.
134
- * @public
135
- * @returns {number}
136
- */
137
- public getRotation(): number;
138
- /**
139
- * Sets billboard opacity.
140
- * @public
141
- * @param {number} a - Billboard opacity.
142
- */
143
- public setOpacity(a: number): void;
144
- /**
145
- * Sets RGBA color. Each channel from 0.0 to 1.0.
146
- * @public
147
- * @param {number} r - Red.
148
- * @param {number} g - Green.
149
- * @param {number} b - Blue.
150
- * @param {number} a - Alpha.
151
- */
152
- public setColor(r: number, g: number, b: number, a: number): void;
153
- /**
154
- * Sets RGBA color. Each channel from 0.0 to 1.0.
155
- * @public
156
- * @param {Vec4} color - RGBA vector.
157
- */
158
- public setColor4v(color: Vec4): void;
159
- /**
160
- * Sets billboard color.
161
- * @public
162
- * @param {string} color - HTML style color.
163
- */
164
- public setColorHTML(color: string): void;
165
- /**
166
- * Returns RGBA color.
167
- * @public
168
- * @returns {Vec4}
169
- */
170
- public getColor(): Vec4;
171
- /**
172
- * Sets billboard visibility.
173
- * @public
174
- * @param {boolean} visibility - Visibility flag.
175
- */
176
- public setVisibility(visibility: boolean): void;
177
- /**
178
- * Returns billboard visibility.
179
- * @public
180
- * @returns {boolean}
181
- */
182
- public getVisibility(): boolean;
183
- /**
184
- * Sets billboard cartesian aligned vector.
185
- * @public
186
- * @param {number} x - Aligned vector X coordinate.
187
- * @param {number} y - Aligned vector Y coordinate.
188
- * @param {number} z - Aligned vector Z coordinate.
189
- */
190
- public setAlignedAxis(x: number, y: number, z: number): void;
191
- /**
192
- * Sets billboard aligned vector.
193
- * @public
194
- * @param {math.Vecto3} alignedAxis - Vector to align.
195
- */
196
- public setAlignedAxis3v(alignedAxis: math.Vecto3): void;
197
- /**
198
- * Returns aligned vector.
199
- * @public
200
- * @returns {Vec3}
201
- */
202
- public getAlignedAxis(): Vec3;
203
- /**
204
- * Removes billboard from hander.
205
- * @public
206
- */
207
- public remove(): void;
208
- /**
209
- * Sets billboard picking color.
210
- * @public
211
- * @param {Vec3} color - Picking color.
212
- */
213
- public setPickingColor3v(color: Vec3): void;
214
- }
215
- import { Vec3 } from "../math/Vec3.js";
@@ -1,94 +0,0 @@
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";
@@ -1,78 +0,0 @@
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
- initProgram(): void;
43
- setRenderer(renderer: any): void;
44
- refresh(): void;
45
- _removeBillboards(): void;
46
- clear(): void;
47
- _deleteBuffers(): void;
48
- update(): void;
49
- add(billboard: any): void;
50
- _addBillboardToArrays(billboard: any): void;
51
- _displayPASS(): void;
52
- _pickingPASS(): void;
53
- draw(): void;
54
- drawPicking(): void;
55
- reindexBillbordsArray(startIndex: any): void;
56
- _removeBillboard(billboard: any): void;
57
- remove(billboard: any): void;
58
- setPositionArr(index: any, positionHigh: any, positionLow: any): void;
59
- setPickingColorArr(index: any, color: any): void;
60
- setSizeArr(index: any, width: any, height: any): void;
61
- setOffsetArr(index: any, offset: any): void;
62
- setRgbaArr(index: any, rgba: any): void;
63
- setRotationArr(index: any, rotation: any): void;
64
- setTexCoordArr(index: any, tcoordArr: any): void;
65
- setVisibility(index: any, visibility: any): void;
66
- setVertexArr(index: any, vertexArr: any): void;
67
- setAlignedAxisArr(index: any, alignedAxis: any): void;
68
- createPositionBuffer(): void;
69
- createSizeBuffer(): void;
70
- createOffsetBuffer(): void;
71
- createRgbaBuffer(): void;
72
- createRotationBuffer(): void;
73
- createVertexBuffer(): void;
74
- createTexCoordBuffer(): void;
75
- createAlignedAxisBuffer(): void;
76
- createPickingColorBuffer(): void;
77
- refreshTexCoordsArr(): void;
78
- }