w to wrap/unwrap selection (#12264)
* fix(editor): keep the text selected along with its container after unbinding Claude Opus 5.5 (1M context), effort: medium * feat(editor): `w` wraps or unwraps the selection - a text and an empty container: binds the text - texts (with any labeled containers): wraps each text in a container - labeled containers: unwraps the texts and removes the containers, moving their arrows onto the texts; the next `w` on the untouched selection brings the same containers back where the texts are now - a frame with its children, or all of a frame's children: removes the frame - anything else without a frame: wraps it in a frame "Wrap selection in frame" frames an image (and what lies on it) edge to edge, and removes the frame when all of its children are selected. Claude Opus 5.5 (1M context), effort: medium * fix(editor): unwrapping an arrow drops its point editor The selection unwrapping (and rewrapping, and removing a frame) leaves is resolved with its line editor, so a deleted arrow's editor doesn't linger. Claude Opus 5.5 (1M context), effort: medium * fix(editor): rewrapping a note keeps the label's font size and color A font size picked while the label was unwrapped becomes its base size, and the note takes the label's ink (shared with binding via `getStickyNoteInk`). Claude Opus 5.5 (1M context), effort: medium * fix(editor): resizing an unwrapped text doesn't move its rewrapped container A font size change keeps the text's alignment edge and middle in place, so the move is measured there rather than at the top left. Claude Opus 5.5 (1M context), effort: medium * fix(editor): binding, unbinding and framing resolve the arrow point editor Binding text to an arrow selects it with its point editor; wrapping a lone arrow in a frame, or unbinding an arrow's label (selecting both), drops it. Claude Opus 5.5 (1M context), effort: medium * feat(editor): wrapping a text draws a default rectangle in the text's color Not the current item's style — a wrapped text is a label, and the rectangle matches it. Claude Opus 5.5 (1M context), effort: medium * feat(editor): unbinding keeps the text as it rendered, at a fixed width The freed text keeps its wrapping, width and position (not auto-resizing); rewrapping it restores auto-resize. A fixed-width text keeps its top left through font size changes, so a rewrapped container measures the text's move there. Claude Opus 5.5 (1M context), effort: medium
Excalidraw Editor | Blog | Documentation | Excalidraw+
An open source virtual hand-drawn style whiteboard.
Collaborative and end-to-end encrypted.
Features
The Excalidraw editor (npm package) supports:
- 💯 Free & open-source.
- 🎨 Infinite, canvas-based whiteboard.
- ✍️ Hand-drawn like style.
- 🌓 Dark mode.
- 🏗️ Customizable.
- 📷 Image support.
- 😀 Shape libraries support.
- 🌐 Localization (i18n) support.
- 🖼️ Export to PNG, SVG & clipboard.
- 💾 Open format - export drawings as an
.excalidrawjson file. - ⚒️ Wide range of tools - rectangle, circle, diamond, arrow, line, free-draw, eraser...
- ➡️ Arrow-binding & labeled arrows.
- 🔙 Undo / Redo.
- 🔍 Zoom and panning support.
Excalidraw.com
The app hosted at excalidraw.com is a minimal showcase of what you can build with Excalidraw. Its source code is part of this repository as well, and the app features:
- 📡 PWA support (works offline).
- 🤼 Real-time collaboration.
- 🔒 End-to-end encryption.
- 💾 Local-first support (autosaves to the browser).
- 🔗 Shareable links (export to a readonly link you can share with others).
We'll be adding these features as drop-in plugins for the npm package in the future.
Quick start
Note: following instructions are for installing the Excalidraw npm package when integrating Excalidraw into your own app. To run the repository locally for development, please refer to our Development Guide.
Use npm or yarn to install the package.
npm install react react-dom @excalidraw/excalidraw
# or
yarn add react react-dom @excalidraw/excalidraw
Check out our documentation for more details!
Contributing
- Missing something or found a bug? Report here.
- Want to contribute? Check out our contribution guide or let us know on Discord.
- Want to help with translations? See the translation guide.
Integrations
Who's integrating Excalidraw
Google Cloud • Meta • CodeSandbox • Obsidian Excalidraw • Replit • Slite • Notion • HackerRank • and many others
Sponsors & support
If you like the project, you can become a sponsor at Open Collective or use Excalidraw+.
Thank you for supporting Excalidraw
Last but not least, we're thankful to these companies for offering their services for free: