@@ -43,7 +43,7 @@ var propertyMap = {
4343/**
4444 * @classdesc
4545 * A TextStyle class manages all of the style settings for a Text object.
46- *
46+ *
4747 * Text Game Objects create a TextStyle instance automatically, which is
4848 * accessed via the `Text.style` property. You do not normally need to
4949 * instantiate one yourself.
@@ -302,7 +302,7 @@ var TextStyle = new Class({
302302 * @name Phaser.GameObjects.TextStyle#wordWrapWidth
303303 * @type {number | null }
304304 * @default null
305- * @since 3.23 .0
305+ * @since 3.24 .0
306306 */
307307 this . wordWrapWidth ;
308308
@@ -313,23 +313,23 @@ var TextStyle = new Class({
313313 * place to indicate where breaks should happen. Setting this directly will not re-run the
314314 * word wrapping algorithm. To change the callback and re-wrap, use
315315 * {@link Phaser.GameObjects.TextStyle#setWordWrapCallback}.
316- *
316+ *
317317 * @name Phaser.GameObjects.TextStyle#wordWrapCallback
318318 * @type {TextStyleWordWrapCallback | null }
319319 * @default null
320- * @since 3.23 .0
320+ * @since 3.24 .0
321321 */
322322 this . wordWrapCallback ;
323323
324324 /**
325325 * The scope that will be applied when the wordWrapCallback is invoked. Setting this directly will not re-run the
326326 * word wrapping algorithm. To change the callback and re-wrap, use
327327 * {@link Phaser.GameObjects.TextStyle#setWordWrapCallback}.
328- *
328+ *
329329 * @name Phaser.GameObjects.TextStyle#wordWrapCallbackScope
330330 * @type {object | null }
331331 * @default null
332- * @since 3.23 .0
332+ * @since 3.24 .0
333333 */
334334 this . wordWrapCallbackScope ;
335335
@@ -338,11 +338,11 @@ var TextStyle = new Class({
338338 * whitespace is trimmed from lines. If false, spaces and whitespace are left as is. Setting
339339 * this property directly will not re-run the word wrapping algorithm. To change the
340340 * advanced setting and re-wrap, use {@link Phaser.GameObjects.TextStyle#setWordWrapWidth}.
341- *
341+ *
342342 * @name Phaser.GameObjects.TextStyle#wordWrapUseAdvanced
343343 * @type {boolean }
344344 * @default false
345- * @since 3.23 .0
345+ * @since 3.24 .0
346346 */
347347 this . wordWrapUseAdvanced ;
348348
@@ -404,6 +404,7 @@ var TextStyle = new Class({
404404 if ( setDefaults === undefined ) { setDefaults = false ; }
405405
406406 // Avoid type mutation
407+ // eslint-disable-next-line no-prototype-builtins
407408 if ( style && style . hasOwnProperty ( 'fontSize' ) && typeof style . fontSize === 'number' )
408409 {
409410 style . fontSize = style . fontSize . toString ( ) + 'px' ;
@@ -768,7 +769,7 @@ var TextStyle = new Class({
768769 * By default it will be set to match the resolution set in the Game Config,
769770 * but you can override it via this method. It allows for much clearer text on High DPI devices,
770771 * at the cost of memory because it uses larger internal Canvas textures for the Text.
771- *
772+ *
772773 * Please use with caution, as the more high res Text you have, the more memory it uses up.
773774 *
774775 * @method Phaser.GameObjects.TextStyle#setResolution
@@ -820,7 +821,7 @@ var TextStyle = new Class({
820821
821822 /**
822823 * Set the shadow settings.
823- *
824+ *
824825 * Calling this method always re-measures the parent Text object,
825826 * so only call it when you actually change the shadow settings.
826827 *
@@ -1002,9 +1003,9 @@ var TextStyle = new Class({
10021003
10031004 /**
10041005 * Set the alignment of the text in this Text object.
1005- *
1006+ *
10061007 * The argument can be one of: `left`, `right`, `center` or `justify`.
1007- *
1008+ *
10081009 * Alignment only works if the Text object has more than one line of text.
10091010 *
10101011 * @method Phaser.GameObjects.TextStyle#setAlign
0 commit comments