@vpmedia/phaser 1.13.0 → 1.14.0

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 (99) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/phaser/core/animation_manager.js +1 -1
  4. package/src/phaser/core/cache.js +1 -1
  5. package/src/phaser/core/dom.js +1 -1
  6. package/src/phaser/core/event_manager.js +1 -1
  7. package/src/phaser/core/game.js +5 -5
  8. package/src/phaser/core/input.js +5 -5
  9. package/src/phaser/core/input_handler.js +1 -1
  10. package/src/phaser/core/input_mouse.js +1 -3
  11. package/src/phaser/core/input_mspointer.js +1 -1
  12. package/src/phaser/core/input_pointer.js +1 -1
  13. package/src/phaser/core/input_touch.js +1 -1
  14. package/src/phaser/core/loader.js +1 -1
  15. package/src/phaser/core/scale_manager.js +1 -1
  16. package/src/phaser/core/timer.js +1 -1
  17. package/src/phaser/core/timer_event.js +1 -1
  18. package/src/phaser/core/tween_easing.js +31 -0
  19. package/src/phaser/display/button.js +1 -1
  20. package/src/phaser/display/canvas/buffer.js +1 -1
  21. package/src/phaser/display/canvas/renderer.js +1 -1
  22. package/src/phaser/display/canvas/tinter.js +1 -1
  23. package/src/phaser/display/graphics.js +1 -1
  24. package/src/phaser/display/image.js +2 -2
  25. package/src/phaser/display/sprite_batch.js +1 -1
  26. package/src/phaser/display/webgl/abstract_filter.js +1 -1
  27. package/src/phaser/display/webgl/blend_manager.js +1 -1
  28. package/src/phaser/display/webgl/earcut.js +28 -1
  29. package/src/phaser/display/webgl/earcut_node.js +1 -1
  30. package/src/phaser/display/webgl/fast_sprite_batch.js +1 -3
  31. package/src/phaser/display/webgl/filter_manager.js +1 -1
  32. package/src/phaser/display/webgl/filter_texture.js +1 -1
  33. package/src/phaser/display/webgl/graphics.js +10 -0
  34. package/src/phaser/display/webgl/render_texture.js +3 -3
  35. package/src/phaser/display/webgl/renderer.js +6 -6
  36. package/src/phaser/display/webgl/shader/complex.js +1 -1
  37. package/src/phaser/display/webgl/shader/fast.js +1 -1
  38. package/src/phaser/display/webgl/shader/normal.js +1 -1
  39. package/src/phaser/display/webgl/shader/primitive.js +1 -1
  40. package/src/phaser/display/webgl/shader/strip.js +1 -1
  41. package/src/phaser/display/webgl/shader_manager.js +6 -6
  42. package/src/phaser/display/webgl/sprite_batch.js +3 -5
  43. package/src/phaser/display/webgl/stencil_manager.js +1 -1
  44. package/types/phaser/core/animation_manager.d.ts +1 -1
  45. package/types/phaser/core/cache.d.ts +1 -1
  46. package/types/phaser/core/dom.d.ts +1 -1
  47. package/types/phaser/core/event_manager.d.ts +1 -1
  48. package/types/phaser/core/game.d.ts +5 -5
  49. package/types/phaser/core/game.d.ts.map +1 -1
  50. package/types/phaser/core/input.d.ts +5 -5
  51. package/types/phaser/core/input.d.ts.map +1 -1
  52. package/types/phaser/core/input_handler.d.ts +1 -1
  53. package/types/phaser/core/input_mouse.d.ts +1 -1
  54. package/types/phaser/core/input_mouse.d.ts.map +1 -1
  55. package/types/phaser/core/input_mspointer.d.ts +1 -1
  56. package/types/phaser/core/input_pointer.d.ts +4 -4
  57. package/types/phaser/core/input_touch.d.ts +1 -1
  58. package/types/phaser/core/loader.d.ts +16 -16
  59. package/types/phaser/core/loader.d.ts.map +1 -1
  60. package/types/phaser/core/scale_manager.d.ts +1 -1
  61. package/types/phaser/core/scale_manager.d.ts.map +1 -1
  62. package/types/phaser/core/timer.d.ts +1 -1
  63. package/types/phaser/core/timer.d.ts.map +1 -1
  64. package/types/phaser/core/timer_event.d.ts +1 -1
  65. package/types/phaser/core/tween_easing.d.ts +31 -0
  66. package/types/phaser/core/tween_easing.d.ts.map +1 -1
  67. package/types/phaser/display/button.d.ts +1 -1
  68. package/types/phaser/display/button.d.ts.map +1 -1
  69. package/types/phaser/display/canvas/buffer.d.ts +1 -1
  70. package/types/phaser/display/canvas/renderer.d.ts +1 -1
  71. package/types/phaser/display/image.d.ts +2 -2
  72. package/types/phaser/display/image.d.ts.map +1 -1
  73. package/types/phaser/display/sprite_batch.d.ts +1 -1
  74. package/types/phaser/display/webgl/abstract_filter.d.ts +2 -2
  75. package/types/phaser/display/webgl/abstract_filter.d.ts.map +1 -1
  76. package/types/phaser/display/webgl/blend_manager.d.ts +1 -1
  77. package/types/phaser/display/webgl/earcut.d.ts +27 -0
  78. package/types/phaser/display/webgl/earcut.d.ts.map +1 -1
  79. package/types/phaser/display/webgl/earcut_node.d.ts +1 -1
  80. package/types/phaser/display/webgl/fast_sprite_batch.d.ts +1 -1
  81. package/types/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -1
  82. package/types/phaser/display/webgl/filter_manager.d.ts +1 -1
  83. package/types/phaser/display/webgl/filter_texture.d.ts +1 -1
  84. package/types/phaser/display/webgl/graphics.d.ts +10 -0
  85. package/types/phaser/display/webgl/graphics.d.ts.map +1 -1
  86. package/types/phaser/display/webgl/render_texture.d.ts +3 -3
  87. package/types/phaser/display/webgl/render_texture.d.ts.map +1 -1
  88. package/types/phaser/display/webgl/renderer.d.ts +6 -6
  89. package/types/phaser/display/webgl/renderer.d.ts.map +1 -1
  90. package/types/phaser/display/webgl/shader/complex.d.ts +1 -1
  91. package/types/phaser/display/webgl/shader/fast.d.ts +1 -1
  92. package/types/phaser/display/webgl/shader/normal.d.ts +1 -1
  93. package/types/phaser/display/webgl/shader/primitive.d.ts +1 -1
  94. package/types/phaser/display/webgl/shader/strip.d.ts +1 -1
  95. package/types/phaser/display/webgl/shader_manager.d.ts +6 -6
  96. package/types/phaser/display/webgl/shader_manager.d.ts.map +1 -1
  97. package/types/phaser/display/webgl/sprite_batch.d.ts +2 -2
  98. package/types/phaser/display/webgl/sprite_batch.d.ts.map +1 -1
  99. package/types/phaser/display/webgl/stencil_manager.d.ts +1 -1
@@ -4,9 +4,10 @@
4
4
  * @author Richard Davey <rich@photonstorm.com>
5
5
  * @author Mat Groves http://matgroves.com/ @Doormat23
6
6
  */
7
- import Node from './earcut_node';
7
+ import { Node } from './earcut_node';
8
8
 
9
9
  /**
10
+ * TBD.
10
11
  *
11
12
  * @param {object} list - TBD.
12
13
  * @returns {object} TBD.
@@ -73,6 +74,7 @@ export function sortLinked(list) {
73
74
  }
74
75
 
75
76
  /**
77
+ * TBD.
76
78
  *
77
79
  * @param {object} a - TBD.
78
80
  * @param {object} b - TBD.
@@ -83,6 +85,7 @@ export function compareX(a, b) {
83
85
  }
84
86
 
85
87
  /**
88
+ * TBD.
86
89
  *
87
90
  * @param {number} x - TBD.
88
91
  * @param {number} y - TBD.
@@ -107,6 +110,7 @@ export function zOrder(x, y, minX, minY, size) {
107
110
  }
108
111
 
109
112
  /**
113
+ * TBD.
110
114
  *
111
115
  * @param {object} start - TBD.
112
116
  * @param {number} minX - TBD.
@@ -127,6 +131,7 @@ export function indexCurve(start, minX, minY, size) {
127
131
  }
128
132
 
129
133
  /**
134
+ * TBD.
130
135
  *
131
136
  * @param {object} start - TBD.
132
137
  * @returns {object} TBD.
@@ -142,6 +147,7 @@ export function getLeftmost(start) {
142
147
  }
143
148
 
144
149
  /**
150
+ * TBD.
145
151
  *
146
152
  * @param {number} ax - TBD.
147
153
  * @param {number} ay - TBD.
@@ -162,6 +168,7 @@ export function pointInTriangle(ax, ay, bx, by, cx, cy, px, py) {
162
168
  }
163
169
 
164
170
  /**
171
+ * TBD.
165
172
  *
166
173
  * @param {object} p - TBD.
167
174
  * @param {object} q - TBD.
@@ -173,6 +180,7 @@ export function area(p, q, r) {
173
180
  }
174
181
 
175
182
  /**
183
+ * TBD.
176
184
  *
177
185
  * @param {object} p1 - TBD.
178
186
  * @param {object} p2 - TBD.
@@ -183,6 +191,7 @@ export function equals(p1, p2) {
183
191
  }
184
192
 
185
193
  /**
194
+ * TBD.
186
195
  *
187
196
  * @param {object} p1 - TBD.
188
197
  * @param {object} q1 - TBD.
@@ -197,6 +206,7 @@ export function intersects(p1, q1, p2, q2) {
197
206
  }
198
207
 
199
208
  /**
209
+ * TBD.
200
210
  *
201
211
  * @param {object} a - TBD.
202
212
  * @param {object} b - TBD.
@@ -219,6 +229,7 @@ export function intersectsPolygon(a, b) {
219
229
  }
220
230
 
221
231
  /**
232
+ * TBD.
222
233
  *
223
234
  * @param {object} a - TBD.
224
235
  * @param {object} b - TBD.
@@ -231,6 +242,7 @@ export function locallyInside(a, b) {
231
242
  }
232
243
 
233
244
  /**
245
+ * TBD.
234
246
  *
235
247
  * @param {object} a - TBD.
236
248
  * @param {object} b - TBD.
@@ -254,6 +266,7 @@ export function middleInside(a, b) {
254
266
  }
255
267
 
256
268
  /**
269
+ * TBD.
257
270
  *
258
271
  * @param {object} a - TBD.
259
272
  * @param {object} b - TBD.
@@ -272,6 +285,7 @@ export function isValidDiagonal(a, b) {
272
285
  }
273
286
 
274
287
  /**
288
+ * TBD.
275
289
  *
276
290
  * @param {object} a - TBD.
277
291
  * @param {object} b - TBD.
@@ -294,6 +308,7 @@ export function splitPolygon(a, b) {
294
308
  }
295
309
 
296
310
  /**
311
+ * TBD.
297
312
  *
298
313
  * @param {number} i - TBD.
299
314
  * @param {number} x - TBD.
@@ -316,6 +331,7 @@ export function insertNode(i, x, y, last) {
316
331
  }
317
332
 
318
333
  /**
334
+ * TBD.
319
335
  *
320
336
  * @param {object} p - TBD.
321
337
  */
@@ -331,6 +347,7 @@ export function removeNode(p) {
331
347
  }
332
348
 
333
349
  /**
350
+ * TBD.
334
351
  *
335
352
  * @param {object} ear - TBD.
336
353
  * @returns {boolean} TBD.
@@ -351,6 +368,7 @@ export function isEar(ear) {
351
368
  }
352
369
 
353
370
  /**
371
+ * TBD.
354
372
  *
355
373
  * @param {object} ear - TBD.
356
374
  * @param {number} minX - TBD.
@@ -401,6 +419,7 @@ export function isEarHashed(ear, minX, minY, size) {
401
419
  }
402
420
 
403
421
  /**
422
+ * TBD.
404
423
  *
405
424
  * @param {object} data - TBD.
406
425
  * @param {number} start - TBD.
@@ -429,6 +448,7 @@ export function linkedList(data, start, end, dim, clockwise) {
429
448
  }
430
449
 
431
450
  /**
451
+ * TBD.
432
452
  *
433
453
  * @param {object} start - TBD.
434
454
  * @param {object} end - TBD.
@@ -455,6 +475,7 @@ export function filterPoints(start, end) {
455
475
  }
456
476
 
457
477
  /**
478
+ * TBD.
458
479
  *
459
480
  * @param {object} hole - TBD.
460
481
  * @param {object} outerNode - TBD.
@@ -505,6 +526,7 @@ export function findHoleBridge(hole, outerNode) {
505
526
  }
506
527
 
507
528
  /**
529
+ * TBD.
508
530
  *
509
531
  * @param {object} hole - TBD.
510
532
  * @param {object} outerNode - TBD.
@@ -518,6 +540,7 @@ export function eliminateHole(hole, outerNode) {
518
540
  }
519
541
 
520
542
  /**
543
+ * TBD.
521
544
  *
522
545
  * @param {object} data - TBD.
523
546
  * @param {object} holeIndices - TBD.
@@ -549,6 +572,7 @@ export function eliminateHoles(data, holeIndices, outerNode, dim) {
549
572
  }
550
573
 
551
574
  /**
575
+ * TBD.
552
576
  *
553
577
  * @param {object} start - TBD.
554
578
  * @param {object} triangles - TBD.
@@ -577,6 +601,7 @@ export function cureLocalIntersections(start, triangles, dim) {
577
601
  }
578
602
 
579
603
  /**
604
+ * TBD.
580
605
  *
581
606
  * @param {object} start - TBD.
582
607
  * @param {object} triangles - TBD.
@@ -609,6 +634,7 @@ export function splitEarcut(start, triangles, dim, minX, minY, size) {
609
634
  }
610
635
 
611
636
  /**
637
+ * TBD.
612
638
  *
613
639
  * @param {object} ear - TBD.
614
640
  * @param {object} triangles - TBD.
@@ -660,6 +686,7 @@ export function earcutLinked(ear, triangles, dim, minX, minY, size, pass) {
660
686
  }
661
687
 
662
688
  /**
689
+ * TBD.
663
690
  *
664
691
  * @param {object} data - TBD.
665
692
  * @param {object} holeIndices - TBD.
@@ -5,7 +5,7 @@
5
5
  * @author Mat Groves http://matgroves.com/ @Doormat23
6
6
  */
7
7
 
8
- export default class {
8
+ export class Node {
9
9
  constructor(i, x, y) {
10
10
  // vertice index in coordinates array
11
11
  this.i = i;
@@ -5,9 +5,7 @@
5
5
  * @author Mat Groves http://matgroves.com/ @Doormat23
6
6
  */
7
7
 
8
- // TODO: fix ++ +=1 conversion issues (when a is 0 than a++ is 0 but a+=1 is 1)
9
-
10
- export default class {
8
+ export class FastSpriteBatch {
11
9
  constructor(gl) {
12
10
  this.vertSize = 10;
13
11
  this.maxSize = 6000; // Math.pow(2, 16) / this.vertSize;
@@ -5,7 +5,7 @@
5
5
  * @author Mat Groves http://matgroves.com/ @Doormat23
6
6
  */
7
7
 
8
- export default class {
8
+ export class WebGLFilterManager {
9
9
  constructor() {
10
10
  this.filterStack = [];
11
11
  this.offsetX = 0;
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { SCALE_LINEAR } from '../../core/const';
8
8
 
9
- export default class {
9
+ export class FilterTexture {
10
10
  constructor(gl, width, height, scaleMode) {
11
11
  this.gl = gl;
12
12
  this.frameBuffer = gl.createFramebuffer();
@@ -41,6 +41,7 @@ export function getGraphicsDataPool() {
41
41
  }
42
42
 
43
43
  /**
44
+ * TBD.
44
45
  *
45
46
  * @param {object} webGL - TBD.
46
47
  * @param {number} type - TBD.
@@ -65,6 +66,7 @@ export function switchMode(webGL, type) {
65
66
  }
66
67
 
67
68
  /**
69
+ * TBD.
68
70
  *
69
71
  * @param {object} graphicsData - TBD.
70
72
  * @param {object} webGLData - TBD.
@@ -230,6 +232,7 @@ export function buildLine(graphicsData, webGLData) {
230
232
  }
231
233
 
232
234
  /**
235
+ * TBD.
233
236
  *
234
237
  * @param {object} graphicsData - TBD.
235
238
  * @param {object} webGLData - TBD.
@@ -274,6 +277,7 @@ export function buildRectangle(graphicsData, webGLData) {
274
277
  }
275
278
 
276
279
  /**
280
+ * TBD.
277
281
  *
278
282
  * @param {number} fromX - TBD.
279
283
  * @param {number} fromY - TBD.
@@ -313,6 +317,7 @@ export function quadraticBezierCurve(fromX, fromY, cpX, cpY, toX, toY) {
313
317
  }
314
318
 
315
319
  /**
320
+ * TBD.
316
321
  *
317
322
  * @param {object} graphicsData - TBD.
318
323
  * @param {object} webGLData - TBD.
@@ -374,6 +379,7 @@ export function buildRoundedRectangle(graphicsData, webGLData) {
374
379
  }
375
380
 
376
381
  /**
382
+ * TBD.
377
383
  *
378
384
  * @param {object} graphicsData - TBD.
379
385
  * @param {object} webGLData - TBD.
@@ -425,6 +431,7 @@ export function buildCircle(graphicsData, webGLData) {
425
431
  }
426
432
 
427
433
  /**
434
+ * TBD.
428
435
  *
429
436
  * @param {object} graphicsData - TBD.
430
437
  * @param {object} webGLData - TBD.
@@ -469,6 +476,7 @@ export function buildComplexPoly(graphicsData, webGLData) {
469
476
  }
470
477
 
471
478
  /**
479
+ * TBD.
472
480
  *
473
481
  * @param {object} graphicsData - TBD.
474
482
  * @param {object} webGLData - TBD.
@@ -508,6 +516,7 @@ export function buildPoly(graphicsData, webGLData) {
508
516
  }
509
517
 
510
518
  /**
519
+ * TBD.
511
520
  *
512
521
  * @param {object} graphics - TBD.
513
522
  * @param {object} gl - TBD.
@@ -597,6 +606,7 @@ export function updateGraphics(graphics, gl) {
597
606
  }
598
607
 
599
608
  /**
609
+ * TBD.
600
610
  *
601
611
  * @param {object} graphics - TBD.
602
612
  * @param {object} renderSession - TBD.
@@ -8,11 +8,11 @@ import { Rectangle } from '../../geom/rectangle';
8
8
  import { Point } from '../../geom/point';
9
9
  import { Texture } from './texture';
10
10
  import { BaseTexture } from './base_texture';
11
- import FilterTexture from './filter_texture';
12
- import CanvasBuffer from '../canvas/buffer';
11
+ import { FilterTexture } from './filter_texture';
12
+ import { CanvasBuffer } from '../canvas/buffer';
13
13
  import { RENDER_WEBGL } from '../../core/const';
14
14
 
15
- export default class extends Texture {
15
+ export class RenderTexture extends Texture {
16
16
  constructor(width, height, renderer, scaleMode, resolution = 1) {
17
17
  const w = width || 100;
18
18
  const h = height || 100;
@@ -28,14 +28,14 @@ import {
28
28
  import { remove } from '../canvas/pool';
29
29
  import { isPowerOfTwo } from '../../util/math';
30
30
  import { Point } from '../../geom/point';
31
- import WebGLShaderManager from './shader_manager';
32
- import WebGLSpriteBatch from './sprite_batch';
31
+ import { WebGLShaderManager } from './shader_manager';
32
+ import { WebGLSpriteBatch } from './sprite_batch';
33
33
  import * as WebGLMaskManager from './mask_manager';
34
- import WebGLFilterManager from './filter_manager';
35
- import WebGLStencilManager from './stencil_manager';
36
- import WebGLBlendModeManager from './blend_manager';
34
+ import { WebGLFilterManager } from './filter_manager';
35
+ import { WebGLStencilManager } from './stencil_manager';
36
+ import { WebGLBlendModeManager } from './blend_manager';
37
37
 
38
- export default class {
38
+ export class WebGLRenderer {
39
39
  constructor(game) {
40
40
  this.type = RENDER_WEBGL;
41
41
  this.resolution = game.config.resolution;
@@ -9,7 +9,7 @@ import { compileProgram } from '../util';
9
9
 
10
10
  // the next one is used for rendering triangle strips
11
11
 
12
- export default class {
12
+ export class ComplexPrimitiveShader {
13
13
  constructor(gl) {
14
14
  this.gl = gl;
15
15
  this._UID = generateShaderID();
@@ -9,7 +9,7 @@ import { compileProgram } from '../util';
9
9
 
10
10
  // this shader is used for the fast sprite rendering
11
11
 
12
- export default class {
12
+ export class FastShader {
13
13
  constructor(gl) {
14
14
  this.gl = gl;
15
15
  this._UID = generateShaderID();
@@ -29,7 +29,7 @@ const defaultVertexSrc = [
29
29
 
30
30
  // this shader is used for the default sprite rendering
31
31
 
32
- export default class {
32
+ export class NormalShader {
33
33
  constructor(gl) {
34
34
  this.gl = gl;
35
35
  this._UID = generateShaderID();
@@ -9,7 +9,7 @@ import { compileProgram } from '../util';
9
9
 
10
10
  // the next one is used for rendering primitives
11
11
 
12
- export default class {
12
+ export class PrimitiveShader {
13
13
  constructor(gl) {
14
14
  this.gl = gl;
15
15
  this._UID = generateShaderID();
@@ -9,7 +9,7 @@ import { compileProgram } from '../util';
9
9
 
10
10
  // the next one is used for rendering triangle strips
11
11
 
12
- export default class {
12
+ export class StripShader {
13
13
  constructor(gl) {
14
14
  this.gl = gl;
15
15
  this._UID = generateShaderID();
@@ -4,13 +4,13 @@
4
4
  * @author Richard Davey <rich@photonstorm.com>
5
5
  * @author Mat Groves http://matgroves.com/ @Doormat23
6
6
  */
7
- import PrimitiveShader from './shader/primitive';
8
- import ComplexPrimitiveShader from './shader/complex';
9
- import NormalShader from './shader/normal';
10
- import FastShader from './shader/fast';
11
- import StripShader from './shader/strip';
7
+ import { PrimitiveShader } from './shader/primitive';
8
+ import { ComplexPrimitiveShader } from './shader/complex';
9
+ import { NormalShader } from './shader/normal';
10
+ import { FastShader } from './shader/fast';
11
+ import { StripShader } from './shader/strip';
12
12
 
13
- export default class {
13
+ export class WebGLShaderManager {
14
14
  constructor() {
15
15
  this.gl = null;
16
16
  this.primitiveShader = null;
@@ -4,12 +4,10 @@
4
4
  * @author Richard Davey <rich@photonstorm.com>
5
5
  * @author Mat Groves http://matgroves.com/ @Doormat23
6
6
  */
7
- import AbstractFilter from './abstract_filter';
8
- import NormalShader from './shader/normal';
7
+ import { AbstractFilter } from './abstract_filter';
8
+ import { NormalShader } from './shader/normal';
9
9
 
10
- // TODO: fix ++ +=1 conversion issues (when a is 0 than a++ is 0 but a+=1 is 1)
11
-
12
- export default class {
10
+ export class WebGLSpriteBatch {
13
11
  constructor() {
14
12
  this.vertSize = 5;
15
13
  this.size = 2000; // Math.pow(2, 16) / this.vertSize;
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { hex2rgb } from '../../util/math';
8
8
 
9
- export default class {
9
+ export class WebGLStencilManager {
10
10
  constructor() {
11
11
  this.stencilStack = [];
12
12
  this.reverse = true;
@@ -1,4 +1,4 @@
1
- export default class _default {
1
+ export class AnimationManager {
2
2
  constructor(sprite: any);
3
3
  sprite: any;
4
4
  game: any;
@@ -8,7 +8,7 @@ export const BITMAPFONT: 6;
8
8
  export const JSON: 7;
9
9
  export const XML: 8;
10
10
  export const RENDER_TEXTURE: 9;
11
- export default class _default {
11
+ export class Cache {
12
12
  constructor(game: any);
13
13
  game: any;
14
14
  autoResolveURL: boolean;
@@ -1,4 +1,4 @@
1
- export default class _default {
1
+ export class DOM {
2
2
  constructor(device: any);
3
3
  treatAsDesktop: any;
4
4
  visualBounds: VisualBoundsDesktopRectangle | VisualBoundsRectangle;
@@ -1,4 +1,4 @@
1
- export default class _default {
1
+ export class EventManager {
2
2
  constructor(sprite: any);
3
3
  parent: any;
4
4
  _onAddedToGroup: Signal | null;
@@ -38,14 +38,14 @@ export class Game {
38
38
  update(time: any): void;
39
39
  destroy(): void;
40
40
  }
41
- import CanvasRenderer from '../display/canvas/renderer';
42
- import WebGLRenderer from '../display/webgl/renderer';
41
+ import { CanvasRenderer } from '../display/canvas/renderer';
42
+ import { WebGLRenderer } from '../display/webgl/renderer';
43
43
  import { SceneManager } from './scene_manager';
44
44
  import { RequestAnimationFrame } from './raf';
45
45
  import { GameObjectFactory } from './factory';
46
- import Cache from './cache';
47
- import Input from './input';
48
- import Loader from './loader';
46
+ import { Cache } from './cache';
47
+ import { Input } from './input';
48
+ import { Loader } from './loader';
49
49
  import { ScaleManager } from './scale_manager';
50
50
  import { SoundManager } from './sound_manager';
51
51
  import { Stage } from './stage';
@@ -1 +1 @@
1
- {"version":3,"file":"game.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/game.js"],"names":[],"mappings":"AA0BA;IACE,6BA6CC;IAzCC,WAAgB;IAChB,WAAW;IACX,eAAgB;IAChB,cAAgB;IAChB,eAAiB;IACjB,gDAAoB;IACpB,2BAAiB;IACjB,kBAAqB;IACrB,kCAAe;IACf,8BAAe;IACf,oBAAiB;IACjB,oBAAiB;IACjB,oBAAgB;IAChB,2BAAiB;IACjB,2BAAiB;IACjB,oBAAiB;IACjB,kBAAgB;IAChB,4BAAkB;IAClB,oBAAiB;IACjB,eAA0B;IAC1B,YAAkB;IAClB,aAAmB;IACnB,gBAA2B;IAC3B,iBAA4B;IAC5B,eAA0B;IAC1B,kBAAqB;IAkBvB,aA+BC;IAED,qBA0DC;IA1CK,sDAAoD;IACpD,gDAA4D;IA2ClE,mEAMC;IAED,+BA8BC;IAdG,sBAA+C;IAgBnD,8BAKC;IAED,wBAMC;IAED,wBAkBC;IAED,gBAuCC;CACF;2BApR0B,4BAA4B;0BAC7B,2BAA2B;6BAUxB,iBAAiB;sCAHR,OAAO;kCADX,WAAW;kBAH3B,SAAS;kBACT,SAAS;mBAFR,UAAU;6BAMA,iBAAiB;6BACjB,iBAAiB;sBAKxB,SAAS;qBAHV,QAAQ;6BACA,iBAAiB;sBACxB,SAAS;uBARR,UAAU;uBAJT,UAAU"}
1
+ {"version":3,"file":"game.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/game.js"],"names":[],"mappings":"AA0BA;IACE,6BA6CC;IAzCC,WAAgB;IAChB,WAAW;IACX,eAAgB;IAChB,cAAgB;IAChB,eAAiB;IACjB,gDAAoB;IACpB,2BAAiB;IACjB,kBAAqB;IACrB,kCAAe;IACf,8BAAe;IACf,oBAAiB;IACjB,oBAAiB;IACjB,oBAAgB;IAChB,2BAAiB;IACjB,2BAAiB;IACjB,oBAAiB;IACjB,kBAAgB;IAChB,4BAAkB;IAClB,oBAAiB;IACjB,eAA0B;IAC1B,YAAkB;IAClB,aAAmB;IACnB,gBAA2B;IAC3B,iBAA4B;IAC5B,eAA0B;IAC1B,kBAAqB;IAkBvB,aA+BC;IAED,qBA0DC;IA1CK,sDAAoD;IACpD,gDAA4D;IA2ClE,mEAMC;IAED,+BA8BC;IAdG,sBAA+C;IAgBnD,8BAKC;IAED,wBAMC;IAED,wBAkBC;IAED,gBAuCC;CACF;+BApR8B,4BAA4B;8BAC7B,2BAA2B;6BAU5B,iBAAiB;sCAHR,OAAO;kCADX,WAAW;sBAHvB,SAAS;sBACT,SAAS;uBAFR,UAAU;6BAMJ,iBAAiB;6BACjB,iBAAiB;sBAKxB,SAAS;qBAHV,QAAQ;6BACA,iBAAiB;sBACxB,SAAS;uBARR,UAAU;uBAJT,UAAU"}
@@ -1,4 +1,4 @@
1
- export default class _default {
1
+ export class Input {
2
2
  constructor(game: any);
3
3
  game: any;
4
4
  hitCanvas: object | null;
@@ -83,10 +83,10 @@ export default class _default {
83
83
  }
84
84
  import { Point } from '../geom/point';
85
85
  import { Circle } from '../geom/circle';
86
- import Pointer from './input_pointer';
87
- import Mouse from './input_mouse';
88
- import Touch from './input_touch';
89
- import MSPointer from './input_mspointer';
86
+ import { Pointer } from './input_pointer';
87
+ import { Mouse } from './input_mouse';
88
+ import { Touch } from './input_touch';
89
+ import { MSPointer } from './input_mspointer';
90
90
  import { Signal } from './signal';
91
91
  import { ArraySet } from './array_set';
92
92
  //# sourceMappingURL=input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/input.js"],"names":[],"mappings":"AAoBA;IACE,uBAoDC;IAnDC,UAAgB;IAChB,yBAAqB;IACrB,gBAAsB;IACtB,qBAAuB;IACvB,qBAAuB;IACvB,4BAAkC;IAClC,mCAAyC;IACzC,iBAAiB;IACjB,iBAAmB;IACnB,2BAA6C;IAC7C,uBAAoB;IACpB,oBAAiB;IACjB,sBAAkB;IAClB,oBAAiB;IACjB,oBAAoB;IACpB,gBAAkB;IAClB,sBAAwB;IACxB,iBAAoB;IACpB,wBAA0B;IAC1B,yBAA2B;IAC3B,8BAAiC;IACjC,mBAAqB;IACrB,oBAAsB;IACtB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,eAAqB;IACrB,gBAAkB;IAClB,8BAAyB;IACzB,6BAAwB;IACxB,oBAAiB;IACjB,oBAAiB;IACjB,4BAAqB;IACrB,qBAAwB;IACxB,sBAAkB;IAClB,oBAAgB;IAChB,qBAAiB;IACjB,sBAAkB;IAClB,sBAAsB;IACtB,2BAAsC;IACtC,mBAA8B;IAC9B,qBAAqB;IACrB,2BAAwB;IACxB,WAAW;IACX,WAAW;IAGb,aA6BC;IAFC,uDAAmE;IAIrE,gBAUC;IAED,kEAGC;IAED,mDAEC;IAED,sDAYC;IAED,6BAUC;IAED,eAaC;IAED,4BAuBC;IAED,iCAGC;IAED,8BAiBC;IAED,+BAcC;IAED,6BAcC;IAED,4CASC;IAED,oCAQC;IAED,+CASC;IAED,sCASC;IAED,yEAQC;IAED,gEAsCC;IAED,0BAEC;IAMD,mBAEC;IAND,gBAEC;IAUD,mBAEC;IAND,gBAEC;IAMD,0BAEC;IAED,oCAEC;IAED,kCAEC;IAED,qBAEC;IAED,qBAEC;CACF;sBApXqB,eAAe;uBACb,gBAAgB;oBAGpB,iBAAiB;kBAFnB,eAAe;kBAGf,eAAe;sBAFX,mBAAmB;uBAJjB,UAAU;yBAHT,aAAa"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/input.js"],"names":[],"mappings":"AAoBA;IACE,uBAoDC;IAnDC,UAAgB;IAChB,yBAAqB;IACrB,gBAAsB;IACtB,qBAAuB;IACvB,qBAAuB;IACvB,4BAAkC;IAClC,mCAAyC;IACzC,iBAAiB;IACjB,iBAAmB;IACnB,2BAA6C;IAC7C,uBAAoB;IACpB,oBAAiB;IACjB,sBAAkB;IAClB,oBAAiB;IACjB,oBAAoB;IACpB,gBAAkB;IAClB,sBAAwB;IACxB,iBAAoB;IACpB,wBAA0B;IAC1B,yBAA2B;IAC3B,8BAAiC;IACjC,mBAAqB;IACrB,oBAAsB;IACtB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,cAAoB;IACpB,eAAqB;IACrB,gBAAkB;IAClB,8BAAyB;IACzB,6BAAwB;IACxB,oBAAiB;IACjB,oBAAiB;IACjB,4BAAqB;IACrB,qBAAwB;IACxB,sBAAkB;IAClB,oBAAgB;IAChB,qBAAiB;IACjB,sBAAkB;IAClB,sBAAsB;IACtB,2BAAsC;IACtC,mBAA8B;IAC9B,qBAAqB;IACrB,2BAAwB;IACxB,WAAW;IACX,WAAW;IAGb,aA6BC;IAFC,uDAAmE;IAIrE,gBAUC;IAED,kEAGC;IAED,mDAEC;IAED,sDAYC;IAED,6BAUC;IAED,eAaC;IAED,4BAuBC;IAED,iCAGC;IAED,8BAiBC;IAED,+BAcC;IAED,6BAcC;IAED,4CASC;IAED,oCAQC;IAED,+CASC;IAED,sCASC;IAED,yEAQC;IAED,gEAsCC;IAED,0BAEC;IAMD,mBAEC;IAND,gBAEC;IAUD,mBAEC;IAND,gBAEC;IAMD,0BAEC;IAED,oCAEC;IAED,kCAEC;IAED,qBAEC;IAED,qBAEC;CACF;sBApXqB,eAAe;uBACb,gBAAgB;wBAGhB,iBAAiB;sBAFnB,eAAe;sBAGf,eAAe;0BAFX,mBAAmB;uBAJrB,UAAU;yBAHT,aAAa"}
@@ -1,4 +1,4 @@
1
- export default class _default {
1
+ export class InputHandler {
2
2
  constructor(sprite: any);
3
3
  sprite: any;
4
4
  game: any;
@@ -1,4 +1,4 @@
1
- export default class _default {
1
+ export class Mouse {
2
2
  constructor(game: any);
3
3
  game: any;
4
4
  input: any;
@@ -1 +1 @@
1
- {"version":3,"file":"input_mouse.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/input_mouse.js"],"names":[],"mappings":"AAwDA;IACE,uBAuBC;IAtBC,UAAgB;IAChB,WAAuB;IACvB,qBAAgC;IAChC,uBAA6B;IAC7B,qBAA2B;IAC3B,sBAA4B;IAC5B,uBAA6B;IAC7B,wBAA8B;IAC9B,iBAAoB;IACpB,eAAgB;IAChB,mBAAmB;IACnB,iBAAmB;IACnB,gBAAmB;IACnB,uBAA0B;IAC1B,WAAiB;IACjB,4CAAwB;IACxB,4CAAwB;IACxB,0CAAsB;IACtB,2CAAuB;IACvB,4CAAwB;IACxB,6CAAyB;IACzB,iBAAuB;IAGzB,cA8BC;IAjBC,qDAA+D;IAC/D,sDAAiE;IAkBnE,aAaC;IAED,8BAWC;IAED,8BAWC;IAED,4BAWC;IAED,kCAQC;IAED,mCAaC;IAED,6BAcC;IAED,8BAOC;IAED,+BAWC;IAED,sCAMC;CACF"}
1
+ {"version":3,"file":"input_mouse.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/input_mouse.js"],"names":[],"mappings":"AAsDA;IACE,uBAuBC;IAtBC,UAAgB;IAChB,WAAuB;IACvB,qBAAgC;IAChC,uBAA6B;IAC7B,qBAA2B;IAC3B,sBAA4B;IAC5B,uBAA6B;IAC7B,wBAA8B;IAC9B,iBAAoB;IACpB,eAAgB;IAChB,mBAAmB;IACnB,iBAAmB;IACnB,gBAAmB;IACnB,uBAA0B;IAC1B,WAAiB;IACjB,4CAAwB;IACxB,4CAAwB;IACxB,0CAAsB;IACtB,2CAAuB;IACvB,4CAAwB;IACxB,6CAAyB;IACzB,iBAAuB;IAGzB,cA8BC;IAjBC,qDAA+D;IAC/D,sDAAiE;IAkBnE,aAaC;IAED,8BAWC;IAED,8BAWC;IAED,4BAWC;IAED,kCAQC;IAED,mCAaC;IAED,6BAcC;IAED,8BAOC;IAED,+BAWC;IAED,sCAMC;CACF"}
@@ -3,7 +3,7 @@
3
3
  * @author Andras Csizmadia <andras@vpmedia.hu>
4
4
  * @author Richard Davey <rich@photonstorm.com>
5
5
  */
6
- export default class _default {
6
+ export class MSPointer {
7
7
  constructor(game: any);
8
8
  game: any;
9
9
  input: any;
@@ -1,4 +1,4 @@
1
- export default class _default {
1
+ export class Pointer {
2
2
  constructor(game: any, id: any, pointerMode: any);
3
3
  game: any;
4
4
  id: any;
@@ -46,13 +46,13 @@ export default class _default {
46
46
  _trampolineTargetObject: any;
47
47
  resetButtons(): void;
48
48
  updateButtons(event: any): void;
49
- start(event: any): default;
49
+ start(event: any): Pointer;
50
50
  update(): void;
51
- move(event: any, fromClick?: boolean): default | null;
51
+ move(event: any, fromClick?: boolean): Pointer | null;
52
52
  processInteractiveObjects(fromClick?: boolean): boolean;
53
53
  swapTarget(newTarget: any, silent?: boolean): void;
54
54
  leave(event: any): void;
55
- stop(event: any): default | null;
55
+ stop(event: any): Pointer | null;
56
56
  justPressed(duration: any): boolean;
57
57
  justReleased(duration: any): boolean;
58
58
  addClickTrampoline(name: any, callback: any, callbackContext: any, callbackArgs: any): void;
@@ -3,7 +3,7 @@
3
3
  * @author Andras Csizmadia <andras@vpmedia.hu>
4
4
  * @author Richard Davey <rich@photonstorm.com>
5
5
  */
6
- export default class _default {
6
+ export class Touch {
7
7
  constructor(game: any);
8
8
  game: any;
9
9
  enabled: boolean;
@@ -1,4 +1,4 @@
1
- export default class _default {
1
+ export class Loader {
2
2
  constructor(game: any);
3
3
  game: any;
4
4
  cache: any;
@@ -47,21 +47,21 @@ export default class _default {
47
47
  file: any;
48
48
  } | null;
49
49
  reset(hard: any, clearEvents?: boolean): void;
50
- addToFileList(type: any, key?: string, url?: null, properties?: null, overwrite?: boolean, extension?: null): default;
51
- replaceInFileList(type: any, key: any, url: any, properties: any): default;
52
- pack(key: any, url: any, data: any, callbackContext: any): default;
53
- image(key: any, url: any, overwrite: any): default;
54
- images(keys: any, urls: any): default;
55
- text(key: any, url: any, overwrite: any): default;
56
- json(key: any, url: any, overwrite: any): default;
57
- xml(key: any, url: any, overwrite: any): default;
58
- spritesheet(key: any, url: any, frameWidth: any, frameHeight: any, frameMax?: number, margin?: number, spacing?: number): default;
59
- audio(key: any, urls: any, autoDecode?: boolean): default;
60
- audioSprite(key: any, urls: any, jsonURL: any, jsonData: any, autoDecode?: boolean): default;
61
- bitmapFont(key: any, textureURL?: null, atlasURL?: null, atlasData?: null, xSpacing?: number, ySpacing?: number): default;
62
- atlas(key: any, textureURL: any, atlasURL?: null, atlasData?: null, format?: number): default;
63
- withSyncPoint(callback: any, callbackContext: any): default;
64
- addSyncPoint(type: any, key: any): default;
50
+ addToFileList(type: any, key?: string, url?: null, properties?: null, overwrite?: boolean, extension?: null): Loader;
51
+ replaceInFileList(type: any, key: any, url: any, properties: any): Loader;
52
+ pack(key: any, url: any, data: any, callbackContext: any): Loader;
53
+ image(key: any, url: any, overwrite: any): Loader;
54
+ images(keys: any, urls: any): Loader;
55
+ text(key: any, url: any, overwrite: any): Loader;
56
+ json(key: any, url: any, overwrite: any): Loader;
57
+ xml(key: any, url: any, overwrite: any): Loader;
58
+ spritesheet(key: any, url: any, frameWidth: any, frameHeight: any, frameMax?: number, margin?: number, spacing?: number): Loader;
59
+ audio(key: any, urls: any, autoDecode?: boolean): Loader;
60
+ audioSprite(key: any, urls: any, jsonURL: any, jsonData: any, autoDecode?: boolean): Loader;
61
+ bitmapFont(key: any, textureURL?: null, atlasURL?: null, atlasData?: null, xSpacing?: number, ySpacing?: number): Loader;
62
+ atlas(key: any, textureURL: any, atlasURL?: null, atlasData?: null, format?: number): Loader;
63
+ withSyncPoint(callback: any, callbackContext: any): Loader;
64
+ addSyncPoint(type: any, key: any): Loader;
65
65
  removeFile(type: any, key: any): void;
66
66
  removeAll(): void;
67
67
  start(): void;