Skip to main content
Version: Phaser v3.88.2

Types.Actions

CallCallback

<static> CallCallback

Type: function

Member of: Phaser.Types.Actions

Source: src/actions/typedefs/CallCallback.js#L1
Since: 3.0.0


GridAlignConfig

<static> GridAlignConfig

nametypeoptionaldefaultdescription
widthnumberYes-1The width of the grid in items (not pixels). -1 means lay all items out horizontally, regardless of quantity. If both this value and height are set to -1 then this value overrides it and the height value is ignored.
heightnumberYes-1The height of the grid in items (not pixels). -1 means lay all items out vertically, regardless of quantity. If both this value and width are set to -1 then width overrides it and this value is ignored.
cellWidthnumberYes1The width of the cell, in pixels, in which the item is positioned.
cellHeightnumberYes1The height of the cell, in pixels, in which the item is positioned.
positionnumberYes0The alignment position. One of the Phaser.Display.Align consts such as TOP_LEFT or RIGHT_CENTER.
xnumberYes0Optionally place the top-left of the final grid at this coordinate.
ynumberYes0Optionally place the top-left of the final grid at this coordinate.

Type: object

Member of: Phaser.Types.Actions

Source: src/actions/typedefs/GridAlignConfig.js#L1
Since: 3.0.0