UNPKG

@visactor/vtable

Version:

canvas table width high performance

26 lines (20 loc) 682 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.ImageStyle = void 0; const Style_1 = require("./Style"); let defaultStyle; class ImageStyle extends Style_1.Style { static get DEFAULT() { return defaultStyle || (defaultStyle = new ImageStyle); } constructor(style = {}, headerStyle = {}) { var _a; super(style, headerStyle), this.textAlign = (null !== (_a = style.textAlign) && void 0 !== _a ? _a : null == headerStyle ? void 0 : headerStyle.textAlign) || "center"; } clone() { return new ImageStyle(this); } } exports.ImageStyle = ImageStyle; //# sourceMappingURL=ImageStyle.js.map