Canvas/SVG parser: fix bounding box and rotation center.
authorThomas Geymayer <tomgey@gmail.com>
Fri, 7 Feb 2014 23:38:30 +0000 (00:38 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Fri, 7 Feb 2014 23:43:13 +0000 (00:43 +0100)
commitaea97ea2aae59b99e93d2920fdfb199b3262546f
tree181975c317a044beccb7313c7abf0eb5244e62ba
parent0bca7223124a5825a4ac04d6a64e19c38ed6caa7
Canvas/SVG parser: fix bounding box and rotation center.

 - Calculate bounding box after adding all children.
 - Apply rotation after all SVG defined rotations to use correct
   center of rotation (as defined in Inkscape)

This (together with the SimGear and FlightGear commits) fixes
the core problems of #1333.
Nasal/canvas/api.nas
Nasal/canvas/svg.nas