Files
David Luzar 1440f2d2f8 feat(editor): minimap + zoom menu (#12605)
* feat(editor): add a toggleable minimap

- bottom-left above the canvas actions; toggled via the footer button,
  Alt+M, the context menu, command palette and Preferences
  (`appState.minimapEnabled`, browser-persisted)
- elements drawn as single-color blocks (polylines for lines/arrows/
  freedraw, outlines for frames), rendered in a web worker on an
  OffscreenCanvas with a main-thread fallback; the controller, renderer and
  worker are lazy-loaded chunks
- drag the viewport (or press outside of it to center it), limited to one
  viewport size past the content, with edge auto-pan; wheel zooms around
  the viewport center
- locked viewports keep the minimap scale frozen while rubberbanding and
  snapping back; `viewport.beginGesture()` holds the overscroll during the
  drag
- the viewport rect turns opaque when small; the styles panel stays clear
  of the minimap (and the tablet pen-mode button); unavailable in editors
  shorter than 500px
- theme class is now applied before state-change listeners run
- `Scene.onUpdate` unsubscribe no longer throws after the scene is destroyed

Claude Fable 5.2 + Claude Opus 5.5 (xhigh)

* feat(editor): zoom menu in place of the zoom buttons

- the zoom island holds the zoom level and the minimap toggle (sharp where
  they meet); the -/+ buttons are gone
- clicking the zoom level opens a menu: zoom in/out, reset zoom, and the
  three zoom-to-fit actions, each with its shortcut
- zoom level's pressed/focus rings are inset, so the toggle can't cover them
- smaller gap between the styles panel and the minimap
- zoom in/out/reset actions no longer render their own buttons

Claude Fable 5.2 + Claude Opus 5.5 (xhigh)

* feat(editor): zoom menu fit items, no minimap shortcut, announcement dot

- zoom menu: zoom in/out, then "Zoom to fit" (Shift+1), "Zoom to
  selection" (Shift+2) and "Reset zoom" (Shift+0, which it already
  accepted); "Zoom to fit selection" (Shift+3) is no longer listed
- minimap: drop the Alt+M shortcut (action, help dialog, tooltip, menus)
- TEMPORARY pulsing dot on the minimap toggle announcing the minimap,
  until 2026-11-19, for editors that loaded with content; dismissed for
  good once the minimap is opened
- "Show hints" preference renamed "Toolbar hints"

Claude Opus 5.5 (xhigh)

* chore(repo): remove the minimap scroll-lock demo button

The dev-only "Scroll lock demo" button and the commented-out initialState
in excalidraw-app were for testing the minimap against a locked viewport
and aren't meant to ship.

Claude Opus 5.5 (xhigh)
2026-11-12 17:01:41 +01:00
..

@excalidraw/common

Install

npm install @excalidraw/common

If you prefer Yarn over npm, use this command to install the Excalidraw utils package:

yarn add @excalidraw/common

With PNPM, similarly install the package with this command:

pnpm add @excalidraw/common