mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-27 14:33:59 +00:00
Fix ToSVG scaling
This commit is contained in:
parent
ec0dcbfeb0
commit
d5f8d88bfc
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ fabric.util.object.extend(fabric.Object.prototype, /** @lends fabric.Object.prot
|
||||||
? (' rotate(' + toFixed(angle, NUM_FRACTION_DIGITS) + ')')
|
? (' rotate(' + toFixed(angle, NUM_FRACTION_DIGITS) + ')')
|
||||||
: '',
|
: '',
|
||||||
|
|
||||||
scalePart = (this.scaleX === 1 && this.scaleY === 1)
|
scalePart = (this.scaleX === 1 && this.scaleY === 1 && vpt[0] === 1 && vpt[3] === 1)
|
||||||
? '' :
|
? '' :
|
||||||
(' scale(' +
|
(' scale(' +
|
||||||
toFixed(this.scaleX * vpt[0], NUM_FRACTION_DIGITS) +
|
toFixed(this.scaleX * vpt[0], NUM_FRACTION_DIGITS) +
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue