igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
42 lines (41 loc) • 1.5 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 { Description } from "./Description";
import { typeCast, markType } from "./type";
/**
* @hidden
*/
export let SizeDescription = /*@__PURE__*/ (() => {
class SizeDescription extends Description {
constructor() {
super(...arguments);
this._width = 0;
this._height = 0;
}
get width() {
return this._width;
}
set width(a) {
this._width = a;
}
get height() {
return this._height;
}
set height(a) {
this._height = a;
}
equals(a) {
if (a == null || !(typeCast(SizeDescription.$, a) !== null)) {
return super.equals(a);
}
let b = a;
return this.width == b.width && this.height == b.height;
}
}
SizeDescription.$t = markType(SizeDescription, 'SizeDescription', Description.$);
return SizeDescription;
})();