MCPcopy Create free account
hub / github.com/Noumena-Network/code / isEmptyCellAt

Function isEmptyCellAt

src/ink/screen.ts:460–463  ·  view source on GitHub ↗
(screen: Screen, x: number, y: number)

Source from the content-addressed store, hash-verified

458}
459
460export function isEmptyCellAt(screen: Screen, x: number, y: number): boolean {
461 if (x < 0 || y < 0 || x >= screen.width || y >= screen.height) return true
462 return isEmptyCellByIndex(screen, y * screen.width + x)
463}
464
465/**
466 * Check if a Cell (view object) represents an empty cell.

Callers 2

renderMethod · 0.85
dispatchClickMethod · 0.85

Calls 1

isEmptyCellByIndexFunction · 0.85

Tested by

no test coverage detected