Skip to content

Releases: zsviczian/obsidian-excalidraw-plugin

Excalidraw 2.1.7

05 May 17:13
Compare
Choose a tag to compare

Thumbnail - 20240501 Excalidraw 2M view showcase (Custom)

Updates from Excalidraw.com

  • Improved undo management.
  • Improved handle to scale images from the side.
  • Changed arrow binding behavior.
  • Many other minor fixes and improvements.

New

  • Introduced image caching for nested (embedded) Excalidraw drawings on the scene. This enhancement should lead to improved scene loading times, especially when dealing with numerous embedded Excalidraw drawings.
  • Added new OCR Command Palette actions. Users can now re-run OCR and run OCR for selected elements.

Fixed

  • Fixed an issue where cropping an embeddable PDF frame in the Excalidraw Scene caused distortion based on the embeddable element's aspect ratio. (#1756)
  • Removed the listing of # Embedded files section when adding a "Back of the note card". (#1754)
  • Resolved the issue where closing the on-screen keyboard with the keyboard hide button of your phone, instead of tapping somewhere else on the Excalidraw scene, did not resize the scene correctly. (#1729)
  • Fixed the problem where pasting a text element as text into markdown incorrectly pasted the text to the end of the MD note, with line breaks as rendered on screen in Excalidraw. Also addressed the issue where pasting an image element as an image resulted in it being pasted to the end of the document. (#1749)
  • Corrected the color inversion of embedded images when changing the theme from light to dark, then back from dark to light, and again from light to dark on the third change.
  • Addressed the problem where cropping an image while unlocking and rotating it in the cropper did not reflect the rotation. Note that rotating the image in Cropper required switching to markdown view mode, changing the "locked": true property to false, then switching back to Excalidraw mode. This issue likely impacted only a very few power users. (#1745)

New in ExcalidrawAutomate

/**
   * Retruns the embedded images in the scene recursively. If excalidrawFile is not provided, 
   * the function will use ea.targetView.file
   * @param excalidrawFile 
   * @returns TFile[] of all nested images and Excalidraw drawings recursively
   */
  public getEmbeddedImagesFiletree(excalidrawFile?: TFile): TFile[];

2.1.6.1-beta-1

01 May 08:56
Compare
Choose a tag to compare
2.1.6.1-beta-1 Pre-release
Pre-release
convert app.isMobile to DEVICE.isMobile, fix CropImage angle!==0

Excalidraw 2.1.6

23 Apr 20:19
Compare
Choose a tag to compare

Two minor fixes

  • Fixed scaling of LaTeX formulas when the formula is changed #1724
  • Resolving an odd issue that has been there since November 2021 (v1.4.9). If the back of the note card only contains a block embed ![[embed]] this was removed when saving the Excalidraw file.

Excalidraw 2.1.5

22 Apr 18:10
Compare
Choose a tag to compare

New

  • Save "Snap to objects" with the scene state. If this is the only change you make to the scene, force save it using CTRL+S (note, use CTRL on Mac as well).
  • Added "Copy markdown link" to the context menu.

Fixed

  • Paste operation occasionally duplicated text elements. #1723
  • Pasting multiple instances of the same image from excalidraw.com or another instance of Obsidian, or pasting an image from anywhere and making copies with ALT/OPT + drag immediately after pasting (before autosave triggered) led to broken images when reopening the drawing.
  • CTRL/CMD+Click on a Text Element with an element link did not work (previously, you had to click the top right link indicator). Now, you can click anywhere on the element. #1725
  • Hover preview for elements with a link only worked when hovering over the element link. Now, you can hover anywhere. If there are multiple elements with links, the top-level element will take precedence.
  • Link navigation within drawing when the "Focus on Existing Tab" feature is enabled under "Links, transclusion and TODOs" in settings works again.
  • If a link points to a back-of-the-card section or block the drawing will automatically switch to markdown view mode and navigate to the block or section.
  • DynamicSytle, dark mode when canvas background is set to transparent.
  • Scale to maintain the aspect ratio of a markdown notes embedded as images.
  • You can now borrow interactive markdown embeds to tables, blockquotes, list elements and callouts - not just paragraphs.
  • Back of the drawing cards:
    • Leaving the Section Name empty when creating the first back of the card note resulted in an error.
    • If you add the markdown comment (%%) directly before # Text Elements, a trailing # will be added to your document, when adding a back of the card note. This is to hide the markdown comment from the card. The trailing (empty) # will not be visible in reading mode, pdf exports, and when publishing with Obsidian Publish.
      Here's a sample markdown structure of your document:
---
excalidraw-plugin: parsed
---
# Your back of the card section
bla bla bla

#
%%
# Text Elements
... the rest of the Excalidraw file

Excalidraw 2.1.4

13 Apr 07:44
Compare
Choose a tag to compare

Fixed

  • Fixed the aspect ratio of an Excalidraw embedded within another Excalidraw not updating. #1707
  • Some plugins automatically add document properties to all files in the Vault. Users with this configuration were unable to run Excalidraw scripts. Excalidraw now removes document properties from the script before execution.
  • The very last markdown edit sometimes wasn't saved when immediately switching from Markdown to Excalidraw View. I now force a save before switching views.
  • The setting to disable/enable CTRL/CMD + CLICK on text with [[links]] or [](links) to open them works again. #1704
  • Annotation and cropping of images in Markdown notes now also work with Markdown links that have encoded characters e.g.: ![images with](markdown%20links).
  • Solved compatibility issue of Taskbone OCR on Android.

New

  • New settings:
    • Under "Appearance and Behavior": Option to render Excalidraw file as an image in Markdown reading mode. This setting is disabled by default. #1706, #1705
    • Under "Embedding Excalidraw ... and Exporting"/"Export Settings": Option to render Excalidraw file as an image when exporting to PDF in Markdown mode. This option is disabled by default. When enabled, exporting an Excalidraw drawing in markdown view mode to PDF will render the image on the page.
  • Enhanced annotation and cropping of images in Markdown documents:
    • Newly embedded links will now follow the style of the original link. If the original format was a ![markdown](link), the annotated file will follow this format. For [[wiki links]], it will follow that style. Additionally, if an alias was specified like [[link|alias]], the annotated or cropped image will retain the alias.
    • Introduced a new setting under "Saving" titled "Preserve image size when annotating". This setting is disabled by default. When enabled, the embed link replacing the annotated image will maintain the size of the original image.
  • Option to automaticaly embed the scene in exported PNG and SVG image files. Including the scene will allow users to open the picture on Excalidraw.com or in another Obsidian Vault as an editable Excalidraw file.New setting is under the Export category. The new frontmatter tag is: excalidraw-export-embed-scene: true/false.

Excalidraw 2.1.3

06 Apr 13:52
Compare
Choose a tag to compare

Minor change and republishing of 2.1.2

Excalidraw 2.1.2

06 Apr 11:33
Compare
Choose a tag to compare

Quality of Life Improvements

  • The "Insert Any File" option that disappeared from the Command Palette is now restored. #1690
  • Improved two-finger pan speed.
  • Fixed text wrapping issue that caused text to jump around when editing text in a sticky note when the Obsidian zoom level was not set to 100%.
  • Mask Generation in ExcaliAI Edit Image now works properly again. #1684
  • Fixed aspect ratio change for .jpg, .png, .bmp, .webp, .SVG (non-Excalidraw) images. Previously, if the image was distorted (i.e. you held SHIFT while resizing it), it would revert to the original aspect ratio upon saving the drawing. Resetting the aspect ratio is the desired behavior for nested Excalidraw drawings since you might have changed the source image and want it to still display with the correct aspect ratio, however for other image files, the behavior is not desired. #1698
  • The command palette action "Set selected image element size to 100% of original" now works even on freshly pasted images, not just after saving the drawing. (#1695)
  • If a text element has an element link (CTRL/CMD+K), but the link was not reflected in the Element Text, then CTRL/CMD+clicking the text element did not navigate to the link, only clicking the link indicator did. Now you can also CTRL/CMD click anywhere on the text element and it will navigate. Note, however, that links in the text element text take precedence over element links.

Excalidraw 2.1.1

01 Apr 18:57
Compare
Choose a tag to compare

Fixed

  • Printing a markdown page that has an Excalidraw drawing on the back side, resulted in an empty PDF. This is now resolved.

New

  • Reduce the visual clutter by fading out the Excalidraw markup in markdown view mode. This feature needs to be enabled in plugin settings. You'll find the setting under Miscellaneous features. Look for Fade out Excalidraw markup. Depending on the location of the markdown comment %%, if the comment starts before # Text Elements then the fading will start from # Text Elements, if the comment is before # Drawing then the fading will only start with "drawing". If you delete the opening %% the markup will be visible. Note, that if you place the comment before #Text Elements, you will not be able to reference blocks in the # Text Elements section, because Obsidian does not index blocks within comment blocks. Image references are not effective, they will work.

image

fade out setting

Excalidraw 2.1.0

31 Mar 18:29
Compare
Choose a tag to compare

Bumping the version to 2.1.0 due to minor file format changes that aren't backward compatible. Essentially, 2.0.26 is already not backward compatible, but I forgot to update the version number.

If you haven't watched the walkthrough video for 2.0.26, I recommend you do so.

New

  • Settings under Excalidraw Appearance and Behavior
    • Configure visibility of the crosshair cursor when using the pen tool. #1673
    • Set the time delay for long press to open drawings from markdown under "Link Click and Modifier Keys".

Excalidraw 2.0.26

30 Mar 16:43
Compare
Choose a tag to compare

Thumbnail - 20240324 PKM workshop debrief with Nicole (Custom)

New

  • Minor updates from Excalidraw.com. The key change is text measurements that should result in consistent text sizing between desktop and mobile devices.
  • Now you can embed the markdown section of an Excalidraw note to your drawing. Simply select Insert ANY file, choose the drawing, and select the relevant heading section to embed.
    • This also works with "back-of-the-drawing" markdown sections. Use the context menu Add back-of-note Card. The action is also available on the Command Palette and in the Excalidraw-Obsidian Tools Panel.
  • Editing an embedded markdown note is now easier. Just press Enter when the element is selected. #1650
  • The crosshair cursor is now hidden when the freedraw tool is active and using a pen. #1659
  • Convert markdown note to Excalidraw Drawing now converts an existing markdown note (not just empty notes) into a drawing. The original markdown note will be on the "back side of the drawing".
  • Introducing Annotate image in Excalidraw, which works very similarly to Crop and mask image. You can replace an image in a markdown note or on the Obsidian Canvas with an Excalidraw drawing containing that image. You will be able to annotate the image in Excalidraw.
  • Now you can reference frames in images embedded in markdown and canvas with frame names e.g. ![[drawing#^frame=Frame 01]]
  • Excalidraw file format change:
    • New frontmatter switch excalidraw-open-md: If set to true, the file by default will open as a markdown file. You can switch to Excalidraw View Mode via the command palette action or by right-clicking the tab.
    • Easter Egg: If you add a comment in front of # Text Elements, then the entire Excalidraw data: markdown and JSON will be commented out, thus invisible when exporting to the web. If you remove the comment from before # Text Elements, then only the JSON will be commented out.

Before:

#1657 
%%
# Text Elements
...
# Drawing

After:

# Text Elements
....
%%
# Drawing