igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
52 lines (51 loc) • 1.96 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends } from "tslib";
import { Description } from "./Description";
import { typeCast, markType } from "./type";
/**
* @hidden
*/
var SizeDescription = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SizeDescription, _super);
function SizeDescription() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this._width = 0;
_this._height = 0;
return _this;
}
Object.defineProperty(SizeDescription.prototype, "width", {
get: function () {
return this._width;
},
set: function (a) {
this._width = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SizeDescription.prototype, "height", {
get: function () {
return this._height;
},
set: function (a) {
this._height = a;
},
enumerable: false,
configurable: true
});
SizeDescription.prototype.equals = function (a) {
if (a == null || !(typeCast(SizeDescription.$, a) !== null)) {
return _super.prototype.equals.call(this, a);
}
var b = a;
return this.width == b.width && this.height == b.height;
};
SizeDescription.$t = markType(SizeDescription, 'SizeDescription', Description.$);
return SizeDescription;
}(Description));
export { SizeDescription };