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:
@ -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,
|
||||
|
Reference in New Issue
Block a user