export const SET_DATA = 'SET_DATA';
export const SET_CREATE_FORMULA_PARSER = 'SET_CREATE_FORMULA_PARSER';
export const SELECT_ENTIRE_ROW = 'SELECT_ENTIRE_ROW';
export const SELECT_ENTIRE_COLUMN = 'SELECT_ENTIRE_COLUMN';
export const SELECT_ENTIRE_WORKSHEET = 'SELECT_ENTIRE_WORKSHEET';
export const SET_SELECTION = 'SET_SELECTION';
export const SELECT = 'SELECT';
export const ACTIVATE = 'ACTIVATE';
export const SET_CELL_DATA = 'SET_CELL_DATA';
export const SET_CELL_DIMENSIONS = 'SET_CELL_DIMENSIONS';
export const COPY = 'COPY';
export const CUT = 'CUT';
export const PASTE = 'PASTE';
export const EDIT = 'EDIT';
export const VIEW = 'VIEW';
export const CLEAR = 'CLEAR';
export const BLUR = 'BLUR';
export const KEY_PRESS = 'KEY_PRESS';
export const KEY_DOWN = 'KEY_DOWN';
export const DRAG_START = 'DRAG_START';
export const DRAG_END = 'DRAG_END';
export const COMMIT = 'COMMIT';
export const BOLD = 'BOLD';
export const ITALIC = 'ITALIC';
export const UNDERLINE_TYPE = 'UNDERLINE_TYPE';
export const FONT_FAMILY = 'FONT_FAMILY';
export const FONT_SIZE = 'FONT_SIZE';
export const TEXT_ALIGN = 'TEXT_ALIGN';
export const BORDER_TYPE = 'BORDER_TYPE';
export const COLOR = 'COLOR';
export const BACKGROUND_COLOR = 'BACKGROUND_COLOR';
export const FORMATE_PAINTER = 'FORMATE_PAINTER';
export const ADD_ROW_TOP = 'ADD_ROW_TOP';
export const ADD_ROW_BOTTOM = 'ADD_ROW_BOTTOM';
export const ADD_COLUMN_LEFT = 'ADD_COLUMN_LEFT';
export const ADD_COLUMN_RIGHT = 'ADD_COLUMN_RIGHT';
export const DELETE_ROW = 'DELETE_ROW';
export const DELETE_COLUMN = 'DELETE_COLUMN';
export const SET_ROW_HEIGHT = 'SET_ROW_HEIGHT';
export const SET_COLUMN_POSITION = 'SET_COLUMN_POSITION';
export const SET_AUTO_FILL = 'SET_AUTO_FILL';
export const SET_EDITABLE = 'SET_EDITABLE';
export const ON_MOUSE_UP = 'ON_MOUSE_UP';
export function onMouseUp(point) {
    return {
        type: ON_MOUSE_UP,
        payload: { point },
    };
}
export function editable(editable) {
    return {
        type: SET_EDITABLE,
        payload: { editable },
    };
}
export function autoFill(autofill) {
    return {
        type: SET_AUTO_FILL,
        payload: { autofill },
    };
}
export function setRowHeight(row, height) {
    return {
        type: SET_ROW_HEIGHT,
        payload: { row, height },
    };
}
export function setColumnPosition(column, width) {
    return {
        type: SET_COLUMN_POSITION,
        payload: { column, width },
    };
}
export function bold(data) {
    return {
        type: BOLD,
        payload: { data },
    };
}
export function italic(data) {
    return {
        type: ITALIC,
        payload: { data },
    };
}
export function borderType(data, value, color) {
    return {
        type: BORDER_TYPE,
        payload: { data, value, color },
    };
}
export function underlineType(data) {
    return {
        type: UNDERLINE_TYPE,
        payload: { data },
    };
}
export function fontSize(data, value) {
    return {
        type: FONT_SIZE,
        payload: { data, value },
    };
}
export function fontFamily(data, value) {
    return {
        type: FONT_FAMILY,
        payload: { data, value },
    };
}
export function textAlign(data, value) {
    return {
        type: TEXT_ALIGN,
        payload: { data, value },
    };
}
export function color(data, value) {
    return {
        type: COLOR,
        payload: { data, value },
    };
}
export function backgroundStyle(data, value) {
    return {
        type: BACKGROUND_COLOR,
        payload: { data, value },
    };
}
export function formatePainter(data) {
    return {
        type: FORMATE_PAINTER,
        payload: { data },
    };
}
export function addRowTop() {
    return {
        type: ADD_ROW_TOP,
    };
}
export function addRowBottom() {
    return {
        type: ADD_ROW_BOTTOM,
    };
}
export function addColumnLeft() {
    return {
        type: ADD_COLUMN_LEFT,
    };
}
export function addColumnRight() {
    return {
        type: ADD_COLUMN_RIGHT,
    };
}
export function deleteRow() {
    return {
        type: DELETE_ROW,
    };
}
export function deleteColumn() {
    return {
        type: DELETE_COLUMN,
    };
}
export function keyPress(event) {
    return {
        type: KEY_PRESS,
        payload: { event },
    };
}
export function setData(data) {
    return {
        type: SET_DATA,
        payload: { data },
    };
}
export function setCreateFormulaParser(createFormulaParser) {
    return {
        type: SET_CREATE_FORMULA_PARSER,
        payload: { createFormulaParser },
    };
}
export function selectEntireRow(row, extend) {
    return {
        type: SELECT_ENTIRE_ROW,
        payload: { row, extend },
    };
}
export function selectEntireColumn(column, extend) {
    return {
        type: SELECT_ENTIRE_COLUMN,
        payload: { column, extend },
    };
}
export function selectEntireWorksheet() {
    return { type: SELECT_ENTIRE_WORKSHEET };
}
export function setSelection(selection) {
    return { type: SET_SELECTION, payload: { selection } };
}
export function select(point) {
    return {
        type: SELECT,
        payload: { point },
    };
}
export function activate(point) {
    return {
        type: ACTIVATE,
        payload: { point },
    };
}
export function setCellData(active, data) {
    return {
        type: SET_CELL_DATA,
        payload: { active, data },
    };
}
export function setCellDimensions(point, dimensions) {
    return {
        type: SET_CELL_DIMENSIONS,
        payload: { point, dimensions },
    };
}
export function paste(data) {
    return {
        type: PASTE,
        payload: { data },
    };
}
export function keyDown(event) {
    return {
        type: KEY_DOWN,
        payload: { event },
    };
}
export function dragStart() {
    return { type: DRAG_START };
}
export function dragEnd() {
    return { type: DRAG_END };
}
export function commit(changes) {
    return {
        type: COMMIT,
        payload: { changes },
    };
}
export function copy() {
    return { type: COPY };
}
export function cut() {
    return { type: CUT };
}
export function edit() {
    return { type: EDIT };
}
export function view() {
    return { type: VIEW };
}
export function clear() {
    return { type: CLEAR };
}
export function blur() {
    return { type: BLUR };
}
//# sourceMappingURL=actions.js.map