From 0940a8628a665a252c3be6fbb3efb5b70bae3f71 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Sat, 29 Oct 2022 14:36:17 +0200 Subject: [PATCH] 1.7.26 --- manifest.json | 2 +- package.json | 4 ++-- src/dialogs/Messages.ts | 12 ++++++++++++ src/lang/locale/en.ts | 2 +- src/main.ts | 1 - yarn.lock | 18 +++++++++--------- 6 files changed, 25 insertions(+), 14 deletions(-) diff --git a/manifest.json b/manifest.json index d8d9e1e..794b3cb 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-excalidraw-plugin", "name": "Excalidraw", - "version": "1.7.25", + "version": "1.7.26", "minAppVersion": "0.15.6", "description": "An Obsidian plugin to edit and view Excalidraw drawings", "author": "Zsolt Viczian", diff --git a/package.json b/package.json index 092c5d9..5910733 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-excalidraw-plugin", - "version": "1.7.25", + "version": "1.7.26", "description": "This is an Obsidian.md plugin that lets you view and edit Excalidraw drawings", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -49,7 +49,7 @@ "eslint-plugin-prettier": "^4.0.0", "html2canvas": "^1.4.0", "nanoid": "^4.0.0", - "obsidian": "^0.15.4", + "obsidian": "^0.16.3", "prettier": "^2.5.1", "rollup": "^2.70.1", "rollup-plugin-copy": "^3.4.0", diff --git a/src/dialogs/Messages.ts b/src/dialogs/Messages.ts index 300e880..c674d45 100644 --- a/src/dialogs/Messages.ts +++ b/src/dialogs/Messages.ts @@ -17,6 +17,18 @@ I develop this plugin as a hobby, spending most of my free time doing this. If y
`, +"1.7.26":`## Fixed +- Transcluded block with a parent bullet does not embed sub-bullet [#853](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/853) +- Transcluded text will now exclude ^block-references at end of lines +- Phantom duplicates of the drawing appear when "zoom to fit" results in a zoom value below 10% and there are many objects on the canvas [#850](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/850) +- CTRL+Wheel will increase/decrease zoom in steps of 5% matching the behavior of the "+" & "-" zoom buttons. +- Latest updates from Excalidarw.com + - Freedraw flip not scaling correctly [#5752](https://github.com/excalidraw/excalidraw/pull/5752) + - Multiple elements resizing regressions [#5586](https://github.com/excalidraw/excalidraw/pull/5586) + +## New - power user features +- Force the embedded image to always scale to 100%. Note: this is a very niche feature with a very particular behavior that I built primarily for myself (even more so than other features in Excalidraw Obsidian - also built primarily for myself 😉)... This will reset your embedded image to 100% size every time you open the Excalidraw drawing, or in case you have embedded an Excalidraw drawing on your canvas inserted using this function, every time you update the embedded drawing, it will be scaled back to 100% size. This means that even if you resize the image on the drawing, it will reset to 100% the next time you open the file or you modify the original embedded object. This feature is useful when you decompose a drawing into separate Excalidraw files, but when combined onto a single canvas you want the individual pieces to maintain their actual sizes. I use this feature to construct Book-on-a-Page summaries from atomic drawings. +- I added an action to the command palette to temporarily disable/enable Excalidraw autosave. When autosave is disabled, Excalidraw will still save your drawing when changing to another Obsidian window, but it will not save every 10 seconds. On a mobile device (but also on a desktop) this can lead to data loss if you terminate Obsidian abruptly (i.e. swipe the application away, or close Obsidian without first closing the drawing). Use this feature if you find Excalidraw laggy.`, "1.7.25":`## Fixed - Tool buttons did not "stick" the first time you clicked them. - Tray (in tray mode) was higher when the help button was visible. The tray in tablet mode was too large and the help button was missing. diff --git a/src/lang/locale/en.ts b/src/lang/locale/en.ts index 73e2262..6431d7c 100644 --- a/src/lang/locale/en.ts +++ b/src/lang/locale/en.ts @@ -115,7 +115,7 @@ export default { "Template.md, the setting would be: Excalidraw/Template.md (or just Excalidraw/Template - you may omit the .md file extension). " + "If you are using Excalidraw in compatibility mode, then your template must be a legacy Excalidraw file as well " + "such as Excalidraw/Template.excalidraw.", - SCRIPT_FOLDER_NAME: "Excalidraw Automate script folder", + SCRIPT_FOLDER_NAME: "Excalidraw Automate script folder (CASE SeNSitiVE!)", SCRIPT_FOLDER_DESC: "The files you place in this folder will be treated as Excalidraw Automate scripts. " + "You can access your scripts from Excalidraw via the Obsidian Command Palette. Assign " + diff --git a/src/main.ts b/src/main.ts index 7ce3a26..14f53f0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2010,7 +2010,6 @@ export default class ExcalidrawPlugin extends Plugin { ) { if(typeof opts.applyLefthandedMode === "undefined") opts.applyLefthandedMode = true; if(typeof opts.reEnableAutosave === "undefined") opts.reEnableAutosave = false; - console.log(opts); this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData()); if(opts.applyLefthandedMode) setLeftHandedMode(this.settings.isLeftHanded); if(opts.reEnableAutosave) this.settings.autosave = true; diff --git a/yarn.lock b/yarn.lock index bf14855..894f06e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6206,10 +6206,10 @@ dependencies: "minimist" "^1.2.5" -"moment@2.29.3": - "integrity" "sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==" - "resolved" "https://registry.npmjs.org/moment/-/moment-2.29.3.tgz" - "version" "2.29.3" +"moment@2.29.4": + "integrity" "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==" + "resolved" "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz" + "version" "2.29.4" "monkey-around@^2.3.0": "integrity" "sha512-QWcCUWjqE/MCk9cXlSKZ1Qc486LD439xw/Ak8Nt6l2PuL9+yrc9TJakt7OHDuOqPRYY4nTWBAEFKn32PE/SfXA==" @@ -6420,13 +6420,13 @@ "define-properties" "^1.1.3" "es-abstract" "^1.19.1" -"obsidian@^0.15.4": - "integrity" "sha512-FE11CxxpVD6t/DBvjLvlT7q7YYW91ubTqPKIIp286LdnyLipS8Xi3Tif8i8ALPv87Vg9obKM43aWcPsYLxLllQ==" - "resolved" "https://registry.npmjs.org/obsidian/-/obsidian-0.15.4.tgz" - "version" "0.15.4" +"obsidian@^0.16.3": + "integrity" "sha512-hal9qk1A0GMhHSeLr2/+o3OpLmImiP+Y+sx2ewP13ds76KXsziG96n+IPFT0mSkup1zSwhEu+DeRhmbcyCCXWw==" + "resolved" "https://registry.npmjs.org/obsidian/-/obsidian-0.16.3.tgz" + "version" "0.16.3" dependencies: "@types/codemirror" "0.0.108" - "moment" "2.29.3" + "moment" "2.29.4" "obuf@^1.0.0", "obuf@^1.1.2": "integrity" "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg=="