summaryrefslogtreecommitdiffstats
path: root/src/transform.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-07-04 11:57:00 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-07-04 11:57:00 +0200
commitac854317c3ef89ca2c25b6293530babf1cd9b28c (patch)
tree98ef16766c3ced950a0349210490fdc96611da3a /src/transform.js
parent4688ab0d651547cb018c8f00590ddb18de40c6a1 (diff)
downloadsvg.js-ac854317c3ef89ca2c25b6293530babf1cd9b28c.tar.gz
svg.js-ac854317c3ef89ca2c25b6293530babf1cd9b28c.zip
fix origin transformation
Diffstat (limited to 'src/transform.js')
-rw-r--r--src/transform.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transform.js b/src/transform.js
index c769f53..8b1d56b 100644
--- a/src/transform.js
+++ b/src/transform.js
@@ -58,7 +58,7 @@ SVG.extend(SVG.Element, {
}
// Set the origin according to the defined transform
- o.origin = getOrigin(o, this)
+ o = {...o, origin: getOrigin(o, this)}
// The user can pass a boolean, an SVG.Element or an SVG.Matrix or nothing
var cleanRelative = relative === true ? this : (relative || false)