Re: [svgwg] 7.2 equivalent transform of an SVG viewport is mathematically wrong

Now that I have thought some more, I am pretty sure I still got it 
wrong by setting e-x and e-y to 0.

Experimentally I just found: 
x:70, y:10, width:210, height:100 viewBox='110 130 30 20 
preserveAspectRatio='xMinYMin meet'
is equivalent to translate(-830,-690) scale(5,5)

I havn't got the time just now for systematically testing, but this 
_might_ be
```
tx = e-x - (e-x + vb-x) * scale-x
ty = e-y - (e-y + vb-y) * scale-y
```
I don't understand that formula, but I'll get back when I see clearer.

-- 
GitHub Notification of comment by ccprog
Please view or discuss this issue at 
https://github.com/w3c/svgwg/issues/215#issuecomment-235976326 using 
your GitHub account

Received on Thursday, 28 July 2016 18:05:03 UTC