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

[Feature Request] Options to set geometry precision and transform precision #837

Open
KrasnayaPloshchad opened this issue Oct 4, 2022 · 2 comments

Comments

@KrasnayaPloshchad
Copy link

KrasnayaPloshchad commented Oct 4, 2022

It was be nice to have options to set geometry precision and transform precision in the Editor Preferences, which allow users to reproduce more accurate design.

@cuixiping
Copy link
Member

There is no UI to set this, but you can config it within code. see svgcanvas.js

this.saveOptions = { round_digits: 2 }

@KrasnayaPloshchad
Copy link
Author

KrasnayaPloshchad commented Oct 24, 2023

Seen from SVGO (also SVGOMG), I thought out the way to fix.

First, modify round_digits to 8. Second, write additional codes to strip part of decimal numbers and depends on user’s configuration. Finally, add an option on your preferences.

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

No branches or pull requests

3 participants