diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-06-28 22:58:51 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-06-28 22:58:51 +0200 |
commit | 4009da2e223e197a98bb79afd68c0a6753e0c37e (patch) | |
tree | 7d8353b07ef289c0e6b7f14d742c1af49df816ec /dirty.html | |
parent | 739e2dff566204a601113d64d7e47a39a41b306b (diff) | |
download | svg.js-4009da2e223e197a98bb79afd68c0a6753e0c37e.tar.gz svg.js-4009da2e223e197a98bb79afd68c0a6753e0c37e.zip |
fix origin bug
Diffstat (limited to 'dirty.html')
-rw-r--r-- | dirty.html | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -218,16 +218,13 @@ a.timeline().source(() => { }) -let obj = { shear: 2, rotate: 50, origin: [600, 600] } +let obj = { rotate: 90, shear:2, origin: [600, 600], translate: [100, 100] } a.clone() // startPosition a.clone().transform(obj) // endPosition -a.animate().transform(obj) // animation +a.animate(new SVG.PID(0.1, 0.1)).transform(obj) // animation - -canvas.ellipse(30, 30) - // Put an ellipse where we expect the object to be canvas.ellipse(30, 30).center(100, 500) .attr('opacity', 0.3) |