StageScaleMode
package | crv.display |
extends | Class |
inherits | Class |
Provides static constants for assigning to the scaleMode property of Stage. |
Constants |
EXACT_FIT |
string |
"exactFit" - Tells CraveJs to render the stage with no border, stretching it to fit the window without retaining it's aspect ratio. |
NO_BORDER |
string |
"noBorder" - Retains it's original aspect ratio, but can crop off parts of the stage. |
NO_SCALE |
string |
"noScale" - Preform no scaling on the stage and display it with it's original dimensions. This is the default stage scale mode. |
SHOW_ALL |
string |
"showAll" - Scales the stage to fit the window while keeping it's aspect ratio, but adding a border around the stage when necessary. |
Related
Wiki: Class Reference
Wiki: Getting Started