igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
69 lines (68 loc) • 2.46 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 { Base, typeCast, markType } from "./type";
/**
* @hidden
*/
var CornerRadius = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(CornerRadius, _super);
function CornerRadius(a) {
var _rest = [];
for (var _i = 1; _i < arguments.length; _i++) {
_rest[_i - 1] = arguments[_i];
}
var _this = _super.call(this) || this;
_this.c = 0;
_this.b = 0;
_this.d = 0;
_this.e = 0;
a = (a == void 0) ? 0 : a;
switch (a) {
case 0:
{
var c = _rest[0];
_this.b = _this.c = _this.d = _this.e = c;
}
break;
case 1:
{
var c = _rest[0];
var d = _rest[1];
var e = _rest[2];
var f = _rest[3];
_this.d = c;
_this.e = d;
_this.c = e;
_this.b = f;
}
break;
case 2:
{
_this.b = NaN;
_this.c = NaN;
_this.d = NaN;
_this.e = NaN;
}
break;
}
return _this;
}
CornerRadius.prototype.equals = function (a) {
if (a == null || !(typeCast(CornerRadius.$, a) !== null)) {
return _super.prototype.equals.call(this, a);
}
var b = a;
return b.b == this.b && b.d == this.d && b.e == this.e && b.c == this.c;
};
CornerRadius.prototype.getHashCode = function () {
return (this.d) ^ (this.e) ^ (this.b) ^ (this.c);
};
CornerRadius.$t = markType(CornerRadius, 'CornerRadius');
return CornerRadius;
}(Base));
export { CornerRadius };