aboutsummaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-02-04 10:53:20 +0100
committerwout <wout@impinc.co.uk>2014-02-04 10:53:20 +0100
commit5c9f99f1be78ec827da79c55ea6ed8561626e4d6 (patch)
tree2f3373ae075832910e02c9f7ca8a413ae42464cb /dist/svg.js
parentef026b37848e7a0379649fcec8a5bca66ec657fe (diff)
downloadsvg.js-5c9f99f1be78ec827da79c55ea6ed8561626e4d6.tar.gz
svg.js-5c9f99f1be78ec827da79c55ea6ed8561626e4d6.zip
Fix for arcs in SVG.PathArray#toString method
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/dist/svg.js b/dist/svg.js
index 37be79d..8eb5fed 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -1,4 +1,4 @@
-/* svg.js v1.0rc3-5-gce16057 - svg inventor regex default color array pointarray patharray number viewbox bbox rbox element parent container fx relative event defs group arrange mask clip gradient doc shape use rect ellipse line poly path image text textpath nested hyperlink sugar set data memory loader - svgjs.com/license */
+/* svg.js v1.0rc3-6-gef026b3 - svg inventor regex default color array pointarray patharray number viewbox bbox rbox element parent container fx relative event defs group arrange mask clip gradient doc shape use rect ellipse line poly path image text textpath nested hyperlink sugar set data memory loader - svgjs.com/license */
;(function() {
this.SVG = function(element) {
@@ -522,11 +522,11 @@
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
)
@@ -634,8 +634,8 @@
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