cleaaning

This commit is contained in:
Tom Boullay
2026-04-28 10:42:57 +02:00
parent 5e528a90f9
commit d70de8c9a4
11 changed files with 104 additions and 260 deletions
@@ -11,8 +11,11 @@ interface ObjectTransform {
class HistoryManager {
private history: ObjectTransform[][] = [];
private currentIndex = -1;
private maxSize: number;
constructor(private maxSize = 50) {}
constructor(maxSize = 50) {
this.maxSize = maxSize;
}
saveSnapshot(objects: ObjectTransform[]): void {
if (this.currentIndex < this.history.length - 1) {