* Adds a segment to the animation. Each segment starts at offset (delay) and * runs for a portion of the overall animation (duration). Note that both * delay and duration and NormTimeDef types which accept values from 0 to 1. * Optionally, the time is pushed through a curve. If curve is not
(delay, transition, duration, opt_curve)
| 87 | * @return {!Animation} |
| 88 | */ |
| 89 | add(delay, transition, duration, opt_curve) { |
| 90 | this.segments_.push({ |
| 91 | delay, |
| 92 | func: transition, |
| 93 | duration, |
| 94 | curve: getCurve(opt_curve), |
| 95 | }); |
| 96 | return this; |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Starts the animation and returns the AnimationPlayer object that can be |
no test coverage detected