/ cloudformation-templates / node_modules / aws-cdk / node_modules / table / dist / calculateCellHeight.js
calculateCellHeight.js
1 "use strict"; 2 Object.defineProperty(exports, "__esModule", { value: true }); 3 exports.calculateCellHeight = void 0; 4 const wrapCell_1 = require("./wrapCell"); 5 /** 6 * Calculates height of cell content in regard to its width and word wrapping. 7 */ 8 const calculateCellHeight = (value, columnWidth, useWrapWord = false) => { 9 return wrapCell_1.wrapCell(value, columnWidth, useWrapWord).length; 10 }; 11 exports.calculateCellHeight = calculateCellHeight;