disable Context menu, 0.18.0-44

This commit is contained in:
zsviczian committed 2025-10-28 06:27:28 +01:00
1 parent 123fa12122
commit 8379f9315e
5 files changed
+22 -1

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@
"license": "MIT",
"dependencies": {
"@popperjs/core": "^2.11.8",
"@zsviczian/excalidraw": "0.18.0-43",
"@zsviczian/excalidraw": "0.18.0-44",
"chroma-js": "^3.1.2",
"clsx": "^2.0.0",
"@zsviczian/colormaster": "^1.2.2",
+14
View File
@@ -234,6 +234,7 @@ export interface ExcalidrawSettings {
modifierKeyOverrides: {modifiers: Modifier[], key: string}[];
showSplashscreen: boolean;
pdfSettings: PDFExportSettings;
disableContextMenu: boolean;
}
declare const PLUGIN_VERSION:string;
@@ -534,6 +535,7 @@ export const DEFAULT_SETTINGS: ExcalidrawSettings = {
alignment: "center",
margin: "normal",
},
disableContextMenu: false,
};
export class ExcalidrawSettingTab extends PluginSettingTab {
@@ -1218,6 +1220,18 @@ export class ExcalidrawSettingTab extends PluginSettingTab {
this.applySettingsUpdate();
}),
);
new Setting(detailsEl)
.setName(t("DISABLE_CONTEXT_MENU_NAME"))
.setDesc(t("DISABLE_CONTEXT_MENU_DESC"))
.addToggle((toggle) =>
toggle
.setValue(!this.plugin.settings.disableContextMenu)
.onChange(async (value) => {
this.plugin.settings.disableContextMenu = !value;
this.applySettingsUpdate();
}),
);
const readingModeEl = new Setting(detailsEl)
.setName(t("SHOW_DRAWING_OR_MD_IN_READING_MODE_NAME"))
+2
View File
@@ -215,6 +215,8 @@ export default {
//settings.ts
DISABLE_CONTEXT_MENU_NAME: "Disable Excalidraw context menu",
DISABLE_CONTEXT_MENU_DESC: "Disables the Excalidraw context menu. This can be useful on Mobile devices where the context menu pops up in unwanted moments.",
NOTEBOOKLM_LINK_ARIA: "Ask NotebookLM for help about the plugin. This model is pre-loaded with all my video transcripts, release notes and other helpful content. Chat with NotebookLM to explore my 250+ videos and the Excalidraw documentation.",
NOTEBOOKLM_LINK_TEXT: "Learn the Plugin. Access the NotebookLM knowledgebase.",
LINKS_BUGS_ARIA: "Report bugs and raise feature requsts on the plugin's GitHub page",
+1
View File
@@ -2902,6 +2902,7 @@ export default class ExcalidrawView extends TextFileView implements HoverParent{
this.loadSceneFiles();
this.updateContainerSize(null, true, justloaded);
this.initializeToolsIconPanelAfterLoading();
this.excalidrawAPI.refreshEditorBreakpoints();
}
public setDirty(location?:number) {
+4
View File
@@ -904,4 +904,8 @@ textarea.excalidraw-wysiwyg, .excalidraw input {
.ExcalidrawObsidianMenu {
display: flex;
flex-direction: column;
}
.excalidraw .FixedSideContainer_side_top {
padding-top: 0 !important;
}