chore(canvas): bring back more options

This commit is contained in:
Elian Doran 2025-06-10 23:28:36 +03:00
parent ddbd268a66
commit 5b98277f3c
No known key found for this signature in database

View File

@ -183,6 +183,23 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
theme: this.themeStyle,
onChange: () => this.onChangeHandler(),
viewModeEnabled: options.is("databaseReadonly"),
zenModeEnabled: false,
gridModeEnabled: false,
isCollaborating: false,
detectScroll: false,
handleKeyboardGlobally: false,
autoFocus: false,
UIOptions: {
canvasActions: {
saveToActiveFile: false,
export: false
}
},
onLibraryChange: () => {
this.libraryChanged = true;
this.saveData();
},
});
this.canvasInstance.renderCanvas(renderElement);
}