@vpmedia/phaser 1.113.0 → 1.114.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/dist/index.js CHANGED
@@ -8830,7 +8830,7 @@ var Text = class extends Image$1 {
8830
8830
  * @param {Game} game - The game instance this text belongs to.
8831
8831
  * @param {number} x - The x position of the text.
8832
8832
  * @param {number} y - The y position of the text.
8833
- * @param {string} text - The text content to display.
8833
+ * @param {string | number} text - The text content to display.
8834
8834
  * @param {object} style - The style settings for the text.
8835
8835
  */
8836
8836
  constructor(game, x, y, text = "", style = {}) {
@@ -8854,7 +8854,7 @@ var Text = class extends Image$1 {
8854
8854
  this.autoRound = false;
8855
8855
  this.useAdvancedWrap = false;
8856
8856
  this._res = game.renderer.resolution;
8857
- this._text = text;
8857
+ this._text = text.toString();
8858
8858
  this._fontComponents = null;
8859
8859
  /** @type {number} */
8860
8860
  this._lineSpacing = 0;