graphic-pixi/lib/app/BasicOperation.d.ts

43 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-12-12 17:31:07 +08:00
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[];
}