MCPcopy
hub / github.com/midrender/revideo / reset

Function reset

packages/core/src/scenes/GeneratorScene.ts:274–287  ·  view source on GitHub ↗
(previousScene: Scene | null = null)

Source from the content-addressed store, hash-verified

272 }
273
274 public async reset(previousScene: Scene | null = null) {
275 this.counters = {};
276 this.previousScene = previousScene;
277 this.previousOnTop = false;
278 this.runner = threads(
279 () => this.runnerFactory(this.getView()),
280 thread => {
281 this.thread.current = thread;
282 },
283 );
284 this.state = SceneState.AfterTransitionIn;
285 this.afterReset.dispatch();
286 await this.next();
287 }
288
289 public getSize(): Vector2 {
290 return this.size;

Callers

nothing calls this directly

Calls 4

threadsFunction · 0.90
getViewMethod · 0.80
nextMethod · 0.65
dispatchMethod · 0.45

Tested by

no test coverage detected