aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-07-12 14:06:49 +0200
committerwout <wout@impinc.co.uk>2014-07-12 14:06:49 +0200
commit501cb5387007a89af382717376c773a1ec6b68ae (patch)
tree8edcd6d28407c02430a3ace7245384bc894eb867 /src/element.js
parent462d2cd3738c904db0be7086878d1fcc17b79553 (diff)
downloadsvg.js-501cb5387007a89af382717376c773a1ec6b68ae.tar.gz
svg.js-501cb5387007a89af382717376c773a1ec6b68ae.zip
Further debugging matrix new implementation
Diffstat (limited to 'src/element.js')
-rwxr-xr-xsrc/element.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/element.js b/src/element.js
index 6310b6b..59e713f 100755
--- a/src/element.js
+++ b/src/element.js
@@ -21,7 +21,7 @@ SVG.Element = SVG.invent({
x: function(x) {
if (x != null) {
x = new SVG.Number(x)
- x.value /= this.ctm().extract().scaleX
+ x.value /= this.transform('scaleX')
}
return this.attr('x', x)
}
@@ -29,7 +29,7 @@ SVG.Element = SVG.invent({
, y: function(y) {
if (y != null) {
y = new SVG.Number(y)
- y.value /= this.ctm().extract().scaleY
+ y.value /= this.transform('scaleY')
}
return this.attr('y', y)
}