3 Object.defineProperty(exports, "__esModule", {
6 exports.default = void 0;
8 var _drawBorder = require("./drawBorder");
10 var _drawRow = _interopRequireDefault(require("./drawRow"));
12 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16 * @param {object} border
17 * @param {Array} columnSizeIndex
18 * @param {Array} rowSpanIndex
19 * @param {Function} drawHorizontalLine
20 * @param {boolean} singleLine
23 const drawTable = (rows, border, columnSizeIndex, rowSpanIndex, drawHorizontalLine, singleLine) => {
27 const rowCount = rows.length;
31 if (drawHorizontalLine(realRowIndex, rowCount)) {
32 output += (0, _drawBorder.drawBorderTop)(columnSizeIndex, border);
35 rows.forEach((row, index0) => {
36 output += (0, _drawRow.default)(row, border);
39 rowHeight = rowSpanIndex[realRowIndex];
45 if (!singleLine && rowHeight === 0 && index0 !== rowCount - 1 && drawHorizontalLine(realRowIndex, rowCount)) {
46 output += (0, _drawBorder.drawBorderJoin)(columnSizeIndex, border);
50 if (drawHorizontalLine(realRowIndex, rowCount)) {
51 output += (0, _drawBorder.drawBorderBottom)(columnSizeIndex, border);
57 var _default = drawTable;
58 exports.default = _default;
59 //# sourceMappingURL=drawTable.js.map