/*
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 { UIElementPropertyAccessor } from "./UIElementPropertyAccessor";
import { markType } from "./type";
import { stringReplace } from "./string";
import { isNaN_ } from "./number";
/**
 * @hidden
 */
export let CssPixelsPropertyAccessor = /*@__PURE__*/ (() => {
    class CssPixelsPropertyAccessor extends UIElementPropertyAccessor {
        constructor(a) {
            super();
            this.d = null;
            this.d = a;
        }
        b(a) {
            let b = a;
            let c = b.getStyleProperty(this.d);
            let d = parseFloat(stringReplace(c, "px", ""));
            if (isNaN_(d)) {
                d = 0;
            }
            return d;
        }
        c(a, b) {
            let c = a;
            let d = b;
            let e = d + "px";
            c.setStyleProperty(this.d, e);
        }
    }
    CssPixelsPropertyAccessor.$t = markType(CssPixelsPropertyAccessor, 'CssPixelsPropertyAccessor', UIElementPropertyAccessor.$);
    return CssPixelsPropertyAccessor;
})();
