mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-12-05 18:55:28 +03:00
* chore(packages/sloppy): vendor roughjs as @excalidraw/sloppy - port roughjs 4.6.4 with hachure-fill, path-data-parser and points-on-path into packages/sloppy - move points-on-curve and roughjs's Random into @excalidraw/math - output is identical to roughjs 4.6.4 (tests/parity.test.ts) * fix(packages/sloppy): don't change the caller's points in polygon pattern fills The fillers rotate a polygon's points in place and back, which left float drift in an element's points every time a sharp, pattern-filled line's shape was regenerated.
@excalidraw/math
Install
npm install @excalidraw/math
If you prefer Yarn over npm, use this command to install the Excalidraw utils package:
yarn add @excalidraw/math
With PNPM, similarly install the package with this command:
pnpm add @excalidraw/math