summaryrefslogtreecommitdiffstats
path: root/dirty.html
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-06-28 22:58:51 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-06-28 22:58:51 +0200
commit4009da2e223e197a98bb79afd68c0a6753e0c37e (patch)
tree7d8353b07ef289c0e6b7f14d742c1af49df816ec /dirty.html
parent739e2dff566204a601113d64d7e47a39a41b306b (diff)
downloadsvg.js-4009da2e223e197a98bb79afd68c0a6753e0c37e.tar.gz
svg.js-4009da2e223e197a98bb79afd68c0a6753e0c37e.zip
fix origin bug
Diffstat (limited to 'dirty.html')
-rw-r--r--dirty.html7
1 files changed, 2 insertions, 5 deletions
diff --git a/dirty.html b/dirty.html
index 1b4322b..3eadb0e 100644
--- a/dirty.html
+++ b/dirty.html
@@ -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)