(time)
| 116 | return this; |
| 117 | } |
| 118 | seekTo(time) { |
| 119 | let duration = this.duration; |
| 120 | time -= this.delay; |
| 121 | if (time < 0) |
| 122 | time = 0; |
| 123 | else if (time > duration) |
| 124 | time = duration; |
| 125 | if (this.time !== time) { |
| 126 | this.time = time; |
| 127 | let tweens = this.tweens; |
| 128 | let c = tweens.length; |
| 129 | for (let i = 0; i < c; i++) { |
| 130 | tweens[i].seekTo(time); |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | get fraction() { |
| 135 | return this.time / this.duration; |
| 136 | } |