/*!
 * Built by Revolist OU ❤️
 */
import reduce from "lodash/reduce";
import { columnTypes, rowTypes, ViewportStore } from "../store/index";
export default class ViewportProvider {
    constructor() {
        this.stores = reduce([...rowTypes, ...columnTypes], (sources, k) => {
            sources[k] = new ViewportStore(k);
            return sources;
        }, {});
    }
    setViewport(type, data) {
        this.stores[type].setViewport(data);
    }
}
