SGraphAddCommand.d.ts 478 B

12345678910111213
  1. import { SGraphCommand } from "./SGraphCommand";
  2. import { SGraphItem } from "../SGraphItem";
  3. import { SUndoCommand } from "@persagy-web/base/lib";
  4. import { SGraphScene } from "../SGraphScene";
  5. export declare class SGraphAddCommand extends SGraphCommand {
  6. readonly command: string;
  7. item: SGraphItem;
  8. parent: SGraphItem | null;
  9. constructor(scene: SGraphScene, item: SGraphItem);
  10. mergeWith(command: SUndoCommand): boolean;
  11. redo(): void;
  12. undo(): void;
  13. }