Start of undo redo

This commit is contained in:
Nathan Kunicki 2018-01-23 09:29:46 +00:00
parent bda89911fc
commit dfd4f2623f
3 changed files with 28 additions and 0 deletions

12
src/actionlist.ts Normal file
View File

@ -0,0 +1,12 @@
/* class ActionList extends LinkedList {
private _current: ActionNode;
public push (node: LinkedNode): void {
// super(node);
}
} */

15
src/actionnode.ts Normal file
View File

@ -0,0 +1,15 @@
/* class ActionNode extends LinkedNode {
public undo: () => void;
public redo: () => void;
constructor (undo: () => void, redo: () => void) {
super();
this.undo = undo;
this.redo = redo;
}
} */

View File

@ -12,6 +12,7 @@
"max-line-length": false,
"prefer-for-of": false,
"typedef": true,
"no-console": false,
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"]
},
"rulesDirectory": []