mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-18 02:21:07 +00:00
Update parser.js
Adding scaling of translating that was wiped by some commit
This commit is contained in:
parent
fc1b9b96a9
commit
5e0dc2211b
1 changed files with 1 additions and 1 deletions
|
|
@ -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('*'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue