mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-17 06:21:16 +02:00

* fix : double click on line enables line editor * fix : prevent double-click to edit/create text when inside line editor * refactor: use lineCheck instead of arrowCheck in doubleClick handler to align with updated logic * fix: replace negative arrowCheck with lineCheck in dbl click handler and fix double-click bind text test in linearElementEditor tests * clean up test * simplify check * add tests * prevent text editing on dblclick when inside arrow editor --------- Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
@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