github zsviczian/obsidian-excalidraw-plugin 2.25.0

one hour ago

Excalidraw 2.25.0 Update

New from Excalidraw.com

  • Significantly improved ink flow for freedraw pen. You can now toggle between pressure sensitive and constant mode for the default excalidraw.com freedraw pen. #11507, #11551

New in the Plugin

  • Added the ability to show or hide document properties for embedded full Markdown files. This feature was requested by @Rolf during a Sketch Your Mind community monthly call discussion. Join the community!
  • Comic book Callout Editor script available in the Script Library
  • Added new ExtraBold line width option, and XS font option

Fixed

  • BUG: Double Click to edit from Obsidian in Live preview doesn't work anymore #2813
  • Edge cases leading to memory leak and CPU overload when closing a markdown preview while embedded Excalidraw drawings are loading, or closing an ExcalidrawView, while nested images are still loading.
  • Markdown-embed-as-image snapshot drops MathJax/LaTeX output #2818, #2282 🙏@Jmarcos13 via #2822
  • Fixed the "Customize the Embedded File Link" action. If you change the dimensions of the markdown image or the pdf page reference number, the image immediately updates in the scene. You can also use this feature to swap out images e.g. a png icon to an SVG icon. Default shortcut is CTRL+WIN+Click or CMD+Control+Click on the image element.
  • LaTeX and Mermaid did not work on iOS. Released updated Excalidraw Extras and bumped the minimum required version to 0.0.15. #2825
  • Malformed "Source" URL in ExcalidrawLib and Excalidraw Data json. #2826

New in ExcalidrawAutomate

  • Added onSceneChangeHook to allow scripts and sidepanel tabs to react to scene changes. The hook supports filtering by appStateKeys and checking for tab visibility to optimize performance.
/**
 * If set, this callback is triggered when the scene changes in the target view.
 * You can use this to react to appState or element changes.
 * Any script can sign up for updates via this hook.
 * Because this hook fires extremely frequently (on every mouse move during drawing),
 * you MUST specify which appState keys you are interested in OR set trackElements to true.
 * If trackElements is falsy and appStateKeys is empty or undefined, the callback will NOT be triggered to prevent performance issues.
 * For sidepanel tabs, there is an additional filter feature: if triggerWhenInvisible is false,
 * the callback will only trigger when the sidepanel is visible and the tab is active.
 */
onSceneChangeHook: {
  appStateKeys?: (keyof AppState)[];
  trackElements?: boolean;
  triggerWhenInvisible?: boolean;
  callback: (
    elements: readonly ExcalidrawElement[],
    appState: AppState,
    files: BinaryFiles,
    view: ExcalidrawView,
    ea: ExcalidrawAutomate,
  ) => void;
} | null = null;


## New Contributors
* @Jmarcos13 made their first contribution in https://github.com/zsviczian/obsidian-excalidraw-plugin/pull/2822

**Full Changelog**: https://github.com/zsviczian/obsidian-excalidraw-plugin/compare/2.24.2...2.25.0

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

NewReleases is sending notifications on new releases.