2 Object.defineProperty(exports, "__esModule", { value: true });
3 exports.calculateRowHeights = void 0;
4 const calculateCellHeight_1 = require("./calculateCellHeight");
6 * Produces an array of values that describe the largest value length (height) in every row.
8 const calculateRowHeights = (rows, config) => {
9 return rows.map((row) => {
11 row.forEach((cell, cellIndex) => {
12 const cellHeight = (0, calculateCellHeight_1.calculateCellHeight)(cell, config.columns[cellIndex].width, config.columns[cellIndex].wrapWord);
13 rowHeight = Math.max(rowHeight, cellHeight);
18 exports.calculateRowHeights = calculateRowHeights;
19 //# sourceMappingURL=calculateRowHeights.js.map