| 1234567891011121314151617181920212223 |
- class SnapshotCommand {
- undoData;
- redoData;
- panel;
- manager;
- constructor(undoData, redoData) {
- this.undoData = undoData;
- this.redoData = redoData;
- }
- async undo() {
- await this.execute(this.undoData);
- }
- async redo() {
- await this.execute(this.redoData);
- }
- async execute() {}
- }
- module.exports = SnapshotCommand;
|