Method: Transform#step
- Defined in:
- lib/source/redshift/transform.rb
#step ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/source/redshift/transform.rb', line 52 def step ` var time = +new Date if (time < this.__time__ + #{@options[:duration]}){ var delta = this.__transition__((time - this.__time__) / #{@options[:duration]}); this.m$set(this.m$compute(this.__from__, this.__to__, delta)); } else { this.m$set(this.m$compute(this.__from__, this.__to__, 1)); this.m$complete(); } ` return nil end |