UNPKG

@visactor/vtable

Version:

canvas table width high performance

39 lines (33 loc) 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.TextHeaderStyle = void 0; const Style_1 = require("./Style"); let defaultStyle; class TextHeaderStyle extends Style_1.Style { static get DEFAULT() { return defaultStyle || (defaultStyle = new TextHeaderStyle); } constructor(style = {}, headerStyle = null) { var _a, _b; super(style, headerStyle), this._autoWrapText = null !== (_a = null == style ? void 0 : style.autoWrapText) && void 0 !== _a ? _a : null == headerStyle ? void 0 : headerStyle.autoWrapText, this._lineClamp = null !== (_b = null == style ? void 0 : style.lineClamp) && void 0 !== _b ? _b : null == headerStyle ? void 0 : headerStyle.lineClamp; } clone() { return new TextHeaderStyle(this, null); } get lineClamp() { return this._lineClamp; } set lineClamp(lineClamp) { this._lineClamp = lineClamp; } get autoWrapText() { return this._autoWrapText; } set autoWrapText(autoWrapText) { this._autoWrapText = autoWrapText; } } exports.TextHeaderStyle = TextHeaderStyle; //# sourceMappingURL=MultilineTextHeaderStyle.js.map