Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Points argument array conversion/check #8

Closed

Conversation

miles-crighton
Copy link
Contributor

@miles-crighton miles-crighton commented Mar 3, 2021

Doc strings mentions either [x, y, pressure] or {x, y, pressure} formats can be used for getStrokeOutlinePoints and getShortStrokeOutlinePoints points argument.

Added an argument check/conversion before calculations are done similar to how it's done in getStrokePoints.

If this is not an intended feature or expected argument, ignore this PR and just update the doc string to @param points An array of points (as [x, y, pressure]). Pressure is optional.

EDIT: Read at end of README you should always be running getStrokePoints first anyway, so as mentioned above only docstrings needs updating. Closing PR

@vercel
Copy link

vercel bot commented Mar 3, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/steveruizok/perfect-freehand-example/3AyWKWZJTA17NfHRSiULgbJAKDRP
✅ Preview: https://perfect-freeha-git-fork-miles-crighton-point-array-fix-s-2a65ff.vercel.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant