UNPKG

@visactor/vtable

Version:

canvas table width high performance

39 lines (33 loc) 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.TextStyle = void 0; const Style_1 = require("./Style"); let defaultStyle; class TextStyle extends Style_1.Style { static get DEFAULT() { return defaultStyle || (defaultStyle = new TextStyle); } constructor(style = {}, bodyStyle = {}) { var _a, _b; super(style, bodyStyle), this._autoWrapText = null !== (_a = null == style ? void 0 : style.autoWrapText) && void 0 !== _a ? _a : null == bodyStyle ? void 0 : bodyStyle.autoWrapText, this._lineClamp = null !== (_b = null == style ? void 0 : style.lineClamp) && void 0 !== _b ? _b : null == bodyStyle ? void 0 : bodyStyle.lineClamp; } clone() { return new TextStyle(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.TextStyle = TextStyle; //# sourceMappingURL=MultilineTextStyle.js.map