@openglobus/og 0.16.3 → 0.17.1

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 (197) hide show
  1. package/README.md +1 -1
  2. package/css/og.css +24 -2
  3. package/dist/@openglobus/og.css +1 -1
  4. package/dist/@openglobus/og.esm.js +2 -2
  5. package/dist/@openglobus/og.esm.js.map +1 -1
  6. package/dist/@openglobus/og.umd.js +2 -2
  7. package/dist/@openglobus/og.umd.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/og/Clock.js +1 -5
  10. package/src/og/Events.js +2 -6
  11. package/src/og/Extent.js +5 -9
  12. package/src/og/Globe.js +93 -56
  13. package/src/og/ImageCanvas.js +13 -6
  14. package/src/og/Lock.js +44 -48
  15. package/src/og/LonLat.js +1 -5
  16. package/src/og/Object3d.js +2 -2
  17. package/src/og/QueueArray.js +1 -1
  18. package/src/og/Stack.js +49 -53
  19. package/src/og/astro/earth.js +112 -116
  20. package/src/og/astro/jd.js +514 -518
  21. package/src/og/astro/orbit.js +119 -123
  22. package/src/og/astro/rotation.js +36 -40
  23. package/src/og/bv/Box.js +77 -81
  24. package/src/og/bv/Sphere.js +57 -61
  25. package/src/og/camera/Camera.js +20 -7
  26. package/src/og/camera/Frustum.js +4 -4
  27. package/src/og/camera/PlanetCamera.js +15 -22
  28. package/src/og/cons.js +1 -1
  29. package/src/og/control/Atmosphere.js +0 -4
  30. package/src/og/control/Control.js +9 -8
  31. package/src/og/control/DebugInfo.js +3 -7
  32. package/src/og/control/DrawingSwitcher.js +117 -0
  33. package/src/og/control/EarthCoordinates.js +214 -214
  34. package/src/og/control/EarthNavigation.js +6 -13
  35. package/src/og/control/GeoImageDragControl.js +0 -4
  36. package/src/og/control/KeyboardNavigation.js +0 -4
  37. package/src/og/control/LayerAnimation.js +0 -4
  38. package/src/og/control/LayerSwitcher.js +2 -4
  39. package/src/og/control/Lighting.js +12 -16
  40. package/src/og/control/MouseNavigation.js +1 -5
  41. package/src/og/control/MouseWheelZoomControl.js +0 -4
  42. package/src/og/control/RulerSwitcher.js +0 -4
  43. package/src/og/control/ScaleControl.js +2 -6
  44. package/src/og/control/ShowFps.js +40 -44
  45. package/src/og/control/SimpleNavigation.js +10 -10
  46. package/src/og/control/SimpleSkyBackground.js +0 -4
  47. package/src/og/control/Sun.js +0 -4
  48. package/src/og/control/ToggleWireframe.js +35 -39
  49. package/src/og/control/ZoomControl.js +0 -4
  50. package/src/og/control/drawing/DrawingControl.js +51 -0
  51. package/src/og/control/drawing/LineStringDrawingScene.js +203 -0
  52. package/src/og/control/drawing/PolygonDrawingScene.js +785 -0
  53. package/src/og/control/elevationProfile/ElevationProfile.js +275 -0
  54. package/src/og/control/index.js +5 -1
  55. package/src/og/control/ruler/Ruler.js +0 -4
  56. package/src/og/control/ruler/RulerScene.js +3 -2
  57. package/src/og/control/selection/Selection.js +0 -4
  58. package/src/og/control/selection/SelectionScene.js +2 -4
  59. package/src/og/control/timeline/TimelineControl.js +4 -4
  60. package/src/og/control/timeline/TimelineModel.js +2 -2
  61. package/src/og/control/timeline/TimelineView.js +1 -0
  62. package/src/og/control/visibleExtent/Segment.js +7 -7
  63. package/src/og/control/visibleExtent/drawnode.js +0 -4
  64. package/src/og/ellipsoid/Ellipsoid.js +236 -325
  65. package/src/og/ellipsoid/wgs84.js +0 -4
  66. package/src/og/entity/BaseBillboard.js +375 -379
  67. package/src/og/entity/Billboard.js +0 -4
  68. package/src/og/entity/BillboardHandler.js +3 -7
  69. package/src/og/entity/Entity.js +22 -22
  70. package/src/og/entity/EntityCollection.js +14 -18
  71. package/src/og/entity/GeoObject.js +6 -8
  72. package/src/og/entity/GeoObjectHandler.js +30 -24
  73. package/src/og/entity/Geometry.js +5 -4
  74. package/src/og/entity/GeometryHandler.js +18 -19
  75. package/src/og/entity/Label.js +0 -4
  76. package/src/og/entity/LabelHandler.js +10 -14
  77. package/src/og/entity/LabelWorker.js +1 -1
  78. package/src/og/entity/PointCloud.js +2 -6
  79. package/src/og/entity/PointCloudHandler.js +122 -126
  80. package/src/og/entity/Polyline.js +15 -17
  81. package/src/og/entity/PolylineHandler.js +104 -108
  82. package/src/og/entity/Ray.js +29 -29
  83. package/src/og/entity/RayHandler.js +2 -2
  84. package/src/og/entity/Strip.js +1 -1
  85. package/src/og/entity/StripHandler.js +2 -2
  86. package/src/og/index.js +3 -1
  87. package/src/og/input/KeyboardHandler.js +128 -132
  88. package/src/og/input/MouseHandler.js +94 -98
  89. package/src/og/input/TouchHandler.js +59 -63
  90. package/src/og/input/input.js +44 -48
  91. package/src/og/layer/BaseGeoImage.js +6 -9
  92. package/src/og/layer/CanvasTiles.js +1 -5
  93. package/src/og/layer/GeoImage.js +0 -4
  94. package/src/og/layer/GeoTexture2d.js +0 -4
  95. package/src/og/layer/GeoVideo.js +0 -4
  96. package/src/og/layer/KML.js +1 -0
  97. package/src/og/layer/Layer.js +22 -26
  98. package/src/og/layer/Material.js +0 -4
  99. package/src/og/layer/Vector.js +25 -22
  100. package/src/og/layer/WMS.js +182 -186
  101. package/src/og/layer/XYZ.js +0 -4
  102. package/src/og/light/LightSource.js +0 -4
  103. package/src/og/math/Line2.js +28 -32
  104. package/src/og/math/Mat3.js +152 -156
  105. package/src/og/math/Ray.js +0 -4
  106. package/src/og/math/Vec2.js +0 -4
  107. package/src/og/math/Vec3.js +5 -4
  108. package/src/og/math/Vec4.js +0 -4
  109. package/src/og/math/coder.js +104 -104
  110. package/src/og/math.js +42 -10
  111. package/src/og/mercator.js +1 -1
  112. package/src/og/proj/EPSG3857.js +13 -13
  113. package/src/og/proj/Proj.js +59 -63
  114. package/src/og/quadTree/EPSG4326QuadTreeStrategy.js +1 -0
  115. package/src/og/quadTree/EarthQuadTreeStrategy.js +1 -0
  116. package/src/og/quadTree/EntityCollectionNode.js +12 -16
  117. package/src/og/quadTree/MarsQuadTreeStrategy.js +1 -0
  118. package/src/og/quadTree/Node.js +15 -14
  119. package/src/og/quadTree/QuadTreeStrategy.js +1 -0
  120. package/src/og/quadTree/Wgs84QuadTreeStrategy.js +1 -0
  121. package/src/og/renderer/Renderer.js +114 -27
  122. package/src/og/renderer/RendererEvents.js +0 -4
  123. package/src/og/scene/Axes.js +74 -78
  124. package/src/og/scene/BaseNode.js +1 -5
  125. package/src/og/scene/Planet.js +127 -130
  126. package/src/og/scene/RenderNode.js +20 -12
  127. package/src/og/scene/SkyBox.js +104 -108
  128. package/src/og/segment/Segment.js +10 -6
  129. package/src/og/segment/SegmentLonLat.js +3 -7
  130. package/src/og/segment/segmentHelper.js +229 -225
  131. package/src/og/shaders/atmos.js +1 -1
  132. package/src/og/shaders/billboard.js +0 -4
  133. package/src/og/shaders/drawnode.js +5 -9
  134. package/src/og/shaders/geoObject.js +0 -4
  135. package/src/og/shaders/label.js +0 -4
  136. package/src/og/shaders/pickingMask.js +0 -4
  137. package/src/og/shaders/pointCloud.js +0 -4
  138. package/src/og/shaders/polyline.js +0 -4
  139. package/src/og/shaders/ray.js +0 -4
  140. package/src/og/shaders/skybox.js +0 -4
  141. package/src/og/terrain/EmptyTerrain.js +0 -4
  142. package/src/og/utils/FontAtlas.js +0 -4
  143. package/src/og/utils/GeoImageCreator.js +2 -3
  144. package/src/og/utils/NormalMapCreator.js +11 -12
  145. package/src/og/utils/PlainSegmentWorker.js +9 -9
  146. package/src/og/utils/TerrainWorker.js +2 -2
  147. package/src/og/utils/TextureAtlas.js +1 -1
  148. package/src/og/utils/VectorTileCreator.js +3 -9
  149. package/src/og/utils/earcut.js +8 -8
  150. package/src/og/utils/shared.js +30 -11
  151. package/src/og/webgl/Framebuffer.js +2 -6
  152. package/src/og/webgl/Handler.js +46 -20
  153. package/src/og/webgl/Multisample.js +2 -6
  154. package/src/og/webgl/Program.js +4 -8
  155. package/src/og/webgl/ProgramController.js +2 -2
  156. package/types/Clock.d.ts +1 -1
  157. package/types/Extent.d.ts +5 -5
  158. package/types/Globe.d.ts +15 -1
  159. package/types/ImageCanvas.d.ts +5 -0
  160. package/types/bv/Box.d.ts +1 -1
  161. package/types/bv/Sphere.d.ts +3 -3
  162. package/types/camera/Camera.d.ts +3 -2
  163. package/types/camera/PlanetCamera.d.ts +4 -4
  164. package/types/control/DrawingSwitcher.d.ts +13 -0
  165. package/types/control/EarthCoordinates.d.ts +1 -1
  166. package/types/control/Lighting.d.ts +8 -8
  167. package/types/control/drawing/DrawingControl.d.ts +14 -0
  168. package/types/control/drawing/LineStringDrawingScene.d.ts +5 -0
  169. package/types/control/drawing/PolygonDrawingScene.d.ts +99 -0
  170. package/types/control/index.d.ts +3 -1
  171. package/types/control/ruler/RulerScene.d.ts +0 -1
  172. package/types/control/selection/SelectionScene.d.ts +0 -1
  173. package/types/ellipsoid/Ellipsoid.d.ts +53 -64
  174. package/types/entity/Entity.d.ts +3 -2
  175. package/types/entity/GeoObject.d.ts +1 -2
  176. package/types/entity/Geometry.d.ts +5 -0
  177. package/types/entity/Polyline.d.ts +1 -1
  178. package/types/entity/Ray.d.ts +1 -0
  179. package/types/index.d.ts +1 -0
  180. package/types/layer/BaseGeoImage.d.ts +1 -1
  181. package/types/layer/CanvasTiles.d.ts +1 -1
  182. package/types/layer/Layer.d.ts +1 -1
  183. package/types/layer/Vector.d.ts +1 -0
  184. package/types/math/Vec3.d.ts +2 -0
  185. package/types/math.d.ts +7 -0
  186. package/types/renderer/Renderer.d.ts +7 -1
  187. package/types/scene/Axes.d.ts +0 -1
  188. package/types/scene/Planet.d.ts +27 -26
  189. package/types/scene/RenderNode.d.ts +2 -0
  190. package/types/scene/SkyBox.d.ts +0 -1
  191. package/types/segment/Segment.d.ts +3 -2
  192. package/types/segment/SegmentLonLat.d.ts +0 -1
  193. package/types/utils/GeoImageCreator.d.ts +1 -1
  194. package/types/utils/NormalMapCreator.d.ts +1 -1
  195. package/types/utils/VectorTileCreator.d.ts +2 -2
  196. package/types/utils/shared.d.ts +2 -0
  197. package/types/webgl/Handler.d.ts +6 -4
@@ -3,7 +3,6 @@ export class Axes extends RenderNode {
3
3
  size: any;
4
4
  axesBuffer: any;
5
5
  axesColorBuffer: any;
6
- init(): void;
7
6
  createAxisBuffer(gridSize: any): void;
8
7
  axisBuffer: any;
9
8
  axisColorBuffer: any;
@@ -16,7 +16,6 @@
16
16
  * @fires og.scene.Planet#geoimageadd
17
17
  */
18
18
  export class Planet extends RenderNode {
19
- static getBearingNorthRotationQuat(cartesian: any): Quat;
20
19
  constructor(options?: {});
21
20
  _cameraFrustums: any;
22
21
  /**
@@ -79,14 +78,14 @@ export class Planet extends RenderNode {
79
78
  * @type {Terrain}
80
79
  */
81
80
  public _terrainPool: Terrain;
81
+ _minAltitude: any;
82
+ _maxAltitude: any;
82
83
  /**
83
84
  * Camera is this.renderer.activeCamera pointer.
84
85
  * @public
85
86
  * @type {PlanetCamera}
86
87
  */
87
88
  public camera: PlanetCamera;
88
- _minAltitude: any;
89
- _maxAltitude: any;
90
89
  maxEqualZoomAltitude: any;
91
90
  minEqualZoomAltitude: any;
92
91
  minEqualZoomCameraSlope: any;
@@ -112,6 +111,7 @@ export class Planet extends RenderNode {
112
111
  */
113
112
  public maxCurrZoom: number;
114
113
  _viewExtent: Extent;
114
+ _initialViewExtent: Extent;
115
115
  /**
116
116
  * @protected
117
117
  */
@@ -153,11 +153,6 @@ export class Planet extends RenderNode {
153
153
  * @type {idle.Lock}
154
154
  */
155
155
  public terrainLock: idle.Lock;
156
- /**
157
- * Layer's transparent colors.
158
- * @protected
159
- */
160
- protected _tcolorArr: any[];
161
156
  /**
162
157
  * Height scale factor. 1 - is normal elevation scale.
163
158
  * @protected
@@ -228,11 +223,21 @@ export class Planet extends RenderNode {
228
223
  /**
229
224
  * GeoImage creator.
230
225
  * @protected
231
- * @type{utils.GeoImageCreator}
226
+ * @type{GeoImageCreator}
232
227
  */
233
- protected _geoImageCreator: utils.GeoImageCreator;
234
- _vectorTileCreator: VectorTileCreator;
235
- _normalMapCreator: NormalMapCreator;
228
+ protected _geoImageCreator: GeoImageCreator;
229
+ /**
230
+ * VectorTileCreator creator.
231
+ * @protected
232
+ * @type{VectorTileCreator}
233
+ */
234
+ protected _vectorTileCreator: VectorTileCreator;
235
+ /**
236
+ * NormalMapCreator creator.
237
+ * @protected
238
+ * @type{NormalMapCreator}
239
+ */
240
+ protected _normalMapCreator: NormalMapCreator;
236
241
  _terrainWorker: TerrainWorker;
237
242
  _plainSegmentWorker: PlainSegmentWorker;
238
243
  _tileLoader: Loader;
@@ -254,6 +259,7 @@ export class Planet extends RenderNode {
254
259
  _renderScreenNodesPASS: () => void;
255
260
  _atmosphereEnabled: any;
256
261
  _atmosphereMaxMinOpacity: Float32Array;
262
+ getNorthFrameRotation(cartesian: any): any;
257
263
  set atmosphereMaxOpacity(arg: number);
258
264
  get atmosphereMaxOpacity(): number;
259
265
  set atmosphereMinOpacity(arg: number);
@@ -352,11 +358,7 @@ export class Planet extends RenderNode {
352
358
  */
353
359
  protected _initializeShaders(): void;
354
360
  _onLayerLoadend(layer: any): void;
355
- /**
356
- * @virtual
357
- * @public
358
- */
359
- public init(): void;
361
+ initLayers(): void;
360
362
  clearIndexesCache(): void;
361
363
  _preRender(): void;
362
364
  _preLoad(): void;
@@ -401,7 +403,6 @@ export class Planet extends RenderNode {
401
403
  _checkRendercompleted(): void;
402
404
  lockQuadTree(): void;
403
405
  unlockQuadTree(): void;
404
- _firstPASS(): void;
405
406
  _renderScreenNodesPASSNoAtmos(): void;
406
407
  /**
407
408
  * @protected
@@ -476,9 +477,9 @@ export class Planet extends RenderNode {
476
477
  * @param {Boolean} [force=false] - Force framebuffer rendering.
477
478
  * @returns {LonLat} -
478
479
  */
479
- public getLonLatFromPixelTerrain(px: Vec2, force?: boolean): LonLat;
480
+ public getLonLatFromPixelTerrain(px: Vec2): LonLat;
480
481
  /**
481
- * Returns projected 2d screen coordinates by 3d cartesian coordiantes.
482
+ * Returns projected 2d screen coordinates by 3d cartesian coordinates.
482
483
  * @public
483
484
  * @param {Vec3} coords - Cartesian coordinates.
484
485
  * @returns {Vec2} -
@@ -493,15 +494,15 @@ export class Planet extends RenderNode {
493
494
  public getPixelFromLonLat(lonlat: LonLat): Vec2;
494
495
  /**
495
496
  * Returns distance from active camera to the the planet ellipsoid
496
- * coordiantes unprojected by 2d screen coordiantes, or null if screen coordinates outside the planet.
497
+ * coordinates unprojected by 2d screen coordinates, or null if screen coordinates outside the planet.
497
498
  * @public
498
499
  * @param {Vec2} px - Screen coordinates.
499
500
  * @returns {number} -
500
501
  */
501
502
  public getDistanceFromPixelEllipsoid(px: Vec2): number;
502
503
  /**
503
- * Returns distance from active camera to the the relief planet coordiantes unprojected
504
- * by 2d screen coordiantes, or null if screen coordinates outside the planet.
504
+ * Returns distance from active camera to the the relief planet coordinates unprojected
505
+ * by 2d screen coordinates, or null if screen coordinates outside the planet.
505
506
  * If screen coordinates inside the planet but relief is not exists in the
506
507
  * point than function returns distance to the planet ellipsoid.
507
508
  * @public
@@ -550,7 +551,7 @@ export class Planet extends RenderNode {
550
551
  /**
551
552
  * Fly camera to the new point.
552
553
  * @public
553
- * @param {Vec3} cartesian - Fly coordiantes.
554
+ * @param {Vec3} cartesian - Fly coordinates.
554
555
  * @param {Vec3} [look] - Camera "look at" point.
555
556
  * @param {Vec3} [up] - Camera UP vector on the end of a flying.
556
557
  * @param {Number} [ampl] - Altitude amplitude factor.
@@ -562,7 +563,7 @@ export class Planet extends RenderNode {
562
563
  /**
563
564
  * Fly camera to the new geographical position.
564
565
  * @public
565
- * @param {LonLat} lonlat - Fly geographical coordiantes.
566
+ * @param {LonLat} lonlat - Fly geographical coordinates.
566
567
  * @param {Vec3} [look] - Camera "look at" point on the end of a flying.
567
568
  * @param {Vec3} [up] - Camera UP vector on the end of a flying.
568
569
  * @param {Number} [ampl] - Altitude amplitude factor.
@@ -584,6 +585,7 @@ import { RenderNode } from "./RenderNode.js";
584
585
  import { PlanetCamera } from "../camera/PlanetCamera.js";
585
586
  import { Vec3 } from "../math/index.js";
586
587
  import { Extent } from "../Extent.js";
588
+ import { GeoImageCreator } from "../utils/GeoImageCreator.js";
587
589
  import { VectorTileCreator } from "../utils/VectorTileCreator.js";
588
590
  import { NormalMapCreator } from "../utils/NormalMapCreator.js";
589
591
  import { TerrainWorker } from "../utils/TerrainWorker.js";
@@ -591,4 +593,3 @@ import { PlainSegmentWorker } from "../utils/PlainSegmentWorker.js";
591
593
  import { Loader } from "../utils/Loader.js";
592
594
  import { Key } from "../Lock.js";
593
595
  import { LonLat } from "../LonLat.js";
594
- import { Quat } from "../math/index.js";
@@ -52,6 +52,8 @@ export class RenderNode extends BaseNode {
52
52
  * @param {Renderer} renderer - Redner node's renderer.
53
53
  */
54
54
  public assign(renderer: Renderer): void;
55
+ initialize(): void;
56
+ init(): void;
55
57
  onremove(): void;
56
58
  remove(): void;
57
59
  /**
@@ -4,7 +4,6 @@ export class SkyBox extends RenderNode {
4
4
  params: any;
5
5
  vertexPositionBuffer: any;
6
6
  texture: any;
7
- init(): void;
8
7
  _createBuffers(): void;
9
8
  }
10
9
  import { RenderNode } from './RenderNode.js';
@@ -161,13 +161,14 @@ export class Segment {
161
161
  * @returns {Vec3} -
162
162
  */
163
163
  public getEntityTerrainPoint(entity: Entity, res: Vec3): Vec3;
164
- isEntityInside(e: any): boolean;
164
+ getInsideLonLat(obj: any): any;
165
+ isEntityInside(entity: any): boolean;
165
166
  /**
166
167
  * Returns distance from object to terrain coordinates and terrain point that calculates out in the res parameter.
167
168
  * @public
168
169
  * @param {Vec3} xyz - Cartesian object position.
169
170
  * @param {LonLat} insideSegmentPosition - Geodetic object position.
170
- * @param {Vec3} [res] - Result cartesian coordiantes on the terrain.
171
+ * @param {Vec3} [res] - Result cartesian coordinates on the terrain.
171
172
  * @param {Vec3} [normal] - Terrain point normal.
172
173
  * @returns {number} -
173
174
  */
@@ -12,7 +12,6 @@ export class SegmentLonLat extends Segment {
12
12
  _extentMerc: Extent;
13
13
  _isNorth: boolean;
14
14
  projectNative(coords: any): any;
15
- getTerrainPoint(xyz: any, insideSegmentPosition: any, res: any, normal: any): number;
16
15
  _getMaxZoom(): number;
17
16
  _assignTileXIndexes(extent: any): void;
18
17
  _assignTileYIndexes(extent: any): void;
@@ -9,7 +9,7 @@ export class GeoImageCreator {
9
9
  _currentFrame: number;
10
10
  _queue: any[];
11
11
  _animate: any[];
12
- _initialize(): void;
12
+ init(): void;
13
13
  /**
14
14
  * Creates geoImage corners coordinates grid buffer.
15
15
  * @public
@@ -13,7 +13,7 @@ export class NormalMapCreator {
13
13
  _height: any;
14
14
  _queue: QueueArray;
15
15
  _lock: Lock;
16
- _init(): void;
16
+ init(): void;
17
17
  _drawNormalMapBlur(segment: any): boolean;
18
18
  _drawNormalMapNoBlur(segment: any): boolean;
19
19
  _drawNormalMap(segment: any): boolean;
@@ -2,11 +2,11 @@ export class VectorTileCreator {
2
2
  constructor(planet: any, width?: number, height?: number);
3
3
  _width: number;
4
4
  _height: number;
5
- _handler: any;
6
5
  _planet: any;
7
6
  _framebuffer: Framebuffer;
8
7
  _queue: any[];
9
- _initialize(): void;
8
+ init(): void;
9
+ _handler: any;
10
10
  frame(): void;
11
11
  add(material: any): void;
12
12
  remove(material: any): void;
@@ -227,6 +227,8 @@ export function loadImage(url: string): Promise<new (width?: number, height?: nu
227
227
  * @returns {boolean} Returns true is the image is loaded
228
228
  */
229
229
  export function isImageLoaded(image: HTMLImageElement): boolean;
230
+ export function distanceFormat(v: any): string;
231
+ export function getUrlParam(paramName: any): number;
230
232
  export namespace castType {
231
233
  function string(v: any): any;
232
234
  function date(v: any): any;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * A WebGL handler for accessing low-level WebGL capabilities.
3
3
  * @class
4
- * @param {string} id - Canvas element id that WebGL handler assing with. If it's null
4
+ * @param {string | HTMLCanvasElement} canvasTarget - Canvas element target.
5
5
  * or undefined creates hidden canvas and handler bacomes hidden.
6
6
  * @param {Object} [params] - Handler options:
7
7
  * @param {number} [params.anisotropy] - Anisotropy filter degree. 8 is default.
@@ -24,7 +24,7 @@ export class Handler {
24
24
  * @returns {Object} -
25
25
  */
26
26
  static getContext(canvas: any, contextAttributes?: any): any;
27
- constructor(id: any, params?: {});
27
+ constructor(canvasTarget: any, params?: {});
28
28
  events: Events;
29
29
  /**
30
30
  * Application default timer.
@@ -83,11 +83,11 @@ export class Handler {
83
83
  */
84
84
  public extensions: any;
85
85
  /**
86
- * HTML Canvas object id.
86
+ * HTML Canvas target.
87
87
  * @private
88
88
  * @type {Object}
89
89
  */
90
- private _id;
90
+ private _canvasTarget;
91
91
  _lastAnimationFrameTime: number;
92
92
  _initialized: boolean;
93
93
  /**
@@ -107,6 +107,8 @@ export class Handler {
107
107
  };
108
108
  createTextureDefault: any;
109
109
  ONCANVASRESIZE: any;
110
+ isInitialized(): boolean;
111
+ _createCanvas(): void;
110
112
  /**
111
113
  * Sets animation frame function.
112
114
  * @public