andy31lewis / brySVG

SVG objects for use in Brython projects. See demo at:
https://andy31lewis.github.io/brySVG/demo.html
BSD 3-Clause "New" or "Revised" License
11 stars 1 forks source link

Rotation moved the centerpoint slightly #2

Open pixelpusher opened 4 years ago

pixelpusher commented 4 years ago

On FireFox, when I rotate the shapes after a scale transform the center get shifted slightly (sometimes by a larger amount). This seems to work for all shapes. To duplicate, pick demo 4 and change the horizontal scale and then rotate - the center will now have shifted slightly so the shape wobbles instead of rotates symetrically. I didn't get to investigate but maybe a rounding error creeps in?

andy31lewis commented 4 years ago

Sorry, I'm not sure what you mean by "change the horizontal scale" in demo 4? There aren't any tools to do that in demo 4? Or do you mean by resizing the browser window? In any case I can't make the shape wobble. Please could you clarify? Thank you for the report. Andy