diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-06-29 10:31:11 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-06-29 10:31:11 +0200 |
commit | ea8767c90953f494d82acf9049fed11cbecfc51d (patch) | |
tree | bda2a8ac579d198036eb35150b5cc8feadb2acea /dirty.html | |
parent | 9e7d902339755b37ba228f837700c3886a337aa2 (diff) | |
download | svg.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.html | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |