UNPKG

809 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.drawRow = void 0;
4const drawContent_1 = require("./drawContent");
5const drawRow = (row, config) => {
6 const { border, drawVerticalLine, rowIndex, spanningCellManager } = config;
7 return (0, drawContent_1.drawContent)({
8 contents: row,
9 drawSeparator: drawVerticalLine,
10 elementType: 'cell',
11 rowIndex,
12 separatorGetter: (index, columnCount) => {
13 if (index === 0) {
14 return border.bodyLeft;
15 }
16 if (index === columnCount) {
17 return border.bodyRight;
18 }
19 return border.bodyJoin;
20 },
21 spanningCellManager,
22 }) + '\n';
23};
24exports.drawRow = drawRow;
25//# sourceMappingURL=drawRow.js.map
\No newline at end of file