public getElements(): IPastFutureElements {
const future: IUndoRedoElement[] = [];
for (const element of this._past) {
past.push(element.actual);
}
for (const element of this._future) {
future.push(element.actual);
}
return { past, future };
}
public getClosestPastElement(): StackElement | null {