phaser/v3/src/components/ScaleMode.js
Richard Davey b6bef1ded9 Fixed issue with component private vars being shared.
Added Key Capture to Keyboard Manager.
Added rotation and angle wrapping.
Optmized getBounds.
2017-02-24 01:45:24 +00:00

28 lines
471 B
JavaScript

var ScaleModes = require('../renderer/ScaleModes');
// ScaleMode Component
var ScaleMode = {
_scaleMode: ScaleModes.DEFAULT,
scaleMode: {
get: function ()
{
return this._scaleMode;
},
set: function (value)
{
if (value === ScaleModes.LINEAR || value === ScaleModes.NEAREST)
{
this._scaleMode = value;
}
}
}
};
module.exports = ScaleMode;