Excalidraw 2.25.0-beta

I just published 2.25.0-beta.0

The most exciting news is the new laser-pointer based freedraw line tool engine by the excalidraw.com team. This should result in dramatically smoother hand-writing performance on pen enabled devices.

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

  • 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

As a consequence of the freedraw tool changes I was “forced” to touch custom pens, which lead to the introduction of a new line width option. Without boring you with the details… since I felt the best approach was to introduce a fifth line width default, I though “why not use the extra space” for an XS font size preset and for adding the default bold font (Lilita One) to the quick access tools.

Do you like the extended element properties toolbar? or does this now feel too crowded? Let me know what you think.

4 Likes

Hi Zsolt,

personally, I welcome a fifth weight option for lines and fonts. But I am even more thrilled to take the new freedraw pen for a ride :slightly_smiling_face:

BR, Robert

3 Likes

2.25.0-beta.1

  • Style fixes
  • I added the feature requested by @Rolf during today’s Monthly community call to show or hide document properties for embedded full Markdown files. We discuss the feature at the 10 minute mark in the session recording.

2.25.0-beta.2

Fixed

  • 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.

2.25.0-beta.4

  • Markdown-embed-as-image snapshot drops MathJax/LaTeX output #2818, #2282 :folded_hands:@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.

2.25.0-beta.5

Fixed flaky embeddable state management leading to back of the note card in “lock preview mode” snapping out of preview mode a few seconds after the user ticked a checkbox.

Bumped Excalidraw Extras requirement to 0.0.15 to solve LaTeX and Mermaid not working on iOS #2825

New in ExcalidrawAutomate

  • Added onSceneChangeHook to allow scripts and sidepanel tabs to react to scene changes. The hook supports filtering by appStateKeys, tracking element changes, 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;