mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
undo / and simple redo - performance footprint
This commit is contained in:
parent
69acb28707
commit
15aff21609
@ -29,15 +29,15 @@ class LiFoQueue {
|
||||
}
|
||||
|
||||
const ActionType = {
|
||||
add: "ADD",
|
||||
remove: "REMOVE",
|
||||
add: 0,
|
||||
remove: 1,
|
||||
};
|
||||
|
||||
export class HistoryManager {
|
||||
constructor(root) {
|
||||
this.root = root;
|
||||
this._forUndo = new LiFoQueue();
|
||||
this._forRedo = new LiFoQueue();
|
||||
this._forUndo = new LiFoQueue(100);
|
||||
this._forRedo = new LiFoQueue(20);
|
||||
|
||||
this.initializeBindings();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user