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

Function cellAt

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

Source from the content-addressed store, hash-verified

632 * this is intentional as cells are stored packed, not as objects.
633 */
634export function cellAt(screen: Screen, x: number, y: number): Cell | undefined {
635 if (x < 0 || y < 0 || x >= screen.width || y >= screen.height)
636 return undefined
637 return cellAtIndex(screen, y * screen.width + x)
638}
639/**
640 * Get a Cell view by pre-computed array index. Skips bounds checks and
641 * index computation — caller must ensure index is valid.

Callers 12

renderFullFrameMethod · 0.85
output.test.tsFile · 0.85
hashRowFunction · 0.85
rowsToStringsFunction · 0.85
screen.test.tsFile · 0.85
readScreenTextFunction · 0.85
wordBoundsAtFunction · 0.85
findPlainTextUrlAtFunction · 0.85
extractRowTextFunction · 0.85
screenToRowsFunction · 0.85
getHyperlinkAtMethod · 0.85
screenRowsFunction · 0.85

Calls 1

cellAtIndexFunction · 0.85

Tested by

no test coverage detected