Start of undo redo
This commit is contained in:
parent
bda89911fc
commit
dfd4f2623f
12
src/actionlist.ts
Normal file
12
src/actionlist.ts
Normal 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
15
src/actionnode.ts
Normal 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
} */
|
@ -12,6 +12,7 @@
|
|||||||
"max-line-length": false,
|
"max-line-length": false,
|
||||||
"prefer-for-of": false,
|
"prefer-for-of": false,
|
||||||
"typedef": true,
|
"typedef": true,
|
||||||
|
"no-console": false,
|
||||||
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"]
|
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"]
|
||||||
},
|
},
|
||||||
"rulesDirectory": []
|
"rulesDirectory": []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user