From abf0e1fa7a5d17bbe1474b5114a23aeb3bf04e7f Mon Sep 17 00:00:00 2001 From: Poka <poka@poka.tw> Date: Tue, 15 Apr 2025 14:32:07 +0800 Subject: [PATCH] Remove console.log in advancedWordWrap --- src/gameobjects/text/Text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gameobjects/text/Text.js b/src/gameobjects/text/Text.js index 363fe17b7a..ed3214a745 100644 --- a/src/gameobjects/text/Text.js +++ b/src/gameobjects/text/Text.js @@ -443,7 +443,7 @@ var Text = new Class({ var wordWithSpace = word + ' '; var letterSpacingWidth = wordWithSpace.length * this.letterSpacing; var wordWidth = context.measureText(wordWithSpace).width + letterSpacingWidth; - console.log(words.length, word); + if (wordWidth > currentLineWidth) { // Break word