summaryrefslogtreecommitdiffstats
path: root/playgrounds
diff options
context:
space:
mode:
authorSaivan <savian@me.com>2018-03-04 01:56:12 +1100
committerSaivan <savian@me.com>2018-03-04 01:56:12 +1100
commit86dee4db2f6a4b2f3123c6f5b062758eb3fecd2e (patch)
tree4411fe672bf8de3b5c03e3c49bf46a1c7cdc73c3 /playgrounds
parente065a4415b7d6991ac14de81646f109e43bef9e7 (diff)
downloadsvg.js-86dee4db2f6a4b2f3123c6f5b062758eb3fecd2e.tar.gz
svg.js-86dee4db2f6a4b2f3123c6f5b062758eb3fecd2e.zip
Fixed most of the tests relating to transformations
Diffstat (limited to 'playgrounds')
-rw-r--r--playgrounds/matrix/drag.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/playgrounds/matrix/drag.js b/playgrounds/matrix/drag.js
index 636ae30..143699d 100644
--- a/playgrounds/matrix/drag.js
+++ b/playgrounds/matrix/drag.js
@@ -55,7 +55,6 @@ SVG.extend(SVG.Element, {
reactToDrag(this, (e, x, y)=> {
- let matrix = this.transform
this.transform({
origin: [sx, sy],
position: [x, y],
@@ -67,7 +66,7 @@ SVG.extend(SVG.Element, {
}, (e, x, y)=> {
- var toAbsolute = this.transform().inverse()
+ var toAbsolute = new SVG.Matrix(this).inverse()
var p = new SVG.Point(x, y).transform(toAbsolute)
sx = p.x
sy = p.y