convertToExcalidrawElements built a temp `scene` from the element store before labels and the elements skeleton arrows bind to were created, and then a second `boundScene` from the completed store for the bound-arrow placement pass, so the function held two scenes over overlapping element objects (Review finding 13). Evidence that the divergence produces no wrong output: the early scene is only used to measure non-arrow container labels (the container and label are passed directly; the sticky fit gets its label explicitly) and by bindBindingElement (geometry from the arrow and the element passed in; the map is only consulted for a text's container, and containers are always in the snapshot). This was already so on master, where the same snapshot scene was used the same way. To check, the scene was temporarily resynced (replaceAllElements) after every store addition, including before each bindBindingElement, and outputs were diffed against the current code (reseeded, ids canonicalized) for created rectangle/ellipse/diamond/text ends, elbow arrows, existing ids bound by two arrows (copied twice), text ends, a labelled sticky note, a frame around them, and an arrow label (given its own id) used as another arrow's start: all identical, and the full suite passed in that mode. So this is a maintainability fix: drop `boundScene` and resync the one scene with replaceAllElements once the store is complete, which is what `new Scene(...)` did. Outputs, snapshots and versions are unchanged.
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: