Update parser.js

Adding scaling of translating that was wiped by some commit
This commit is contained in:
Andrea Bogazzi 2014-08-05 12:42:58 +02:00
parent fc1b9b96a9
commit 5e0dc2211b

View file

@ -527,7 +527,7 @@
if (heightAttr && heightAttr !== viewBoxHeight) {
scaleY = heightAttr / viewBoxHeight;
}
addSvgTransform(doc, [scaleX, 0, 0, scaleY, -minX, -minY]);
addSvgTransform(doc, [scaleX, 0, 0, scaleY, scaleX * -minX, scaleY * -minY]);
}
var descendants = fabric.util.toArray(doc.getElementsByTagName('*'));