UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

71 lines (70 loc) 2.38 kB
/* 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 { Base, markType } from "igniteui-react-core"; import { ICellPresenter_$type } from "./ICellPresenter"; import { CellModel } from "./CellModel"; import { BrushUtil } from "igniteui-react-core"; /** * @hidden */ export let CanvasCellPresenterBase = /*@__PURE__*/ (() => { class CanvasCellPresenterBase extends Base { constructor(a) { super(); this.a = null; this.a = a; } modelUpdated(a) { this.b(a); } b(a) { this.a.cf(a.c); if (a.a8(CellModel.em) || a.a8(CellModel.eq) || a.a8(CellModel.eo) || a.a8(CellModel.ek)) { this.a.cn(a.el, a.ep, a.en, a.ej); } if (a.a1) { this.a.ch(a.lv, a.d9, a.ee, a.ec, a.d7); } if (a.bo) { this.a.ck(a.fu); this.a.cu(a.hd); } if (a.a3) { if (a.bi && !this.a.z) { this.a.b5(); } if (a.a8(CellModel.d6)) { this.a.cg(a.lu.color); } if (a.a8(CellModel.ei)) { this.a.cm(a.ch); } } if (a.bo && a.bi) { this.a.cx(a); } } c(a, b, c) { if (c == 0) { return a.color; } if (c == 1) { return b.color; } let d = BrushUtil.l(a, c, b, 0); return d.color; } get nativeCell() { return this.a; } get isCanvasBased() { return true; } } CanvasCellPresenterBase.$t = /*@__PURE__*/ markType(CanvasCellPresenterBase, 'CanvasCellPresenterBase', Base.$, [ICellPresenter_$type]); return CanvasCellPresenterBase; })();