"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.init = void 0;
var operators_1 = require("rxjs/operators");
var clipboard = require("./cmd.clipboard");
var style = require("./cmd.style");
function init(args) {
    var grid = args.grid, fire = args.fire;
    var command$ = grid.events$.pipe(operators_1.filter(function (e) { return e.type === 'GRID/command'; }), operators_1.map(function (e) { return e.payload; }));
    clipboard.init({ grid: grid, command$: command$, fire: fire });
    style.init({ grid: grid, command$: command$, fire: fire });
}
exports.init = init;
