mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00

* fix: awkward point adding and removing on touch device * feat: move finalize to next to last point * feat: on touch screen, click would create a default line/arrow * fix: make default adaptive to zoom * fix: increase padding to avoid cutoffs * refactor: simplify * fix: only use bigger padding when needed * center arrow horizontally on pointer * increase min drag distance before we start 2-point-arrow-drag-creating * do not render 0-width arrow while creating * dead code * fix tests * fix: remove redundant code * do not enter line editor on creation --------- Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
@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