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

Function countFillableSpaceGap

src/ink/screen.ts:833–852  ·  view source on GitHub ↗
(
  screen: Screen,
  y: number,
  startX: number,
  endX: number,
  currentStyleId: number,
  currentHyperlink: Hyperlink,
  defaultStyleId: number,
)

Source from the content-addressed store, hash-verified

831}
832
833export function countFillableSpaceGap(
834 screen: Screen,
835 y: number,
836 startX: number,
837 endX: number,
838 currentStyleId: number,
839 currentHyperlink: Hyperlink,
840 defaultStyleId: number,
841): number {
842 const analysis = analyzeFillableSpaceGap(
843 screen,
844 y,
845 startX,
846 endX,
847 currentStyleId,
848 currentHyperlink,
849 defaultStyleId,
850 )
851 return analysis.blocker === 'none' ? analysis.fillableCells : 0
852}
853
854export function visibleCellAtIndex(
855 cells: Int32Array,

Callers

nothing calls this directly

Calls 1

analyzeFillableSpaceGapFunction · 0.85

Tested by

no test coverage detected