steveruizok / perfect-freehand

Draw perfect pressure-sensitive freehand lines.
https://perfectfreehand.com
MIT License
4.52k stars 159 forks source link

[feature] Reduce import dependencies (e.g. zustand) #31

Closed tarngerine closed 3 years ago

tarngerine commented 3 years ago

Hi, just running through all the package deps, noticed that zustand was being added?

image

@tldraw/core also comes with react-use-gesture

image

Would be nice to slowly reduce the dependencies here — thanks!

steveruizok commented 3 years ago

Good catch! I've removed those dependencies from the package. (It's back to zero deps). The root package.json will show dependencies from the dev server, which is used for the example site; but the deps in the packages/perfect-freehand/package.json are now clean.

steveruizok commented 3 years ago

Fixed in https://github.com/steveruizok/perfect-freehand/commit/1f9b57500bf9750f0fe04d8ab97460c2b65d96da