()
| 79 | } |
| 80 | |
| 81 | _update() { |
| 82 | this.currentTime = raf.time - this.#offset - this.#delay; |
| 83 | if (this.currentTime < 0) return; |
| 84 | |
| 85 | const target_frame = this.currentTime / this.#duration; |
| 86 | this.#apply_keyframe(target_frame); |
| 87 | |
| 88 | if (this.currentTime >= this.#duration) { |
| 89 | this.#onfinish(); |
| 90 | raf.animations.delete(this); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * @param {number} t |
no test coverage detected