
13 Sep
2014
13 Sep
'14
7:38 a.m.
On 12-9-2014 18:49, LucaDC wrote:
Tav, I'm a bit confused.
Changing the Inkscape Document unit should not introduce any transforms on elements nor should changing the SVG root width/height or the viewBox.
So what should happen to
<svg width="100mm" height="100mm" viewBox="0 0 100 100">
when the "Inkscape Document unit" is changed to inches? Is it going to become
<svg width="100in" height="100in" viewBox="0 0 100 100">
and hence 1 mm becomes 1 in? If so a 3,937% scaling must be applied to the whole document to get a unit change while preserving the original physical dimensions.
No, the page size should stay the same. One way to do that is to maintain width=100mm, and recalculate the viewbox (this is what Inkscape does now). Then indeed all the values in the document should be changed into inches.
-Johan