43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
|
import { GraphicData, JlGraphic } from '../core';
|
||
|
import { JlOperation } from '../operation';
|
||
|
import { ICanvasProperties, IGraphicApp, IJlCanvas } from './JlGraphicApp';
|
||
|
/**
|
||
|
* 更新画布操作
|
||
|
*/
|
||
|
export declare class UpdateCanvasOperation extends JlOperation {
|
||
|
obj: IJlCanvas;
|
||
|
old: ICanvasProperties;
|
||
|
data: ICanvasProperties;
|
||
|
description: string;
|
||
|
constructor(app: IGraphicApp, obj: IJlCanvas, old: ICanvasProperties, data: ICanvasProperties);
|
||
|
undo(): JlGraphic[];
|
||
|
redo(): JlGraphic[];
|
||
|
}
|
||
|
/**
|
||
|
* 创建图形操作
|
||
|
*/
|
||
|
export declare class GraphicCreateOperation extends JlOperation {
|
||
|
obj: JlGraphic[];
|
||
|
description: string;
|
||
|
constructor(app: IGraphicApp, obj: JlGraphic[]);
|
||
|
undo(): JlGraphic[] | void;
|
||
|
redo(): JlGraphic[];
|
||
|
}
|
||
|
/**
|
||
|
* 删除图形操作
|
||
|
*/
|
||
|
export declare class GraphicDeleteOperation extends JlOperation {
|
||
|
obj: JlGraphic[];
|
||
|
constructor(app: IGraphicApp, obj: JlGraphic[]);
|
||
|
undo(): JlGraphic[];
|
||
|
redo(): void;
|
||
|
}
|
||
|
export declare class GraphicDataUpdateOperation extends JlOperation {
|
||
|
obj: JlGraphic[];
|
||
|
oldData: GraphicData[];
|
||
|
newData: GraphicData[];
|
||
|
constructor(app: IGraphicApp, obj: JlGraphic[], oldData: GraphicData[], newData: GraphicData[]);
|
||
|
undo(): void | JlGraphic[];
|
||
|
redo(): void | JlGraphic[];
|
||
|
}
|