🔨 fix type issue

This commit is contained in:
platane
2020-10-24 11:55:41 +02:00
parent 4d5abad76e
commit 3e32c45cb6
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ const spring = { x: 0, v: 0, target: 0 };
const springParams = { tension: 120, friction: 20, maxVelocity: 50 };
let animationFrame: number;
const { canvas, highlightCell, drawLerp } = createCanvas(grid);
const { canvas, drawLerp } = createCanvas(grid);
document.body.appendChild(canvas);
const clamp = (x: number, a: number, b: number) => Math.max(a, Math.min(b, x));