crccheck / raphael-svg-import-classic

Import SVG files to Raphael
MIT License
98 stars 40 forks source link

shape.matrix() is not a function #1

Closed nicolasroy closed 12 years ago

nicolasroy commented 12 years ago

Using Raphael 2, importing a svg with a matrix will break because shape.matrix is an object.

To fix this, I replaced

        shape.matrix(+matrix[0], +matrix[1], +matrix[2], +matrix[3]);
        shape.translate(matrix[4], matrix[5]);

by

shape.matrix.add(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);
crccheck commented 12 years ago

Thanks. Somehow I missed there was a matrix method. I just blindly upgraded to whatever the latest Raphael was at the time and changed whatever outright broke. Looks like time for another overhaul.

nicolasroy commented 12 years ago

Thank for the plugin, it's been very handy :)

On Sun, May 13, 2012 at 11:25 PM, crccheck < reply@reply.github.com

wrote:

Thanks. Somehow I missed there was a matrix method. I just blindly upgraded to whatever the latest Raphael was at the time and changed whatever outright broke. Looks like time for another overhaul.


Reply to this email directly or view it on GitHub:

https://github.com/crccheck/raphael-svg-import-classic/issues/1#issuecomment-5676961

crccheck commented 12 years ago

did a quick update in 1ad7db46