MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / restartAnimation

Method restartAnimation

packages/pi-tui/src/components/loader.ts:72–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 }
71
72 private restartAnimation(): void {
73 this.stop();
74 if (this.frames.length <= 1) {
75 return;
76 }
77 this.intervalId = setInterval(() => {
78 this.currentFrame = (this.currentFrame + 1) % this.frames.length;
79 this.updateDisplay();
80 }, this.intervalMs);
81 }
82
83 private updateDisplay(): void {
84 const frame = this.frames[this.currentFrame] ?? "";

Callers 1

startMethod · 0.95

Calls 2

stopMethod · 0.95
updateDisplayMethod · 0.95

Tested by

no test coverage detected