MCPcopy Create free account
hub / github.com/FastLED/FastLED / hideCanvasUIWithDelay

Function hideCanvasUIWithDelay

src/platforms/wasm/compiler/app.ts:45–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45function hideCanvasUIWithDelay() {
46 if (canvasUITimeout) {
47 clearTimeout(canvasUITimeout);
48 }
49 canvasUITimeout = setTimeout(() => {
50 if (recordButton) recordButton.classList.remove('visible');
51 if (canvasLabel) canvasLabel.classList.remove('visible');
52 canvasUITimeout = null;
53 }, 2000); // 2 second delay
54}
55
56// Add event listeners for canvas hover - controls both record button and label
57if (canvas) {

Callers 1

runFastLEDFunction · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected