@vpmedia/phaser 1.19.0 → 1.20.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 (80) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/src/phaser/core/cache.js +16 -37
  4. package/src/phaser/core/dom.js +3 -3
  5. package/src/phaser/core/input.js +12 -13
  6. package/src/phaser/core/input_handler.js +1 -2
  7. package/src/phaser/core/input_mouse.js +2 -3
  8. package/src/phaser/core/input_pointer.js +1 -2
  9. package/src/phaser/core/loader.js +69 -70
  10. package/src/phaser/core/scene_manager.js +1 -1
  11. package/src/phaser/core/signal_binding.js +7 -16
  12. package/src/phaser/core/tween.js +4 -5
  13. package/src/phaser/core/tween_data.js +1 -2
  14. package/src/phaser/display/canvas/renderer.js +5 -8
  15. package/src/phaser/display/display_object.js +0 -2
  16. package/src/phaser/display/graphics.js +4 -4
  17. package/src/phaser/display/image.js +4 -6
  18. package/src/phaser/display/text.js +30 -41
  19. package/src/phaser/display/webgl/abstract_filter.js +1 -1
  20. package/src/phaser/display/webgl/fast_sprite_batch.js +1 -3
  21. package/src/phaser/display/webgl/graphics.js +6 -6
  22. package/src/phaser/display/webgl/render_texture.js +1 -3
  23. package/src/phaser/display/webgl/renderer.js +5 -9
  24. package/src/phaser/display/webgl/shader/normal.js +1 -1
  25. package/src/phaser/display/webgl/shader_manager.js +2 -3
  26. package/src/phaser/display/webgl/sprite_batch.js +1 -2
  27. package/src/phaser/display/webgl/stencil_manager.js +6 -8
  28. package/typedefs/global.d.ts +1 -1
  29. package/types/phaser/core/cache.d.ts +44 -68
  30. package/types/phaser/core/cache.d.ts.map +1 -1
  31. package/types/phaser/core/dom.d.ts +6 -6
  32. package/types/phaser/core/dom.d.ts.map +1 -1
  33. package/types/phaser/core/input.d.ts +19 -20
  34. package/types/phaser/core/input.d.ts.map +1 -1
  35. package/types/phaser/core/input_handler.d.ts +4 -5
  36. package/types/phaser/core/input_handler.d.ts.map +1 -1
  37. package/types/phaser/core/input_mouse.d.ts +1 -1
  38. package/types/phaser/core/input_mouse.d.ts.map +1 -1
  39. package/types/phaser/core/input_pointer.d.ts +2 -3
  40. package/types/phaser/core/input_pointer.d.ts.map +1 -1
  41. package/types/phaser/core/loader.d.ts +103 -104
  42. package/types/phaser/core/loader.d.ts.map +1 -1
  43. package/types/phaser/core/scene_manager.d.ts +2 -2
  44. package/types/phaser/core/scene_manager.d.ts.map +1 -1
  45. package/types/phaser/core/signal_binding.d.ts +15 -23
  46. package/types/phaser/core/signal_binding.d.ts.map +1 -1
  47. package/types/phaser/core/tween.d.ts +8 -8
  48. package/types/phaser/core/tween.d.ts.map +1 -1
  49. package/types/phaser/core/tween_data.d.ts +5 -6
  50. package/types/phaser/core/tween_data.d.ts.map +1 -1
  51. package/types/phaser/display/button.d.ts +2 -3
  52. package/types/phaser/display/button.d.ts.map +1 -1
  53. package/types/phaser/display/canvas/renderer.d.ts +7 -10
  54. package/types/phaser/display/canvas/renderer.d.ts.map +1 -1
  55. package/types/phaser/display/display_object.d.ts +3 -5
  56. package/types/phaser/display/display_object.d.ts.map +1 -1
  57. package/types/phaser/display/graphics.d.ts +6 -6
  58. package/types/phaser/display/graphics.d.ts.map +1 -1
  59. package/types/phaser/display/image.d.ts +11 -14
  60. package/types/phaser/display/image.d.ts.map +1 -1
  61. package/types/phaser/display/text.d.ts +50 -61
  62. package/types/phaser/display/text.d.ts.map +1 -1
  63. package/types/phaser/display/webgl/abstract_filter.d.ts +3 -3
  64. package/types/phaser/display/webgl/abstract_filter.d.ts.map +1 -1
  65. package/types/phaser/display/webgl/fast_sprite_batch.d.ts +2 -3
  66. package/types/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -1
  67. package/types/phaser/display/webgl/graphics.d.ts +12 -13
  68. package/types/phaser/display/webgl/graphics.d.ts.map +1 -1
  69. package/types/phaser/display/webgl/render_texture.d.ts +3 -5
  70. package/types/phaser/display/webgl/render_texture.d.ts.map +1 -1
  71. package/types/phaser/display/webgl/renderer.d.ts +8 -12
  72. package/types/phaser/display/webgl/renderer.d.ts.map +1 -1
  73. package/types/phaser/display/webgl/shader/normal.d.ts +2 -2
  74. package/types/phaser/display/webgl/shader/normal.d.ts.map +1 -1
  75. package/types/phaser/display/webgl/shader_manager.d.ts +5 -6
  76. package/types/phaser/display/webgl/shader_manager.d.ts.map +1 -1
  77. package/types/phaser/display/webgl/sprite_batch.d.ts +2 -3
  78. package/types/phaser/display/webgl/sprite_batch.d.ts.map +1 -1
  79. package/types/phaser/display/webgl/stencil_manager.d.ts +9 -11
  80. package/types/phaser/display/webgl/stencil_manager.d.ts.map +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @vpmedia/phaser
2
2
 
3
- [![npm version](https://badge.fury.io/js/@vpmedia%2Fphaser.svg?v=1.19.0)](https://badge.fury.io/js/@vpmedia%2Fphaser)
3
+ [![npm version](https://badge.fury.io/js/@vpmedia%2Fphaser.svg?v=1.20.0)](https://badge.fury.io/js/@vpmedia%2Fphaser)
4
4
  [![Node.js CI](https://github.com/vpmedia/phaser/actions/workflows/node.js.yml/badge.svg)](https://github.com/vpmedia/phaser/actions/workflows/node.js.yml)
5
5
 
6
6
  @vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpmedia/phaser",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2",
5
5
  "author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "husky": "^8.0.3",
32
32
  "jest": "^29.5.0",
33
33
  "lint-staged": "^13.2.1",
34
- "prettier": "^2.8.8",
34
+ "prettier": "^2.8.7",
35
35
  "typescript": "^5.0.4"
36
36
  },
37
37
  "scripts": {
@@ -1,6 +1,5 @@
1
1
  import { Texture } from '../display/webgl/texture';
2
2
  import { BaseTexture } from '../display/webgl/base_texture';
3
- import { RenderTexture } from '../display/webgl/render_texture';
4
3
  import { Signal } from './signal';
5
4
  import { Frame } from './frame';
6
5
  import { FrameData } from './frame_data';
@@ -85,7 +84,7 @@ export class Cache {
85
84
  * TBD.
86
85
  * @param {string} key - TBD.
87
86
  * @param {string} url - TBD.
88
- * @param {HTMLImageElement} data - TBD.
87
+ * @param data - TBD.
89
88
  * @returns {object} TBD.
90
89
  */
91
90
  addImage(key, url, data) {
@@ -113,7 +112,7 @@ export class Cache {
113
112
  * TBD.
114
113
  * @param {string} key - TBD.
115
114
  * @param {string} url - TBD.
116
- * @param {HTMLCanvasElement} data - TBD.
115
+ * @param data - TBD.
117
116
  * @param {object} atlasData - TBD.
118
117
  */
119
118
  addTextureAtlas(key, url, data, atlasData) {
@@ -132,7 +131,7 @@ export class Cache {
132
131
  * TBD.
133
132
  * @param {string} key - TBD.
134
133
  * @param {string} url - TBD.
135
- * @param {object} data - TBD.
134
+ * @param data - TBD.
136
135
  */
137
136
  addSound(key, url, data) {
138
137
  this._cache.sound[key] = {
@@ -149,7 +148,7 @@ export class Cache {
149
148
  * TBD.
150
149
  * @param {string} key - TBD.
151
150
  * @param {string} url - TBD.
152
- * @param {string} data - TBD.
151
+ * @param data - TBD.
153
152
  */
154
153
  addText(key, url, data) {
155
154
  this._cache.text[key] = { url, data };
@@ -160,11 +159,11 @@ export class Cache {
160
159
  * TBD.
161
160
  * @param {string} key - TBD.
162
161
  * @param {string} url - TBD.
163
- * @param {HTMLCanvasElement} data - TBD.
164
- * @param {object} atlasData - TBD.
165
- * @param {string} atlasType - TBD.
166
- * @param {number} xSpacing - TBD.
167
- * @param {number} ySpacing - TBD.
162
+ * @param data - TBD.
163
+ * @param atlasData - TBD.
164
+ * @param atlasType - TBD.
165
+ * @param xSpacing - TBD.
166
+ * @param ySpacing - TBD.
168
167
  */
169
168
  addBitmapFont(key, url, data, atlasData, atlasType, xSpacing = 0, ySpacing = 0) {
170
169
  const obj = {
@@ -186,7 +185,7 @@ export class Cache {
186
185
  * TBD.
187
186
  * @param {string} key - TBD.
188
187
  * @param {string} url - TBD.
189
- * @param {object} data - TBD.
188
+ * @param data - TBD.
190
189
  */
191
190
  addJSON(key, url, data) {
192
191
  this._cache.json[key] = { url, data };
@@ -197,7 +196,7 @@ export class Cache {
197
196
  * TBD.
198
197
  * @param {string} key - TBD.
199
198
  * @param {string} url - TBD.
200
- * @param {XMLDocument} data - TBD.
199
+ * @param data - TBD.
201
200
  */
202
201
  addXML(key, url, data) {
203
202
  this._cache.xml[key] = { url, data };
@@ -236,7 +235,7 @@ export class Cache {
236
235
  * TBD.
237
236
  * @param {string} key - TBD.
238
237
  * @param {string} property - TBD.
239
- * @param {any} value - TBD.
238
+ * @param value - TBD.
240
239
  */
241
240
  updateSound(key, property, value) {
242
241
  const sound = this.getSound(key);
@@ -248,7 +247,7 @@ export class Cache {
248
247
  /**
249
248
  * TBD.
250
249
  * @param {string} key - TBD.
251
- * @param {object} data - TBD.
250
+ * @param data - TBD.
252
251
  */
253
252
  decodedSound(key, data) {
254
253
  const sound = this.getSound(key);
@@ -414,7 +413,6 @@ export class Cache {
414
413
  /**
415
414
  * TBD.
416
415
  * @param {string} key - TBD.
417
- * @returns {HTMLCanvasElement} TBD.
418
416
  */
419
417
  getCanvas(key) {
420
418
  return this.getItem(key, CANVAS, 'getCanvas', 'canvas');
@@ -423,8 +421,7 @@ export class Cache {
423
421
  /**
424
422
  * TBD.
425
423
  * @param {string} key - TBD.
426
- * @param {boolean} full - TBD.
427
- * @returns {HTMLImageElement} TBD.
424
+ * @param full - TBD.
428
425
  */
429
426
  getImage(key = '__default', full = false) {
430
427
  let img = this.getItem(key, IMAGE, 'getImage');
@@ -440,7 +437,6 @@ export class Cache {
440
437
  /**
441
438
  * TBD.
442
439
  * @param {string} key - TBD.
443
- * @returns {object} TBD.
444
440
  */
445
441
  getTextureFrame(key) {
446
442
  return this.getItem(key, TEXTURE, 'getTextureFrame', 'frame');
@@ -449,7 +445,6 @@ export class Cache {
449
445
  /**
450
446
  * TBD.
451
447
  * @param {string} key - TBD.
452
- * @returns {object} TBD.
453
448
  */
454
449
  getSound(key) {
455
450
  return this.getItem(key, SOUND, 'getSound');
@@ -458,7 +453,6 @@ export class Cache {
458
453
  /**
459
454
  * TBD.
460
455
  * @param {string} key - TBD.
461
- * @returns {object} TBD.
462
456
  */
463
457
  getSoundData(key) {
464
458
  return this.getItem(key, SOUND, 'getSoundData', 'data');
@@ -467,7 +461,6 @@ export class Cache {
467
461
  /**
468
462
  * TBD.
469
463
  * @param {string} key - TBD.
470
- * @returns {object} TBD.
471
464
  */
472
465
  getText(key) {
473
466
  return this.getItem(key, TEXT, 'getText', 'data');
@@ -476,7 +469,6 @@ export class Cache {
476
469
  /**
477
470
  * TBD.
478
471
  * @param {string} key - TBD.
479
- * @returns {object} TBD.
480
472
  */
481
473
  getBitmapData(key) {
482
474
  return this.getItem(key, BITMAPDATA, 'getBitmapData', 'data');
@@ -485,7 +477,6 @@ export class Cache {
485
477
  /**
486
478
  * TBD.
487
479
  * @param {string} key - TBD.
488
- * @returns {object} TBD.
489
480
  */
490
481
  getBitmapFont(key) {
491
482
  return this.getItem(key, BITMAPFONT, 'getBitmapFont');
@@ -495,7 +486,6 @@ export class Cache {
495
486
  * TBD.
496
487
  * @param {string} key - TBD.
497
488
  * @param {boolean} isClone - TBD.
498
- * @returns {object} TBD.
499
489
  */
500
490
  getJSON(key, isClone = false) {
501
491
  const data = this.getItem(key, JSON, 'getJSON', 'data');
@@ -505,7 +495,6 @@ export class Cache {
505
495
  /**
506
496
  * TBD.
507
497
  * @param {string} key - TBD.
508
- * @returns {XMLDocument} TBD.
509
498
  */
510
499
  getXML(key) {
511
500
  return this.getItem(key, XML, 'getXML', 'data');
@@ -514,7 +503,6 @@ export class Cache {
514
503
  /**
515
504
  * TBD.
516
505
  * @param {string} key - TBD.
517
- * @returns {RenderTexture} TBD.
518
506
  */
519
507
  getRenderTexture(key) {
520
508
  return this.getItem(key, RENDER_TEXTURE, 'getRenderTexture');
@@ -526,7 +514,6 @@ export class Cache {
526
514
  * TBD.
527
515
  * @param {string} key - TBD.
528
516
  * @param {number} cache - TBD.
529
- * @returns {BaseTexture} TBD.
530
517
  */
531
518
  getBaseTexture(key, cache = IMAGE) {
532
519
  return this.getItem(key, cache, 'getBaseTexture', 'base');
@@ -536,7 +523,6 @@ export class Cache {
536
523
  * TBD.
537
524
  * @param {string} key - TBD.
538
525
  * @param {number} cache - TBD.
539
- * @returns {Frame} TBD.
540
526
  */
541
527
  getFrame(key, cache = IMAGE) {
542
528
  return this.getItem(key, cache, 'getFrame', 'frame');
@@ -546,7 +532,6 @@ export class Cache {
546
532
  * TBD.
547
533
  * @param {string} key - TBD.
548
534
  * @param {number} cache - TBD.
549
- * @returns {number} TBD.
550
535
  */
551
536
  getFrameCount(key, cache = IMAGE) {
552
537
  const data = this.getFrameData(key, cache);
@@ -560,7 +545,6 @@ export class Cache {
560
545
  * TBD.
561
546
  * @param {string} key - TBD.
562
547
  * @param {number} cache - TBD.
563
- * @returns {FrameData} TBD.
564
548
  */
565
549
  getFrameData(key, cache = IMAGE) {
566
550
  return this.getItem(key, cache, 'getFrameData', 'frameData');
@@ -570,7 +554,6 @@ export class Cache {
570
554
  * TBD.
571
555
  * @param {string} key - TBD.
572
556
  * @param {number} cache - TBD.
573
- * @returns {boolean} TBD.
574
557
  */
575
558
  hasFrameData(key, cache = IMAGE) {
576
559
  return this.getItem(key, cache, '', 'frameData') !== null;
@@ -579,7 +562,7 @@ export class Cache {
579
562
  /**
580
563
  * TBD.
581
564
  * @param {string} key - TBD.
582
- * @param {FrameData} frameData - TBD.
565
+ * @param frameData - TBD.
583
566
  * @param {number} cache - TBD.
584
567
  */
585
568
  updateFrameData(key, frameData, cache = IMAGE) {
@@ -593,7 +576,6 @@ export class Cache {
593
576
  * @param {string} key - TBD.
594
577
  * @param {number} index - TBD.
595
578
  * @param {number} cache - TBD.
596
- * @returns {Frame} TBD.
597
579
  */
598
580
  getFrameByIndex(key, index, cache = IMAGE) {
599
581
  const data = this.getFrameData(key, cache);
@@ -608,7 +590,6 @@ export class Cache {
608
590
  * @param {string} key - TBD.
609
591
  * @param {string} name - TBD.
610
592
  * @param {number} cache - TBD.
611
- * @returns {Frame} TBD.
612
593
  */
613
594
  getFrameByName(key, name, cache = IMAGE) {
614
595
  const data = this.getFrameData(key, cache);
@@ -621,7 +602,6 @@ export class Cache {
621
602
  /**
622
603
  * TBD.
623
604
  * @param {string} url - TBD.
624
- * @returns {string} TBD.
625
605
  */
626
606
  getURL(url) {
627
607
  const resolvedURL = this._resolveURL(url);
@@ -635,7 +615,6 @@ export class Cache {
635
615
  /**
636
616
  * TBD.
637
617
  * @param {object} cache - TBD.
638
- * @returns {string[]} TBD.
639
618
  */
640
619
  getKeys(cache = IMAGE) {
641
620
  const result = [];
@@ -760,7 +739,7 @@ export class Cache {
760
739
  /**
761
740
  * TBD.
762
741
  * @param {string} url - TBD.
763
- * @param {object} data - TBD.
742
+ * @param data - TBD.
764
743
  * @returns {string} TBD.
765
744
  */
766
745
  _resolveURL(url, data) {
@@ -201,7 +201,7 @@ export class DOM {
201
201
 
202
202
  /**
203
203
  * TBD.
204
- * @param {HTMLCanvasElement} element - TBD.
204
+ * @param element - TBD.
205
205
  * @param {Point} point - TBD.
206
206
  * @returns {Point} TBD.
207
207
  */
@@ -219,7 +219,7 @@ export class DOM {
219
219
 
220
220
  /**
221
221
  * TBD.
222
- * @param {HTMLCanvasElement} element - TBD.
222
+ * @param element - TBD.
223
223
  * @param {number} cushion - TBD.
224
224
  * @returns {boolean} TBD.
225
225
  */
@@ -233,7 +233,7 @@ export class DOM {
233
233
 
234
234
  /**
235
235
  * TBD.
236
- * @param {DOMRect} coords - TBD.
236
+ * @param coords - TBD.
237
237
  * @param {number} cushion - TBD.
238
238
  * @returns {object} TBD.
239
239
  */
@@ -1,6 +1,5 @@
1
1
  import { ArraySet } from './array_set';
2
2
  import { Graphics } from '../display/graphics';
3
- import { DisplayObject } from '../display/display_object';
4
3
  import { Image } from '../display/image';
5
4
  import { Signal } from './signal';
6
5
  import { Point } from '../geom/point';
@@ -126,7 +125,7 @@ export class Input {
126
125
  /**
127
126
  * TBD.
128
127
  * @param {Function} callback - TBD.
129
- * @param {object} context - TBD.
128
+ * @param context - TBD.
130
129
  */
131
130
  setInteractiveCandidateHandler(callback, context) {
132
131
  this.customCandidateHandler = callback;
@@ -136,7 +135,7 @@ export class Input {
136
135
  /**
137
136
  * TBD.
138
137
  * @param {Function} callback - TBD.
139
- * @param {object} context - TBD.
138
+ * @param context - TBD.
140
139
  */
141
140
  addMoveCallback(callback, context) {
142
141
  this.moveCallbacks.push({ callback, context });
@@ -145,7 +144,7 @@ export class Input {
145
144
  /**
146
145
  * TBD.
147
146
  * @param {Function} callback - TBD.
148
- * @param {object} context - TBD.
147
+ * @param context - TBD.
149
148
  */
150
149
  deleteMoveCallback(callback, context) {
151
150
  let i = this.moveCallbacks.length;
@@ -299,7 +298,7 @@ export class Input {
299
298
 
300
299
  /**
301
300
  * TBD.
302
- * @param {number} limit - TBD.
301
+ * @param limit - TBD.
303
302
  * @returns {number} TBD.
304
303
  */
305
304
  countActivePointers(limit = this.pointers.length) {
@@ -330,7 +329,7 @@ export class Input {
330
329
 
331
330
  /**
332
331
  * TBD.
333
- * @param {number} identifier - TBD.
332
+ * @param identifier - TBD.
334
333
  * @returns {Pointer} TBD.
335
334
  */
336
335
  getPointerFromIdentifier(identifier) {
@@ -346,7 +345,7 @@ export class Input {
346
345
 
347
346
  /**
348
347
  * TBD.
349
- * @param {number} pointerId - TBD.
348
+ * @param pointerId - TBD.
350
349
  * @returns {Pointer} TBD.
351
350
  */
352
351
  getPointerFromId(pointerId) {
@@ -362,9 +361,9 @@ export class Input {
362
361
 
363
362
  /**
364
363
  * TBD.
365
- * @param {DisplayObject} displayObject - TBD.
366
- * @param {Pointer} pointer - TBD.
367
- * @param {Point} output - TBD.
364
+ * @param displayObject - TBD.
365
+ * @param pointer - TBD.
366
+ * @param output - TBD.
368
367
  * @returns {Point} TBD.
369
368
  */
370
369
  getLocalPosition(displayObject, pointer, output = null) {
@@ -379,9 +378,9 @@ export class Input {
379
378
 
380
379
  /**
381
380
  * TBD.
382
- * @param {DisplayObject} displayObject - TBD.
383
- * @param {Pointer} pointer - TBD.
384
- * @param {Point} localPoint - TBD.
381
+ * @param displayObject - TBD.
382
+ * @param pointer - TBD.
383
+ * @param localPoint - TBD.
385
384
  * @returns {boolean} TBD.
386
385
  */
387
386
  hitTest(displayObject, pointer, localPoint) {
@@ -3,13 +3,12 @@ import { GROUP } from './const';
3
3
  import { distance } from '../util/math';
4
4
  import { Pointer } from './input_pointer';
5
5
  import { Rectangle } from '../geom/rectangle';
6
- import { Image } from '../display/image';
7
6
  import { DisplayObject } from '../display/display_object';
8
7
 
9
8
  export class InputHandler {
10
9
  /**
11
10
  * TBD.
12
- * @param {Image} sprite - TBD.
11
+ * @param sprite
13
12
  */
14
13
  constructor(sprite) {
15
14
  this.sprite = sprite;
@@ -12,8 +12,8 @@ import { Game } from './game';
12
12
  class WheelEventProxy {
13
13
  /**
14
14
  * TBD.
15
- * @param {number} scaleFactor - TBD.
16
- * @param {number} deltaMode - TBD.
15
+ * @param scaleFactor - TBD.
16
+ * @param deltaMode - TBD.
17
17
  */
18
18
  constructor(scaleFactor, deltaMode) {
19
19
  this._scaleFactor = scaleFactor;
@@ -48,7 +48,6 @@ class WheelEventProxy {
48
48
 
49
49
  /**
50
50
  * TBD.
51
- * @returns {number} TBD.
52
51
  */
53
52
  get deltaMode() {
54
53
  return this._deltaMode;
@@ -9,7 +9,6 @@ import {
9
9
  MOUSE_TOUCH_COMBINE,
10
10
  } from './const';
11
11
  import { Game } from './game';
12
- import { InputHandler } from './input_handler';
13
12
 
14
13
  export class Pointer {
15
14
  /**
@@ -303,7 +302,7 @@ export class Pointer {
303
302
 
304
303
  /**
305
304
  * TBD.
306
- * @param {InputHandler} newTarget - TBD.
305
+ * @param newTarget - TBD.
307
306
  * @param {boolean} silent - TBD.
308
307
  */
309
308
  swapTarget(newTarget, silent = false) {