Skip to content

Commit 373ebe7

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents fbb6143 + b9e774c commit 373ebe7

4 files changed

Lines changed: 21 additions & 13 deletions

File tree

src/actions/GridAlign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var tempZone = new Zone({ sys: { queueDepthSort: NOOP, events: { once: NOOP } }
1919
* If both this value and height are set to -1 then this value overrides it and the `height` value is ignored.
2020
* @property {integer} [height=-1] - The height of the grid in items (not pixels). -1 means lay all items out vertically, regardless of quantity.
2121
* If both this value and `width` are set to -1 then `width` overrides it and this value is ignored.
22-
* @property {boolean} [cellWidth=1] - The width of the cell, in pixels, in which the item is positioned.
22+
* @property {integer} [cellWidth=1] - The width of the cell, in pixels, in which the item is positioned.
2323
* @property {integer} [cellHeight=1] - The height of the cell, in pixels, in which the item is positioned.
2424
* @property {integer} [position=0] - The alignment position. One of the Phaser.Display.Align consts such as `TOP_LEFT` or `RIGHT_CENTER`.
2525
* @property {number} [x=0] - Optionally place the top-left of the final grid at this coordinate.

src/cameras/2d/Camera.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ var TransformMatrix = require('../../gameobjects/components/TransformMatrix');
1313
var ValueToColor = require('../../display/color/ValueToColor');
1414
var Vector2 = require('../../math/Vector2');
1515

16+
/**
17+
* @typedef {object} JSONCameraBounds
18+
* @property {number} x - The horizontal position of camera
19+
* @property {number} y - The vertical position of camera
20+
* @property {number} width - The width size of camera
21+
* @property {number} height - The height size of camera
22+
*/
23+
1624
/**
1725
* @typedef {object} JSONCamera
1826
*
@@ -27,11 +35,7 @@ var Vector2 = require('../../math/Vector2');
2735
* @property {number} scrollX - The horizontal scroll of camera
2836
* @property {number} scrollY - The vertical scroll of camera
2937
* @property {string} backgroundColor - The background color of camera
30-
* @property {object} [bounds] - The bounds of camera
31-
* @property {number} [bounds.x] - The horizontal position of bounds of camera
32-
* @property {number} [bounds.y] - The vertical position of bounds of camera
33-
* @property {number} [bounds.width] - The width of the bounds of camera
34-
* @property {number} [bounds.height] - The height of the bounds of camera
38+
* @property {(JSONCameraBounds|undefined)} [bounds] - The bounds of camera
3539
*/
3640

3741
/**

src/gameobjects/text/static/Text.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,11 @@ var Text = new Class({
462462
else
463463
{
464464
spaceLeft -= wordWidthWithSpace;
465-
result += words[j] + ' ';
465+
result += words[j];
466+
if (j < (words.length -1))
467+
{
468+
result += ' ';
469+
}
466470
}
467471
}
468472

src/physics/arcade/Factory.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ var Factory = new Class({
6565
*
6666
* @param {Phaser.Physics.Arcade.Body} object1 - The first object to check for collision.
6767
* @param {Phaser.Physics.Arcade.Body} object2 - The second object to check for collision.
68-
* @param {ArcadePhysicsCallback} collideCallback - The callback to invoke when the two objects collide.
69-
* @param {ArcadePhysicsCallback} processCallback - The callback to invoke when the two objects collide. Must return a boolean.
70-
* @param {*} callbackContext - The scope in which to call the callbacks.
68+
* @param {ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects collide.
69+
* @param {ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects collide. Must return a boolean.
70+
* @param {*} [callbackContext] - The scope in which to call the callbacks.
7171
*
7272
* @return {Phaser.Physics.Arcade.Collider} The Collider that was created.
7373
*/
@@ -84,9 +84,9 @@ var Factory = new Class({
8484
*
8585
* @param {Phaser.Physics.Arcade.Body} object1 - The first object to check for overlap.
8686
* @param {Phaser.Physics.Arcade.Body} object2 - The second object to check for overlap.
87-
* @param {ArcadePhysicsCallback} collideCallback - The callback to invoke when the two objects collide.
88-
* @param {ArcadePhysicsCallback} processCallback - The callback to invoke when the two objects collide. Must return a boolean.
89-
* @param {*} callbackContext - The scope in which to call the callbacks.
87+
* @param {ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects collide.
88+
* @param {ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects collide. Must return a boolean.
89+
* @param {*} [callbackContext] - The scope in which to call the callbacks.
9090
*
9191
* @return {Phaser.Physics.Arcade.Collider} The Collider that was created.
9292
*/

0 commit comments

Comments
 (0)