We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like the option to use a different floatPrecision to round stroke-width, stroke-opacity to 2dp and paths to 0dp
floatPrecision
stroke-width
stroke-opacity
paths
eg.
<path fill="none" stroke="#F9ED69" stroke-miterlimit="10" stroke-opacity=".74698" stroke-width=".33333" d="m110.5 166.7 16.8 18.4 24.9 2.8 13.5 21 24.7-4 24.2-6.2 24.4-5.4 24.8...
would become
<path fill="none" stroke="#F9ED69" stroke-miterlimit="10" stroke-opacity=".75" stroke-width=".33" d="m111 167 17 18 25 3 14 21 25-4 24-6 24-5 25...
Maybe the floatPrecision option can be extended? Something like...
const result = optimize(data, { multipass: true, floatPrecision: { default: 3, path: 0, strokeWidth: 2, strokeOpacity: 4 } });
The text was updated successfully, but these errors were encountered:
relevant: #1828
Sorry, something went wrong.
#1843
If that closes this you should add "closes #1838" to the PR description
No branches or pull requests
I would like the option to use a different
floatPrecision
to roundstroke-width
,stroke-opacity
to 2dp andpaths
to 0dpeg.
<path fill="none" stroke="#F9ED69" stroke-miterlimit="10" stroke-opacity=".74698" stroke-width=".33333" d="m110.5 166.7 16.8 18.4 24.9 2.8 13.5 21 24.7-4 24.2-6.2 24.4-5.4 24.8...
would become
<path fill="none" stroke="#F9ED69" stroke-miterlimit="10" stroke-opacity=".75" stroke-width=".33" d="m111 167 17 18 25 3 14 21 25-4 24-6 24-5 25...
Maybe the
floatPrecision
option can be extended? Something like...The text was updated successfully, but these errors were encountered: