Fix many syncing issues (#952)

This commit is contained in:
Pete Hunt 2020-03-14 20:46:57 -07:00 committed by GitHub
parent b20d4539c0
commit 3f8144ef85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 176 additions and 100 deletions

View file

@ -13,6 +13,11 @@ export class SceneHistory {
private stateHistory: string[] = [];
private redoStack: string[] = [];
clear() {
this.stateHistory.length = 0;
this.redoStack.length = 0;
}
private generateEntry(
appState: AppState,
elements: readonly ExcalidrawElement[],