[SVG] The user should be able to provide the units of measurement for an svg#1325
[SVG] The user should be able to provide the units of measurement for an svg#1325giannissc wants to merge 3 commits intoCadQuery:masterfrom
Conversation
|
How does this relate to this existing draft PR? |
Codecov Report
@@ Coverage Diff @@
## master #1325 +/- ##
==========================================
- Coverage 94.24% 94.14% -0.11%
==========================================
Files 26 26
Lines 5495 5485 -10
Branches 932 929 -3
==========================================
- Hits 5179 5164 -15
- Misses 187 189 +2
- Partials 129 132 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
I wasn't actually aware of that PR @jmwright |
|
@lorenzncode what do you think? Do you want to finish your PR first? |
|
I find this PR breaks SVG export with
This PR adds a units parameter but I don't see where the units are put to use. In #1317 it looks like the idea is to influence scaling. I'd also like to have optional control of the scale and that is one of the features of #1277. |
|
Right now this has nothing to do with scaling. uom is used internally to set the scaling factor. What I changed here is the ability of the user to explicitly set the unit of measure instead of the current heuristic which works like this: <0.1 must be inches and >10 must be millimeter. I am preparing a separate PR for the scaling changing for which I will be taking a look at your PR to combine them @lorenzncode |
Closes: #1323
CC: @voneiden