igniteui-react-core
Version:
Ignite UI React Core.
35 lines (34 loc) • 1.39 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 { UIElementPropertyAccessor } from "./UIElementPropertyAccessor";
import { markType } from "./type";
import { Brush } from "./Brush";
import { CSSColorUtil } from "./CSSColorUtil";
/**
* @hidden
*/
export let CssColorPropertyAccessor = /*@__PURE__*/ (() => {
class CssColorPropertyAccessor extends UIElementPropertyAccessor {
constructor(a) {
super();
this.d = null;
this.d = a;
}
b(a) {
let b = a;
let c = b.getStyleProperty(this.d);
return Brush.create(c);
}
c(a, b) {
let c = a;
let d = b;
c.setStyleProperty(this.d, CSSColorUtil.c(d));
}
}
CssColorPropertyAccessor.$t = /*@__PURE__*/ markType(CssColorPropertyAccessor, 'CssColorPropertyAccessor', UIElementPropertyAccessor.$);
return CssColorPropertyAccessor;
})();