core-cde
Version:
50 lines (49 loc) • 2.05 kB
TypeScript
import { IStyleProps, ITextAlignmentProps, ITextProps, ITextWrapProps, ITextUnWrapProps } from '../interfaces/ITextProps';
import { Action } from './Action';
export declare enum ETextActions {
insertText = "insertText",
removeText = "removeText",
selectText = "selectText",
addStyleText = "addStyleText",
removeStyleText = "removeStyleText",
textAlignment = "textAlignment",
textWrapping = "textWrapping",
textUnWrapping = "textUnWrapping"
}
export declare class TextAlignmentAction extends Action<ITextAlignmentProps> {
readonly type = ETextActions.textAlignment;
}
export declare class TextWrappingAction extends Action<ITextWrapProps> {
newWidgetId: string;
readonly type = ETextActions.textWrapping;
/**
* Получить объект для сериализации
* @returns Объект для сериализации
*/
toJSON(): any;
}
export declare class TextUnWrappingAction extends Action<ITextUnWrapProps> {
removeWidgetId: string;
readonly type = ETextActions.textUnWrapping;
/**
* Получить объект для сериализации
* @returns Объект для сериализации
*/
toJSON(): any;
}
export declare class RemoveStyleTextAction extends Action<IStyleProps> {
readonly type = ETextActions.removeStyleText;
}
export declare class AddStyleTextAction extends Action<IStyleProps> {
readonly type = ETextActions.addStyleText;
}
export declare class InsertTextAction extends Action<ITextProps> {
readonly type = ETextActions.insertText;
}
export declare class RemoveTextAction extends Action<ITextProps> {
readonly type = ETextActions.removeText;
}
export declare class SelectTextAction extends Action<ITextProps> {
readonly type = ETextActions.insertText;
}
export declare type TextActions = InsertTextAction | RemoveTextAction | SelectTextAction | AddStyleTextAction | TextWrappingAction | TextUnWrappingAction | RemoveStyleTextAction;