Skip to content

Excalidraw 2.7.5

Latest
Compare
Choose a tag to compare
@zsviczian zsviczian released this 05 Jan 22:09
· 17 commits to master since this release

Fixed

  • PDF export scenario described in #2184
  • Elbow arrows do not work within frames #2187
  • Embedding images into Excalidraw with areaRef links did not work as expected due to conflicting SVG viewbox and width and height values
  • Can't exit full-screen mode in popout windows using the Command Palette toggle action #2188
  • If the image mask extended beyond the image in "Mask and Crop" image mode, the mask got misaligned from the image.
  • PDF image embedding fixes that impacted some PDF files (not all):
    • When cropping the PDF page in the scene (by double-clicking the image to crop), the size and position of the PDF cutout drifted.
    • Using PDF++ there was a small offset in the position of the cutout in PDF++ and the image in Excalidraw.
    • Images cropped from PDF++ before Excalidraw's new cropping feature was introduced did not load.
  • Updated a number of scripts including Split Ellipse, Select Similar Elements, and Concatenate Lines

New in ExcalidrawAutomate

  /**
   * Add, modify, or delete keys in element.customData and preserve existing keys.
   * Creates customData={} if it does not exist.
   * Takes the element id for an element in ea.elementsDict and the newData to add or modify.
   * To delete keys set key value in newData to undefined. So {keyToBeDeleted:undefined} will be deleted.
   * @param id
   * @param newData 
   * @returns undefined if element does not exist in elementsDict, returns the modified element otherwise.
   */
  public addAppendUpdateCustomData(id:string, newData: Partial<Record<string, unknown>>);

Minor code refactoring

  • Replaced some instances of any with proper type
  • Removed few instances of //@ts-ignore
  • Updated javadoc-style documentation of ExcalidrawAutomate
  • Updated ExcalidrawAutomate lib