/**
 * Calculates the total height of the merged cell.
 *
 * @param {Core} hotInstance The Handsontable instance.
 * @param {*} row The merged cell's row index.
 * @param {*} rowspan The merged cell height.
 * @returns {number}
 */ "use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "sumCellsHeights", {
    enumerable: true,
    get: function() {
        return sumCellsHeights;
    }
});
function sumCellsHeights(hotInstance, row, rowspan) {
    const { rowIndexMapper, stylesHandler } = hotInstance;
    let height = 0;
    for(let i = row; i < row + rowspan; i++){
        if (!rowIndexMapper.isHidden(i)) {
            height += hotInstance.getRowHeight(i) ?? stylesHandler.getDefaultRowHeight(i);
        }
    }
    return height;
}
