mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-11-26 07:33:32 +03:00
Merging the snapping and render midpoint code applied the elbow arrow size-based thresholds (clamp(0.05 * size, 5, maxDistance)) to simple arrows too, shrinking their snap radius from ~16px to 5px on typical shapes (and basing side midpoints on the width). Use the binding distance as the radius again, as on master; the render highlight still comes from the same function. Restores master's history/move test expectations. Claude Opus 5.5 (1M context), low reasoning effort
@excalidraw/element
Install
npm install @excalidraw/element
If you prefer Yarn over npm, use this command to install the Excalidraw utils package:
yarn add @excalidraw/element
With PNPM, similarly install the package with this command:
pnpm add @excalidraw/element