Skip to content

Commit 5dd5e69

Browse files
committed
Update tabs param type docs
Makes the docs type consistent with the tabs parameter in setStyle method
1 parent 30b1791 commit 5dd5e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gameobjects/Text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* @param {boolean} [style.wordWrap=false] - Indicates if word wrap should be used.
3636
* @param {number} [style.wordWrapWidth=100] - The width in pixels at which text will wrap.
3737
* @param {number} [style.maxLines=0] - The maximum number of lines to be shown for wrapped text.
38-
* @param {number} [style.tabs=0] - The size (in pixels) of the tabs, for when text includes tab characters. 0 disables. Can be an array of varying tab sizes, one per tab stop.
38+
* @param {number|array} [style.tabs=0] - The size (in pixels) of the tabs, for when text includes tab characters. 0 disables. Can be an array of varying tab sizes, one per tab stop.
3939
* @param {object} [style.fontProperties=null] - `ascent`, `descent`, and `fontSize` lengths for a given style. You can get these from {@link Phaser.Text#determineFontProperties}.
4040
* @param {string} [style.testString='|MÂÉQfjq_'] - The text to use to measure the font width and height.
4141
*/

0 commit comments

Comments
 (0)