igniteui-react-grids
Version:
Ignite UI React grid components.
39 lines (38 loc) • 1.56 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 { CanvasCellPresenterBase } from "./CanvasCellPresenterBase";
import { CellModel } from "./CellModel";
import { markType } from "igniteui-react-core";
/**
* @hidden
*/
export let CanvasTemplateCellPresenter = /*@__PURE__*/ (() => {
class CanvasTemplateCellPresenter extends CanvasCellPresenterBase {
constructor(a, b) {
super(a);
this.e = null;
this.e = b;
}
get d() {
return this.a;
}
b(a) {
super.b(a);
let b = a;
let c = this.e.actualColumns._inner[a.l.a5];
if (a.a8(CellModel.fa) || a.a8(CellModel.hc)) {
let d = Math.min(1, Math.max(0, a.ct));
let e = a.cj * (1 - d);
this.d.db.opacity = e;
}
this.d.dc();
c.n3(a, this.d);
}
}
CanvasTemplateCellPresenter.$t = /*@__PURE__*/ markType(CanvasTemplateCellPresenter, 'CanvasTemplateCellPresenter', CanvasCellPresenterBase.$);
return CanvasTemplateCellPresenter;
})();