3 Object.defineProperty(exports, "__esModule", {
7 var _drawBorder = require('./drawBorder');
9 var _drawRow = require('./drawRow');
11 var _drawRow2 = _interopRequireDefault(_drawRow);
13 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17 * @param {Object} border
18 * @param {Array} columnSizeIndex
19 * @param {Array} rowSpanIndex
20 * @param {Function} drawHorizontalLine
23 exports.default = (rows, border, columnSizeIndex, rowSpanIndex, drawHorizontalLine) => {
28 const rowCount = rows.length;
34 if (drawHorizontalLine(realRowIndex, rowCount)) {
35 output += (0, _drawBorder.drawBorderTop)(columnSizeIndex, border);
38 rows.forEach((row, index0) => {
39 output += (0, _drawRow2.default)(row, border);
42 rowHeight = rowSpanIndex[realRowIndex];
49 if (rowHeight === 0 && index0 !== rowCount - 1 && drawHorizontalLine(realRowIndex, rowCount)) {
50 output += (0, _drawBorder.drawBorderJoin)(columnSizeIndex, border);
54 if (drawHorizontalLine(realRowIndex, rowCount)) {
55 output += (0, _drawBorder.drawBorderBottom)(columnSizeIndex, border);