Add grid to canvas (#6429)

This commit is contained in:
Elian Doran 2025-07-22 23:53:22 +03:00 committed by GitHub
commit fa509661ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,6 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
onChange: () => this.onChangeHandler(),
viewModeEnabled: options.is("databaseReadonly"),
zenModeEnabled: false,
gridModeEnabled: false,
isCollaborating: false,
detectScroll: false,
handleKeyboardGlobally: false,

View File

@ -153,7 +153,8 @@ export default class Canvas {
appState: {
scrollX: appState.scrollX,
scrollY: appState.scrollY,
zoom: appState.zoom
zoom: appState.zoom,
gridModeEnabled: appState.gridModeEnabled
}
};