1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.drawRow = void 0;
|
4 | const drawContent_1 = require("./drawContent");
|
5 | const 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 | };
|
24 | exports.drawRow = drawRow;
|
25 |
|
\ | No newline at end of file |