1
0
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:
akupiec 2021-01-26 21:44:52 +01:00
parent 69acb28707
commit 15aff21609

View File

@ -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();
}