SGraphMoveCommand.d.ts 580 B

12345678910111213141516
  1. import { SGraphCommand } from "./SGraphCommand";
  2. import { SGraphItem } from "../SGraphItem";
  3. import { SPoint } from "@persagy-web/draw/lib";
  4. import { SUndoCommand } from "@persagy-web/base/lib";
  5. import { SGraphScene } from "../SGraphScene";
  6. export declare class SGraphMoveCommand extends SGraphCommand {
  7. readonly command: string;
  8. item: SGraphItem;
  9. old: SPoint;
  10. pos: SPoint;
  11. constructor(scene: SGraphScene, item: SGraphItem, old: SPoint, pos: SPoint);
  12. mergeWith(command: SUndoCommand): boolean;
  13. redo(): void;
  14. undo(): void;
  15. toString(): string;
  16. }