phaser/docs/Phaser.ScaleManager.html

7278 lines
133 KiB
HTML
Raw Normal View History

2013-10-03 00:21:08 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Phaser Class: ScaleManager</title>
2013-10-03 00:21:08 +00:00
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
2014-11-15 20:01:46 +00:00
<link type="text/css" rel="stylesheet" href="styles/default.css">
2013-10-03 00:21:08 +00:00
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
<link type="text/css" rel="stylesheet" href="styles/site.cerulean.css">
</head>
<body>
2014-11-25 00:23:44 +00:00
2013-10-03 00:21:08 +00:00
<div class="container-fluid">
<div class="navbar navbar-fixed-top navbar-inverse">
2014-11-25 00:23:44 +00:00
<div style="position: absolute; width: 143px; height: 31px; right: 10px; top: 10px; z-index: 1050"><a href="http://phaser.io"><img src="img/phaser.png" border="0" /></a></div>
2013-10-03 00:21:08 +00:00
<div class="navbar-inner">
2014-11-25 00:23:44 +00:00
<a class="brand" href="index.html">Phaser API</a>
2013-10-03 00:21:08 +00:00
<ul class="nav">
2014-11-25 00:23:44 +00:00
2013-10-03 00:21:08 +00:00
<li class="dropdown">
<a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b
2013-10-03 00:21:08 +00:00
class="caret"></b></a>
<ul class="dropdown-menu ">
2014-04-10 22:13:43 +00:00
<li class="class-depth-0">
<a href="Phaser.html">Phaser</a>
2013-10-03 00:21:08 +00:00
</li>
2015-10-15 11:06:38 +00:00
<li class="class-depth-0">
<a href="Phaser.KeyCode.html">KeyCode</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-0">
<a href="PIXI.html">PIXI</a>
</li>
2013-10-03 00:21:08 +00:00
</ul>
</li>
<li class="dropdown">
<a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b
class="caret"></b></a>
<ul class="dropdown-menu ">
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Animation.html">Animation</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.AnimationManager.html">AnimationManager</a>
2013-10-03 00:21:08 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.AnimationParser.html">AnimationParser</a>
2013-10-03 00:21:08 +00:00
</li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1">
<a href="Phaser.ArraySet.html">ArraySet</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="Phaser.ArrayUtils.html">ArrayUtils</a>
</li>
2014-10-09 15:12:53 +00:00
<li class="class-depth-1">
<a href="Phaser.AudioSprite.html">AudioSprite</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.BitmapData.html">BitmapData</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.BitmapText.html">BitmapText</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Button.html">Button</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Cache.html">Cache</a>
2013-10-03 00:21:08 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Camera.html">Camera</a>
2013-10-03 00:21:08 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Canvas.html">Canvas</a>
2013-10-03 00:21:08 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Circle.html">Circle</a>
2013-10-03 00:21:08 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Color.html">Color</a>
2013-10-03 00:21:08 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-2">
<a href="Phaser.Component.Angle.html">Angle</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Animation.html">Animation</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.AutoCull.html">AutoCull</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Bounds.html">Bounds</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.BringToTop.html">BringToTop</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Core.html">Core</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Crop.html">Crop</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Delta.html">Delta</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Destroy.html">Destroy</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.FixedToCamera.html">FixedToCamera</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Health.html">Health</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.InCamera.html">InCamera</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.InputEnabled.html">InputEnabled</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.InWorld.html">InWorld</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.LifeSpan.html">LifeSpan</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.LoadTexture.html">LoadTexture</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Overlap.html">Overlap</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.PhysicsBody.html">PhysicsBody</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Reset.html">Reset</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.ScaleMinMax.html">ScaleMinMax</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Smoothed.html">Smoothed</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.Create.html">Create</a>
</li>
<li class="class-depth-1">
<a href="Phaser.Creature.html">Creature</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Device.html">Device</a>
2013-10-03 00:21:08 +00:00
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.DeviceButton.html">DeviceButton</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="Phaser.DOM.html">DOM</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Easing.html">Easing</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-2">
<a href="Phaser.Easing.Back.html">Back</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Bounce.html">Bounce</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Circular.html">Circular</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Cubic.html">Cubic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Elastic.html">Elastic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Exponential.html">Exponential</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Linear.html">Linear</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Quadratic.html">Quadratic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Quartic.html">Quartic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Quintic.html">Quintic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Sinusoidal.html">Sinusoidal</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Ellipse.html">Ellipse</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Events.html">Events</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.Filter.html">Filter</a>
</li>
2014-09-09 14:36:56 +00:00
<li class="class-depth-1">
<a href="Phaser.FlexGrid.html">FlexGrid</a>
</li>
<li class="class-depth-1">
<a href="Phaser.FlexLayer.html">FlexLayer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Frame.html">Frame</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.FrameData.html">FrameData</a>
2013-10-03 00:21:08 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Game.html">Game</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.GameObjectCreator.html">GameObjectCreator</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.GameObjectFactory.html">GameObjectFactory</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2014-02-05 06:29:17 +00:00
<a href="Phaser.Gamepad.html">Gamepad</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Graphics.html">Graphics</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Group.html">Group</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Image.html">Image</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.ImageCollection.html">ImageCollection</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Input.html">Input</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.InputHandler.html">InputHandler</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Key.html">Key</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Keyboard.html">Keyboard</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2014-02-05 06:29:17 +00:00
<a href="Phaser.Line.html">Line</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.LinkedList.html">LinkedList</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Loader.html">Loader</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.LoaderParser.html">LoaderParser</a>
2013-10-03 00:21:08 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Math.html">Math</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.Matrix.html">Matrix</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Mouse.html">Mouse</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.MSPointer.html">MSPointer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Net.html">Net</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Particle.html">Particle</a>
</li>
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Particles.html">Particles</a>
</li>
2014-10-09 15:12:53 +00:00
<li class="class-depth-2">
<a href="Phaser.Particles.Arcade.html">Arcade</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Particles.Arcade.Emitter.html">Emitter</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Physics.html">Physics</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Physics.Arcade.html">Arcade</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Arcade.Body.html">Body</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-3">
2015-08-24 14:43:45 +00:00
<a href="Phaser.Physics.Arcade.TilemapCollision.html">TilemapCollision</a>
2015-03-23 23:46:30 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
<a href="Phaser.Physics.Ninja.html">Ninja</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.AABB.html">AABB</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.Body.html">Body</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.Circle.html">Circle</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.Tile.html">Tile</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
<a href="Phaser.Physics.P2.html">P2</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.Body.html">Body</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.BodyDebug.html">BodyDebug</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.CollisionGroup.html">CollisionGroup</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.ContactMaterial.html">ContactMaterial</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.DistanceConstraint.html">DistanceConstraint</a>
</li>
<li class="class-depth-3">
<a href="Phaser.Physics.P2.FixtureList.html">FixtureList</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.GearConstraint.html">GearConstraint</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.InversePointProxy.html">InversePointProxy</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.LockConstraint.html">LockConstraint</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.Material.html">Material</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.PointProxy.html">PointProxy</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.PrismaticConstraint.html">PrismaticConstraint</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.RevoluteConstraint.html">RevoluteConstraint</a>
</li>
2014-09-09 14:36:56 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.RotationalSpring.html">RotationalSpring</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.Spring.html">Spring</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Plugin.html">Plugin</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.PluginManager.html">PluginManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Point.html">Point</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Pointer.html">Pointer</a>
</li>
2015-10-15 11:06:38 +00:00
<li class="class-depth-1">
<a href="Phaser.PointerMode.html">PointerMode</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Polygon.html">Polygon</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.QuadTree.html">QuadTree</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.RandomDataGenerator.html">RandomDataGenerator</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Rectangle.html">Rectangle</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.RenderTexture.html">RenderTexture</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.RequestAnimationFrame.html">RequestAnimationFrame</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.RetroFont.html">RetroFont</a>
</li>
2014-09-09 14:36:56 +00:00
<li class="class-depth-1">
<a href="Phaser.Rope.html">Rope</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.RoundedRectangle.html">RoundedRectangle</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.ScaleManager.html">ScaleManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Signal.html">Signal</a>
</li>
<li class="class-depth-1">
<a href="Phaser.SignalBinding.html">SignalBinding</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2014-02-05 06:29:17 +00:00
<a href="Phaser.SinglePad.html">SinglePad</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Sound.html">Sound</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.SoundManager.html">SoundManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Sprite.html">Sprite</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.SpriteBatch.html">SpriteBatch</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Stage.html">Stage</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.State.html">State</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.StateManager.html">StateManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Text.html">Text</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.Tile.html">Tile</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.Tilemap.html">Tilemap</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.TilemapLayer.html">TilemapLayer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.TilemapParser.html">TilemapParser</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.Tileset.html">Tileset</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.TileSprite.html">TileSprite</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Time.html">Time</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.Timer.html">Timer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2014-02-05 06:29:17 +00:00
<a href="Phaser.TimerEvent.html">TimerEvent</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Touch.html">Touch</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Tween.html">Tween</a>
</li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1">
<a href="Phaser.TweenData.html">TweenData</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.TweenManager.html">TweenManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Utils.html">Utils</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
<a href="Phaser.Utils.Debug.html">Debug</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="Phaser.Video.html">Video</a>
2013-10-03 00:21:08 +00:00
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="Phaser.World.html">World</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="PIXI.AbstractFilter.html">AbstractFilter</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="PIXI.BaseTexture.html">BaseTexture</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasBuffer.html">CanvasBuffer</a>
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasGraphics.html">CanvasGraphics</a>
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasMaskManager.html">CanvasMaskManager</a>
</li>
2015-08-24 14:43:45 +00:00
<li class="class-depth-1">
<a href="PIXI.CanvasPool.html">CanvasPool</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="PIXI.CanvasRenderer.html">CanvasRenderer</a>
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasTinter.html">CanvasTinter</a>
</li>
<li class="class-depth-1">
<a href="PIXI.ComplexPrimitiveShader.html">ComplexPrimitiveShader</a>
</li>
<li class="class-depth-1">
<a href="PIXI.DisplayObject.html">DisplayObject</a>
</li>
<li class="class-depth-1">
<a href="PIXI.DisplayObjectContainer.html">DisplayObjectContainer</a>
</li>
2016-02-08 17:01:36 +00:00
<li class="class-depth-1">
<a href="PIXI.EarCut.html">EarCut</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="PIXI.Event.html">Event</a>
</li>
<li class="class-depth-1">
<a href="PIXI.EventTarget.html">EventTarget</a>
</li>
<li class="class-depth-1">
<a href="PIXI.FilterTexture.html">FilterTexture</a>
</li>
<li class="class-depth-1">
<a href="PIXI.Graphics.html">Graphics</a>
</li>
<li class="class-depth-1">
<a href="PIXI.GraphicsData.html">GraphicsData</a>
</li>
<li class="class-depth-1">
<a href="PIXI.PIXI.html">PIXI</a>
</li>
<li class="class-depth-1">
<a href="PIXI.PixiFastShader.html">PixiFastShader</a>
</li>
<li class="class-depth-1">
<a href="PIXI.PixiShader.html">PixiShader</a>
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.PolyK.html">PolyK</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.PrimitiveShader.html">PrimitiveShader</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.RenderTexture.html">RenderTexture</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Rope.html">Rope</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Sprite.html">Sprite</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.SpriteBatch.html">SpriteBatch</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Strip.html">Strip</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.StripShader.html">StripShader</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Texture.html">Texture</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.TilingSprite.html">TilingSprite</a>
2014-11-15 20:01:46 +00:00
</li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLBlendModeManager.html">WebGLBlendModeManager</a>
2014-11-25 00:23:44 +00:00
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLFastSpriteBatch.html">WebGLFastSpriteBatch</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLFilterManager.html">WebGLFilterManager</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLRenderer.html">WebGLRenderer</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
</ul>
</li>
<li class="dropdown">
<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b
class="caret"></b></a>
<ul class="dropdown-menu ">
2016-06-03 17:48:34 +00:00
<li class="class-depth-0">
<a href="global.html#ANGLE_DOWN">ANGLE_DOWN</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_LEFT">ANGLE_LEFT</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_NORTH_EAST">ANGLE_NORTH_EAST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_NORTH_WEST">ANGLE_NORTH_WEST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_RIGHT">ANGLE_RIGHT</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_SOUTH_EAST">ANGLE_SOUTH_EAST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_SOUTH_WEST">ANGLE_SOUTH_WEST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_UP">ANGLE_UP</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#AUTO">AUTO</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#BITMAPDATA">BITMAPDATA</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#BITMAPTEXT">BITMAPTEXT</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
<a href="global.html#blendModes">blendModes</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#BUTTON">BUTTON</a>
</li>
<li class="class-depth-0">
<a href="global.html#CANVAS">CANVAS</a>
</li>
<li class="class-depth-0">
<a href="global.html#CANVAS_FILTER">CANVAS_FILTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#CIRCLE">CIRCLE</a>
</li>
<li class="class-depth-0">
<a href="global.html#CREATURE">CREATURE</a>
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#displayList">displayList</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#DOWN">DOWN</a>
</li>
<li class="class-depth-0">
<a href="global.html#ELLIPSE">ELLIPSE</a>
</li>
<li class="class-depth-0">
<a href="global.html#EMITTER">EMITTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#GAMES">GAMES</a>
</li>
<li class="class-depth-0">
<a href="global.html#GRAPHICS">GRAPHICS</a>
</li>
<li class="class-depth-0">
<a href="global.html#GROUP">GROUP</a>
</li>
<li class="class-depth-0">
<a href="global.html#HEADLESS">HEADLESS</a>
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#HORIZONTAL">HORIZONTAL</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#IMAGE">IMAGE</a>
</li>
2016-06-03 17:48:34 +00:00
<li class="class-depth-0">
<a href="global.html#intersectsRectangle">intersectsRectangle</a>
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#LANDSCAPE">LANDSCAPE</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#LEFT">LEFT</a>
</li>
<li class="class-depth-0">
<a href="global.html#LINE">LINE</a>
</li>
<li class="class-depth-0">
<a href="global.html#MATRIX">MATRIX</a>
</li>
<li class="class-depth-0">
<a href="global.html#NONE">NONE</a>
</li>
2016-02-08 17:01:36 +00:00
<li class="class-depth-0">
<a href="global.html#PENDING_ATLAS">PENDING_ATLAS</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#POINT">POINT</a>
</li>
<li class="class-depth-0">
<a href="global.html#POINTER">POINTER</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#POLYGON">POLYGON</a>
2014-11-15 20:01:46 +00:00
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#PORTRAIT">PORTRAIT</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#RECTANGLE">RECTANGLE</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#RENDERTEXTURE">RENDERTEXTURE</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#RETROFONT">RETROFONT</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#RIGHT">RIGHT</a>
</li>
<li class="class-depth-0">
<a href="global.html#ROPE">ROPE</a>
</li>
<li class="class-depth-0">
<a href="global.html#ROUNDEDRECTANGLE">ROUNDEDRECTANGLE</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
<a href="global.html#scaleModes">scaleModes</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#SPRITE">SPRITE</a>
</li>
<li class="class-depth-0">
<a href="global.html#SPRITEBATCH">SPRITEBATCH</a>
</li>
<li class="class-depth-0">
<a href="global.html#TEXT">TEXT</a>
</li>
<li class="class-depth-0">
<a href="global.html#TILEMAP">TILEMAP</a>
</li>
<li class="class-depth-0">
<a href="global.html#TILEMAPLAYER">TILEMAPLAYER</a>
</li>
<li class="class-depth-0">
<a href="global.html#TILESPRITE">TILESPRITE</a>
</li>
<li class="class-depth-0">
<a href="global.html#UP">UP</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#VERSION">VERSION</a>
2014-11-15 20:01:46 +00:00
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#VERTICAL">VERTICAL</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#VIDEO">VIDEO</a>
</li>
<li class="class-depth-0">
<a href="global.html#WEBGL">WEBGL</a>
</li>
<li class="class-depth-0">
<a href="global.html#WEBGL_FILTER">WEBGL_FILTER</a>
2014-11-15 20:01:46 +00:00
</li>
2013-10-03 00:21:08 +00:00
</ul>
</li>
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
<li class="dropdown">
2014-11-25 00:23:44 +00:00
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Core<b class="caret"></b></a>
<ul class="dropdown-menu ">
2014-12-03 10:39:11 +00:00
<li class="class-depth-1"><a href="Phaser.Game.html">Game</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Group.html">Group</a></li>
<li class="class-depth-1"><a href="Phaser.World.html">World</a></li>
<li class="class-depth-1"><a href="Phaser.Loader.html">Loader</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Cache.html">Cache</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Time.html">Time</a></li>
<li class="class-depth-1"><a href="Phaser.Camera.html">Camera</a></li>
<li class="class-depth-1"><a href="Phaser.StateManager.html">State Manager</a></li>
<li class="class-depth-1"><a href="Phaser.TweenManager.html">Tween Manager</a></li>
<li class="class-depth-1"><a href="Phaser.SoundManager.html">Sound Manager</a></li>
2015-01-06 06:57:25 +00:00
<li class="class-depth-1"><a href="Phaser.Input.html">Input Manager</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.ScaleManager.html">Scale Manager</a></li>
</ul>
</li>
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Game Objects<b class="caret"></b></a>
2014-11-15 20:01:46 +00:00
<ul class="dropdown-menu ">
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.GameObjectFactory.html">Factory (game.add)</a></li>
<li class="class-depth-1"><a href="Phaser.GameObjectCreator.html">Creator (game.make)</a></li>
<li class="class-depth-1"><a href="Phaser.Sprite.html">Sprite</a></li>
<li class="class-depth-1"><a href="Phaser.Image.html">Image</a></li>
<li class="class-depth-1"><a href="Phaser.Sound.html">Sound</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Video.html">Video</a></li>
2015-01-06 06:57:25 +00:00
<li class="class-depth-1"><a href="Phaser.Particles.Arcade.Emitter.html">Particle Emitter</a></li>
2014-12-03 10:39:11 +00:00
<li class="class-depth-1"><a href="Phaser.Particle.html">Particle</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Text.html">Text</a></li>
<li class="class-depth-1"><a href="Phaser.Tween.html">Tween</a></li>
<li class="class-depth-1"><a href="Phaser.BitmapText.html">BitmapText</a></li>
<li class="class-depth-1"><a href="Phaser.Tilemap.html">Tilemap</a></li>
<li class="class-depth-1"><a href="Phaser.BitmapData.html">BitmapData</a></li>
<li class="class-depth-1"><a href="Phaser.RetroFont.html">RetroFont</a></li>
<li class="class-depth-1"><a href="Phaser.Button.html">Button</a></li>
<li class="class-depth-1"><a href="Phaser.Animation.html">Animation</a></li>
<li class="class-depth-1"><a href="Phaser.Graphics.html">Graphics</a></li>
<li class="class-depth-1"><a href="Phaser.RenderTexture.html">RenderTexture</a></li>
<li class="class-depth-1"><a href="Phaser.TileSprite.html">TileSprite</a></li>
</ul>
</li>
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Geometry<b class="caret"></b></a>
<ul class="dropdown-menu ">
<li class="class-depth-1"><a href="Phaser.Circle.html">Circle</a></li>
<li class="class-depth-1"><a href="Phaser.Ellipse.html">Ellipse</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Line.html">Line</a></li>
<li class="class-depth-1"><a href="Phaser.Matrix.html">Matrix</a></li>
<li class="class-depth-1"><a href="Phaser.Point.html">Point</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Polygon.html">Polygon</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Rectangle.html">Rectangle</a></li>
<li class="class-depth-1"><a href="Phaser.RoundedRectangle.html">Rounded Rectangle</a></li>
2014-11-15 20:01:46 +00:00
</ul>
</li>
2014-11-25 00:23:44 +00:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Physics<b class="caret"></b></a>
<ul class="dropdown-menu ">
<li class="class-depth-1"><a href="Phaser.Physics.Arcade.html">Arcade Physics</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.Arcade.Body.html">Body</a></li>
<li class="class-depth-1"><a href="Phaser.Physics.P2.html">P2 Physics</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.Body.html">Body</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.Spring.html">Spring</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.CollisionGroup.html">CollisionGroup</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.ContactMaterial.html">ContactMaterial</a></li>
<li class="class-depth-1"><a href="Phaser.Physics.Ninja.html">Ninja Physics</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.Body.html">Body</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Input<b class="caret"></b></a>
<ul class="dropdown-menu ">
<li class="class-depth-1"><a href="Phaser.InputHandler.html">Input Handler</a></li>
<li class="class-depth-1"><a href="Phaser.Pointer.html">Pointer</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.DeviceButton.html">Device Button</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Mouse.html">Mouse</a></li>
<li class="class-depth-1"><a href="Phaser.Keyboard.html">Keyboard</a></li>
<li class="class-depth-1"><a href="Phaser.Key.html">Key</a></li>
<li class="class-depth-1"><a href="Phaser.Gamepad.html">Gamepad</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Community<b class="caret"></b></a>
<ul class="dropdown-menu ">
2015-03-26 02:55:18 +00:00
<li class="class-depth-1"><a href="http://phaser.io">Phaser Web Site</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="https://github.com/photonstorm/phaser">Phaser Github</a></li>
2015-03-26 02:55:18 +00:00
<li class="class-depth-1"><a href="http://phaser.io/examples">Phaser Examples</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="https://github.com/photonstorm/phaser-plugins">Phaser Plugins</a></li>
<li class="class-depth-1"><a href="http://www.html5gamedevs.com/forum/14-phaser/">Forum</a></li>
<li class="class-depth-1"><a href="http://stackoverflow.com/questions/tagged/phaser-framework">Stack Overflow</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="http://phaser.io/learn">Tutorials</a></li>
2016-05-19 11:36:51 +00:00
<li class="class-depth-1"><a href="http://phaser.io/community/newsletter">Newsletter</a></li>
2015-03-26 02:55:18 +00:00
<li class="class-depth-1"><a href="http://phaser.io/community/twitter">Twitter</a></li>
2016-05-19 11:36:51 +00:00
<li class="class-depth-1"><a href="http://phaser.io/news/2015/08/phaser-slack-channel">Slack</a></li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-1"><a href="https://www.codeandweb.com/texturepacker/phaser">Texture Packer</a></li>
2014-11-25 00:23:44 +00:00
</ul>
</li>
2014-11-15 20:01:46 +00:00
</ul>
</div>
</div>
<div class="row-fluid">
2013-10-03 00:21:08 +00:00
<div class="span8">
<div id="main">
2014-11-25 00:23:44 +00:00
<!--<h1 class="page-title">Class: ScaleManager</h1>-->
2013-10-03 00:21:08 +00:00
<section>
<header>
<h2>
<span class="ancestors"><a href="Phaser.html">Phaser</a>.</span>
ScaleManager
2013-10-03 00:21:08 +00:00
</h2>
2014-11-25 00:23:44 +00:00
<div class="class-description"><p>The ScaleManager object handles the the scaling, resizing, and alignment of the
Game size and the game Display canvas.</p>
<p>The Game size is the logical size of the game; the Display canvas has size as an HTML element.</p>
<p>The calculations of these are heavily influenced by the bounding Parent size which is the computed
2015-03-23 23:46:30 +00:00
dimensions of the Display canvas's Parent container/element - the <em>effective CSS rules of the
2014-11-25 00:23:44 +00:00
canvas's Parent element play an important role</em> in the operation of the ScaleManager. </p>
<p>The Display canvas - or Game size, depending <a href="Phaser.ScaleManager.html#scaleMode">scaleMode</a> - is updated to best utilize the Parent size.
2015-01-06 06:57:25 +00:00
When in Fullscreen mode or with <a href="Phaser.ScaleManager.html#parentIsWindow">parentIsWindow</a> the Parent size is that of the visual viewport (see <a href="Phaser.ScaleManager.html#getParentBounds">getParentBounds</a>).</p>
2014-11-25 00:23:44 +00:00
<p>Parent and Display canvas containment guidelines:</p>
<ul>
<li><p>Style the Parent element (of the game canvas) to control the Parent size and
thus the Display canvas's size and layout.</p>
</li>
<li><p>The Parent element's CSS styles should <em>effectively</em> apply maximum (and minimum) bounding behavior.</p>
</li>
<li><p>The Parent element should <em>not</em> apply a padding as this is not accounted for.
2015-01-06 06:57:25 +00:00
If a padding is required apply it to the Parent's parent or apply a margin to the Parent.
If you need to add a border, margin or any other CSS around your game container, then use a parent element and
apply the CSS to this instead, otherwise you'll be constantly resizing the shape of the game container.</p>
2014-11-25 00:23:44 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li><p>The Display canvas layout CSS styles (i.e. margins, size) should not be altered/specified as
2014-11-25 00:23:44 +00:00
they may be updated by the ScaleManager.</p>
</li>
2014-12-03 10:39:11 +00:00
</ul></div>
2013-10-03 00:21:08 +00:00
</header>
<article>
<div class="container-overview">
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="ScaleManager"><span class="type-signature"></span>new ScaleManager<span class="signature">(game, width, height)</span><span class="type-signature"></span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>Create a new ScaleManager object - this is done automatically by <a href="Phaser.Game.html">Phaser.Game</a></p>
2014-11-15 20:01:46 +00:00
<p>The <code>width</code> and <code>height</code> constructor parameters can either be a number which represents pixels or a string that represents a percentage: e.g. <code>800</code> (for 800 pixels) or <code>&quot;80%&quot;</code> for 80%.</p>
2013-10-03 00:21:08 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>game</code></td>
<td class="type">
<span class="param-type"><a href="Phaser.Game.html">Phaser.Game</a></span>
</td>
<td class="description last"><p>A reference to the currently running game.</p></td>
</tr>
<tr>
<td class="name"><code>width</code></td>
<td class="type">
<span class="param-type">number</span>
2014-09-09 14:36:56 +00:00
|
<span class="param-type">string</span>
2013-10-03 00:21:08 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The width of the game. See above.</p></td>
2013-10-03 00:21:08 +00:00
</tr>
<tr>
<td class="name"><code>height</code></td>
<td class="type">
<span class="param-type">number</span>
2014-09-09 14:36:56 +00:00
|
<span class="param-type">string</span>
2013-10-03 00:21:08 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The height of the game. See above.</p></td>
2013-10-03 00:21:08 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-46">line 46</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
</dd>
</div>
<h3 class="subsection-title">Members</h3>
<dl>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-08-24 14:43:45 +00:00
id=".EXACT_FIT"><span class="type-signature">&lt;static, constant> </span>EXACT_FIT<span class="type-signature"> :integer</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>A scale mode that stretches content to fill all available space - see <a href="Phaser.ScaleManager.html#scaleMode">scaleMode</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-597">line 597</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-08-24 14:43:45 +00:00
id=".NO_SCALE"><span class="type-signature">&lt;static, constant> </span>NO_SCALE<span class="type-signature"> :integer</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>A scale mode that prevents any scaling - see <a href="Phaser.ScaleManager.html#scaleMode">scaleMode</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-605">line 605</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-08-24 14:43:45 +00:00
id=".RESIZE"><span class="type-signature">&lt;static, constant> </span>RESIZE<span class="type-signature"> :integer</span></h4>
2014-09-09 14:36:56 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>A scale mode that causes the Game size to change - see <a href="Phaser.ScaleManager.html#scaleMode">scaleMode</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-09-09 14:36:56 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-621">line 621</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-08-24 14:43:45 +00:00
id=".SHOW_ALL"><span class="type-signature">&lt;static, constant> </span>SHOW_ALL<span class="type-signature"> :integer</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>A scale mode that shows the entire game while maintaining proportions - see <a href="Phaser.ScaleManager.html#scaleMode">scaleMode</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-613">line 613</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-08-24 14:43:45 +00:00
id=".USER_SCALE"><span class="type-signature">&lt;static, constant> </span>USER_SCALE<span class="type-signature"> :integer</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>A scale mode that allows a custom scale factor - see <a href="Phaser.ScaleManager.html#scaleMode">scaleMode</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-629">line 629</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-05-20 09:12:48 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="aspectRatio"><span class="type-signature">&lt;readonly> </span>aspectRatio<span class="type-signature"> :number</span></h4>
2014-05-20 09:12:48 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>The aspect ratio of the scaled Display canvas.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-05-20 09:12:48 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-337">line 337</a>
2014-12-03 10:39:11 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="boundingParent"><span class="type-signature">&lt;readonly> </span>boundingParent<span class="type-signature"> :DOMElement</span></h4>
</dt>
<dd>
<div class="description">
<p>The DOM element that is considered the Parent bounding element, if any.</p>
2015-01-06 06:57:25 +00:00
<p>This <code>null</code> if <a href="Phaser.ScaleManager.html#parentIsWindow">parentIsWindow</a> is true or if fullscreen mode is entered and <a href="Phaser.ScaleManager.html#fullScreenTarget">fullScreenTarget</a> is specified.
2014-12-03 10:39:11 +00:00
It will also be null if there is no game canvas or if the game canvas has no parent.</p>
</div>
<dl class="details">
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2073">line 2073</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="bounds"><span class="type-signature">&lt;readonly> </span>bounds<span class="type-signature"> :<a href="Phaser.Rectangle.html">Phaser.Rectangle</a></span></h4>
</dt>
<dd>
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>The bounds of the scaled game. The x/y will match the offset of the canvas element and the width/height the scaled width and height.</p>
</div>
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-330">line 330</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="compatibility"><span class="type-signature">&lt;internal> </span>compatibility<span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>Various compatibility settings.
2015-01-06 06:57:25 +00:00
A value of &quot;(auto)&quot; indicates the setting is configured based on device and runtime information.</p>
2015-03-23 23:46:30 +00:00
<p>A <a href="Phaser.ScaleManager.html#refresh">refresh</a> may need to be performed after making changes.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
<h5 class="subsection-title">Properties:</h5>
<dl>
<table class="props table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-11-15 20:01:46 +00:00
<th>Argument</th>
2014-11-15 20:01:46 +00:00
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2016-02-08 17:01:36 +00:00
<td class="name"><code>supportsFullScreen</code></td>
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">boolean</span>
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
2014-11-15 20:01:46 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="default">
(auto)
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>True only if fullscreen support will be used. (Changing to fullscreen still might not work.)</p></td>
</tr>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<tr>
<td class="name"><code>orientationFallback</code></td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type">boolean</span>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
(auto)
</td>
2013-10-03 00:21:08 +00:00
2015-08-24 14:43:45 +00:00
<td class="description last"><p>See <a href="Phaser.DOM.html#.getScreenOrientation">Phaser.DOM.getScreenOrientation</a>.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
2013-10-03 00:21:08 +00:00
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>noMargins</code></td>
2013-10-03 00:21:08 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">boolean</span>
2013-10-03 00:21:08 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
false
</td>
2014-11-25 00:23:44 +00:00
<td class="description last"><p>If true then the Display canvas's margins will not be updated anymore: existing margins must be manually cleared. Disabling margins prevents automatic canvas alignment/centering, possibly in fullscreen.</p></td>
2013-10-03 00:21:08 +00:00
</tr>
2014-11-15 20:01:46 +00:00
<tr>
<td class="name"><code>scrollTo</code></td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type"><a href="Phaser.Point.html">Phaser.Point</a></span>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
&lt;nullable><br>
2014-11-15 20:01:46 +00:00
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
(auto)
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>If specified the window will be scrolled to this position on every refresh.</p></td>
</tr>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<tr>
<td class="name"><code>forceMinimumDocumentHeight</code></td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type">boolean</span>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
2014-12-03 10:39:11 +00:00
false
2014-11-15 20:01:46 +00:00
</td>
2013-10-03 00:21:08 +00:00
2015-03-23 23:46:30 +00:00
<td class="description last"><p>If enabled the document elements minimum height is explicitly set on updates.
2015-01-06 06:57:25 +00:00
The height set varies by device and may either be the height of the window or the viewport.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
2013-10-03 00:21:08 +00:00
<tr>
2014-11-25 00:23:44 +00:00
<td class="name"><code>canExpandParent</code></td>
2013-10-03 00:21:08 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">boolean</span>
2013-10-03 00:21:08 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
true
</td>
2014-11-25 00:23:44 +00:00
<td class="description last"><p>If enabled then SHOW_ALL and USER_SCALE modes can try and expand the parent element. It may be necessary for the parent element to impose CSS width/height restrictions.</p></td>
2013-10-03 00:21:08 +00:00
</tr>
2015-01-06 06:57:25 +00:00
<tr>
<td class="name"><code>clickTrampoline</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
(auto)
</td>
<td class="description last"><p>On certain browsers (eg. IE) FullScreen events need to be triggered via 'click' events.
A value of 'when-not-mouse' uses a click trampoline when a pointer that is not the primary mouse is used.
Any other string value (including the empty string) prevents using click trampolines.
For more details on click trampolines see <a href="Phaser.Pointer.html#addClickTrampoline">Phaser.Pointer#addClickTrampoline</a>.</p></td>
</tr>
2013-10-03 00:21:08 +00:00
</tbody>
</table>
</dl>
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-398">line 398</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="currentScaleMode"><span class="type-signature">&lt;internal, readonly> </span>currentScaleMode<span class="type-signature"> :number</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>Returns the current scale mode - for normal or fullscreen operation.</p>
2014-11-25 00:23:44 +00:00
<p>See <a href="Phaser.ScaleManager.html#scaleMode">scaleMode</a> for the different modes allowed.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2203">line 2203</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-11-25 00:23:44 +00:00
id="dom"><span class="type-signature">&lt;internal, readonly> </span>dom<span class="type-signature"> :<a href="Phaser.DOM.html">Phaser.DOM</a></span></h4>
</dt>
<dd>
<div class="description">
<p>Provides access to some cross-device DOM functions.</p>
</div>
<dl class="details">
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-62">line 62</a>
2014-11-25 00:23:44 +00:00
</dt>
</dl>
</dd>
<dt>
2015-07-22 14:31:30 +00:00
<h4 class="name "
id="enterIncorrectOrientation"><span class="type-signature"></span>enterIncorrectOrientation<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>This signal is dispatched when the browser enters an incorrect orientation, as defined by <a href="Phaser.ScaleManager.html#forceOrientation">forceOrientation</a>.</p>
<p>This is signaled from <code>preUpdate</code> (or <code>pauseUpdate</code>) <em>even when</em> the game is paused.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-211">line 211</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-12-03 10:39:11 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="forceLandscape"><span class="type-signature">&lt;internal, readonly> </span>forceLandscape<span class="type-signature"> :boolean</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>If true, the game should only run in a landscape orientation.
Change with <a href="Phaser.ScaleManager.html#forceOrientation">forceOrientation</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-140">line 140</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt>
2015-07-22 14:31:30 +00:00
<h4 class="name "
id="forcePortrait"><span class="type-signature">&lt;internal, readonly> </span>forcePortrait<span class="type-signature"> :boolean</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>If true, the game should only run in a portrait
Change with <a href="Phaser.ScaleManager.html#forceOrientation">forceOrientation</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
2014-11-25 00:23:44 +00:00
<dd class="tag-deprecated"><ul>
2015-07-22 14:31:30 +00:00
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
2014-11-25 00:23:44 +00:00
</ul></dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-150">line 150</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2015-07-22 14:31:30 +00:00
<h4 class="name "
id="fullScreenScaleMode"><span class="type-signature"></span>fullScreenScaleMode<span class="type-signature"> :integer</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The scaling method used by the ScaleManager when in fullscreen.</p>
<p>See <a href="Phaser.ScaleManager.html#scaleMode">scaleMode</a> for the different modes allowed.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2162">line 2162</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="fullScreenTarget"><span class="type-signature"></span>fullScreenTarget<span class="type-signature"> :DOMElement</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>If specified, this is the DOM element on which the Fullscreen API enter request will be invoked.
The target element must have the correct CSS styling and contain the Display canvas.</p>
<p>The elements style will be modified (ie. the width and height might be set to 100%)
but it will not be added to, removed from, or repositioned within the DOM.
An attempt is made to restore relevant style changes when fullscreen mode is left.</p>
<p>For pre-2.2.0 behavior set <code>game.scale.fullScreenTarget = game.canvas</code>.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-236">line 236</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="game"><span class="type-signature">&lt;internal, readonly> </span>game<span class="type-signature"> :<a href="Phaser.Game.html">Phaser.Game</a></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>A reference to the currently running game.</p>
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-54">line 54</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2015-07-22 14:31:30 +00:00
<h4 class="name "
id="grid"><span class="type-signature"></span>grid<span class="type-signature"> :<a href="Phaser.FlexGrid.html">Phaser.FlexGrid</a></span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p><em>EXPERIMENTAL:</em> A responsive grid on which you can align game objects.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-69">line 69</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="height"><span class="type-signature">&lt;readonly> </span>height<span class="type-signature"> :number</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Target height (in pixels) of the Display canvas.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-83">line 83</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-12-03 10:39:11 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="incorrectOrientation"><span class="type-signature">&lt;internal, readonly> </span>incorrectOrientation<span class="type-signature"> :boolean</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>True if <a href="Phaser.ScaleManager.html#forceLandscape">forceLandscape</a> or <a href="Phaser.ScaleManager.html#forcePortrait">forcePortrait</a> are set and do not agree with the browser orientation.</p>
<p>This value is not updated immediately.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2013-10-03 00:21:08 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-161">line 161</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="isFullScreen"><span class="type-signature">&lt;readonly> </span>isFullScreen<span class="type-signature"> :boolean</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Returns true if the browser is in fullscreen mode, otherwise false.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2294">line 2294</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="isGameLandscape"><span class="type-signature">&lt;readonly> </span>isGameLandscape<span class="type-signature"> :boolean</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Returns true if the game dimensions are landscape (width &gt; height).
This is especially useful to check when using the RESIZE scale mode
but wanting to maintain game orientation on desktop browsers,
where typically the screen orientation will always be landscape regardless of the browser viewport.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2359">line 2359</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="isGamePortrait"><span class="type-signature">&lt;readonly> </span>isGamePortrait<span class="type-signature"> :boolean</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Returns true if the game dimensions are portrait (height &gt; width).
This is especially useful to check when using the RESIZE scale mode
but wanting to maintain game orientation on desktop browsers,
where typically the screen orientation will always be landscape regardless of the browser viewport.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2341">line 2341</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="isLandscape"><span class="type-signature">&lt;readonly> </span>isLandscape<span class="type-signature"> :boolean</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Returns true if the screen orientation is in landscape mode.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2326">line 2326</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="isPortrait"><span class="type-signature">&lt;readonly> </span>isPortrait<span class="type-signature"> :boolean</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Returns true if the screen orientation is in portrait mode.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2311">line 2311</a>
2015-03-23 23:46:30 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="leaveIncorrectOrientation"><span class="type-signature"></span>leaveIncorrectOrientation<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
2015-03-23 23:46:30 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>This signal is dispatched when the browser leaves an incorrect orientation, as defined by <a href="Phaser.ScaleManager.html#forceOrientation">forceOrientation</a>.</p>
<p>This is signaled from <code>preUpdate</code> (or <code>pauseUpdate</code>) <em>even when</em> the game is paused.</p>
2015-03-23 23:46:30 +00:00
</div>
<dl class="details">
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-221">line 221</a>
2015-03-23 23:46:30 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="margin"><span class="type-signature">&lt;internal, readonly> </span>margin<span class="type-signature"> :Bounds-like</span></h4>
2015-03-23 23:46:30 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The Display canvas is aligned by adjusting the margins; the last margins are stored here.</p>
2015-03-23 23:46:30 +00:00
</div>
2015-07-22 14:31:30 +00:00
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Bounds-like</span>
</li>
</ul>
2015-03-23 23:46:30 +00:00
<dl class="details">
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2015-03-23 23:46:30 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-323">line 323</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="maxHeight"><span class="type-signature">&lt;internal, readonly> </span>maxHeight<span class="type-signature"> :number</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Maximum height the canvas should be scaled to (in pixels).
If null it will scale to whatever height the browser can handle.
Change with <a href="Phaser.ScaleManager.html#setMinMax">setMinMax</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-121">line 121</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="maxWidth"><span class="type-signature">&lt;internal, readonly> </span>maxWidth<span class="type-signature"> :number</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Maximum width the canvas should be scaled to (in pixels).
If null it will scale to whatever width the browser can handle.
Change with <a href="Phaser.ScaleManager.html#setMinMax">setMinMax</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-102">line 102</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2015-07-22 14:31:30 +00:00
<h4 class="name "
id="minHeight"><span class="type-signature">&lt;internal, readonly> </span>minHeight<span class="type-signature"> :number</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Minimum height the canvas should be scaled to (in pixels).
Change with <a href="Phaser.ScaleManager.html#setMinMax">setMinMax</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
2014-11-25 00:23:44 +00:00
<dd class="tag-deprecated"><ul>
2015-07-22 14:31:30 +00:00
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
2014-11-25 00:23:44 +00:00
</ul></dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-111">line 111</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt>
2014-12-03 10:39:11 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="minWidth"><span class="type-signature">&lt;internal, readonly> </span>minWidth<span class="type-signature"> :number</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Minimum width the canvas should be scaled to (in pixels).
Change with <a href="Phaser.ScaleManager.html#setMinMax">setMinMax</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-92">line 92</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="offset"><span class="type-signature">&lt;internal, readonly> </span>offset<span class="type-signature"> :<a href="Phaser.Point.html">Phaser.Point</a></span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The offset coordinates of the Display canvas from the top-left of the browser window.
The is used internally by Phaser.Pointer (for Input) and possibly other types.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2014-11-25 00:23:44 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-130">line 130</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="onFullScreenChange"><span class="type-signature"></span>onFullScreenChange<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>This signal is dispatched when the browser enters or leaves fullscreen mode, if supported.</p>
<p>The signal is supplied with a single argument: <code>scale</code> (the ScaleManager). Use <code>scale.isFullScreen</code> to determine
if currently running in Fullscreen mode.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-278">line 278</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2015-07-22 14:31:30 +00:00
<h4 class="name "
id="onFullScreenError"><span class="type-signature"></span>onFullScreenError<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>This signal is dispatched when the browser fails to enter fullscreen mode;
or if the device does not support fullscreen mode and <code>startFullScreen</code> is invoked.</p>
<p>The signal is supplied with a single argument: <code>scale</code> (the ScaleManager).</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-289">line 289</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="onFullScreenInit"><span class="type-signature"></span>onFullScreenInit<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>This signal is dispatched when fullscreen mode is ready to be initialized but
before the fullscreen request.</p>
<p>The signal is passed two arguments: <code>scale</code> (the ScaleManager), and an object in the form <code>{targetElement: DOMElement}</code>.</p>
<p>The <code>targetElement</code> is the <a href="Phaser.ScaleManager.html#fullScreenTarget">fullScreenTarget</a> element,
if such is assigned, or a new element created by <a href="Phaser.ScaleManager.html#createFullScreenTarget">createFullScreenTarget</a>.</p>
<p>Custom CSS styling or resets can be applied to <code>targetElement</code> as required.</p>
<p>If <code>targetElement</code> is <em>not</em> the same element as <a href="Phaser.ScaleManager.html#fullScreenTarget">fullScreenTarget</a>:</p>
<ul>
<li>After initialization the Display canvas is moved onto the <code>targetElement</code> for
the duration of the fullscreen mode, and restored to it's original DOM location when fullscreen is exited.</li>
<li>The <code>targetElement</code> is moved/re-parented within the DOM and may have its CSS styles updated.</li>
</ul>
<p>The behavior of a pre-assigned target element is covered in <a href="Phaser.ScaleManager.html#fullScreenTarget">fullScreenTarget</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-267">line 267</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="onOrientationChange"><span class="type-signature"></span>onOrientationChange<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>This signal is dispatched when the orientation changes <em>or</em> the validity of the current orientation changes.</p>
<p>The signal is supplied with the following arguments:</p>
<ul>
<li><code>scale</code> - the ScaleManager object</li>
<li><code>prevOrientation</code>, a string - The previous orientation as per <a href="Phaser.ScaleManager.html#screenOrientation">screenOrientation</a>.</li>
<li><code>wasIncorrect</code>, a boolean - True if the previous orientation was last determined to be incorrect.</li>
</ul>
<p>Access the current orientation and validity with <code>scale.screenOrientation</code> and <code>scale.incorrectOrientation</code>.
Thus the following tests can be done:</p>
<pre class="prettyprint source"><code>// The orientation itself changed:
scale.screenOrientation !== prevOrientation
// The orientation just became incorrect:
scale.incorrectOrientation && !wasIncorrect</code></pre><p>It is possible that this signal is triggered after <a href="Phaser.ScaleManager.html#forceOrientation">forceOrientation</a> so the orientation
correctness changes even if the orientation itself does not change.</p>
<p>This is signaled from <code>preUpdate</code> (or <code>pauseUpdate</code>) <em>even when</em> the game is paused.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-201">line 201</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="onSizeChange"><span class="type-signature"></span>onSizeChange<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>This signal is dispatched when the size of the Display canvas changes <em>or</em> the size of the Game changes.
When invoked this is done <em>after</em> the Canvas size/position have been updated.</p>
<p>This signal is <em>only</em> called when a change occurs and a reflow may be required.
For example, if the canvas does not change sizes because of CSS settings (such as min-width)
then this signal will <em>not</em> be triggered.</p>
<p>Use this to handle responsive game layout options.</p>
<p>This is signaled from <code>preUpdate</code> (or <code>pauseUpdate</code>) <em>even when</em> the game is paused.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-475">line 475</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
2015-07-22 14:31:30 +00:00
<dt class="tag-todo">To Do:</dt>
<dd class="tag-todo">
<ul>
<li>Formalize the arguments, if any, supplied to this signal.</li>
</ul>
</dd>
2013-10-03 00:21:08 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="pageAlignHorizontally"><span class="type-signature"></span>pageAlignHorizontally<span class="type-signature"> :boolean</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>When enabled the Display canvas will be horizontally-aligned <em>in the Parent container</em> (or <a href="Phaser.ScaleManager.html#parentIsWindow">window</a>).</p>
<p>To align horizontally across the page the Display canvas should be added directly to page;
or the parent container should itself be horizontally aligned.</p>
2015-08-24 14:43:45 +00:00
<p>Horizontal alignment is not applicable with the <a href="Phaser.ScaleManager.html#.RESIZE">RESIZE</a> scaling mode.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-11-28 15:57:09 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dt class="tag-default">Default Value:</dt>
<dd class="tag-default"><ul class="dummy"><li>false</li></ul></dd>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2223">line 2223</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="pageAlignVertically"><span class="type-signature"></span>pageAlignVertically<span class="type-signature"> :boolean</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>When enabled the Display canvas will be vertically-aligned <em>in the Parent container</em> (or <a href="Phaser.ScaleManager.html#parentIsWindow">window</a>).</p>
<p>To align vertically the Parent element should have a <em>non-collapsible</em> height, such that it will maintain
a height <em>larger</em> than the height of the contained Game canvas - the game canvas will then be scaled vertically
<em>within</em> the remaining available height dictated by the Parent element.</p>
<p>One way to prevent the parent from collapsing is to add an absolute &quot;min-height&quot; CSS property to the parent element.
If specifying a relative &quot;min-height/height&quot; or adjusting margins, the Parent height must still be non-collapsible (see note).</p>
<p><em>Note</em>: In version 2.2 the minimum document height is <em>not</em> automatically set to the viewport/window height.
To automatically update the minimum document height set <a href="Phaser.ScaleManager.html#compatibility">compatibility.forceMinimumDocumentHeight</a> to true.</p>
2015-08-24 14:43:45 +00:00
<p>Vertical alignment is not applicable with the <a href="Phaser.ScaleManager.html#.RESIZE">RESIZE</a> scaling mode.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-11-28 15:57:09 +00:00
2015-07-22 14:31:30 +00:00
<dt class="tag-default">Default Value:</dt>
<dd class="tag-default"><ul class="dummy"><li>false</li></ul></dd>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2255">line 2255</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="parentIsWindow"><span class="type-signature"></span>parentIsWindow<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>If the parent container of the Game canvas is the browser window itself (i.e. document.body),
rather than another div, this should set to <code>true</code>.</p>
<p>The <a href="Phaser.ScaleManager.html#parentNode">parentNode</a> property is generally ignored while this is in effect.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-430">line 430</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="parentNode"><span class="type-signature"></span>parentNode<span class="type-signature"> :DOMElement</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The <em>original</em> DOM element for the parent of the Display canvas.
This may be different in fullscreen - see <a href="Phaser.ScaleManager.html#createFullScreenTarget">createFullScreenTarget</a>.</p>
<p>This should only be changed after moving the Game canvas to a different DOM parent.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-440">line 440</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
2014-11-25 00:23:44 +00:00
<dt>
2014-11-25 00:23:44 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="parentScaleFactor"><span class="type-signature">&lt;readonly> </span>parentScaleFactor<span class="type-signature"> :<a href="Phaser.Point.html">Phaser.Point</a></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The scale of the game in relation to its parent container.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-447">line 447</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
</dd>
2014-11-15 20:01:46 +00:00
<dt>
2014-11-25 00:23:44 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="scaleFactor"><span class="type-signature">&lt;readonly> </span>scaleFactor<span class="type-signature"> :<a href="Phaser.Point.html">Phaser.Point</a></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The <em>current</em> scale factor based on the game dimensions vs. the scaled dimensions.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-25 00:23:44 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-306">line 306</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-11-28 15:57:09 +00:00
</dl>
</dd>
<dt>
2014-11-25 00:23:44 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="scaleFactorInversed"><span class="type-signature">&lt;internal, readonly> </span>scaleFactorInversed<span class="type-signature"> :<a href="Phaser.Point.html">Phaser.Point</a></span></h4>
2013-11-28 15:57:09 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The <em>current</em> inversed scale factor. The displayed dimensions divided by the game dimensions.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-11-28 15:57:09 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
<dt class="important tag-deprecated">Internal:</dt>
2014-11-15 20:01:46 +00:00
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-314">line 314</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<dt>
2014-11-25 00:23:44 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="scaleMode"><span class="type-signature"></span>scaleMode<span class="type-signature"> :integer</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The scaling method used by the ScaleManager when not in fullscreen.</p>
<dl>
2015-08-24 14:43:45 +00:00
<dt><a href="Phaser.ScaleManager.html#.NO_SCALE">Phaser.ScaleManager.NO_SCALE</a></dt>
2015-07-22 14:31:30 +00:00
<dd>
The Game display area will not be scaled - even if it is too large for the canvas/screen.
This mode <em>ignores</em> any applied scaling factor and displays the canvas at the Game size.
</dd>
2015-08-24 14:43:45 +00:00
<dt><a href="Phaser.ScaleManager.html#.EXACT_FIT">Phaser.ScaleManager.EXACT_FIT</a></dt>
2015-07-22 14:31:30 +00:00
<dd>
The Game display area will be <em>stretched</em> to fill the entire size of the canvas's parent element and/or screen.
Proportions are not maintained.
2015-07-22 14:31:30 +00:00
</dd>
2015-08-24 14:43:45 +00:00
<dt><a href="Phaser.ScaleManager.html#.SHOW_ALL">Phaser.ScaleManager.SHOW_ALL</a></dt>
2015-07-22 14:31:30 +00:00
<dd>
Show the entire game display area while <em>maintaining</em> the original aspect ratio.
</dd>
2015-08-24 14:43:45 +00:00
<dt><a href="Phaser.ScaleManager.html#.RESIZE">Phaser.ScaleManager.RESIZE</a></dt>
2015-07-22 14:31:30 +00:00
<dd>
The dimensions of the game display area are changed to match the size of the parent container.
That is, this mode <em>changes the Game size</em> to match the display size.
<p>
Any manually set Game size (see <a href="Phaser.ScaleManager.html#setGameSize">setGameSize</a>) is ignored while in effect.
</dd>
2015-08-24 14:43:45 +00:00
<dt><a href="Phaser.ScaleManager.html#.USER_SCALE">Phaser.ScaleManager.USER_SCALE</a></dt>
2015-07-22 14:31:30 +00:00
<dd>
The game Display is scaled according to the user-specified scale set by <a href="Phaser.ScaleManager.html#setUserScale">setUserScale</a>.
<p>
This scale can be adjusted in the <a href="Phaser.ScaleManager.html#setResizeCallback">resize callback</a>
for flexible custom-sizing needs.
</dd>
</dl>
2014-11-15 20:01:46 +00:00
</div>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2098">line 2098</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-11-28 15:57:09 +00:00
</dl>
</dd>
2014-09-09 14:36:56 +00:00
2013-11-28 15:57:09 +00:00
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="screenOrientation"><span class="type-signature">&lt;readonly> </span>screenOrientation<span class="type-signature"> :string</span></h4>
2013-11-28 15:57:09 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The <em>last known</em> orientation of the screen, as defined in the Window Screen Web API.
2015-08-24 14:43:45 +00:00
See <a href="Phaser.DOM.html#.getScreenOrientation">Phaser.DOM.getScreenOrientation</a> for possible values.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-25 00:23:44 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-299">line 299</a>
2014-11-25 00:23:44 +00:00
</dt>
</dl>
</dd>
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
<dt>
2015-07-22 14:31:30 +00:00
<h4 class="name "
id="sourceAspectRatio"><span class="type-signature">&lt;readonly> </span>sourceAspectRatio<span class="type-signature"> :number</span></h4>
2014-11-25 00:23:44 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The aspect ratio of the original game dimensions.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-344">line 344</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
</dd>
<dt>
2015-07-22 14:31:30 +00:00
<h4 class="name "
id="trackParentInterval"><span class="type-signature">&lt;internal> </span>trackParentInterval<span class="type-signature"> :integer</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The maximum time (in ms) between dimension update checks for the Canvas's parent element (or window).
Update checks normally happen quicker in response to other events.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-03 00:21:08 +00:00
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
2014-11-15 20:01:46 +00:00
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<dt class="tag-default">Default Value:</dt>
<dd class="tag-default"><ul class="dummy"><li>2000</li></ul></dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-458">line 458</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="Phaser.ScaleManager.html#refresh">refresh</a></li>
</ul>
</dd>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
</dl>
2014-09-09 14:36:56 +00:00
</dd>
<dt>
2015-07-22 14:31:30 +00:00
<h4 class="name "
id="width"><span class="type-signature">&lt;readonly> </span>width<span class="type-signature"> :number</span></h4>
2014-09-09 14:36:56 +00:00
</dt>
<dd>
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Target width (in pixels) of the Display canvas.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-09-09 14:36:56 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-76">line 76</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
</dl>
</dd>
<dt>
2015-07-22 14:31:30 +00:00
<h4 class="name "
id="windowConstraints"><span class="type-signature"></span>windowConstraints<span class="type-signature"></span></h4>
2014-09-09 14:36:56 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>The edges on which to constrain the game Display/canvas in <em>addition</em> to the restrictions of the parent container.</p>
<p>The properties are strings and can be '', 'visual', 'layout', or 'layout-soft'.</p>
<ul>
<li>If 'visual', the edge will be constrained to the Window / displayed screen area</li>
<li>If 'layout', the edge will be constrained to the CSS Layout bounds</li>
<li>An invalid value is treated as 'visual'</li>
</ul>
2014-11-15 20:01:46 +00:00
</div>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<h5 class="subsection-title">Properties:</h5>
<dl>
<table class="props table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>bottom</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>right</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
</dl>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<dt class="tag-default">Default Value:</dt>
<dd class="tag-default"><ul class="dummy"><li>{"right":"layout","bottom":""}</li></ul></dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-367">line 367</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
</dl>
2015-07-22 14:31:30 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<h3 class="subsection-title">Methods</h3>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<dl>
2014-09-09 14:36:56 +00:00
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-11-25 00:23:44 +00:00
id="boot"><span class="type-signature">&lt;internal> </span>boot<span class="signature">()</span><span class="type-signature"></span></h4>
2014-09-09 14:36:56 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>Start the ScaleManager.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
<dl class="details">
2014-11-25 00:23:44 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-633">line 633</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-11-25 00:23:44 +00:00
id="createFullScreenTarget"><span class="type-signature">&lt;internal> </span>createFullScreenTarget<span class="signature">()</span><span class="type-signature"></span></h4>
2014-09-09 14:36:56 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>Creates a fullscreen target. This is called automatically as as needed when entering
2015-01-06 06:57:25 +00:00
fullscreen mode and the resulting element is supplied to <a href="Phaser.ScaleManager.html#onFullScreenInit">onFullScreenInit</a>.</p>
2014-11-25 00:23:44 +00:00
<p>Use <a href="Phaser.ScaleManager.html#onFullScreenInit">onFullScreenInit</a> to customize the created object.</p>
2014-09-09 14:36:56 +00:00
</div>
2014-11-25 00:23:44 +00:00
<dl class="details">
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-1716">line 1716</a>
2014-11-25 00:23:44 +00:00
</dt>
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
</dd>
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
<dt>
<h4 class="name "
id="destroy"><span class="type-signature">&lt;internal> </span>destroy<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
<div class="description">
<p>Destroys the ScaleManager and removes any event listeners.
This should probably only be called when the game is destroyed.</p>
</div>
2014-09-09 14:36:56 +00:00
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-2040">line 2040</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-11-25 00:23:44 +00:00
id="forceOrientation"><span class="type-signature"></span>forceOrientation<span class="signature">(forceLandscape, <span class="optional">forcePortrait</span>)</span><span class="type-signature"></span></h4>
2014-09-09 14:36:56 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>Force the game to run in only one orientation.</p>
<p>This enables generation of incorrect orientation signals and affects resizing but does not otherwise rotate or lock the orientation.</p>
2015-03-23 23:46:30 +00:00
<p>Orientation checks are performed via the Screen Orientation API, if available in browser. This means it will check your monitor
orientation on desktop, or your device orientation on mobile, rather than comparing actual game dimensions. If you need to check the
viewport dimensions instead and bypass the Screen Orientation API then set: <code>ScaleManager.compatibility.orientationFallback = 'viewport'</code></p>
2014-09-09 14:36:56 +00:00
</div>
2014-11-15 20:01:46 +00:00
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-25 00:23:44 +00:00
<td class="name"><code>forceLandscape</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last"><p>true if the game should run in landscape mode only.</p></td>
</tr>
<tr>
<td class="name"><code>forcePortrait</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2014-11-25 00:23:44 +00:00
<span class="param-type">boolean</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
2014-11-25 00:23:44 +00:00
false
2014-11-15 20:01:46 +00:00
</td>
2014-11-25 00:23:44 +00:00
<td class="description last"><p>true if the game should run in portrait mode only.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
2014-09-09 14:36:56 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-1151">line 1151</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
2013-10-03 00:21:08 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-11-25 00:23:44 +00:00
id="getParentBounds"><span class="type-signature">&lt;internal> </span>getParentBounds<span class="signature">(<span class="optional">target</span>)</span><span class="type-signature"> &rarr; {<a href="Phaser.Rectangle.html">Phaser.Rectangle</a>}</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>Returns the computed Parent size/bounds that the Display canvas is allowed/expected to fill.</p>
<p>If in fullscreen mode or without parent (see <a href="Phaser.ScaleManager.html#parentIsWindow">parentIsWindow</a>),
this will be the bounds of the visual viewport itself.</p>
2015-01-06 06:57:25 +00:00
<p>This function takes the <a href="Phaser.ScaleManager.html#windowConstraints">windowConstraints</a> into consideration - if the parent is partially outside
2014-11-25 00:23:44 +00:00
the viewport then this function may return a smaller than expected size.</p>
<p>Values are rounded to the nearest pixel.</p>
2013-10-03 00:21:08 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-11-15 20:01:46 +00:00
<th>Argument</th>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<th>Default</th>
2013-10-03 00:21:08 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>target</code></td>
2013-10-03 00:21:08 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type"><a href="Phaser.Rectangle.html">Phaser.Rectangle</a></span>
2013-10-03 00:21:08 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
(new Rectangle)
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The rectangle to update; a new one is created as needed.</p></td>
2013-10-03 00:21:08 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type"><a href="Phaser.Rectangle.html">Phaser.Rectangle</a></span>
-
</div>
<div class="returns-desc param-desc">
<p>The established parent bounds.</p>
</div>
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-1396">line 1396</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="parseConfig"><span class="type-signature">&lt;internal> </span>parseConfig<span class="signature">(config)</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-11-15 20:01:46 +00:00
<p>Load configuration settings.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>config</code></td>
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">object</span>
2014-11-15 20:01:46 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The game configuration object.</p></td>
</tr>
2014-09-09 14:36:56 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-10-15 11:06:38 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-736">line 736</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="preUpdate"><span class="type-signature">&lt;internal> </span>preUpdate<span class="signature">()</span><span class="type-signature"></span></h4>
2014-09-09 14:36:56 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
<div class="description">
2014-11-15 20:01:46 +00:00
<p>The ScaleManager.preUpdate is called automatically by the core Game loop.</p>
2014-09-09 14:36:56 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
</ul></dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-1016">line 1016</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="refresh"><span class="type-signature"></span>refresh<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-01-06 06:57:25 +00:00
<p>The &quot;refresh&quot; methods informs the ScaleManager that a layout refresh is required.</p>
2014-11-25 00:23:44 +00:00
<p>The ScaleManager automatically queues a layout refresh (eg. updates the Game size or Display canvas layout)
when the browser is resized, the orientation changes, or when there is a detected change
of the Parent size. Refreshing is also done automatically when public properties,
2015-01-06 06:57:25 +00:00
such as <a href="Phaser.ScaleManager.html#scaleMode">scaleMode</a>, are updated or state-changing methods are invoked.</p>
<p>The &quot;refresh&quot; method <em>may</em> need to be used in a few (rare) situtations when</p>
2014-11-25 00:23:44 +00:00
<ul>
<li>a device change event is not correctly detected; or</li>
<li>the Parent size changes (and an immediate reflow is desired); or</li>
2015-01-06 06:57:25 +00:00
<li>the ScaleManager state is updated by non-standard means; or</li>
<li>certain <a href="Phaser.ScaleManager.html#compatibility">compatibility</a> properties are manually changed.</li>
2014-11-25 00:23:44 +00:00
</ul>
<p>The queued layout refresh is not immediate but will run promptly in an upcoming <code>preRender</code>.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-1289">line 1289</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-11-01 18:16:52 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-11-01 18:16:52 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="scaleSprite"><span class="type-signature">&lt;internal> </span>scaleSprite<span class="signature">(sprite, <span class="optional">width</span>, <span class="optional">height</span>, <span class="optional">letterBox</span>)</span><span class="type-signature"> &rarr; {<a href="Phaser.Sprite.html">Phaser.Sprite</a>|<a href="Phaser.Image.html">Phaser.Image</a>}</span></h4>
2013-11-01 18:16:52 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-11-01 18:16:52 +00:00
<div class="description">
2014-11-15 20:01:46 +00:00
<p>Takes a Sprite or Image object and scales it to fit the given dimensions.
Scaling happens proportionally without distortion to the sprites texture.
The letterBox parameter controls if scaling will produce a letter-box effect or zoom the
sprite until it fills the given values. Note that with letterBox set to false the scaled sprite may spill out over either
the horizontal or vertical sides of the target dimensions. If you wish to stop this you can crop the Sprite.</p>
2013-11-01 18:16:52 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-11-15 20:01:46 +00:00
<th>Argument</th>
2013-11-01 18:16:52 +00:00
2014-11-15 20:01:46 +00:00
<th>Default</th>
2013-11-01 18:16:52 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>sprite</code></td>
2013-11-01 18:16:52 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type"><a href="Phaser.Sprite.html">Phaser.Sprite</a></span>
|
<span class="param-type"><a href="Phaser.Image.html">Phaser.Image</a></span>
2014-09-09 14:36:56 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
</td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
</td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The sprite we want to scale.</p></td>
2014-09-09 14:36:56 +00:00
</tr>
2014-11-15 20:01:46 +00:00
<tr>
<td class="name"><code>width</code></td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type">integer</span>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
</td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The target width that we want to fit the sprite in to. If not given it defaults to ScaleManager.width.</p></td>
</tr>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<tr>
<td class="name"><code>height</code></td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type">integer</span>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
</td>
<td class="description last"><p>The target height that we want to fit the sprite in to. If not given it defaults to ScaleManager.height.</p></td>
</tr>
<tr>
<td class="name"><code>letterBox</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
<td class="description last"><p>True if we want the <code>fitted</code> mode. Otherwise, the function uses the <code>zoom</code> mode.</p></td>
</tr>
</tbody>
</table>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<div class="returns-type">
<span class="param-type"><a href="Phaser.Sprite.html">Phaser.Sprite</a></span>
|
<span class="param-type"><a href="Phaser.Image.html">Phaser.Image</a></span>
-
</div>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<div class="returns-desc param-desc">
<p>The scaled sprite.</p>
</div>
</div>
2014-09-09 14:36:56 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-1970">line 1970</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
2013-11-01 18:16:52 +00:00
2014-09-09 14:36:56 +00:00
2013-11-01 18:16:52 +00:00
2014-09-09 14:36:56 +00:00
2013-11-01 18:16:52 +00:00
2014-09-09 14:36:56 +00:00
</dl>
2013-11-01 18:16:52 +00:00
2014-09-09 14:36:56 +00:00
2013-11-01 18:16:52 +00:00
2014-09-09 14:36:56 +00:00
2013-11-01 18:16:52 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="setGameSize"><span class="type-signature"></span>setGameSize<span class="signature">(width, height)</span><span class="type-signature"></span></h4>
2014-09-09 14:36:56 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>Set the actual Game size.
Use this instead of directly changing <code>game.width</code> or <code>game.height</code>.</p>
2015-03-23 23:46:30 +00:00
<p>The actual physical display (Canvas element size) depends on various settings including</p>
<ul>
<li>Scale mode</li>
<li>Scaling factor</li>
<li>Size of Canvas's parent element or CSS rules such as min-height/max-height;</li>
<li>The size of the Window</li>
</ul>
2013-10-03 00:21:08 +00:00
</div>
2014-11-15 20:01:46 +00:00
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>width</code></td>
<td class="type">
2014-11-25 00:23:44 +00:00
<span class="param-type">integer</span>
2014-11-15 20:01:46 +00:00
</td>
2014-11-25 00:23:44 +00:00
<td class="description last"><p><em>Game width</em>, in pixels.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
<td class="name"><code>height</code></td>
<td class="type">
2014-11-25 00:23:44 +00:00
<span class="param-type">integer</span>
2014-11-15 20:01:46 +00:00
</td>
2014-11-25 00:23:44 +00:00
<td class="description last"><p><em>Game height</em>, in pixels.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-869">line 869</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="setMinMax"><span class="type-signature"></span>setMinMax<span class="signature">(minWidth, minHeight, <span class="optional">maxWidth</span>, <span class="optional">maxHeight</span>)</span><span class="type-signature"></span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>Set the min and max dimensions for the Display canvas.</p>
2015-03-23 23:46:30 +00:00
<p><em>Note:</em> The min/max dimensions are only applied in some cases</p>
<ul>
<li>When the device is not in an incorrect orientation; or</li>
<li>The scale mode is EXACT_FIT when not in fullscreen</li>
</ul>
2013-10-03 00:21:08 +00:00
</div>
2014-09-09 14:36:56 +00:00
<h5>Parameters:</h5>
2014-11-15 20:01:46 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>minWidth</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>The minimum width the game is allowed to scale down to.</p></td>
</tr>
<tr>
<td class="name"><code>minHeight</code></td>
<td class="type">
<span class="param-type">number</span>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="attributes">
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
</td>
<td class="description last"><p>The minimum height the game is allowed to scale down to.</p></td>
</tr>
2014-09-09 14:36:56 +00:00
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>maxWidth</code></td>
2014-09-09 14:36:56 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">number</span>
2014-09-09 14:36:56 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The maximum width the game is allowed to scale up to; only changed if specified.</p></td>
2014-09-09 14:36:56 +00:00
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>maxHeight</code></td>
2014-09-09 14:36:56 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">number</span>
2014-09-09 14:36:56 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The maximum height the game is allowed to scale up to; only changed if specified.</p></td>
2014-09-09 14:36:56 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-984">line 984</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-todo">To Do:</dt>
<dd class="tag-todo">
<ul>
<li>These values are only sometimes honored.</li>
</ul>
</dd>
2013-10-03 00:21:08 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="setResizeCallback"><span class="type-signature"></span>setResizeCallback<span class="signature">(callback, context)</span><span class="type-signature"></span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Sets the callback that will be invoked before sizing calculations.</p>
2015-01-06 06:57:25 +00:00
<p>This is the appropriate place to call <a href="Phaser.ScaleManager.html#setUserScale">setUserScale</a> if needing custom dynamic scaling.</p>
2014-11-25 00:23:44 +00:00
<p>The callback is supplied with two arguments <code>scale</code> and <code>parentBounds</code> where <code>scale</code> is the ScaleManager
and <code>parentBounds</code>, a Phaser.Rectangle, is the size of the Parent element.</p>
2015-03-23 23:46:30 +00:00
<p>This callback</p>
<ul>
<li>May be invoked even though the parent container or canvas sizes have not changed</li>
<li>Unlike <a href="Phaser.ScaleManager.html#onSizeChange">onSizeChange</a>, it runs <em>before</em> the canvas is guaranteed to be updated</li>
<li>Will be invoked from <code>preUpdate</code>, <em>even when</em> the game is paused </li>
</ul>
2015-01-06 06:57:25 +00:00
<p>See <a href="Phaser.ScaleManager.html#onSizeChange">onSizeChange</a> for a better way of reacting to layout updates.</p>
2013-10-03 00:21:08 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>callback</code></td>
2013-10-03 00:21:08 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">function</span>
2013-10-03 00:21:08 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The callback that will be called each time a window.resize event happens or if set, the parent container resizes.</p></td>
2013-10-03 00:21:08 +00:00
</tr>
2014-11-15 20:01:46 +00:00
<tr>
<td class="name"><code>context</code></td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type">object</span>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</td>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The context in which the callback will be called.</p></td>
</tr>
2013-10-03 00:21:08 +00:00
2014-11-15 20:01:46 +00:00
</tbody>
</table>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-921">line 921</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="setupScale"><span class="type-signature">&lt;internal> </span>setupScale<span class="signature">(width, height)</span><span class="type-signature"></span></h4>
2014-09-09 14:36:56 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
<div class="description">
<p>Calculates and sets the game dimensions based on the given width and height.</p>
2014-11-15 20:01:46 +00:00
<p>This should <em>not</em> be called when in fullscreen mode.</p>
2014-09-09 14:36:56 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>width</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">string</span>
</td>
<td class="description last"><p>The width of the game.</p></td>
</tr>
<tr>
<td class="name"><code>height</code></td>
<td class="type">
<span class="param-type">number</span>
|
<span class="param-type">string</span>
</td>
<td class="description last"><p>The height of the game.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-10-15 11:06:38 +00:00
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-769">line 769</a>
2014-11-25 00:23:44 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="setUserScale"><span class="type-signature"></span>setUserScale<span class="signature">(hScale, vScale, <span class="optional">hTrim</span>, <span class="optional">vTrim</span>)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>Set a User scaling factor used in the USER_SCALE scaling mode.</p>
<p>The target canvas size is computed by:</p>
2015-03-23 23:46:30 +00:00
<pre class="prettyprint source"><code>canvas.width = (game.width * hScale) - hTrim
canvas.height = (game.height * vScale) - vTrim</code></pre><p>This method can be used in the <a href="Phaser.ScaleManager.html#setResizeCallback">resize callback</a>.</p>
2014-11-25 00:23:44 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>hScale</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last"><p>Horizontal scaling factor.</p></td>
</tr>
<tr>
<td class="name"><code>vScale</code></td>
<td class="type">
<span class="param-type">numer</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last"><p>Vertical scaling factor.</p></td>
</tr>
<tr>
<td class="name"><code>hTrim</code></td>
<td class="type">
<span class="param-type">integer</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
0
</td>
<td class="description last"><p>Horizontal trim, applied after scaling.</p></td>
</tr>
<tr>
<td class="name"><code>vTrim</code></td>
<td class="type">
<span class="param-type">integer</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
0
</td>
<td class="description last"><p>Vertical trim, applied after scaling.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-897">line 897</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="startFullScreen"><span class="type-signature"></span>startFullScreen<span class="signature">(<span class="optional">antialias</span>, <span class="optional">allowTrampoline</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Start the browsers fullscreen mode - this <em>must</em> be called from a user input Pointer or Mouse event.</p>
2014-11-25 00:23:44 +00:00
<p>The Fullscreen API must be supported by the browser for this to work - it is not the same as setting
2015-01-06 06:57:25 +00:00
the game size to fill the browser window. See <a href="Phaser.ScaleManager.html#compatibility">compatibility.supportsFullScreen</a> to check if the current
2014-11-25 00:23:44 +00:00
device is reported to support fullscreen mode.</p>
2015-07-22 14:31:30 +00:00
<p>The fullScreenFailed signal will be dispatched if the fullscreen change request failed or the game does not support the Fullscreen API.</p>
2013-10-03 00:21:08 +00:00
</div>
2013-11-01 18:16:52 +00:00
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-11-15 20:01:46 +00:00
<th>Argument</th>
2013-11-01 18:16:52 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>antialias</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last"><p>Changes the anti-alias feature of the canvas before jumping in to fullscreen (false = retain pixel art, true = smooth art). If not specified then no change is made. Only works in CANVAS mode.</p></td>
</tr>
<tr>
<td class="name"><code>allowTrampoline</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
2013-11-01 18:16:52 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>Internal argument. If <code>false</code> click trampolining is suppressed.</p></td>
2013-11-01 18:16:52 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>Returns true if the device supports fullscreen mode and fullscreen mode was attempted to be started. (It might not actually start, wait for the signals.)</p>
</div>
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-1737">line 1737</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="stopFullScreen"><span class="type-signature"></span>stopFullScreen<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-03 00:21:08 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
<div class="description">
2014-11-25 00:23:44 +00:00
<p>Stops / exits fullscreen mode, if active.</p>
2013-10-03 00:21:08 +00:00
</div>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>Returns true if the browser supports fullscreen mode and fullscreen mode will be exited.</p>
</div>
</div>
2013-10-03 00:21:08 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
<a href="src_core_ScaleManager.js.html">core/ScaleManager.js</a>, <a href="src_core_ScaleManager.js.html#sunlight-1-line-1826">line 1826</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-03 00:21:08 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-03 00:21:08 +00:00
</dd>
</dl>
</article>
</section>
</div>
<div class="clearfix"></div>
<footer>
<span class="copyright">
2016-04-22 14:15:28 +00:00
Phaser Copyright © 2012-2016 Photon Storm Ltd.
2013-10-03 00:21:08 +00:00
</span>
<br />
<span class="jsdoc-message">
2015-08-24 14:43:45 +00:00
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
2016-06-10 15:22:54 +00:00
on Fri Jun 10 2016 16:19:26 GMT+0100 (GMT Daylight Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
2013-10-03 00:21:08 +00:00
</span>
</footer>
</div>
<div class="span3">
<div id="toc"></div>
</div>
<br clear="both">
</div>
</div>
<script src="scripts/sunlight.js"></script>
<script src="scripts/sunlight.javascript.js"></script>
<script src="scripts/sunlight-plugin.doclinks.js"></script>
<script src="scripts/sunlight-plugin.linenumbers.js"></script>
<script src="scripts/sunlight-plugin.menu.js"></script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/jquery.scrollTo.js"></script>
<script src="scripts/jquery.localScroll.js"></script>
<script src="scripts/bootstrap-dropdown.js"></script>
<script src="scripts/toc.js"></script>
<script> Sunlight.highlightAll({lineNumbers:true, showMenu: true, enableDoclinks :true}); </script>
<script>
$( function () {
$( "#toc" ).toc( {
2014-04-10 22:13:43 +00:00
anchorName : function(i, heading, prefix) {
return $(heading).attr("id") || ( prefix + i );
},
2013-10-03 00:21:08 +00:00
selectors : "h1,h2,h3,h4",
showAndHide : false,
scrollTo : 60
} );
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
} );
</script>
</body>
2015-10-15 11:06:38 +00:00
</html>