mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
- Updated type declarations written as { x: number, y: number } to use the Point type as per requirements. - Explicit names were used for variables by destructuring previously used object types. - For example, scenePointer.x, scenePointer.y are now destructured as scenePointerX and scenePointerY. - When a Point type was required as an argument, the `pointFrom` helper function was used to convert and pass the value. |
||
---|---|---|
.. | ||
src | ||
tests | ||
.eslintrc.json | ||
global.d.ts | ||
package.json | ||
README.md | ||
tsconfig.json |
@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