summaryrefslogtreecommitdiffstats
path: root/dirty.html
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-06-29 10:31:11 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-06-29 10:31:11 +0200
commitea8767c90953f494d82acf9049fed11cbecfc51d (patch)
treebda2a8ac579d198036eb35150b5cc8feadb2acea /dirty.html
parent9e7d902339755b37ba228f837700c3886a337aa2 (diff)
downloadsvg.js-ea8767c90953f494d82acf9049fed11cbecfc51d.tar.gz
svg.js-ea8767c90953f494d82acf9049fed11cbecfc51d.zip
fix rotation issue and make relative declaritive work
Diffstat (limited to 'dirty.html')
-rw-r--r--dirty.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/dirty.html b/dirty.html
index 5e6e6e1..95227cf 100644
--- a/dirty.html
+++ b/dirty.html
@@ -218,11 +218,13 @@ a.timeline().source(() => {
})
-let obj = { rotate: 100, shear:2, origin: [600, 600], translate: [100, 100] }
+let obj = { rotate: 180, shear:2, origin: [600, 600], translate: [200, 100] }
+let obj2 = { rotate: 180, shear:2, origin: [600, 600], translate: [200, 100] }
a.clone() // startPosition
-a.clone().transform(obj) // endPosition
-a.animate(new SVG.Spring(50, 30)).transform(obj) // animation
+a.clone().transform(obj, true).transform(obj2, true) // endPosition
+//a.animate(new SVG.Spring(50, 30)).transform(obj) // animation
+a.animate(300).transform(obj, true).transform(obj2, true) // animation
// Put an ellipse where we expect the object to be