diff options
author | wout <wout@impinc.co.uk> | 2014-01-22 21:09:38 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-01-22 21:09:38 +0100 |
commit | 551e3d6bb980bca77f2abf606a25bc2fc8a02534 (patch) | |
tree | ae935d2c9944a7b90f80e52d07373ecda17df509 /dist/svg.js | |
parent | 0bec3f4b0eedfa603ed0b92e151315dfc92b42c2 (diff) | |
download | svg.js-551e3d6bb980bca77f2abf606a25bc2fc8a02534.tar.gz svg.js-551e3d6bb980bca77f2abf606a25bc2fc8a02534.zip |
Fix in point array move method0.34
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dist/svg.js b/dist/svg.js index 3344907..40ddd93 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -1,4 +1,4 @@ -/* svg.js v0.33-6-gc967856 - svg regex default color array number viewbox bbox rbox element parent container fx event defs group arrange mask clip gradient doc shape use rect ellipse line poly path image text textpath nested sugar set memory loader - svgjs.com/license */ +/* svg.js v0.33-7-g0bec3f4 - svg regex default color array number viewbox bbox rbox element parent container fx event defs group arrange mask clip gradient doc shape use rect ellipse line poly path image text textpath nested sugar set memory loader - svgjs.com/license */ ;(function() { this.SVG = function(element) { @@ -385,8 +385,9 @@ y -= box.y /* move every point */ - for (var i = this.value.length - 1; i >= 0; i--) - this.value[i] = [this.value[i][0] + x, this.value[i][1] + y] + if (!isNaN(x) && !isNaN(y)) + for (var i = this.value.length - 1; i >= 0; i--) + this.value[i] = [this.value[i][0] + x, this.value[i][1] + y] return this } |