mirror of
https://github.com/photonstorm/phaser
synced 2024-12-27 13:33:35 +00:00
29 lines
462 B
JavaScript
29 lines
462 B
JavaScript
|
var ScaleModes = require('../renderer/ScaleModes');
|
||
|
|
||
|
// ScaleMode Component
|
||
|
|
||
|
var _scaleMode = ScaleModes.DEFAULT;
|
||
|
|
||
|
var ScaleMode = {
|
||
|
|
||
|
scaleMode: {
|
||
|
|
||
|
get: function ()
|
||
|
{
|
||
|
return _scaleMode;
|
||
|
},
|
||
|
|
||
|
set: function (value)
|
||
|
{
|
||
|
if (value === ScaleModes.LINEAR || value === ScaleModes.NEAREST)
|
||
|
{
|
||
|
_scaleMode = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
};
|
||
|
|
||
|
module.exports = ScaleMode;
|