mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: Change grid size
This commit is contained in:
parent
39e7b8cf4f
commit
40cd4caeec
10 changed files with 146 additions and 13 deletions
|
@ -6,6 +6,7 @@ import {
|
|||
DEFAULT_FONT_SIZE,
|
||||
DEFAULT_FONT_FAMILY,
|
||||
DEFAULT_TEXT_ALIGN,
|
||||
GRID_SIZE,
|
||||
} from "./constants";
|
||||
|
||||
export const getDefaultAppState = (): Omit<
|
||||
|
@ -65,7 +66,8 @@ export const getDefaultAppState = (): Omit<
|
|||
showShortcutsDialog: false,
|
||||
suggestedBindings: [],
|
||||
zenModeEnabled: false,
|
||||
gridSize: null,
|
||||
gridSize: GRID_SIZE,
|
||||
showGrid: false,
|
||||
editingGroupId: null,
|
||||
selectedGroupIds: {},
|
||||
width: window.innerWidth,
|
||||
|
@ -121,6 +123,7 @@ const APP_STATE_STORAGE_CONF = (<
|
|||
exportBackground: { browser: true, export: false },
|
||||
exportEmbedScene: { browser: true, export: false },
|
||||
gridSize: { browser: true, export: true },
|
||||
showGrid: { browser: true, export: false },
|
||||
height: { browser: false, export: false },
|
||||
isBindingEnabled: { browser: false, export: false },
|
||||
isLibraryOpen: { browser: false, export: false },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue