add history.shouldCreateEntry resolver (#1622)
This commit is contained in:
@ -70,26 +70,6 @@ export const clearAppStateForLocalStorage = (appState: AppState) => {
|
||||
return exportedState;
|
||||
};
|
||||
|
||||
export const clearAppStatePropertiesForHistory = (
|
||||
appState: AppState,
|
||||
): Partial<AppState> => {
|
||||
return {
|
||||
selectedElementIds: appState.selectedElementIds,
|
||||
exportBackground: appState.exportBackground,
|
||||
shouldAddWatermark: appState.shouldAddWatermark,
|
||||
currentItemStrokeColor: appState.currentItemStrokeColor,
|
||||
currentItemBackgroundColor: appState.currentItemBackgroundColor,
|
||||
currentItemFillStyle: appState.currentItemFillStyle,
|
||||
currentItemStrokeWidth: appState.currentItemStrokeWidth,
|
||||
currentItemRoughness: appState.currentItemRoughness,
|
||||
currentItemOpacity: appState.currentItemOpacity,
|
||||
currentItemFont: appState.currentItemFont,
|
||||
currentItemTextAlign: appState.currentItemTextAlign,
|
||||
viewBackgroundColor: appState.viewBackgroundColor,
|
||||
name: appState.name,
|
||||
};
|
||||
};
|
||||
|
||||
export const cleanAppStateForExport = (appState: AppState) => {
|
||||
return {
|
||||
viewBackgroundColor: appState.viewBackgroundColor,
|
||||
|
Reference in New Issue
Block a user