refactor: migrate renderers to ts (#1296)

* refactor: migrate renderers to ts

* fix: copilot review
This commit is contained in:
Marc Emmanuel 2026-02-02 11:32:08 +01:00 committed by GitHub
parent e8b0b19ff0
commit 3ba8338508
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 2094 additions and 1396 deletions

View file

@ -491,7 +491,7 @@ export function* poissonDiscSampler(
return true;
}
function sample(x: number, y: number) {
function sample(x: number, y: number): [number, number] {
const point: [number, number] = [x, y];
grid[gridWidth * ((y / cellSize) | 0) + ((x / cellSize) | 0)] = point;
queue.push(point);