"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=void0;var_isString2=_interopRequireDefault(require("lodash/isString"));var_wrapCell=_interopRequireDefault(require("./wrapCell"));function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{default:obj};}/** * @param {string} value * @param {number} columnWidth * @param {boolean} useWrapWord * @returns {number} */constcalculateCellHeight=(value,columnWidth,useWrapWord=false)=>{if(!(0,_isString2.default)(value)){thrownewTypeError('Value must be a string.');}if(!Number.isInteger(columnWidth)){thrownewTypeError('Column width must be an integer.');}if(columnWidth<1){thrownewError('Column width must be greater than 0.');}return(0,_wrapCell.default)(value,columnWidth,useWrapWord).length;};var_default=calculateCellHeight;exports.default=_default;//# sourceMappingURL=calculateCellHeight.js.map