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 /src/fx.js | |
parent | d173ad16c509c4d5357c5e106e8ab332cd281b3a (diff) | |
download | svg.js-a14a3c5fdd9bb3f853f5d45aaf2119ae1b3506e2.tar.gz svg.js-a14a3c5fdd9bb3f853f5d45aaf2119ae1b3506e2.zip |
discard totalProgress for now
Diffstat (limited to 'src/fx.js')
-rw-r--r-- | src/fx.js | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -453,23 +453,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 } |