@vpmedia/phaser 1.16.0 → 1.17.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 (74) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/phaser/core/animation.js +28 -16
  4. package/src/phaser/core/animation_manager.js +34 -20
  5. package/src/phaser/core/animation_parser.js +1 -1
  6. package/src/phaser/core/array_set.js +17 -9
  7. package/src/phaser/core/cache.js +61 -45
  8. package/src/phaser/core/factory.js +10 -10
  9. package/src/phaser/core/frame_data.js +1 -1
  10. package/src/phaser/core/input.js +37 -20
  11. package/src/phaser/core/input_handler.js +1 -1
  12. package/src/phaser/core/input_mouse.js +16 -12
  13. package/src/phaser/core/input_mspointer.js +7 -7
  14. package/src/phaser/core/input_pointer.js +26 -17
  15. package/src/phaser/core/input_touch.js +7 -7
  16. package/src/phaser/core/loader.js +104 -75
  17. package/src/phaser/core/raf.js +1 -1
  18. package/src/phaser/core/scale_manager.js +27 -27
  19. package/src/phaser/core/scene_manager.js +9 -9
  20. package/src/phaser/core/sound.js +3 -3
  21. package/src/phaser/core/sound_manager.js +8 -8
  22. package/src/phaser/core/sound_sprite.js +3 -3
  23. package/src/phaser/core/timer.js +9 -9
  24. package/src/phaser/core/timer_event.js +2 -2
  25. package/src/phaser/core/tween.js +1 -1
  26. package/src/phaser/display/group.js +28 -20
  27. package/src/phaser/display/image.js +3 -1
  28. package/types/phaser/core/animation.d.ts +38 -26
  29. package/types/phaser/core/animation.d.ts.map +1 -1
  30. package/types/phaser/core/animation_manager.d.ts +54 -39
  31. package/types/phaser/core/animation_manager.d.ts.map +1 -1
  32. package/types/phaser/core/animation_parser.d.ts +2 -2
  33. package/types/phaser/core/array_set.d.ts +24 -16
  34. package/types/phaser/core/array_set.d.ts.map +1 -1
  35. package/types/phaser/core/cache.d.ts +79 -73
  36. package/types/phaser/core/cache.d.ts.map +1 -1
  37. package/types/phaser/core/factory.d.ts +17 -17
  38. package/types/phaser/core/factory.d.ts.map +1 -1
  39. package/types/phaser/core/frame_data.d.ts +2 -2
  40. package/types/phaser/core/frame_data.d.ts.map +1 -1
  41. package/types/phaser/core/input.d.ts +49 -32
  42. package/types/phaser/core/input.d.ts.map +1 -1
  43. package/types/phaser/core/input_handler.d.ts +2 -2
  44. package/types/phaser/core/input_handler.d.ts.map +1 -1
  45. package/types/phaser/core/input_mouse.d.ts +20 -19
  46. package/types/phaser/core/input_mouse.d.ts.map +1 -1
  47. package/types/phaser/core/input_mspointer.d.ts +15 -15
  48. package/types/phaser/core/input_mspointer.d.ts.map +1 -1
  49. package/types/phaser/core/input_pointer.d.ts +39 -30
  50. package/types/phaser/core/input_pointer.d.ts.map +1 -1
  51. package/types/phaser/core/input_touch.d.ts +15 -15
  52. package/types/phaser/core/input_touch.d.ts.map +1 -1
  53. package/types/phaser/core/loader.d.ts +118 -92
  54. package/types/phaser/core/loader.d.ts.map +1 -1
  55. package/types/phaser/core/raf.d.ts +3 -3
  56. package/types/phaser/core/raf.d.ts.map +1 -1
  57. package/types/phaser/core/scale_manager.d.ts +34 -34
  58. package/types/phaser/core/scale_manager.d.ts.map +1 -1
  59. package/types/phaser/core/scene_manager.d.ts +9 -9
  60. package/types/phaser/core/sound.d.ts +4 -4
  61. package/types/phaser/core/sound.d.ts.map +1 -1
  62. package/types/phaser/core/sound_manager.d.ts +12 -12
  63. package/types/phaser/core/sound_manager.d.ts.map +1 -1
  64. package/types/phaser/core/sound_sprite.d.ts +3 -3
  65. package/types/phaser/core/timer.d.ts +14 -14
  66. package/types/phaser/core/timer.d.ts.map +1 -1
  67. package/types/phaser/core/timer_event.d.ts +4 -4
  68. package/types/phaser/core/timer_event.d.ts.map +1 -1
  69. package/types/phaser/core/tween.d.ts +3 -3
  70. package/types/phaser/core/tween.d.ts.map +1 -1
  71. package/types/phaser/display/group.d.ts +38 -30
  72. package/types/phaser/display/group.d.ts.map +1 -1
  73. package/types/phaser/display/image.d.ts +7 -5
  74. package/types/phaser/display/image.d.ts.map +1 -1
@@ -47,8 +47,8 @@ export class Loader {
47
47
 
48
48
  /**
49
49
  * TBD.
50
- * @param sprite
51
- * @param direction
50
+ * @param sprite - TBD.
51
+ * @param direction - TBD.
52
52
  */
53
53
  setPreloadSprite(sprite, direction = 0) {
54
54
  this.preloadSprite = {
@@ -80,8 +80,9 @@ export class Loader {
80
80
 
81
81
  /**
82
82
  * TBD.
83
- * @param type
83
+ * @param type - TBD.
84
84
  * @param {string} key - TBD.
85
+ * @returns {boolean} TBD.
85
86
  */
86
87
  checkKeyExists(type, key) {
87
88
  return this.getAssetIndex(type, key) > -1;
@@ -89,8 +90,9 @@ export class Loader {
89
90
 
90
91
  /**
91
92
  * TBD.
92
- * @param type
93
+ * @param type - TBD.
93
94
  * @param {string} key - TBD.
95
+ * @returns {number} TBD.
94
96
  */
95
97
  getAssetIndex(type, key) {
96
98
  let bestFound = -1;
@@ -110,8 +112,9 @@ export class Loader {
110
112
 
111
113
  /**
112
114
  * TBD.
113
- * @param type
115
+ * @param type - TBD.
114
116
  * @param {string} key - TBD.
117
+ * @returns {object} TBD.
115
118
  */
116
119
  getAsset(type, key) {
117
120
  const fileIndex = this.getAssetIndex(type, key);
@@ -151,12 +154,13 @@ export class Loader {
151
154
 
152
155
  /**
153
156
  * TBD.
154
- * @param type
157
+ * @param type - TBD.
155
158
  * @param {string} key - TBD.
156
- * @param url
157
- * @param properties
158
- * @param overwrite
159
- * @param extension
159
+ * @param {string} url - TBD.
160
+ * @param properties - TBD.
161
+ * @param overwrite - TBD.
162
+ * @param extension - TBD.
163
+ * @returns {Loader} TBD.
160
164
  */
161
165
  addToFileList(type, key = '', url = null, properties = null, overwrite = false, extension = null) {
162
166
  if (key === undefined || key === '') {
@@ -207,10 +211,11 @@ export class Loader {
207
211
 
208
212
  /**
209
213
  * TBD.
210
- * @param type
214
+ * @param type - TBD.
211
215
  * @param {string} key - TBD.
212
- * @param url
213
- * @param properties
216
+ * @param {string} url - TBD.
217
+ * @param properties - TBD.
218
+ * @returns {Loader} TBD.
214
219
  */
215
220
  replaceInFileList(type, key, url, properties) {
216
221
  return this.addToFileList(type, key, url, properties, true);
@@ -219,9 +224,10 @@ export class Loader {
219
224
  /**
220
225
  * TBD.
221
226
  * @param {string} key - TBD.
222
- * @param url
223
- * @param data
224
- * @param callbackContext
227
+ * @param {string} url - TBD.
228
+ * @param data - TBD.
229
+ * @param {object} callbackContext - TBD.
230
+ * @returns {Loader} TBD.
225
231
  */
226
232
  pack(key, url, data, callbackContext) {
227
233
  const pack = {
@@ -257,8 +263,9 @@ export class Loader {
257
263
  /**
258
264
  * TBD.
259
265
  * @param {string} key - TBD.
260
- * @param url
261
- * @param overwrite
266
+ * @param {string} url - TBD.
267
+ * @param overwrite - TBD.
268
+ * @returns {Loader} TBD.
262
269
  */
263
270
  image(key, url, overwrite) {
264
271
  return this.addToFileList('image', key, url, undefined, overwrite, '.png');
@@ -266,8 +273,9 @@ export class Loader {
266
273
 
267
274
  /**
268
275
  * TBD.
269
- * @param keys
270
- * @param urls
276
+ * @param keys - TBD.
277
+ * @param urls - TBD.
278
+ * @returns {Loader} TBD.
271
279
  */
272
280
  images(keys, urls) {
273
281
  if (Array.isArray(urls)) {
@@ -285,8 +293,9 @@ export class Loader {
285
293
  /**
286
294
  * TBD.
287
295
  * @param {string} key - TBD.
288
- * @param url
289
- * @param overwrite
296
+ * @param {string} url - TBD.
297
+ * @param overwrite - TBD.
298
+ * @returns {Loader} TBD.
290
299
  */
291
300
  text(key, url, overwrite) {
292
301
  return this.addToFileList('text', key, url, undefined, overwrite, '.txt');
@@ -295,8 +304,9 @@ export class Loader {
295
304
  /**
296
305
  * TBD.
297
306
  * @param {string} key - TBD.
298
- * @param url
299
- * @param overwrite
307
+ * @param {string} url - TBD.
308
+ * @param overwrite - TBD.
309
+ * @returns {Loader} TBD.
300
310
  */
301
311
  json(key, url, overwrite) {
302
312
  return this.addToFileList('json', key, url, undefined, overwrite, '.json');
@@ -305,8 +315,9 @@ export class Loader {
305
315
  /**
306
316
  * TBD.
307
317
  * @param {string} key - TBD.
308
- * @param url
309
- * @param overwrite
318
+ * @param {string} url - TBD.
319
+ * @param overwrite - TBD.
320
+ * @returns {Loader} TBD.
310
321
  */
311
322
  xml(key, url, overwrite) {
312
323
  return this.addToFileList('xml', key, url, undefined, overwrite, '.xml');
@@ -315,12 +326,13 @@ export class Loader {
315
326
  /**
316
327
  * TBD.
317
328
  * @param {string} key - TBD.
318
- * @param url
319
- * @param frameWidth
320
- * @param frameHeight
321
- * @param frameMax
322
- * @param margin
323
- * @param spacing
329
+ * @param {string} url - TBD.
330
+ * @param frameWidth - TBD.
331
+ * @param frameHeight - TBD.
332
+ * @param frameMax - TBD.
333
+ * @param margin - TBD.
334
+ * @param spacing - TBD.
335
+ * @returns {Loader} TBD.
324
336
  */
325
337
  spritesheet(key, url, frameWidth, frameHeight, frameMax = -1, margin = 0, spacing = 0) {
326
338
  return this.addToFileList(
@@ -338,6 +350,7 @@ export class Loader {
338
350
  * @param {string} key - TBD.
339
351
  * @param urls
340
352
  * @param autoDecode
353
+ * @returns {Loader} TBD.
341
354
  */
342
355
  audio(key, urls, autoDecode = true) {
343
356
  if (this.game.sound.noAudio) {
@@ -352,10 +365,11 @@ export class Loader {
352
365
  /**
353
366
  * TBD.
354
367
  * @param {string} key - TBD.
355
- * @param urls
356
- * @param jsonURL
357
- * @param jsonData
358
- * @param autoDecode
368
+ * @param urls - TBD.
369
+ * @param jsonURL - TBD.
370
+ * @param jsonData - TBD.
371
+ * @param autoDecode - TBD.
372
+ * @returns {Loader} TBD.
359
373
  */
360
374
  audioSprite(key, urls, jsonURL, jsonData, autoDecode = true) {
361
375
  if (this.game.sound.noAudio) {
@@ -376,11 +390,13 @@ export class Loader {
376
390
  /**
377
391
  * TBD.
378
392
  * @param {string} key - TBD.
379
- * @param textureURL
380
- * @param atlasURL
381
- * @param atlasData
382
- * @param xSpacing
383
- * @param ySpacing
393
+ * @param textureURL - TBD.
394
+ * @param atlasURL - TBD.
395
+ * @param atlasData - TBD.
396
+ * @param xSpacing - TBD.
397
+ * @param ySpacing - TBD.
398
+ * @returns {Loader} TBD.
399
+ * @throws Error.
384
400
  */
385
401
  bitmapFont(key, textureURL = null, atlasURL = null, atlasData = null, xSpacing = 0, ySpacing = 0) {
386
402
  if (textureURL === undefined || textureURL === null) {
@@ -418,10 +434,11 @@ export class Loader {
418
434
  /**
419
435
  * TBD.
420
436
  * @param {string} key - TBD.
421
- * @param textureURL
422
- * @param atlasURL
423
- * @param atlasData
424
- * @param format
437
+ * @param textureURL - TBD.
438
+ * @param atlasURL - TBD.
439
+ * @param atlasData - TBD.
440
+ * @param format - TBD.
441
+ * @returns {Loader} TBD.
425
442
  */
426
443
  atlas(key, textureURL, atlasURL = null, atlasData = null, format = TEXTURE_ATLAS_JSON_HASH) {
427
444
  if (textureURL === undefined || textureURL === null) {
@@ -441,8 +458,9 @@ export class Loader {
441
458
 
442
459
  /**
443
460
  * TBD.
444
- * @param callback - TBD.
445
- * @param callbackContext
461
+ * @param {Function} callback - TBD.
462
+ * @param {object} callbackContext - TBD.
463
+ * @returns {Loader} TBD.
446
464
  */
447
465
  withSyncPoint(callback, callbackContext) {
448
466
  this._withSyncPointDepth += 1;
@@ -456,8 +474,9 @@ export class Loader {
456
474
 
457
475
  /**
458
476
  * TBD.
459
- * @param type
477
+ * @param type - TBD.
460
478
  * @param {string} key - TBD.
479
+ * @returns {Loader} TBD.
461
480
  */
462
481
  addSyncPoint(type, key) {
463
482
  const asset = this.getAsset(type, key);
@@ -469,7 +488,7 @@ export class Loader {
469
488
 
470
489
  /**
471
490
  * TBD.
472
- * @param type
491
+ * @param type - TBD.
473
492
  * @param {string} key - TBD.
474
493
  */
475
494
  removeFile(type, key) {
@@ -602,7 +621,7 @@ export class Loader {
602
621
 
603
622
  /**
604
623
  * TBD.
605
- * @param abnormal
624
+ * @param abnormal - TBD.
606
625
  */
607
626
  finishedLoading(abnormal) {
608
627
  if (this.hasLoaded) {
@@ -625,8 +644,8 @@ export class Loader {
625
644
 
626
645
  /**
627
646
  * TBD.
628
- * @param file
629
- * @param errorMessage
647
+ * @param file - TBD.
648
+ * @param errorMessage - TBD.
630
649
  */
631
650
  asyncComplete(file, errorMessage = '') {
632
651
  file.loaded = true;
@@ -641,7 +660,7 @@ export class Loader {
641
660
 
642
661
  /**
643
662
  * TBD.
644
- * @param pack
663
+ * @param pack - TBD.
645
664
  */
646
665
  processPack(pack) {
647
666
  const packData = pack.data[pack.key];
@@ -704,8 +723,9 @@ export class Loader {
704
723
 
705
724
  /**
706
725
  * TBD.
707
- * @param url
708
- * @param file
726
+ * @param {string} url - TBD.
727
+ * @param file - TBD.
728
+ * @returns {string} TBD.
709
729
  */
710
730
  transformUrl(url, file) {
711
731
  if (!url) {
@@ -719,7 +739,7 @@ export class Loader {
719
739
 
720
740
  /**
721
741
  * TBD.
722
- * @param file
742
+ * @param file - TBD.
723
743
  */
724
744
  loadFile(file) {
725
745
  switch (file.type) {
@@ -757,7 +777,7 @@ export class Loader {
757
777
 
758
778
  /**
759
779
  * TBD.
760
- * @param file
780
+ * @param file - TBD.
761
781
  */
762
782
  loadImageTag(file) {
763
783
  this.log('loadImageTag', file);
@@ -789,11 +809,11 @@ export class Loader {
789
809
 
790
810
  /**
791
811
  * TBD.
792
- * @param file
793
- * @param url
794
- * @param type
795
- * @param onload
796
- * @param onerror
812
+ * @param file - TBD.
813
+ * @param {string} url - TBD.
814
+ * @param type - TBD.
815
+ * @param onload - TBD.
816
+ * @param onerror - TBD.
797
817
  */
798
818
  xhrLoad(file, url, type, onload, onerror) {
799
819
  this.log('xhrLoad', file);
@@ -864,7 +884,8 @@ export class Loader {
864
884
 
865
885
  /**
866
886
  * TBD.
867
- * @param urls
887
+ * @param urls - TBD.
888
+ * @returns {string} TBD.
868
889
  */
869
890
  getAudioURL(urls) {
870
891
  if (this.game.sound.noAudio) {
@@ -901,9 +922,9 @@ export class Loader {
901
922
 
902
923
  /**
903
924
  * TBD.
904
- * @param file
905
- * @param xhr
906
- * @param reason
925
+ * @param file - TBD.
926
+ * @param xhr - TBD.
927
+ * @param reason - TBD.
907
928
  */
908
929
  fileError(file, xhr, reason) {
909
930
  // const url = file.requestUrl || this.transformUrl(file.url, file);
@@ -919,8 +940,9 @@ export class Loader {
919
940
 
920
941
  /**
921
942
  * TBD.
922
- * @param file
923
- * @param xhr
943
+ * @param file - TBD.
944
+ * @param xhr - TBD.
945
+ * @throws Error.
924
946
  */
925
947
  fileComplete(file, xhr) {
926
948
  let loadNext = true;
@@ -1010,8 +1032,8 @@ export class Loader {
1010
1032
 
1011
1033
  /**
1012
1034
  * TBD.
1013
- * @param file
1014
- * @param xhr
1035
+ * @param file - TBD.
1036
+ * @param xhr - TBD.
1015
1037
  */
1016
1038
  jsonLoadComplete(file, xhr) {
1017
1039
  const data = JSON.parse(xhr.responseText);
@@ -1035,8 +1057,8 @@ export class Loader {
1035
1057
 
1036
1058
  /**
1037
1059
  * TBD.
1038
- * @param file
1039
- * @param xhr
1060
+ * @param file - TBD.
1061
+ * @param xhr - TBD.
1040
1062
  */
1041
1063
  xmlLoadComplete(file, xhr) {
1042
1064
  // Always try parsing the content as XML, regardless of actually response type
@@ -1060,7 +1082,8 @@ export class Loader {
1060
1082
 
1061
1083
  /**
1062
1084
  * TBD.
1063
- * @param data
1085
+ * @param data - TBD.
1086
+ * @returns {Document} TBD.
1064
1087
  */
1065
1088
  parseXml(data) {
1066
1089
  let xml = null;
@@ -1104,8 +1127,8 @@ export class Loader {
1104
1127
 
1105
1128
  /**
1106
1129
  * TBD.
1107
- * @param message
1108
- * @param data
1130
+ * @param message - TBD.
1131
+ * @param data - TBD.
1109
1132
  */
1110
1133
  log(message, data = '') {
1111
1134
  if (!this.isUseLog) {
@@ -1116,6 +1139,7 @@ export class Loader {
1116
1139
 
1117
1140
  /**
1118
1141
  * TBD.
1142
+ * @returns {number} TBD.
1119
1143
  */
1120
1144
  totalLoadedFiles() {
1121
1145
  return this._loadedFileCount;
@@ -1123,6 +1147,7 @@ export class Loader {
1123
1147
 
1124
1148
  /**
1125
1149
  * TBD.
1150
+ * @returns {number} TBD.
1126
1151
  */
1127
1152
  totalQueuedFiles() {
1128
1153
  return this._totalFileCount - this._loadedFileCount;
@@ -1130,6 +1155,7 @@ export class Loader {
1130
1155
 
1131
1156
  /**
1132
1157
  * TBD.
1158
+ * @returns {number} TBD.
1133
1159
  */
1134
1160
  totalLoadedPacks() {
1135
1161
  return this._totalPackCount;
@@ -1137,6 +1163,7 @@ export class Loader {
1137
1163
 
1138
1164
  /**
1139
1165
  * TBD.
1166
+ * @returns {number} TBD.
1140
1167
  */
1141
1168
  totalQueuedPacks() {
1142
1169
  return this._totalPackCount - this._loadedPackCount;
@@ -1144,6 +1171,7 @@ export class Loader {
1144
1171
 
1145
1172
  /**
1146
1173
  * TBD.
1174
+ * @returns {number} TBD.
1147
1175
  */
1148
1176
  get progressFloat() {
1149
1177
  const progress = (this._loadedFileCount / this._totalFileCount) * 100;
@@ -1152,6 +1180,7 @@ export class Loader {
1152
1180
 
1153
1181
  /**
1154
1182
  * TBD.
1183
+ * @returns {number} TBD.
1155
1184
  */
1156
1185
  get progress() {
1157
1186
  return Math.round(this.progressFloat);
@@ -27,7 +27,7 @@ export class RequestAnimationFrame {
27
27
 
28
28
  /**
29
29
  * TBD.
30
- * @param rafTime
30
+ * @param {number} rafTime - TBD.
31
31
  */
32
32
  update(rafTime) {
33
33
  this.game.update(rafTime);
@@ -139,7 +139,7 @@ export class ScaleManager {
139
139
 
140
140
  /**
141
141
  * TBD.
142
- * @param config
142
+ * @param config - TBD.
143
143
  */
144
144
  parseConfig(config) {
145
145
  if (config.scaleMode !== undefined) {
@@ -236,10 +236,10 @@ export class ScaleManager {
236
236
 
237
237
  /**
238
238
  * TBD.
239
- * @param hScale
240
- * @param vScale
241
- * @param hTrim
242
- * @param vTrim
239
+ * @param hScale - TBD.
240
+ * @param vScale - TBD.
241
+ * @param hTrim - TBD.
242
+ * @param vTrim - TBD.
243
243
  */
244
244
  setUserScale(hScale, vScale, hTrim, vTrim) {
245
245
  this._userScaleFactor.setTo(hScale, vScale);
@@ -249,8 +249,8 @@ export class ScaleManager {
249
249
 
250
250
  /**
251
251
  * TBD.
252
- * @param callback - TBD.
253
- * @param context
252
+ * @param {Function} callback - TBD.
253
+ * @param context - TBD.
254
254
  */
255
255
  setResizeCallback(callback, context) {
256
256
  this.onResize = callback;
@@ -282,10 +282,10 @@ export class ScaleManager {
282
282
 
283
283
  /**
284
284
  * TBD.
285
- * @param minWidth
286
- * @param minHeight
287
- * @param maxWidth
288
- * @param maxHeight
285
+ * @param minWidth - TBD.
286
+ * @param minHeight - TBD.
287
+ * @param maxWidth - TBD.
288
+ * @param maxHeight - TBD.
289
289
  */
290
290
  setMinMax(minWidth, minHeight, maxWidth, maxHeight) {
291
291
  this.minWidth = minWidth;
@@ -381,8 +381,8 @@ export class ScaleManager {
381
381
 
382
382
  /**
383
383
  * TBD.
384
- * @param forceLandscape
385
- * @param forcePortrait
384
+ * @param forceLandscape - TBD.
385
+ * @param forcePortrait - TBD.
386
386
  */
387
387
  forceOrientation(forceLandscape = false, forcePortrait = false) {
388
388
  this.forceLandscape = forceLandscape;
@@ -392,7 +392,7 @@ export class ScaleManager {
392
392
 
393
393
  /**
394
394
  * TBD.
395
- * @param orientation
395
+ * @param orientation - TBD.
396
396
  */
397
397
  classifyOrientation(orientation) {
398
398
  if (orientation === 'portrait-primary' || orientation === 'portrait-secondary') {
@@ -428,7 +428,7 @@ export class ScaleManager {
428
428
 
429
429
  /**
430
430
  * TBD.
431
- * @param event
431
+ * @param {Event} event - TBD.
432
432
  */
433
433
  orientationChange(event) {
434
434
  this.event = event;
@@ -437,7 +437,7 @@ export class ScaleManager {
437
437
 
438
438
  /**
439
439
  * TBD.
440
- * @param event
440
+ * @param {Event} event - TBD.
441
441
  */
442
442
  windowResize(event) {
443
443
  this.event = event;
@@ -532,8 +532,8 @@ export class ScaleManager {
532
532
 
533
533
  /**
534
534
  * TBD.
535
- * @param horizontal
536
- * @param vertical
535
+ * @param horizontal - TBD.
536
+ * @param vertical - TBD.
537
537
  */
538
538
  alignCanvas(horizontal, vertical) {
539
539
  const parentBounds = this.getParentBounds(this._tempBounds);
@@ -608,8 +608,8 @@ export class ScaleManager {
608
608
 
609
609
  /**
610
610
  * TBD.
611
- * @param cssWidth
612
- * @param cssHeight
611
+ * @param cssWidth - TBD.
612
+ * @param cssHeight - TBD.
613
613
  */
614
614
  resetCanvas(cssWidth = this.width + 'px', cssHeight = this.height + 'px') {
615
615
  const canvas = this.game.canvas;
@@ -625,7 +625,7 @@ export class ScaleManager {
625
625
 
626
626
  /**
627
627
  * TBD.
628
- * @param force
628
+ * @param force - TBD.
629
629
  */
630
630
  queueUpdate(force) {
631
631
  if (force) {
@@ -652,7 +652,7 @@ export class ScaleManager {
652
652
 
653
653
  /**
654
654
  * TBD.
655
- * @param expanding
655
+ * @param expanding - TBD.
656
656
  */
657
657
  setShowAll(expanding = false) {
658
658
  const bounds = this.getParentBounds(this._tempBounds);
@@ -700,8 +700,8 @@ export class ScaleManager {
700
700
 
701
701
  /**
702
702
  * TBD.
703
- * @param antialias
704
- * @param allowTrampoline
703
+ * @param antialias - TBD.
704
+ * @param allowTrampoline - TBD.
705
705
  */
706
706
  startFullScreen(antialias, allowTrampoline) {
707
707
  if (this.isFullScreen) {
@@ -782,7 +782,7 @@ export class ScaleManager {
782
782
 
783
783
  /**
784
784
  * TBD.
785
- * @param enteringFullscreen
785
+ * @param enteringFullscreen - TBD.
786
786
  */
787
787
  prepScreenMode(enteringFullscreen) {
788
788
  const fsTarget = this._createdFullScreenTarget || this.fullScreenTarget;
@@ -816,7 +816,7 @@ export class ScaleManager {
816
816
 
817
817
  /**
818
818
  * TBD.
819
- * @param event
819
+ * @param {Event} event - TBD.
820
820
  */
821
821
  fullScreenChange(event) {
822
822
  this.event = event;
@@ -835,7 +835,7 @@ export class ScaleManager {
835
835
 
836
836
  /**
837
837
  * TBD.
838
- * @param event
838
+ * @param {Event} event - TBD.
839
839
  */
840
840
  fullScreenError(event) {
841
841
  this.event = event;
@@ -5,7 +5,7 @@ export class SceneManager {
5
5
  /**
6
6
  * TBD.
7
7
  * @param {Game} game - TBD.
8
- * @param pendingState
8
+ * @param pendingState - TBD.
9
9
  */
10
10
  constructor(game, pendingState) {
11
11
  this.game = game;
@@ -40,8 +40,8 @@ export class SceneManager {
40
40
  /**
41
41
  * TBD.
42
42
  * @param {string} key - TBD.
43
- * @param state
44
- * @param autoStart
43
+ * @param state - TBD.
44
+ * @param autoStart - TBD.
45
45
  */
46
46
  add(key, state, autoStart = false) {
47
47
  let newState = null;
@@ -85,9 +85,9 @@ export class SceneManager {
85
85
  /**
86
86
  * TBD.
87
87
  * @param {string} key - TBD.
88
- * @param clearWorld
89
- * @param clearCache
90
- * @param {...any} args
88
+ * @param clearWorld - TBD.
89
+ * @param clearCache - TBD.
90
+ * @param {...any} args - TBD.
91
91
  */
92
92
  start(key, clearWorld = true, clearCache = false, ...args) {
93
93
  if (this.checkState(key)) {
@@ -103,9 +103,9 @@ export class SceneManager {
103
103
 
104
104
  /**
105
105
  * TBD.
106
- * @param clearWorld
107
- * @param clearCache
108
- * @param {...any} args
106
+ * @param clearWorld - TBD.
107
+ * @param clearCache - TBD.
108
+ * @param {...any} args - TBD.
109
109
  */
110
110
  restart(clearWorld = true, clearCache = false, ...args) {
111
111
  this._pendingState = this.current;
@@ -6,9 +6,9 @@ export class Sound {
6
6
  * TBD.
7
7
  * @param {Game} game - TBD.
8
8
  * @param {string} key - TBD.
9
- * @param volume - TBD.
10
- * @param loop - TBD.
11
- * @param connect - TBD.
9
+ * @param {number} volume - TBD.
10
+ * @param {boolean} loop - TBD.
11
+ * @param {boolean} connect - TBD.
12
12
  */
13
13
  constructor(game, key, volume = 1, loop = false, connect = null) {
14
14
  // TODO