@vpmedia/phaser 1.20.0 → 1.22.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.
- package/README.md +1 -1
- package/package.json +2 -2
- package/src/phaser/core/animation.js +3 -6
- package/src/phaser/core/animation_manager.js +3 -5
- package/src/phaser/core/animation_parser.js +2 -3
- package/src/phaser/core/cache.js +37 -18
- package/src/phaser/core/dom.js +4 -5
- package/src/phaser/core/event_manager.js +1 -2
- package/src/phaser/core/factory.js +1 -2
- package/src/phaser/core/frame_data.js +7 -8
- package/src/phaser/core/input.js +13 -14
- package/src/phaser/core/input_handler.js +16 -19
- package/src/phaser/core/input_mouse.js +4 -5
- package/src/phaser/core/input_mspointer.js +1 -3
- package/src/phaser/core/input_pointer.js +2 -3
- package/src/phaser/core/input_touch.js +1 -3
- package/src/phaser/core/loader.js +70 -71
- package/src/phaser/core/raf.js +1 -3
- package/src/phaser/core/scale_manager.js +1 -2
- package/src/phaser/core/scene_manager.js +2 -3
- package/src/phaser/core/signal_binding.js +14 -7
- package/src/phaser/core/sound.js +1 -2
- package/src/phaser/core/sound_manager.js +1 -2
- package/src/phaser/core/sound_sprite.js +3 -6
- package/src/phaser/core/stage.js +1 -2
- package/src/phaser/core/time.js +1 -2
- package/src/phaser/core/timer.js +1 -2
- package/src/phaser/core/timer_event.js +1 -3
- package/src/phaser/core/tween.js +8 -10
- package/src/phaser/core/tween_data.js +1 -1
- package/src/phaser/core/tween_manager.js +1 -2
- package/src/phaser/core/world.js +1 -2
- package/src/phaser/display/bitmap_text.js +1 -2
- package/src/phaser/display/button.js +1 -2
- package/src/phaser/display/canvas/renderer.js +6 -7
- package/src/phaser/display/display_object.js +1 -0
- package/src/phaser/display/graphics.js +7 -9
- package/src/phaser/display/group.js +1 -2
- package/src/phaser/display/image.js +9 -10
- package/src/phaser/display/sprite_batch.js +1 -2
- package/src/phaser/display/sprite_util.js +2 -3
- package/src/phaser/display/text.js +43 -34
- package/src/phaser/display/webgl/abstract_filter.js +1 -1
- package/src/phaser/display/webgl/fast_sprite_batch.js +3 -3
- package/src/phaser/display/webgl/graphics.js +6 -6
- package/src/phaser/display/webgl/render_texture.js +1 -1
- package/src/phaser/display/webgl/renderer.js +8 -9
- package/src/phaser/display/webgl/shader/normal.js +1 -1
- package/src/phaser/display/webgl/shader_manager.js +3 -2
- package/src/phaser/display/webgl/sprite_batch.js +3 -5
- package/src/phaser/display/webgl/stencil_manager.js +6 -6
- package/src/phaser/display/webgl/texture.js +1 -2
- package/types/phaser/core/animation.d.ts +8 -11
- package/types/phaser/core/animation.d.ts.map +1 -1
- package/types/phaser/core/animation_manager.d.ts +10 -12
- package/types/phaser/core/animation_manager.d.ts.map +1 -1
- package/types/phaser/core/animation_parser.d.ts +4 -5
- package/types/phaser/core/animation_parser.d.ts.map +1 -1
- package/types/phaser/core/cache.d.ts +70 -48
- package/types/phaser/core/cache.d.ts.map +1 -1
- package/types/phaser/core/dom.d.ts +8 -9
- package/types/phaser/core/dom.d.ts.map +1 -1
- package/types/phaser/core/event_manager.d.ts +3 -4
- package/types/phaser/core/event_manager.d.ts.map +1 -1
- package/types/phaser/core/factory.d.ts +3 -4
- package/types/phaser/core/factory.d.ts.map +1 -1
- package/types/phaser/core/frame_data.d.ts +12 -13
- package/types/phaser/core/frame_data.d.ts.map +1 -1
- package/types/phaser/core/input.d.ts +22 -23
- package/types/phaser/core/input.d.ts.map +1 -1
- package/types/phaser/core/input_handler.d.ts +34 -37
- package/types/phaser/core/input_handler.d.ts.map +1 -1
- package/types/phaser/core/input_mouse.d.ts +5 -6
- package/types/phaser/core/input_mouse.d.ts.map +1 -1
- package/types/phaser/core/input_mspointer.d.ts +4 -5
- package/types/phaser/core/input_mspointer.d.ts.map +1 -1
- package/types/phaser/core/input_pointer.d.ts +5 -6
- package/types/phaser/core/input_pointer.d.ts.map +1 -1
- package/types/phaser/core/input_touch.d.ts +4 -5
- package/types/phaser/core/input_touch.d.ts.map +1 -1
- package/types/phaser/core/loader.d.ts +104 -105
- package/types/phaser/core/loader.d.ts.map +1 -1
- package/types/phaser/core/raf.d.ts +3 -4
- package/types/phaser/core/raf.d.ts.map +1 -1
- package/types/phaser/core/scale_manager.d.ts +3 -4
- package/types/phaser/core/scale_manager.d.ts.map +1 -1
- package/types/phaser/core/scene_manager.d.ts +5 -6
- package/types/phaser/core/scene_manager.d.ts.map +1 -1
- package/types/phaser/core/signal_binding.d.ts +22 -15
- package/types/phaser/core/signal_binding.d.ts.map +1 -1
- package/types/phaser/core/sound.d.ts +3 -4
- package/types/phaser/core/sound.d.ts.map +1 -1
- package/types/phaser/core/sound_manager.d.ts +3 -4
- package/types/phaser/core/sound_manager.d.ts.map +1 -1
- package/types/phaser/core/sound_sprite.d.ts +7 -9
- package/types/phaser/core/sound_sprite.d.ts.map +1 -1
- package/types/phaser/core/stage.d.ts +3 -4
- package/types/phaser/core/stage.d.ts.map +1 -1
- package/types/phaser/core/time.d.ts +3 -4
- package/types/phaser/core/time.d.ts.map +1 -1
- package/types/phaser/core/timer.d.ts +3 -4
- package/types/phaser/core/timer.d.ts.map +1 -1
- package/types/phaser/core/timer_event.d.ts +3 -4
- package/types/phaser/core/timer_event.d.ts.map +1 -1
- package/types/phaser/core/tween.d.ts +16 -19
- package/types/phaser/core/tween.d.ts.map +1 -1
- package/types/phaser/core/tween_data.d.ts +5 -5
- package/types/phaser/core/tween_data.d.ts.map +1 -1
- package/types/phaser/core/tween_manager.d.ts +3 -4
- package/types/phaser/core/tween_manager.d.ts.map +1 -1
- package/types/phaser/core/world.d.ts +2 -3
- package/types/phaser/core/world.d.ts.map +1 -1
- package/types/phaser/display/bitmap_text.d.ts +3 -4
- package/types/phaser/display/bitmap_text.d.ts.map +1 -1
- package/types/phaser/display/button.d.ts +2 -3
- package/types/phaser/display/button.d.ts.map +1 -1
- package/types/phaser/display/canvas/renderer.d.ts +9 -10
- package/types/phaser/display/canvas/renderer.d.ts.map +1 -1
- package/types/phaser/display/display_object.d.ts +4 -3
- package/types/phaser/display/display_object.d.ts.map +1 -1
- package/types/phaser/display/graphics.d.ts +13 -15
- package/types/phaser/display/graphics.d.ts.map +1 -1
- package/types/phaser/display/group.d.ts +3 -4
- package/types/phaser/display/group.d.ts.map +1 -1
- package/types/phaser/display/image.d.ts +22 -22
- package/types/phaser/display/image.d.ts.map +1 -1
- package/types/phaser/display/sprite_batch.d.ts +3 -4
- package/types/phaser/display/sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/sprite_util.d.ts +4 -5
- package/types/phaser/display/sprite_util.d.ts.map +1 -1
- package/types/phaser/display/text.d.ts +63 -53
- package/types/phaser/display/text.d.ts.map +1 -1
- package/types/phaser/display/webgl/abstract_filter.d.ts +3 -3
- package/types/phaser/display/webgl/abstract_filter.d.ts.map +1 -1
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts +6 -6
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/webgl/graphics.d.ts +13 -12
- package/types/phaser/display/webgl/graphics.d.ts.map +1 -1
- package/types/phaser/display/webgl/render_texture.d.ts +3 -3
- package/types/phaser/display/webgl/render_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/renderer.d.ts +12 -13
- package/types/phaser/display/webgl/renderer.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/normal.d.ts +2 -2
- package/types/phaser/display/webgl/shader/normal.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader_manager.d.ts +6 -5
- package/types/phaser/display/webgl/shader_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/sprite_batch.d.ts +5 -7
- package/types/phaser/display/webgl/sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/webgl/stencil_manager.d.ts +9 -9
- package/types/phaser/display/webgl/stencil_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/texture.d.ts +3 -4
- package/types/phaser/display/webgl/texture.d.ts.map +1 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Point } from '../geom/point';
|
|
2
2
|
import { Rectangle } from '../geom/rectangle';
|
|
3
|
-
import { Matrix } from '../geom/matrix';
|
|
4
3
|
import { Image } from './image';
|
|
5
4
|
import { create, remove } from './canvas/pool';
|
|
6
5
|
import { textureFromCanvas } from './webgl/texture_util';
|
|
7
|
-
import { Game } from '../core/game';
|
|
8
6
|
import { TEXT } from '../core/const';
|
|
9
7
|
import { snapToCeil } from '../util/math';
|
|
10
8
|
import { renderCanvas, renderWebGL, getBounds } from './sprite_util';
|
|
@@ -12,7 +10,7 @@ import { renderCanvas, renderWebGL, getBounds } from './sprite_util';
|
|
|
12
10
|
export class Text extends Image {
|
|
13
11
|
/**
|
|
14
12
|
* TBD.
|
|
15
|
-
* @param {Game} game - TBD.
|
|
13
|
+
* @param {import('../core/game').Game} game - TBD.
|
|
16
14
|
* @param {number} x - TBD.
|
|
17
15
|
* @param {number} y - TBD.
|
|
18
16
|
* @param {string} text - TBD.
|
|
@@ -71,10 +69,11 @@ export class Text extends Image {
|
|
|
71
69
|
* TBD.
|
|
72
70
|
* @param {number} x - TBD.
|
|
73
71
|
* @param {number} y - TBD.
|
|
74
|
-
* @param color - TBD.
|
|
75
|
-
* @param blur - TBD.
|
|
76
|
-
* @param shadowStroke - TBD.
|
|
77
|
-
* @param shadowFill - TBD.
|
|
72
|
+
* @param {string} color - TBD.
|
|
73
|
+
* @param {number} blur - TBD.
|
|
74
|
+
* @param {boolean} shadowStroke - TBD.
|
|
75
|
+
* @param {boolean} shadowFill - TBD.
|
|
76
|
+
* @returns {Text} TBD.
|
|
78
77
|
*/
|
|
79
78
|
setShadow(x = 0, y = 0, color = 'rgba(0, 0, 0, 1)', blur = 0, shadowStroke = true, shadowFill = true) {
|
|
80
79
|
this.style.shadowOffsetX = x;
|
|
@@ -89,8 +88,9 @@ export class Text extends Image {
|
|
|
89
88
|
|
|
90
89
|
/**
|
|
91
90
|
* TBD.
|
|
92
|
-
* @param style
|
|
93
|
-
* @param update
|
|
91
|
+
* @param {object} style - TBD.
|
|
92
|
+
* @param {boolean} update - TBD.
|
|
93
|
+
* @returns {Text} TBD.
|
|
94
94
|
*/
|
|
95
95
|
setStyle(style = null, update = false) {
|
|
96
96
|
style = JSON.parse(JSON.stringify(style)) || {};
|
|
@@ -298,10 +298,10 @@ export class Text extends Image {
|
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
300
|
* TBD.
|
|
301
|
-
* @param line - TBD.
|
|
301
|
+
* @param {string} line - TBD.
|
|
302
302
|
* @param {number} x - TBD.
|
|
303
303
|
* @param {number} y - TBD.
|
|
304
|
-
* @param fill - TBD.
|
|
304
|
+
* @param {boolean} fill - TBD.
|
|
305
305
|
*/
|
|
306
306
|
renderTabLine(line, x, y, fill) {
|
|
307
307
|
const text = line.split(/(?:\t)/);
|
|
@@ -337,7 +337,7 @@ export class Text extends Image {
|
|
|
337
337
|
|
|
338
338
|
/**
|
|
339
339
|
* TBD.
|
|
340
|
-
* @param state
|
|
340
|
+
* @param {string} state - TBD.
|
|
341
341
|
*/
|
|
342
342
|
updateShadow(state) {
|
|
343
343
|
if (state) {
|
|
@@ -355,7 +355,8 @@ export class Text extends Image {
|
|
|
355
355
|
|
|
356
356
|
/**
|
|
357
357
|
* TBD.
|
|
358
|
-
* @param line - TBD.
|
|
358
|
+
* @param {string} line - TBD.
|
|
359
|
+
* @returns {number} TBD.
|
|
359
360
|
*/
|
|
360
361
|
measureLine(line) {
|
|
361
362
|
let lineLength = 0;
|
|
@@ -391,7 +392,7 @@ export class Text extends Image {
|
|
|
391
392
|
|
|
392
393
|
/**
|
|
393
394
|
* TBD.
|
|
394
|
-
* @param line - TBD.
|
|
395
|
+
* @param {string} line - TBD.
|
|
395
396
|
* @param {number} x - TBD.
|
|
396
397
|
* @param {number} y - TBD.
|
|
397
398
|
*/
|
|
@@ -451,8 +452,8 @@ export class Text extends Image {
|
|
|
451
452
|
|
|
452
453
|
/**
|
|
453
454
|
* TBD.
|
|
454
|
-
* @param color - TBD.
|
|
455
|
-
* @param position - TBD.
|
|
455
|
+
* @param {number} color - TBD.
|
|
456
|
+
* @param {number} position - TBD.
|
|
456
457
|
* @returns {Text} TBD.
|
|
457
458
|
*/
|
|
458
459
|
addColor(color, position) {
|
|
@@ -463,8 +464,8 @@ export class Text extends Image {
|
|
|
463
464
|
|
|
464
465
|
/**
|
|
465
466
|
* TBD.
|
|
466
|
-
* @param color - TBD.
|
|
467
|
-
* @param position - TBD.
|
|
467
|
+
* @param {number} color - TBD.
|
|
468
|
+
* @param {number} position - TBD.
|
|
468
469
|
* @returns {Text} TBD.
|
|
469
470
|
*/
|
|
470
471
|
addStrokeColor(color, position) {
|
|
@@ -475,8 +476,8 @@ export class Text extends Image {
|
|
|
475
476
|
|
|
476
477
|
/**
|
|
477
478
|
* TBD.
|
|
478
|
-
* @param style - TBD.
|
|
479
|
-
* @param position - TBD.
|
|
479
|
+
* @param {object} style - TBD.
|
|
480
|
+
* @param {number} position - TBD.
|
|
480
481
|
* @returns {Text} TBD.
|
|
481
482
|
*/
|
|
482
483
|
addFontStyle(style, position) {
|
|
@@ -487,8 +488,8 @@ export class Text extends Image {
|
|
|
487
488
|
|
|
488
489
|
/**
|
|
489
490
|
* TBD.
|
|
490
|
-
* @param weight - TBD.
|
|
491
|
-
* @param position - TBD.
|
|
491
|
+
* @param {number} weight - TBD.
|
|
492
|
+
* @param {number} position - TBD.
|
|
492
493
|
* @returns {Text} TBD.
|
|
493
494
|
*/
|
|
494
495
|
addFontWeight(weight, position) {
|
|
@@ -499,7 +500,8 @@ export class Text extends Image {
|
|
|
499
500
|
|
|
500
501
|
/**
|
|
501
502
|
* TBD.
|
|
502
|
-
* @param text - TBD.
|
|
503
|
+
* @param {string} text - TBD.
|
|
504
|
+
* @returns {string[]} TBD.
|
|
503
505
|
*/
|
|
504
506
|
precalculateWordWrap(text) {
|
|
505
507
|
this.texture.baseTexture.resolution = this._res;
|
|
@@ -510,7 +512,8 @@ export class Text extends Image {
|
|
|
510
512
|
|
|
511
513
|
/**
|
|
512
514
|
* TBD.
|
|
513
|
-
* @param text - TBD.
|
|
515
|
+
* @param {string} text - TBD.
|
|
516
|
+
* @returns {string} TBD.
|
|
514
517
|
*/
|
|
515
518
|
runWordWrap(text) {
|
|
516
519
|
if (this.useAdvancedWrap) {
|
|
@@ -521,7 +524,9 @@ export class Text extends Image {
|
|
|
521
524
|
|
|
522
525
|
/**
|
|
523
526
|
* TBD.
|
|
524
|
-
* @param text - TBD.
|
|
527
|
+
* @param {string} text - TBD.
|
|
528
|
+
* @returns {string} TBD.
|
|
529
|
+
* @throws Error.
|
|
525
530
|
*/
|
|
526
531
|
advancedWordWrap(text) {
|
|
527
532
|
const context = this.context;
|
|
@@ -602,7 +607,8 @@ export class Text extends Image {
|
|
|
602
607
|
|
|
603
608
|
/**
|
|
604
609
|
* TBD.
|
|
605
|
-
* @param text - TBD.
|
|
610
|
+
* @param {string} text - TBD.
|
|
611
|
+
* @returns {string} TBD.
|
|
606
612
|
*/
|
|
607
613
|
basicWordWrap(text) {
|
|
608
614
|
let result = '';
|
|
@@ -634,7 +640,7 @@ export class Text extends Image {
|
|
|
634
640
|
|
|
635
641
|
/**
|
|
636
642
|
* TBD.
|
|
637
|
-
* @param components
|
|
643
|
+
* @param {object} components - TBD.
|
|
638
644
|
*/
|
|
639
645
|
updateFont(components) {
|
|
640
646
|
const font = this.componentsToFont(components);
|
|
@@ -649,7 +655,7 @@ export class Text extends Image {
|
|
|
649
655
|
|
|
650
656
|
/**
|
|
651
657
|
* TBD.
|
|
652
|
-
* @param font - TBD.
|
|
658
|
+
* @param {string} font - TBD.
|
|
653
659
|
* @returns {object} TBD.
|
|
654
660
|
*/
|
|
655
661
|
fontToComponents(font) {
|
|
@@ -685,7 +691,8 @@ export class Text extends Image {
|
|
|
685
691
|
|
|
686
692
|
/**
|
|
687
693
|
* TBD.
|
|
688
|
-
* @param components - TBD.
|
|
694
|
+
* @param {object} components - TBD.
|
|
695
|
+
* @returns {string} TBD.
|
|
689
696
|
*/
|
|
690
697
|
componentsToFont(components) {
|
|
691
698
|
const parts = [];
|
|
@@ -719,8 +726,8 @@ export class Text extends Image {
|
|
|
719
726
|
|
|
720
727
|
/**
|
|
721
728
|
* TBD.
|
|
722
|
-
* @param text - TBD.
|
|
723
|
-
* @param immediate - TBD.
|
|
729
|
+
* @param {string} text - TBD.
|
|
730
|
+
* @param {boolean} immediate - TBD.
|
|
724
731
|
* @returns {Text} TBD.
|
|
725
732
|
*/
|
|
726
733
|
setText(text, immediate = false) {
|
|
@@ -735,7 +742,7 @@ export class Text extends Image {
|
|
|
735
742
|
|
|
736
743
|
/**
|
|
737
744
|
* TBD.
|
|
738
|
-
* @param list
|
|
745
|
+
* @param {string[]|string[][]} list - TBD.
|
|
739
746
|
* @returns {Text} TBD.
|
|
740
747
|
*/
|
|
741
748
|
parseList(list) {
|
|
@@ -876,6 +883,7 @@ export class Text extends Image {
|
|
|
876
883
|
|
|
877
884
|
/**
|
|
878
885
|
* TBD.
|
|
886
|
+
* @returns {CanvasRenderingContext2D} TBD.
|
|
879
887
|
*/
|
|
880
888
|
getFontPropertiesContext() {
|
|
881
889
|
if (!window.PhaserRegistry.fontPropertiesContext) {
|
|
@@ -888,7 +896,8 @@ export class Text extends Image {
|
|
|
888
896
|
|
|
889
897
|
/**
|
|
890
898
|
* TBD.
|
|
891
|
-
* @param fontStyle
|
|
899
|
+
* @param {string} fontStyle - TBD.
|
|
900
|
+
* @returns {object} TBD.
|
|
892
901
|
*/
|
|
893
902
|
determineFontProperties(fontStyle) {
|
|
894
903
|
const fontPropertiesCache = this.getFontPropertiesCache();
|
|
@@ -966,7 +975,7 @@ export class Text extends Image {
|
|
|
966
975
|
|
|
967
976
|
/**
|
|
968
977
|
* TBD.
|
|
969
|
-
* @param {Matrix} matrix - TBD.
|
|
978
|
+
* @param {import('../geom/matrix').Matrix} matrix - TBD.
|
|
970
979
|
* @returns {Rectangle} TBD.
|
|
971
980
|
*/
|
|
972
981
|
getBounds(matrix = null) {
|
|
@@ -53,7 +53,7 @@ export class FastSpriteBatch {
|
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* TBD.
|
|
56
|
-
* @param spriteBatch - TBD.
|
|
56
|
+
* @param {object} spriteBatch - TBD.
|
|
57
57
|
* @param {object} renderSession - TBD.
|
|
58
58
|
*/
|
|
59
59
|
begin(spriteBatch, renderSession) {
|
|
@@ -72,7 +72,7 @@ export class FastSpriteBatch {
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* TBD.
|
|
75
|
-
* @param spriteBatch - TBD.
|
|
75
|
+
* @param {object} spriteBatch - TBD.
|
|
76
76
|
*/
|
|
77
77
|
render(spriteBatch) {
|
|
78
78
|
const children = spriteBatch.children;
|
|
@@ -96,7 +96,7 @@ export class FastSpriteBatch {
|
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* TBD.
|
|
99
|
-
* @param sprite - TBD.
|
|
99
|
+
* @param {Image} sprite - TBD.
|
|
100
100
|
*/
|
|
101
101
|
renderSprite(sprite) {
|
|
102
102
|
if (!sprite.visible) {
|
|
@@ -53,7 +53,7 @@ export function switchMode(webGL, type) {
|
|
|
53
53
|
/**
|
|
54
54
|
* TBD.
|
|
55
55
|
* @param {object} graphicsData - TBD.
|
|
56
|
-
* @param {
|
|
56
|
+
* @param {GraphicsData} webGLData - TBD.
|
|
57
57
|
*/
|
|
58
58
|
export function buildLine(graphicsData, webGLData) {
|
|
59
59
|
// TODO OPTIMISE!
|
|
@@ -218,7 +218,7 @@ export function buildLine(graphicsData, webGLData) {
|
|
|
218
218
|
/**
|
|
219
219
|
* TBD.
|
|
220
220
|
* @param {object} graphicsData - TBD.
|
|
221
|
-
* @param {
|
|
221
|
+
* @param {GraphicsData} webGLData - TBD.
|
|
222
222
|
*/
|
|
223
223
|
export function buildRectangle(graphicsData, webGLData) {
|
|
224
224
|
//
|
|
@@ -301,7 +301,7 @@ export function quadraticBezierCurve(fromX, fromY, cpX, cpY, toX, toY) {
|
|
|
301
301
|
/**
|
|
302
302
|
* TBD.
|
|
303
303
|
* @param {object} graphicsData - TBD.
|
|
304
|
-
* @param {
|
|
304
|
+
* @param {GraphicsData} webGLData - TBD.
|
|
305
305
|
*/
|
|
306
306
|
export function buildRoundedRectangle(graphicsData, webGLData) {
|
|
307
307
|
const rrectData = graphicsData.shape;
|
|
@@ -351,7 +351,7 @@ export function buildRoundedRectangle(graphicsData, webGLData) {
|
|
|
351
351
|
/**
|
|
352
352
|
* TBD.
|
|
353
353
|
* @param {object} graphicsData - TBD.
|
|
354
|
-
* @param {
|
|
354
|
+
* @param {GraphicsData} webGLData - TBD.
|
|
355
355
|
*/
|
|
356
356
|
export function buildCircle(graphicsData, webGLData) {
|
|
357
357
|
// need to convert points to a nice regular data
|
|
@@ -402,7 +402,7 @@ export function buildCircle(graphicsData, webGLData) {
|
|
|
402
402
|
/**
|
|
403
403
|
* TBD.
|
|
404
404
|
* @param {object} graphicsData - TBD.
|
|
405
|
-
* @param {
|
|
405
|
+
* @param {GraphicsData} webGLData - TBD.
|
|
406
406
|
*/
|
|
407
407
|
export function buildComplexPoly(graphicsData, webGLData) {
|
|
408
408
|
// TODO - no need to copy this as it gets turned into a Float32Array anyways..
|
|
@@ -446,7 +446,7 @@ export function buildComplexPoly(graphicsData, webGLData) {
|
|
|
446
446
|
/**
|
|
447
447
|
* TBD.
|
|
448
448
|
* @param {object} graphicsData - TBD.
|
|
449
|
-
* @param {
|
|
449
|
+
* @param {GraphicsData} webGLData - TBD.
|
|
450
450
|
* @returns {boolean} TBD.
|
|
451
451
|
*/
|
|
452
452
|
export function buildPoly(graphicsData, webGLData) {
|
|
@@ -11,7 +11,7 @@ export class RenderTexture extends Texture {
|
|
|
11
11
|
* TBD.
|
|
12
12
|
* @param {number} width - TBD.
|
|
13
13
|
* @param {number} height - TBD.
|
|
14
|
-
* @param renderer - TBD.
|
|
14
|
+
* @param {import('./renderer').WebGLRenderer|import('../canvas/renderer').CanvasRenderer} renderer - TBD.
|
|
15
15
|
* @param {number} scaleMode - TBD.
|
|
16
16
|
* @param {number} resolution - TBD.
|
|
17
17
|
*/
|
|
@@ -22,19 +22,17 @@ import {
|
|
|
22
22
|
import { remove } from '../canvas/pool';
|
|
23
23
|
import { isPowerOfTwo } from '../../util/math';
|
|
24
24
|
import { Point } from '../../geom/point';
|
|
25
|
-
import { Matrix } from '../../geom/matrix';
|
|
26
25
|
import { WebGLShaderManager } from './shader_manager';
|
|
27
26
|
import { WebGLSpriteBatch } from './sprite_batch';
|
|
28
27
|
import * as WebGLMaskManager from './mask_manager';
|
|
29
28
|
import { WebGLFilterManager } from './filter_manager';
|
|
30
29
|
import { WebGLStencilManager } from './stencil_manager';
|
|
31
30
|
import { WebGLBlendModeManager } from './blend_manager';
|
|
32
|
-
import { Game } from '../../core/game';
|
|
33
31
|
|
|
34
32
|
export class WebGLRenderer {
|
|
35
33
|
/**
|
|
36
34
|
* TBD.
|
|
37
|
-
* @param {Game} game - TBD.
|
|
35
|
+
* @param {import('../../core/game').Game} game - TBD.
|
|
38
36
|
*/
|
|
39
37
|
constructor(game) {
|
|
40
38
|
this.type = RENDER_WEBGL;
|
|
@@ -121,6 +119,7 @@ export class WebGLRenderer {
|
|
|
121
119
|
|
|
122
120
|
/**
|
|
123
121
|
* TBD.
|
|
122
|
+
* @throws Error.
|
|
124
123
|
*/
|
|
125
124
|
initContext() {
|
|
126
125
|
const gl =
|
|
@@ -154,7 +153,7 @@ export class WebGLRenderer {
|
|
|
154
153
|
|
|
155
154
|
/**
|
|
156
155
|
* TBD.
|
|
157
|
-
* @param stage - TBD.
|
|
156
|
+
* @param {import('../../core/stage').Stage} stage - TBD.
|
|
158
157
|
*/
|
|
159
158
|
render(stage) {
|
|
160
159
|
if (this.contextLost) {
|
|
@@ -176,10 +175,10 @@ export class WebGLRenderer {
|
|
|
176
175
|
|
|
177
176
|
/**
|
|
178
177
|
* TBD.
|
|
179
|
-
* @param displayObject - TBD.
|
|
180
|
-
* @param projection - TBD.
|
|
181
|
-
* @param buffer - TBD.
|
|
182
|
-
* @param {Matrix} matrix - TBD.
|
|
178
|
+
* @param {import('../../display/display_object').DisplayObject} displayObject - TBD.
|
|
179
|
+
* @param {Point} projection - TBD.
|
|
180
|
+
* @param {object} buffer - TBD.
|
|
181
|
+
* @param {import('../../geom/matrix').Matrix} matrix - TBD.
|
|
183
182
|
*/
|
|
184
183
|
renderDisplayObject(displayObject, projection, buffer, matrix) {
|
|
185
184
|
this.renderSession.blendModeManager.setBlendMode(BLEND_NORMAL);
|
|
@@ -222,7 +221,7 @@ export class WebGLRenderer {
|
|
|
222
221
|
|
|
223
222
|
/**
|
|
224
223
|
* TBD.
|
|
225
|
-
* @param texture - TBD.
|
|
224
|
+
* @param {import('./base_texture').BaseTexture} texture - TBD.
|
|
226
225
|
* @returns {boolean} TBD.
|
|
227
226
|
*/
|
|
228
227
|
updateTexture(texture) {
|
|
@@ -40,7 +40,7 @@ export class WebGLShaderManager {
|
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* TBD.
|
|
43
|
-
* @param attribs - TBD.
|
|
43
|
+
* @param {number[]} attribs - TBD.
|
|
44
44
|
*/
|
|
45
45
|
setAttribs(attribs) {
|
|
46
46
|
// reset temp state
|
|
@@ -68,7 +68,8 @@ export class WebGLShaderManager {
|
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* TBD.
|
|
71
|
-
* @param shader - TBD.
|
|
71
|
+
* @param {NormalShader} shader - TBD.
|
|
72
|
+
* @returns {boolean} TBD.
|
|
72
73
|
*/
|
|
73
74
|
setShader(shader) {
|
|
74
75
|
if (this._currentId === shader._UID) {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AbstractFilter } from './abstract_filter';
|
|
2
2
|
import { NormalShader } from './shader/normal';
|
|
3
|
-
import { BaseTexture } from './base_texture';
|
|
4
|
-
import { Matrix } from '../../geom/matrix';
|
|
5
3
|
|
|
6
4
|
export class WebGLSpriteBatch {
|
|
7
5
|
/**
|
|
@@ -88,8 +86,8 @@ export class WebGLSpriteBatch {
|
|
|
88
86
|
|
|
89
87
|
/**
|
|
90
88
|
* TBD.
|
|
91
|
-
* @param sprite - TBD.
|
|
92
|
-
* @param {Matrix} matrix - TBD.
|
|
89
|
+
* @param {Image} sprite - TBD.
|
|
90
|
+
* @param {import('../../geom/matrix').Matrix} matrix - TBD.
|
|
93
91
|
*/
|
|
94
92
|
render(sprite, matrix) {
|
|
95
93
|
const texture = sprite.texture;
|
|
@@ -296,7 +294,7 @@ export class WebGLSpriteBatch {
|
|
|
296
294
|
|
|
297
295
|
/**
|
|
298
296
|
* TBD.
|
|
299
|
-
* @param {BaseTexture} texture - TBD.
|
|
297
|
+
* @param {import('./base_texture').BaseTexture} texture - TBD.
|
|
300
298
|
* @param {number} size - TBD.
|
|
301
299
|
* @param {number} startIndex - TBD.
|
|
302
300
|
*/
|
|
@@ -28,8 +28,8 @@ export class WebGLStencilManager {
|
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* TBD.
|
|
31
|
-
* @param graphics - TBD.
|
|
32
|
-
* @param webGLData - TBD.
|
|
31
|
+
* @param {import('../graphics').Graphics} graphics - TBD.
|
|
32
|
+
* @param {import('./graphics_data').GraphicsData} webGLData - TBD.
|
|
33
33
|
* @param {object} renderSession - TBD.
|
|
34
34
|
*/
|
|
35
35
|
pushStencil(graphics, webGLData, renderSession) {
|
|
@@ -86,8 +86,8 @@ export class WebGLStencilManager {
|
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* TBD.
|
|
89
|
-
* @param graphics - TBD.
|
|
90
|
-
* @param webGLData - TBD.
|
|
89
|
+
* @param {import('../graphics').Graphics} graphics - TBD.
|
|
90
|
+
* @param {import('./graphics_data').GraphicsData} webGLData - TBD.
|
|
91
91
|
* @param {object} renderSession - TBD.
|
|
92
92
|
*/
|
|
93
93
|
bindGraphics(graphics, webGLData, renderSession) {
|
|
@@ -133,8 +133,8 @@ export class WebGLStencilManager {
|
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* TBD.
|
|
136
|
-
* @param graphics - TBD.
|
|
137
|
-
* @param webGLData - TBD.
|
|
136
|
+
* @param {import('../graphics').Graphics} graphics - TBD.
|
|
137
|
+
* @param {import('./graphics_data').GraphicsData} webGLData - TBD.
|
|
138
138
|
* @param {object} renderSession - TBD.
|
|
139
139
|
*/
|
|
140
140
|
popStencil(graphics, webGLData, renderSession) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Rectangle } from '../../geom/rectangle';
|
|
2
|
-
import { BaseTexture } from './base_texture';
|
|
3
2
|
|
|
4
3
|
export class TextureUvs {
|
|
5
4
|
/**
|
|
@@ -20,7 +19,7 @@ export class TextureUvs {
|
|
|
20
19
|
export class Texture {
|
|
21
20
|
/**
|
|
22
21
|
* TBD.
|
|
23
|
-
* @param {BaseTexture} baseTexture - TBD.
|
|
22
|
+
* @param {import('./base_texture').BaseTexture} baseTexture - TBD.
|
|
24
23
|
* @param {Rectangle} frame - TBD.
|
|
25
24
|
* @param {Rectangle} crop - TBD.
|
|
26
25
|
* @param {Rectangle} trim - TBD.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export class Animation {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param {Game} game - TBD.
|
|
4
|
+
* @param {import('./game').Game} game - TBD.
|
|
5
5
|
* @param {Image} parent - TBD.
|
|
6
6
|
* @param {string} name - TBD.
|
|
7
|
-
* @param {FrameData} frameData - TBD.
|
|
7
|
+
* @param {import('./frame_data').FrameData} frameData - TBD.
|
|
8
8
|
* @param {string[]|number[]} frames - TBD.
|
|
9
9
|
* @param {number} frameRate - TBD.
|
|
10
10
|
* @param {boolean} loop - TBD.
|
|
11
11
|
*/
|
|
12
|
-
constructor(game: Game, parent:
|
|
13
|
-
game: Game;
|
|
14
|
-
_parent:
|
|
15
|
-
_frameData: FrameData;
|
|
12
|
+
constructor(game: import('./game').Game, parent: new (width?: number, height?: number) => HTMLImageElement, name: string, frameData: import('./frame_data').FrameData, frames: string[] | number[], frameRate: number, loop?: boolean);
|
|
13
|
+
game: import("./game").Game;
|
|
14
|
+
_parent: new (width?: number, height?: number) => HTMLImageElement;
|
|
15
|
+
_frameData: import("./frame_data").FrameData;
|
|
16
16
|
name: string;
|
|
17
17
|
_frames: any[];
|
|
18
18
|
delay: number;
|
|
@@ -118,9 +118,9 @@ export class Animation {
|
|
|
118
118
|
previous(quantity?: number): void;
|
|
119
119
|
/**
|
|
120
120
|
* TBD.
|
|
121
|
-
* @param {FrameData} frameData - TBD.
|
|
121
|
+
* @param {import('./frame_data').FrameData} frameData - TBD.
|
|
122
122
|
*/
|
|
123
|
-
updateFrameData(frameData: FrameData): void;
|
|
123
|
+
updateFrameData(frameData: import('./frame_data').FrameData): void;
|
|
124
124
|
/**
|
|
125
125
|
* TBD.
|
|
126
126
|
*/
|
|
@@ -162,8 +162,5 @@ export class Animation {
|
|
|
162
162
|
*/
|
|
163
163
|
get enableUpdate(): boolean;
|
|
164
164
|
}
|
|
165
|
-
import { Game } from './game';
|
|
166
|
-
import { Image } from '../display/image';
|
|
167
|
-
import { FrameData } from './frame_data';
|
|
168
165
|
import { Signal } from './signal';
|
|
169
166
|
//# sourceMappingURL=animation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation.js"],"names":[],"mappings":"AAEA;IACE;;;;;;;;;OASG;IACH,kBARW,OAAO,QAAQ,EAAE,IAAI,2EAErB,MAAM,aACN,OAAO,cAAc,EAAE,SAAS,UAChC,MAAM,EAAE,GAAC,MAAM,EAAE,aACjB,MAAM,SACN,OAAO,EA6BjB;IA1BC,4BAAgB;IAChB,mEAAqB;IACrB,6CAA2B;IAC3B,aAAgB;IAChB,eAAiB;IAEjB,cAA6B;IAC7B,cAAgB;IAChB,kBAAkB;IAClB,wBAA2B;IAC3B,oBAAuB;IACvB,mBAAsB;IACtB,kBAAqB;IACrB,wBAAwB;IACxB,oBAAoB;IACpB,mBAAmB;IACnB,mBAAmB;IACnB,sCAA4E;IAC5E,gBAA2B;IAC3B,iBAAoB;IACpB,mBAA8B;IAC9B,eAA0B;IAC1B,oBAAuB;IAMzB;;;;;;OAMG;IACH,gBALW,MAAM,QACN,OAAO,kBACP,OAAO,GACL,SAAS,CA4BrB;IAoSD;;OAEG;IACH,yBAOC;IAlBD;;;OAGG;IACH,sBAEC;IA3SC,uBAAyC;IACzC,uBAAsD;IAUxD;;OAEG;IACH,gBAaC;IAED;;;OAGG;IACH,WAFa,SAAS,CAKrB;IA6RD;;OAEG;IACH,2BAEC;IAbD;;;OAGG;IACH,wBAEC;IAzRD;;;OAGG;IACH,eAFa,SAAS,CAKrB;IAED;;;;OAIG;IACH,kBAHW,MAAM,GAAC,MAAM,uBACb,OAAO,QA6BjB;IAED;;;;OAIG;IACH,kBAHW,OAAO,qBACP,OAAO,QAgBjB;IAED;;OAEG;IACH,gBAIC;IAED;;OAEG;IACH,iBAIC;IAED;;;OAGG;IACH,UAFa,OAAO,CAuDnB;IAED;;;;;OAKG;IACH,iCAJW,OAAO,aACP,OAAO,GACL,OAAO,CAmBnB;IAED;;;OAGG;IACH,gBAFW,MAAM,QAehB;IAED;;;OAGG;IACH,oBAFW,MAAM,QAehB;IAED;;;OAGG;IACH,2BAFW,OAAO,cAAc,EAAE,SAAS,QAO1C;IAED;;OAEG;IACH,gBAmBC;IAED;;OAEG;IACH,iBAWC;IAqCD;;;OAGG;IACH,yBAEC;IAaD;;OAEG;IACH,uBASC;IAvBD;;;OAGG;IACH,oBAKC;IAwBD;;OAEG;IACH,uBAIC;IAfD;;;OAGG;IACH,oBAEC;IAmBD;;OAEG;IACH,+BAOC;IAlBD;;;OAGG;IACH,4BAEC;CAaF;uBA/csB,UAAU"}
|
|
@@ -3,14 +3,14 @@ export class AnimationManager {
|
|
|
3
3
|
* TBD.
|
|
4
4
|
* @param {Image} sprite - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(sprite:
|
|
7
|
-
sprite:
|
|
8
|
-
game:
|
|
6
|
+
constructor(sprite: new (width?: number, height?: number) => HTMLImageElement);
|
|
7
|
+
sprite: new (width?: number, height?: number) => HTMLImageElement;
|
|
8
|
+
game: any;
|
|
9
9
|
currentFrame: any;
|
|
10
10
|
currentAnim: any;
|
|
11
11
|
updateIfVisible: boolean;
|
|
12
12
|
isLoaded: boolean;
|
|
13
|
-
_frameData: FrameData;
|
|
13
|
+
_frameData: import("./frame_data").FrameData;
|
|
14
14
|
_anims: {};
|
|
15
15
|
_outputFrames: any[];
|
|
16
16
|
/**
|
|
@@ -19,11 +19,11 @@ export class AnimationManager {
|
|
|
19
19
|
destroy(): void;
|
|
20
20
|
/**
|
|
21
21
|
* TBD.
|
|
22
|
-
* @param {FrameData} frameData - TBD.
|
|
22
|
+
* @param {import('./frame_data').FrameData} frameData - TBD.
|
|
23
23
|
* @param {number|string} frame - TBD.
|
|
24
24
|
* @returns {boolean} TBD.
|
|
25
25
|
*/
|
|
26
|
-
loadFrameData(frameData: FrameData, frame: number | string): boolean;
|
|
26
|
+
loadFrameData(frameData: import('./frame_data').FrameData, frame: number | string): boolean;
|
|
27
27
|
/**
|
|
28
28
|
* TBD.
|
|
29
29
|
*/
|
|
@@ -44,11 +44,11 @@ export class AnimationManager {
|
|
|
44
44
|
get frameName(): string;
|
|
45
45
|
/**
|
|
46
46
|
* TBD.
|
|
47
|
-
* @param {FrameData} frameData - TBD.
|
|
47
|
+
* @param {import('./frame_data').FrameData} frameData - TBD.
|
|
48
48
|
* @param {number|string} frame - TBD.
|
|
49
49
|
* @returns {boolean} TBD.
|
|
50
50
|
*/
|
|
51
|
-
copyFrameData(frameData: FrameData, frame: number | string): boolean;
|
|
51
|
+
copyFrameData(frameData: import('./frame_data').FrameData, frame: number | string): boolean;
|
|
52
52
|
/**
|
|
53
53
|
* TBD.
|
|
54
54
|
* @param {string} name - TBD.
|
|
@@ -108,9 +108,9 @@ export class AnimationManager {
|
|
|
108
108
|
refreshFrame(): void;
|
|
109
109
|
/**
|
|
110
110
|
* TBD.
|
|
111
|
-
* @returns {FrameData} TBD.
|
|
111
|
+
* @returns {import('./frame_data').FrameData} TBD.
|
|
112
112
|
*/
|
|
113
|
-
get frameData(): FrameData;
|
|
113
|
+
get frameData(): import("./frame_data").FrameData;
|
|
114
114
|
/**
|
|
115
115
|
* TBD.
|
|
116
116
|
* @returns {number} TBD.
|
|
@@ -132,7 +132,5 @@ export class AnimationManager {
|
|
|
132
132
|
get name(): string;
|
|
133
133
|
_frameIndex: any;
|
|
134
134
|
}
|
|
135
|
-
import { Image } from '../display/image';
|
|
136
|
-
import { FrameData } from './frame_data';
|
|
137
135
|
import { Animation } from './animation';
|
|
138
136
|
//# sourceMappingURL=animation_manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation_manager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"animation_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation_manager.js"],"names":[],"mappings":"AAEA;IACE;;;OAGG;IACH,+EAUC;IATC,kEAAoB;IACpB,UAAuB;IACvB,kBAAwB;IACxB,iBAAuB;IACvB,yBAA2B;IAC3B,kBAAqB;IACrB,6CAAsB;IACtB,WAAgB;IAChB,qBAAuB;IAGzB;;OAEG;IACH,gBAYC;IAED;;;;;OAKG;IACH,yBAJW,OAAO,cAAc,EAAE,SAAS,SAChC,MAAM,GAAC,MAAM,GACX,OAAO,CAwBnB;IA2OD;;OAEG;IACH,uBASC;IAvBD;;;OAGG;IACH,oBAKC;IA2BD;;OAEG;IACH,2BAUC;IAxBD;;;OAGG;IACH,wBAKC;IAhQD;;;;;OAKG;IACH,yBAJW,OAAO,cAAc,EAAE,SAAS,SAChC,MAAM,GAAC,MAAM,GACX,OAAO,CAqBnB;IAED;;;;;;;;OAQG;IACH,UAPW,MAAM,aACN,MAAM,EAAE,GAAC,MAAM,EAAE,cACjB,MAAM,SACN,OAAO,oBACP,OAAO,GACL,SAAS,CA4BrB;IAED;;;;;OAKG;IACH,uBAJW,MAAM,EAAE,GAAC,MAAM,EAAE,oBACjB,OAAO,GACL,OAAO,CAanB;IAED;;;;;;;OAOG;IACH,WANW,MAAM,aACN,MAAM,QACN,OAAO,kBACP,OAAO,GACL,SAAS,CAoBrB;IAED;;;;OAIG;IACH,WAHW,MAAM,eACN,OAAO,QAMjB;IAED;;;OAGG;IACH,UAFa,OAAO,CAWnB;IAED;;;OAGG;IACH,eAFW,MAAM,QAOhB;IAED;;;OAGG;IACH,mBAFW,MAAM,QAOhB;IAED;;;;OAIG;IACH,mBAHW,MAAM,GACJ,SAAS,CAOrB;IAED;;OAEG;IACH,qBAIC;IAED;;;OAGG;IACH,kDAEC;IAED;;;OAGG;IACH,yBAEC;IAUD;;OAEG;IACH,yBAEC;IAbD;;;OAGG;IACH,sBAEC;IASD;;;OAGG;IACH,mBAKC;IA6CK,iBAA0C;CAOjD;0BAlVyB,aAAa"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TBD.
|
|
3
|
-
* @param {Game} game - TBD.
|
|
3
|
+
* @param {import('./game').Game} game - TBD.
|
|
4
4
|
* @param {string} key - TBD.
|
|
5
5
|
* @param {number} frameWidth - TBD.
|
|
6
6
|
* @param {number} frameHeight - TBD.
|
|
@@ -9,13 +9,12 @@
|
|
|
9
9
|
* @param {number} spacing - TBD.
|
|
10
10
|
* @returns {object} TBD.
|
|
11
11
|
*/
|
|
12
|
-
export function spriteSheet(game: Game, key: string, frameWidth: number, frameHeight: number, frameMax: number, margin: number, spacing: number): object;
|
|
12
|
+
export function spriteSheet(game: import('./game').Game, key: string, frameWidth: number, frameHeight: number, frameMax: number, margin: number, spacing: number): object;
|
|
13
13
|
/**
|
|
14
14
|
* TBD.
|
|
15
|
-
* @param {Game} game - TBD.
|
|
15
|
+
* @param {import('./game').Game} game - TBD.
|
|
16
16
|
* @param {object} json - TBD.
|
|
17
17
|
* @returns {object} TBD.
|
|
18
18
|
*/
|
|
19
|
-
export function JSONDataHash(game: Game, json: object): object;
|
|
20
|
-
import { Game } from './game';
|
|
19
|
+
export function JSONDataHash(game: import('./game').Game, json: object): object;
|
|
21
20
|
//# sourceMappingURL=animation_parser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation_parser.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation_parser.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"animation_parser.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation_parser.js"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,kCATW,OAAO,QAAQ,EAAE,IAAI,OACrB,MAAM,cACN,MAAM,eACN,MAAM,YACN,MAAM,UACN,MAAM,WACN,MAAM,GACJ,MAAM,CA4ClB;AAED;;;;;GAKG;AACH,mCAJW,OAAO,QAAQ,EAAE,IAAI,QACrB,MAAM,GACJ,MAAM,CAiClB"}
|