Abstract away or eliminate most of the mutation of the Elements array (#955)

This commit is contained in:
Pete Hunt
2020-03-14 21:48:51 -07:00
committed by GitHub
parent 05af9f04ed
commit e1e2249f57
17 changed files with 293 additions and 272 deletions

View File

@ -14,7 +14,7 @@ export function serializeAsJSON(
type: "excalidraw",
version: 1,
source: window.location.origin,
elements,
elements: elements.filter(element => !element.isDeleted),
appState: cleanAppStateForExport(appState),
},
null,