Skip to content

Commit a51a817

Browse files
committed
Bitmap Text Types
1 parent dc3b3ec commit a51a817

19 files changed

Lines changed: 36 additions & 32 deletions

src/gameobjects/bitmaptext/GetBitmapTextSize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @param {boolean} [round] - Whether to round the results to the nearest integer.
2323
* @param {object} [out] - Optional object to store the results in, to save constant object creation.
2424
*
25-
* @return {Phaser.GameObjects.BitmapText.Types.BitmapTextSize} The calculated position, width and height of the BitmapText.
25+
* @return {Phaser.Types.GameObjects.BitmapText.BitmapTextSize} The calculated position, width and height of the BitmapText.
2626
*/
2727
var GetBitmapTextSize = function (src, round, out)
2828
{

src/gameobjects/bitmaptext/ParseRetroFont.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var GetValue = require('../../utils/object/GetValue');
1414
* @since 3.0.0
1515
*
1616
* @param {Phaser.Scene} scene - A reference to the Phaser Scene.
17-
* @param {Phaser.GameObjects.BitmapText.Types.RetroFontConfig} config - The font configuration object.
17+
* @param {Phaser.Types.GameObjects.BitmapText.RetroFontConfig} config - The font configuration object.
1818
*
1919
* @return {object} A parsed Bitmap Font data entry for the Bitmap Font cache.
2020
*/

src/gameobjects/bitmaptext/ParseXMLBitmapFont.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function getValue (node, attribute)
3333
* @param {integer} [ySpacing=0] - The y-axis spacing to add to the line height.
3434
* @param {Phaser.Textures.Frame} [frame] - The texture frame to take into account while parsing.
3535
*
36-
* @return {Phaser.GameObjects.BitmapText.Types.BitmapFontData} The parsed Bitmap Font data.
36+
* @return {Phaser.Types.GameObjects.BitmapText.BitmapFontData} The parsed Bitmap Font data.
3737
*/
3838
var ParseXMLBitmapFont = function (xml, xSpacing, ySpacing, frame)
3939
{

src/gameobjects/bitmaptext/dynamic/DynamicBitmapText.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var DynamicBitmapText = new Class({
110110
* A callback that alters how each character of the Bitmap Text is rendered.
111111
*
112112
* @name Phaser.GameObjects.DynamicBitmapText#displayCallback
113-
* @type {Phaser.GameObjects.BitmapText.Types.DisplayCallback}
113+
* @type {Phaser.Types.GameObjects.BitmapText.DisplayCallback}
114114
* @since 3.0.0
115115
*/
116116
this.displayCallback;
@@ -124,7 +124,7 @@ var DynamicBitmapText = new Class({
124124
* should shallow copy it, as it's updated and re-used for every glyph in the text.
125125
*
126126
* @name Phaser.GameObjects.DynamicBitmapText#callbackData
127-
* @type {Phaser.GameObjects.BitmapText.Types.DisplayCallbackConfig}
127+
* @type {Phaser.Types.GameObjects.BitmapText.DisplayCallbackConfig}
128128
* @since 3.11.0
129129
*/
130130
this.callbackData = {
@@ -168,7 +168,7 @@ var DynamicBitmapText = new Class({
168168
/**
169169
* Set a callback that alters how each character of the Bitmap Text is rendered.
170170
*
171-
* The callback receives a {@link Phaser.GameObjects.BitmapText.Types.DisplayCallbackConfig} object that contains information about the character that's
171+
* The callback receives a {@link Phaser.Types.GameObjects.BitmapText.DisplayCallbackConfig} object that contains information about the character that's
172172
* about to be rendered.
173173
*
174174
* It should return an object with `x`, `y`, `scale` and `rotation` properties that will be used instead of the
@@ -177,7 +177,7 @@ var DynamicBitmapText = new Class({
177177
* @method Phaser.GameObjects.DynamicBitmapText#setDisplayCallback
178178
* @since 3.0.0
179179
*
180-
* @param {Phaser.GameObjects.BitmapText.Types.DisplayCallback} callback - The display callback to set.
180+
* @param {Phaser.Types.GameObjects.BitmapText.DisplayCallback} callback - The display callback to set.
181181
*
182182
* @return {Phaser.GameObjects.DynamicBitmapText} This Game Object.
183183
*/

src/gameobjects/bitmaptext/dynamic/DynamicBitmapTextCreator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var GetAdvancedValue = require('../../../utils/object/GetAdvancedValue');
1717
* @method Phaser.GameObjects.GameObjectCreator#dynamicBitmapText
1818
* @since 3.0.0
1919
20-
* @param {Phaser.GameObjects.BitmapText.Types.BitmapTextConfig} config - The configuration object this Game Object will use to create itself.
20+
* @param {Phaser.Types.GameObjects.BitmapText.BitmapTextConfig} config - The configuration object this Game Object will use to create itself.
2121
* @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.
2222
*
2323
* @return {Phaser.GameObjects.DynamicBitmapText} The Game Object that was created.

src/gameobjects/bitmaptext/static/BitmapText.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ var BitmapText = new Class({
105105
* The data of the Bitmap Font used by this Bitmap Text.
106106
*
107107
* @name Phaser.GameObjects.BitmapText#fontData
108-
* @type {Phaser.GameObjects.BitmapText.Types.BitmapFontData}
108+
* @type {Phaser.Types.GameObjects.BitmapText.BitmapFontData}
109109
* @readonly
110110
* @since 3.0.0
111111
*/
@@ -167,7 +167,7 @@ var BitmapText = new Class({
167167
* An object that describes the size of this Bitmap Text.
168168
*
169169
* @name Phaser.GameObjects.BitmapText#_bounds
170-
* @type {Phaser.GameObjects.BitmapText.Types.BitmapTextSize}
170+
* @type {Phaser.Types.GameObjects.BitmapText.BitmapTextSize}
171171
* @private
172172
* @since 3.0.0
173173
*/
@@ -340,7 +340,7 @@ var BitmapText = new Class({
340340
*
341341
* @param {boolean} [round] - Whether to round the results to the nearest integer.
342342
*
343-
* @return {Phaser.GameObjects.BitmapText.Types.BitmapTextSize} An object that describes the size of this Bitmap Text.
343+
* @return {Phaser.Types.GameObjects.BitmapText.BitmapTextSize} An object that describes the size of this Bitmap Text.
344344
*/
345345
getTextBounds: function (round)
346346
{
@@ -546,7 +546,7 @@ var BitmapText = new Class({
546546
* @method Phaser.GameObjects.BitmapText#toJSON
547547
* @since 3.0.0
548548
*
549-
* @return {Phaser.GameObjects.BitmapText.Types.JSONBitmapText} A JSON representation of this Bitmap Text.
549+
* @return {Phaser.Types.GameObjects.BitmapText.JSONBitmapText} A JSON representation of this Bitmap Text.
550550
*/
551551
toJSON: function ()
552552
{
@@ -629,7 +629,7 @@ BitmapText.ParseFromAtlas = ParseFromAtlas;
629629
* @param {integer} [ySpacing=0] - The y-axis spacing to add to the line height.
630630
* @param {Phaser.Textures.Frame} [frame] - The texture frame to take into account while parsing.
631631
*
632-
* @return {Phaser.GameObjects.BitmapText.Types.BitmapFontData} The parsed Bitmap Font data.
632+
* @return {Phaser.Types.GameObjects.BitmapText.BitmapFontData} The parsed Bitmap Font data.
633633
*/
634634
BitmapText.ParseXMLBitmapFont = ParseXMLBitmapFont;
635635

src/gameobjects/bitmaptext/static/BitmapTextCreator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var GetValue = require('../../../utils/object/GetValue');
1818
* @method Phaser.GameObjects.GameObjectCreator#bitmapText
1919
* @since 3.0.0
2020
*
21-
* @param {Phaser.GameObjects.BitmapText.Types.BitmapTextConfig} config - The configuration object this Game Object will use to create itself.
21+
* @param {Phaser.Types.GameObjects.BitmapText.BitmapTextConfig} config - The configuration object this Game Object will use to create itself.
2222
* @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.
2323
*
2424
* @return {Phaser.GameObjects.BitmapText} The Game Object that was created.

src/gameobjects/bitmaptext/typedefs/BitmapFontCharacterData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Describes the character's position, size, offset and kerning.
55
*
6-
* @typedef {object} Phaser.GameObjects.BitmapText.Types.BitmapFontCharacterData
6+
* @typedef {object} Phaser.Types.GameObjects.BitmapText.BitmapFontCharacterData
77
* @since 3.0.0
88
*
99
* @property {number} x - The x position of the character.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
22
* Bitmap Font data that can be used by a BitmapText Game Object.
33
*
4-
* @typedef {object} Phaser.GameObjects.BitmapText.Types.BitmapFontData
4+
* @typedef {object} Phaser.Types.GameObjects.BitmapText.BitmapFontData
55
* @since 3.0.0
66
*
77
* @property {string} font - The name of the font.
88
* @property {number} size - The size of the font.
99
* @property {number} lineHeight - The line height of the font.
1010
* @property {boolean} retroFont - Whether this font is a retro font (monospace).
11-
* @property {Object.<number, Phaser.GameObjects.BitmapText.Types.BitmapFontCharacterData>} chars - The character data of the font, keyed by character code. Each character datum includes a position, size, offset and more.
11+
* @property {Object.<number, Phaser.Types.GameObjects.BitmapText.BitmapFontCharacterData>} chars - The character data of the font, keyed by character code. Each character datum includes a position, size, offset and more.
1212
*/

src/gameobjects/bitmaptext/typedefs/BitmapTextConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @typedef {object} Phaser.GameObjects.BitmapText.Types.BitmapTextConfig
2+
* @typedef {object} Phaser.Types.GameObjects.BitmapText.BitmapTextConfig
33
* @extends Phaser.GameObjects.Types.GameObjectConfig
44
* @since 3.0.0
55
*

0 commit comments

Comments
 (0)