aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-03-28 17:25:15 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-03-28 17:25:15 +0200
commita14a3c5fdd9bb3f853f5d45aaf2119ae1b3506e2 (patch)
tree0ed78713440c76a0a397b467738ece39538c8a25 /src/fx.js
parentd173ad16c509c4d5357c5e106e8ab332cd281b3a (diff)
downloadsvg.js-a14a3c5fdd9bb3f853f5d45aaf2119ae1b3506e2.tar.gz
svg.js-a14a3c5fdd9bb3f853f5d45aaf2119ae1b3506e2.zip
discard totalProgress for now
Diffstat (limited to 'src/fx.js')
-rw-r--r--src/fx.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/fx.js b/src/fx.js
index f86fe99..c442884 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -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
}