Skip to content

v0.15.0 (2023-04-18)

Compare
Choose a tag to compare
@ad1992 ad1992 released this 18 Apr 15:21
· 424 commits to master since this release
c9c7964

Features

  • ExcalidrawAPI.scrolToContent has new opts object allowing you to fit viewport to content, and animate the scrolling. #6319

  • Expose useI18n() hook return an object containing t() i18n helper and current langCode. You can use this in components you render as <Excalidraw> children to render any of our i18n locale strings. #6224

  • restoreElements API now takes an optional parameter opts which currently supports the below attributes

{ refreshDimensions?: boolean, repairBindings?: boolean }

The same opts param has been added to restore API as well.

For more details refer to the docs

BREAKING CHANGE

  • The optional parameter refreshDimensions in restoreElements has been removed and can be enabled via opts

Fixes

  • Exporting labelled arrows via export utils #6443

Excalidraw Library

This section lists the updates made to the excalidraw library and will not affect the integration.

Features

  • Constrain export dialog preview size #6475

  • Zigzag fill easter egg #6439

  • Add container to multiple text elements #6428

  • Starting migration from GA to Matomo for better privacy #6398

  • Add line height attribute to text element #6360

  • Add thai lang support #6314

  • Create bound container from text #6301

  • Improve text measurements in bound containers #6187

  • Bind text to container if double clicked on filled shape or stroke #6250

  • Make repair and refreshDimensions configurable in restoreElements #6238

  • Show error message when not connected to internet while collabo… #6165

  • Shortcut for clearCanvas confirmDialog #6114

  • Disable canvas smoothing (antialiasing) for right-angled elements #6186Co-authored-by: Ignacio Cuadra 67276174+ignacio-cuadra@users.noreply.github.com

Fixes

  • Center align text when wrapped in container via context menu #6480

  • Restore original container height when unbinding text which was binded via context menu #6444

  • Mark more props as optional for element #6448

  • Improperly cache-busting on canvas scale instead of zoom #6473

  • Incorrectly duplicating items on paste/library insert #6467

  • Library ids cross-contamination on multiple insert #6466

  • Color picker keyboard handling not working #6464

  • Abort freedraw line if second touch is detected #6440

  • Utils leaking Scene state #6461

  • Split "Edit selected shape" shortcut #6457

  • Center align text when bind to container via context menu #6451

  • Update coords when text unbinded from its container #6445

  • Autoredirect to plus in prod only #6446

  • Fixing popover overflow on small screen #6433

  • Introduce baseline to fix the layout shift when switching to text editor #6397

  • Don't refresh dimensions for deleted text elements #6438

  • Element vanishes when zoomed in #6417

  • Don't jump text to end when out of viewport in safari #6416

  • GetDefaultLineHeight should return default font family line height for unknown font #6399

  • Revert use ideographic textBaseline to improve layout shift when editing text" #6400

  • Call stack size exceeded when paste large text #6373 (#6396)

  • Use ideographic textBaseline to improve layout shift when editing text #6384

  • Chrome crashing when embedding scene on chrome arm #6383

  • Division by zero in findFocusPointForEllipse leads to infinite loop in wrapText freezing Excalidraw #6377

  • Containerizing text incorrectly updates arrow bindings #6369

  • Ensure export preview is centered #6337

  • Hide text align for labelled arrows #6339

  • Refresh dimensions when elements loaded from shareable link and blob #6333

  • Show error message when measureText API breaks in brave #6336

  • Add an offset of 0.5px for text editor in containers #6328

  • Move utility types out of .d.ts file to fix exported declaration files #6315

  • More jotai scopes missing #6313

  • Provide HelpButton title prop #6209

  • Respect text align when wrapping in a container #6310

  • Compute bounding box correctly for text element when multiple element resizing #6307

  • Use jotai scope for editor-specific atoms #6308

  • Consider arrow for bound text element #6297

  • Text never goes beyond max width for unbound text elements #6288

  • Svg text baseline #6285

  • Compute container height from bound text correctly #6273

  • Fit mobile toolbar and make scrollable #6270

  • Indenting via tab clashing with IME compositor #6258

  • Improve text wrapping inside rhombus and more fixes #6265

  • Improve text wrapping in ellipse and alignment #6172

  • Don't allow blank space in collab name #6211

  • Docker build architecture:linux/amd64 error occur on linux/arm64 instance #6197

  • Sort bound text elements to fix text duplication z-index error #5130

  • Hide welcome screen on mobile once user interacts #6185

  • Edit link in docs #6182

Refactor

  • Inline SingleLibraryItem into PublishLibrary #6462

  • Make the example React app reusable without duplication #6188

Performance

  • Break early if the line width <= max width of the container #6347

Build

  • Move TS and types to devDependencies #6346