igniteui-react-core
Version:
Ignite UI React Core.
42 lines (41 loc) • 1.69 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 { UIElementPropertyAccessor } from "./UIElementPropertyAccessor";
import { markType } from "./type";
import { stringReplace } from "./string";
import { isNaN_ } from "./number";
/**
* @hidden
*/
var CssLengthPropertyAccessor = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(CssLengthPropertyAccessor, _super);
function CssLengthPropertyAccessor(a) {
var _this = _super.call(this) || this;
_this.d = null;
_this.d = a;
return _this;
}
CssLengthPropertyAccessor.prototype.b = function (a) {
var b = a;
var c = b.getStyleProperty(this.d);
var d = parseFloat(stringReplace(c, "px", ""));
if (isNaN_(d)) {
d = 0;
}
return d;
};
CssLengthPropertyAccessor.prototype.c = function (a, b) {
var c = a;
var d = b;
var e = d + "";
c.setStyleProperty(this.d, e);
};
CssLengthPropertyAccessor.$t = markType(CssLengthPropertyAccessor, 'CssLengthPropertyAccessor', UIElementPropertyAccessor.$);
return CssLengthPropertyAccessor;
}(UIElementPropertyAccessor));
export { CssLengthPropertyAccessor };