2008-06-20 08:32:55 |
Kjell Magne Fauske |
description |
The parseTransform(transf,mat) function in simpletransform.py in the extension directory, contains several bugs. It should be able to parse all valid SVG transforms, but fails parsing basic expressions like:
matrix = parseTransform('rotate(10)')
matrix = parseTransform('skewY(10)')
matrix = parseTransform('translate(10 10)')
matrix = parseTransform(' rotate(10)')
matrix = parseTransform('translate(700,210) rotate(-30)')
I have attached a bug that addresses all the above issues. |
The parseTransform(transf,mat) function in simpletransform.py in the extension directory, contains several bugs. It should be able to parse all valid SVG transforms, but fails parsing basic expressions like:
matrix = parseTransform('rotate(10)')
matrix = parseTransform('skewY(10)')
matrix = parseTransform('translate(10 10)')
matrix = parseTransform(' rotate(10)')
matrix = parseTransform('translate(700,210) rotate(-30)')
I have attached a patch and unit tests that addresses all the above issues. |
|