UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

64 lines (63 loc) 2.48 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 { __extends } from "tslib"; import { CanvasGridCellBase } from "./CanvasGridCellBase"; import { GridSortIndicator } from "./GridSortIndicator"; import { delegateCombine, markType } from "igniteui-react-core"; /** * @hidden */ var CanvasTextHeaderCell = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CanvasTextHeaderCell, _super); function CanvasTextHeaderCell(a) { var _this = _super.call(this, a) || this; _this.da = null; _this.dd = null; _this.dc = null; _this.cl(0); _this.ct(1); _this.da = new GridSortIndicator(); var b = a.createElement("div"); b.setRawStyleProperty("display", "inline-block"); b.setRawStyleProperty("width", "16px"); b.setRawStyleProperty("height", "16px"); _this.dd = b; var c = a.getSubRenderer(_this.dd); _this.da.ax(c); _this.da.w = window.devicePixelRatio; var d = _this.da; d.renderCompleted = delegateCombine(d.renderCompleted, function (d, e) { return _this.ca(); }); _this.da.ar(16, 16); _this.dc = _this.da.ad(); return _this; } Object.defineProperty(CanvasTextHeaderCell.prototype, "db", { get: function () { return this.da; }, enumerable: false, configurable: true }); CanvasTextHeaderCell.prototype.de = function (a) { this.db.b = a; this.ca(); }; CanvasTextHeaderCell.prototype.cc = function (a) { _super.prototype.cc.call(this, a); var b = this.bl + 5; if (this.e == 2) { b = this.bj - 21; } a.n(this.dc, 1, b, this.bm - 8, 16, 16); }; CanvasTextHeaderCell.prototype.get_ae = function () { return true; }; CanvasTextHeaderCell.$t = markType(CanvasTextHeaderCell, 'CanvasTextHeaderCell', CanvasGridCellBase.$); return CanvasTextHeaderCell; }(CanvasGridCellBase)); export { CanvasTextHeaderCell };