1 | ;
|
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 (0, wrapCell_1.wrapCell)(value, columnWidth, useWrapWord).length;
|
10 | };
|
11 | exports.calculateCellHeight = calculateCellHeight;
|
12 | //# sourceMappingURL=calculateCellHeight.js.map |
\ | No newline at end of file |