diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-03-28 17:25:15 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-03-28 17:25:15 +0200 |
commit | a14a3c5fdd9bb3f853f5d45aaf2119ae1b3506e2 (patch) | |
tree | 0ed78713440c76a0a397b467738ece39538c8a25 /dist/svg.js | |
parent | d173ad16c509c4d5357c5e106e8ab332cd281b3a (diff) | |
download | svg.js-a14a3c5fdd9bb3f853f5d45aaf2119ae1b3506e2.tar.gz svg.js-a14a3c5fdd9bb3f853f5d45aaf2119ae1b3506e2.zip |
discard totalProgress for now
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/dist/svg.js b/dist/svg.js index c605e56..959b819 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -6,7 +6,7 @@ * @copyright Wout Fierens <wout@impinc.co.uk> * @license MIT * -* BUILT: Mon Mar 28 2016 17:17:10 GMT+0200 (Mitteleuropäische Sommerzeit) +* BUILT: Mon Mar 28 2016 17:23:22 GMT+0200 (Mitteleuropäische Sommerzeit) */; (function(root, factory) { if (typeof define === 'function' && define.amd) { @@ -1755,23 +1755,6 @@ SVG.FX = SVG.invent({ }) } - /** - * returns a float from 0-1 indicating the progress of the whole animation queue - * we recalculate the finish time because it may be changed from methods like at() - * @return number - */ - // FIXME: current start always changes so the progress get a reset whenever one situation finishes. We need a global start which is only modified on pause and stop - , totalProgress: function(){ - var start = this.situation.start - , finish = this.situation - - for(var i = 0, len = this.situations.length; i < len; ++i){ - finish += (situations[i].duration || 0) + (situations[i].delay || 0) - } - - return (this.pos * this.situation.duration + this.start - start) / (finish - start) - } - , last: function(){ return this.situations.length ? this.situations[this.situations.length-1] : this.situation } |