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

Function installRainbowDance

apps/kimi-code/src/tui/easter-eggs/dance.ts:92–102  ·  view source on GitHub ↗
(requestRender: () => void)

Source from the content-addressed store, hash-verified

90}
91
92export function installRainbowDance(requestRender: () => void): () => void {
93 currentDanceController?.dispose();
94 const dance = new RainbowDance(requestRender);
95 setRainbowDance(dance);
96 return () => {
97 dance.dispose();
98 if (currentDanceController === dance) {
99 setRainbowDance(undefined);
100 }
101 };
102}
103
104export function getRainbowDanceView(): RainbowDanceView | undefined {
105 return currentDanceView;

Callers 2

dance.test.tsFile · 0.90
constructorMethod · 0.90

Calls 3

disposeMethod · 0.95
setRainbowDanceFunction · 0.85
disposeMethod · 0.65

Tested by

no test coverage detected