Add points to multi arrows in real time (#697)

* Add points to multi arrows in real time

* Fix linter issues

* Clear unecessary values from local storage
This commit is contained in:
Gasim Gasimzada 2020-02-04 17:39:08 +04:00 committed by GitHub
parent 173fe093b6
commit 08d80fb4fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 52 additions and 6 deletions

View file

@ -30,6 +30,18 @@ export function getDefaultAppState(): AppState {
};
}
export function clearAppStateForLocalStorage(appState: AppState) {
const {
draggingElement,
resizingElement,
multiElement,
editingElement,
isResizing,
...exportedState
} = appState;
return exportedState;
}
export function cleanAppStateForExport(appState: AppState) {
return {
viewBackgroundColor: appState.viewBackgroundColor,