2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
2020-01-15 12:07:09 +00:00
|
|
|
* @copyright 2020 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.
|
|
|
|
*
|
2019-02-12 15:01:54 +00:00
|
|
|
* @namespace Phaser.ScaleModes
|
2018-03-29 15:42:20 +00:00
|
|
|
* @since 3.0.0
|
2018-02-09 13:46:04 +00:00
|
|
|
*/
|
|
|
|
|
2019-05-09 16:13:25 +00:00
|
|
|
var ScaleModes = {
|
2017-01-18 14:09:26 +00:00
|
|
|
|
2018-02-09 13:46:04 +00:00
|
|
|
/**
|
|
|
|
* Default Scale Mode (Linear).
|
|
|
|
*
|
|
|
|
* @name Phaser.ScaleModes.DEFAULT
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2019-05-09 16:13:25 +00:00
|
|
|
* @readonly
|
2019-02-12 12:22:25 +00:00
|
|
|
* @since 3.0.0
|
2018-02-09 13:46:04 +00:00
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
DEFAULT: 0,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Linear Scale Mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.ScaleModes.LINEAR
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2019-05-09 16:13:25 +00:00
|
|
|
* @readonly
|
2019-02-12 12:22:25 +00:00
|
|
|
* @since 3.0.0
|
2018-02-09 13:46:04 +00:00
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
LINEAR: 0,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Nearest Scale Mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.ScaleModes.NEAREST
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2019-05-09 16:13:25 +00:00
|
|
|
* @readonly
|
2019-02-12 12:22:25 +00:00
|
|
|
* @since 3.0.0
|
2018-02-09 13:46:04 +00:00
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
NEAREST: 1
|
|
|
|
|
|
|
|
};
|
2019-05-09 16:13:25 +00:00
|
|
|
|
|
|
|
module.exports = ScaleModes;
|