UNPKG

gd-canvas

Version:

This set of libraries was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.0 and no dependencies accept gd-tree (it has jquery and jstree) and gd-graph (it has jquery and chart.js).

52 lines (51 loc) 1.4 kB
interface ITransaction { addAction(name: string, obj: any): IAction; } interface IAction { record(x: number, y: number, w: number, h: number, a: number): void; undo(): void; redo(): void; } export declare class Action implements IAction { private name; private obj; private init_x; private init_y; private init_w; private init_h; private init_angle; private x; private y; private w; private h; private a; private Obj; private Name; constructor(name: string, obj: any); record(x: number, y: number, w: number, h: number, a: number): void; undo(): void; redo(): void; } export declare class Transaction implements ITransaction { isRecording: boolean; private actions; constructor(); addAction(name: string, obj: any): IAction; recordAction(x: number, y: number, w: number, h: number, a: number): void; undo(): void; redo(): void; } export declare class UndoRedoManager { transactions: any[]; current: number; constructor(); TransactionStart(): ITransaction; TransactionEnd(): void; IsUndoEmpty(): boolean; IsRedoEmpty(): boolean; CreateAction(name: string, obj: any): void; RecordAction(x: number, y: number, w: number, h: number, a: number): void; undo(): void; redo(): void; } export {};