github zsviczian/obsidian-excalidraw-plugin 1.7.14
Excalidraw 1.7.14

latest releases: 2.15.3-beta-2, 2.15.3-beta-1, 2.15.2...
3 years ago

Video thumbnail small

New

  • The Copy markdown link for selected element to clipboard action in the Obsidian menu is now more intelligent. If multiple elements are selected it will copy the Element Reference for the largest element.
  • When referencing an element in a link pointing to an Excalidraw file using the elementId or the section header as the block reference e.g. [[file#^elementID]], you can now add the group= prefix, e.g. [[file#^group=elementID]] and the area= prefix, e.g. [[file#area=Section heading]]. If the group= prefix is found, Excalidraw will select the group of elements in the same group as the element referenced by the elementID or heading section reference. If the area= prefix is found, excalidraw will insert a cutout of the image around the referenced element. The area= selector is not supported when embedding Excalidraw as PNG into your markdown documents.
  • I added "Toggle left-handed mode" to the Command Palette. The action is only visible if tray-mode is enabled. It will move the tray from left to right and back. 749

Fix

  • Zooming with CTRL+Wheel will no longer trigger hover preview.
  • When editing text in a text element CTRL+C will not launch the hover preview in case the mouse pointer is over the text element being edited. Hover preview will only show if the element is not in editing mode.
  • ExcalidrawAutomate did not reliably save changes. This caused issues for example in the "Add link to an existing file and open" script. #747
  • Create a new folder not working when clicking on a link in Erxcalidraw that points to a file that is in a folder that does not yet exist. 741
  • Downgraded to React 17 due to various stability issues, including #738 and #747

New in Excalidraw Automate

  • I added two new Excalidraw Automate functions
/**
 * Gets the groupId for the group that contains all the elements, or null if such a group does not exist
 * @param elements 
 * @returns null or the groupId
*/
getCommonGroupForElements(elements: ExcalidrawElement[]): string;

/**
 * Gets all the elements from elements[] that share one or more groupIds with element.
 * @param element 
 * @param elements - typically all the non-deleted elements in the scene 
 * @returns 
*/
getElementsInTheSameGroupWithElement(element: ExcalidrawElement, elements: ExcalidrawElement[]): ExcalidrawElement[];

Don't miss a new obsidian-excalidraw-plugin release

NewReleases is sending notifications on new releases.