Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix jsdoc in setWordWrapWidth from Text and TextStyle #6813

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/gameobjects/text/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ var Text = new Class({
* @method Phaser.GameObjects.Text#setWordWrapWidth
* @since 3.0.0
*
* @param {?number} width - The maximum width of a line in pixels. Set to null to remove wrapping.
* @param {number | null} width - The maximum width of a line in pixels. Set to null to remove wrapping.
* @param {boolean} [useAdvancedWrap=false] - Whether or not to use the advanced wrapping
* algorithm. If true, spaces are collapsed and whitespace is trimmed from lines. If false,
* spaces and whitespace are left as is.
Expand Down
2 changes: 1 addition & 1 deletion src/gameobjects/text/TextStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ var TextStyle = new Class({
* @method Phaser.GameObjects.TextStyle#setWordWrapWidth
* @since 3.0.0
*
* @param {number} width - The maximum width of a line in pixels. Set to null to remove wrapping.
* @param {number | null} width - The maximum width of a line in pixels. Set to null to remove wrapping.
* @param {boolean} [useAdvancedWrap=false] - Whether or not to use the advanced wrapping
* algorithm. If true, spaces are collapsed and whitespace is trimmed from lines. If false,
* spaces and whitespace are left as is.
Expand Down