@@ -12,20 +12,6 @@ var Zone = require('../gameobjects/zone/Zone');
1212
1313var tempZone = new Zone ( { sys : { queueDepthSort : NOOP , events : { once : NOOP } } } , 0 , 0 , 1 , 1 ) ;
1414
15- /**
16- * @typedef {object } GridAlignConfig
17- *
18- * @property {integer } [width=-1] - The width of the grid in items (not pixels). -1 means lay all items out horizontally, regardless of quantity.
19- * If both this value and height are set to -1 then this value overrides it and the `height` value is ignored.
20- * @property {integer } [height=-1] - The height of the grid in items (not pixels). -1 means lay all items out vertically, regardless of quantity.
21- * If both this value and `width` are set to -1 then `width` overrides it and this value is ignored.
22- * @property {integer } [cellWidth=1] - The width of the cell, in pixels, in which the item is positioned.
23- * @property {integer } [cellHeight=1] - The height of the cell, in pixels, in which the item is positioned.
24- * @property {integer } [position=0] - The alignment position. One of the Phaser.Display.Align consts such as `TOP_LEFT` or `RIGHT_CENTER`.
25- * @property {number } [x=0] - Optionally place the top-left of the final grid at this coordinate.
26- * @property {number } [y=0] - Optionally place the top-left of the final grid at this coordinate.
27- */
28-
2915/**
3016 * Takes an array of Game Objects, or any objects that have public `x` and `y` properties,
3117 * and then aligns them based on the grid configuration given to this action.
@@ -36,7 +22,7 @@ var tempZone = new Zone({ sys: { queueDepthSort: NOOP, events: { once: NOOP } }
3622 * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]
3723 *
3824 * @param {(array|Phaser.GameObjects.GameObject[]) } items - The array of items to be updated by this action.
39- * @param {GridAlignConfig } options - The GridAlign Configuration object.
25+ * @param {Phaser.Actions.Types. GridAlignConfig } options - The GridAlign Configuration object.
4026 *
4127 * @return {(array|Phaser.GameObjects.GameObject[]) } The array of objects that were passed to this Action.
4228 */
0 commit comments