mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-11-03 20:34:40 +01:00 
			
		
		
		
	don't reset specific appState props on canvas clear (#2359)
Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
		@@ -47,6 +47,11 @@ export const actionClearCanvas = register({
 | 
			
		||||
      appState: {
 | 
			
		||||
        ...getDefaultAppState(),
 | 
			
		||||
        appearance: appState.appearance,
 | 
			
		||||
        elementLocked: appState.elementLocked,
 | 
			
		||||
        exportBackground: appState.exportBackground,
 | 
			
		||||
        exportEmbedScene: appState.exportEmbedScene,
 | 
			
		||||
        gridSize: appState.gridSize,
 | 
			
		||||
        shouldAddWatermark: appState.shouldAddWatermark,
 | 
			
		||||
        username: appState.username,
 | 
			
		||||
      },
 | 
			
		||||
      commitToHistory: true,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user