fix: remove TS annotations in terminal-visualizer.svelte

Bypass build parser issue with type annotations.

Co-authored-by: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com>
This commit is contained in:
v0 2025-11-20 05:57:15 +00:00
parent 036d45c7c3
commit 020af72d57
1 changed files with 5 additions and 5 deletions

View File

@ -6,9 +6,9 @@
activePaneId = 0 activePaneId = 0
} = $props(); } = $props();
let canvas: HTMLCanvasElement; let canvas;
let ctx: CanvasRenderingContext2D | null = null; let ctx = null;
let animationFrameId: number; let animationFrameId;
let lastTime = 0; let lastTime = 0;
let cursorBlink = true; let cursorBlink = true;
@ -55,7 +55,7 @@
} }
} }
function animate(time: number) { function animate(time) {
if (time - lastTime > 500) { // Blink every 500ms if (time - lastTime > 500) { // Blink every 500ms
cursorBlink = !cursorBlink; cursorBlink = !cursorBlink;
lastTime = time; lastTime = time;
@ -88,7 +88,7 @@
drawNode(layout, 0, 0, containerWidth, containerHeight); drawNode(layout, 0, 0, containerWidth, containerHeight);
} }
function drawNode(node: any, x: number, y: number, w: number, h: number) { function drawNode(node, x, y, w, h) {
if (!ctx) return; if (!ctx) return;
// Add a small gap for the border // Add a small gap for the border