svgedit icon indicating copy to clipboard operation
svgedit copied to clipboard

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

Open KrasnayaPloshchad opened this issue 2 years ago • 2 comments

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.

KrasnayaPloshchad avatar Oct 04 '22 01:10 KrasnayaPloshchad

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

this.saveOptions = { round_digits: 2 }

cuixiping avatar Jun 28 '23 02:06 cuixiping

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.

KrasnayaPloshchad avatar Oct 24 '23 16:10 KrasnayaPloshchad