Method: Transform#step
- Defined in:
- lib/source/redshift/transform.rb
#step ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/source/redshift/transform.rb', line 67 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 |