import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
export const MERGE_CELLS = 'MERGE_CELLS';
/**
 * Action to merge cells into the RTETable.
 */
export class MergeCellsAction extends ModifyContentAction {
  constructor(targetCell, mergeCells, colSpan, rowSpan, direction) {
    super();
    this.type = MERGE_CELLS;
    this.isFlushable = true;
    this.targetCell = targetCell;
    this.mergeCells = mergeCells;
    this.colSpan = colSpan;
    this.rowSpan = rowSpan;
    this.direction = direction;
  }
}
