FlexGrid#positionCustom

[readonly] positionCustom Properties: Name Type Description position Phaser.Point - Source code: core/FlexGrid.js (Line 46)

FlexGrid#onResize()

onResize(width, height) Called when the game container changes dimensions. Parameters Name Type Description width number The new width of the game container. height number The new height of the game container. Source code: core/FlexGrid.js (Line 240)

FlexGrid#manager

manager : Phaser.ScaleManager A reference to the ScaleManager. Source code: core/FlexGrid.js (Line 31)

FlexGrid#game

game : Phaser.Game A reference to the currently running Game. Source code: core/FlexGrid.js (Line 26)

FlexGrid#FlexGrid

new FlexGrid(manager, width, height) WARNING: This is an EXPERIMENTAL class. The API will change significantly in the coming versions and is incomplete.Please try to avoid using in production games with a long time to build.This is also why the documentation is incomplete. FlexGrid is a a responsive grid manager that works in conjunction with the ScaleManager RESIZE scaling mode and FlexLayersto provide for game object positioning in a responsive manner. Parameters Name Type Description mana

FlexGrid#fitSprite()

fitSprite(sprite) Fits a sprites width to the bounds. Parameters Name Type Description sprite Phaser.Sprite The Sprite to fit. Source code: core/FlexGrid.js (Line 284)

FlexGrid#debug()

debug() Call in the render function to output the bounds rects. Source code: core/FlexGrid.js (Line 299)

FlexGrid#createFullLayer()

createFullLayer(children) → {Phaser.FlexLayer} A full layer is placed at 0,0 and extends to the full size of the game. Children are scaled according to the fluid ratios. Parameters Name Type Argument Description children array <optional> An array of children that are used to populate the FlexLayer. Returns Phaser.FlexLayer - The Layer object. Source code: core/FlexGrid.js (Line 170)

FlexGrid#createFluidLayer()

createFluidLayer(children) → {Phaser.FlexLayer} A fluid layer is centered on the game and maintains its aspect ratio as it scales up and down. Parameters Name Type Argument Description children array <optional> An array of children that are used to populate the FlexLayer. Returns Phaser.FlexLayer - The Layer object. Source code: core/FlexGrid.js (Line 141)

FlexGrid#createFixedLayer()

createFixedLayer(children) → {Phaser.FlexLayer} A fixed layer is centered on the game and is the size of the required dimensions and is never scaled. Parameters Name Type Argument Description children Array.<PIXI.DisplayObject> <optional> An array of children that are used to populate the FlexLayer. Returns Phaser.FlexLayer - The Layer object. Source code: core/FlexGrid.js (Line 194)