summaryrefslogtreecommitdiffstats
path: root/src/transform.js
diff options
context:
space:
mode:
authorSaivan <savian@me.com>2018-06-28 23:05:16 +1000
committerSaivan <savian@me.com>2018-06-28 23:05:16 +1000
commitad2047507de85ca40b9a83b41bde5522a1aacb05 (patch)
treeb64f6c2ab32011ac6fc73954ff34daeb3e95ed43 /src/transform.js
parent5836ecaba4d02bd2ff5c1ab727df5086911eda12 (diff)
downloadsvg.js-ad2047507de85ca40b9a83b41bde5522a1aacb05.tar.gz
svg.js-ad2047507de85ca40b9a83b41bde5522a1aacb05.zip
Modified the behaviour of absolute transforms
This commit slightly modifies the behaviour of absolute transforms, we will get them working soon :D
Diffstat (limited to 'src/transform.js')
-rw-r--r--src/transform.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transform.js b/src/transform.js
index 881d80a..6b40161 100644
--- a/src/transform.js
+++ b/src/transform.js
@@ -58,11 +58,11 @@ SVG.extend(SVG.Element, {
}
// Set the origin according to the defined transform
- o.origin = setOrigin (o, element)
+ 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)
- var result = new SVG.Matrix(cleanRelative).transform(oWithOrigin)
+ var result = new SVG.Matrix(cleanRelative).transform(o)
return this.attr('transform', result)
}
})