phaser/src/renderer/ScaleModes.js

49 lines
819 B
JavaScript
Raw Normal View History

2018-02-12 16:01:20 +00:00
/**
* @author Richard Davey <rich@photonstorm.com>
2019-01-15 16:20:22 +00:00
* @copyright 2019 Photon Storm Ltd.
2019-05-10 15:15:04 +00:00
* @license {@link https://opensource.org/licenses/MIT|MIT License}
2018-02-12 16:01:20 +00:00
*/
2018-02-09 13:46:04 +00:00
/**
2018-03-29 15:42:20 +00:00
* Phaser Scale Modes.
*
* @namespace Phaser.ScaleModes
2018-03-29 15:42:20 +00:00
* @since 3.0.0
2018-02-09 13:46:04 +00:00
*/
var ScaleModes = {
2018-02-09 13:46:04 +00:00
/**
* Default Scale Mode (Linear).
*
* @name Phaser.ScaleModes.DEFAULT
* @type {integer}
* @readonly
2019-02-12 12:22:25 +00:00
* @since 3.0.0
2018-02-09 13:46:04 +00:00
*/
DEFAULT: 0,
2018-02-09 13:46:04 +00:00
/**
* Linear Scale Mode.
*
* @name Phaser.ScaleModes.LINEAR
* @type {integer}
* @readonly
2019-02-12 12:22:25 +00:00
* @since 3.0.0
2018-02-09 13:46:04 +00:00
*/
LINEAR: 0,
2018-02-09 13:46:04 +00:00
/**
* Nearest Scale Mode.
*
* @name Phaser.ScaleModes.NEAREST
* @type {integer}
* @readonly
2019-02-12 12:22:25 +00:00
* @since 3.0.0
2018-02-09 13:46:04 +00:00
*/
NEAREST: 1
};
module.exports = ScaleModes;