drawRow.js
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 } = config; 7 return drawContent_1.drawContent(row, { 8 drawSeparator: drawVerticalLine, 9 separatorGetter: (index, columnCount) => { 10 if (index === 0) { 11 return border.bodyLeft; 12 } 13 if (index === columnCount) { 14 return border.bodyRight; 15 } 16 return border.bodyJoin; 17 }, 18 }) + '\n'; 19 }; 20 exports.drawRow = drawRow;