MCPcopy Index your code
hub / github.com/angular/angular / forward

Method forward

adev/src/app/features/home/animation/animation.ts:195–211  ·  view source on GitHub ↗

* Go forward in time. * * @param timestep Custom timestep different from the config one * @returns

(timestep?: number)

Source from the content-addressed store, hash-verified

193 * @returns
194 */
195 forward(timestep?: number) {
196 this.pause();
197
198 if (!this.rules.length) {
199 console.warn("Animation: Can't go forward without a definition");
200 return;
201 }
202 timestep = timestep ?? this.config.timestep;
203
204 const time = this.currentTime + timestep;
205
206 if (time <= this._duration) {
207 this.updateFrame(time);
208 } else {
209 this.completed = true;
210 }
211 }
212
213 /**
214 * Go back in time.

Callers 1

animation.spec.tsFile · 0.45

Calls 3

pauseMethod · 0.95
updateFrameMethod · 0.95
warnMethod · 0.65

Tested by

no test coverage detected