diff options
author | wout <wout@impinc.co.uk> | 2014-02-04 10:53:20 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-02-04 10:53:20 +0100 |
commit | 5c9f99f1be78ec827da79c55ea6ed8561626e4d6 (patch) | |
tree | 2f3373ae075832910e02c9f7ca8a413ae42464cb /src/patharray.js | |
parent | ef026b37848e7a0379649fcec8a5bca66ec657fe (diff) | |
download | svg.js-5c9f99f1be78ec827da79c55ea6ed8561626e4d6.tar.gz svg.js-5c9f99f1be78ec827da79c55ea6ed8561626e4d6.zip |
Fix for arcs in SVG.PathArray#toString method
Diffstat (limited to 'src/patharray.js')
-rw-r--r-- | src/patharray.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/patharray.js b/src/patharray.js index 8f076fd..92ec2e4 100644 --- a/src/patharray.js +++ b/src/patharray.js @@ -35,11 +35,11 @@ SVG.extend(SVG.PathArray, { break case 'A': s.push( - this.value[i].rx - , this.value[i].ry - , this.value[i].a - , this.value[i].l - , this.value[i].s + this.value[i].r1 + , this.value[i].r2 + , this.value[i].a || 0 + , this.value[i].l || 0 + , this.value[i].s || 0 , this.value[i].x , this.value[i].y ) @@ -147,8 +147,8 @@ SVG.extend(SVG.PathArray, { break case 'A': /* resize radii */ - this.value[i].values.rx = (this.value[i].values.rx * width) / box.width - this.value[i].values.ry = (this.value[i].values.ry * height) / box.height + this.value[i].values.r1 = (this.value[i].values.r1 * width) / box.width + this.value[i].values.r2 = (this.value[i].values.r2 * height) / box.height /* move position values */ this.value[i].values.x = ((this.value[i].values.x - box.x) * width) / box.width + box.x |