starling-framework
Version:
A fast, productive library for 2D cross-platform development.
46 lines (29 loc) • 997 B
JavaScript
// Class: starling.utils.ScaleMode
var $global = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this
$global.Object.defineProperty(exports, "__esModule", {value: true});
var __map_reserved = {};
// Imports
var $hxClasses = require("./../../hxClasses_stub").default;
var $hxEnums = require("./../../hxEnums_stub").default;
// Constructor
var ScaleMode = function(){}
// Meta
ScaleMode.__name__ = "starling.utils.ScaleMode";
ScaleMode.__isInterface__ = false;
ScaleMode.prototype = {
};
ScaleMode.prototype.__class__ = ScaleMode.prototype.constructor = $hxClasses["starling.utils.ScaleMode"] = ScaleMode;
// Init
// Statics
ScaleMode.isValid = function(scaleMode) {
if(!(scaleMode == "none" || scaleMode == "noBorder")) {
return scaleMode == "showAll";
} else {
return true;
}
}
ScaleMode.NONE = "none"
ScaleMode.NO_BORDER = "noBorder"
ScaleMode.SHOW_ALL = "showAll"
// Export
exports.default = ScaleMode;