"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "multipleScrollStrategy", {
    enumerable: true,
    get: function() {
        return multipleScrollStrategy;
    }
});
const _utils = require("../utils");
function multipleScrollStrategy(hot) {
    return (cellCoords)=>{
        const scrollTargetCalc = (0, _utils.createScrollTargetCalculator)(hot);
        const targetScroll = {
            row: scrollTargetCalc.getComputedRowTarget(cellCoords),
            col: scrollTargetCalc.getComputedColumnTarget(cellCoords)
        };
        hot.scrollViewportTo(targetScroll, ()=>{
            const { row, col } = targetScroll;
            (0, _utils.scrollWindowToCell)(hot.getCell(row, col, true));
        });
    };
}
