diff options
author | Saivan <savian@me.com> | 2018-05-29 18:28:15 +1000 |
---|---|---|
committer | Saivan <savian@me.com> | 2018-05-29 18:28:15 +1000 |
commit | 7c65a664bb4f3ab6bdbb9604414d01debcca6847 (patch) | |
tree | 6795c1de9d802a18c036df6d05a880bca5acae5f /src/controller.js | |
parent | 8c4e55ee559fdc1597319f18aa1ccb9ac15474cc (diff) | |
download | svg.js-7c65a664bb4f3ab6bdbb9604414d01debcca6847.tar.gz svg.js-7c65a664bb4f3ab6bdbb9604414d01debcca6847.zip |
Diagnosing the declarative animations and suggesting changes
Diffstat (limited to 'src/controller.js')
-rw-r--r-- | src/controller.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/controller.js b/src/controller.js index 359dc9f..b2c7d13 100644 --- a/src/controller.js +++ b/src/controller.js @@ -120,6 +120,8 @@ SVG.Spring = SVG.invent ({ extend: { step: function (current, target, dt, c) { +console.log(current, target, dt); + c.done = dt == Infinity if(dt == Infinity) return target if(dt == 0) return current |