MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / documentHeight

Function documentHeight

ui/src/lib/filecode-model.ts:112–114  ·  view source on GitHub ↗
(totalLines: number)

Source from the content-addressed store, hash-verified

110
111/** Total height of the scrolling document for a file of `totalLines`. */
112export function documentHeight(totalLines: number): number {
113 return CODE_TOP_PAD + Math.max(0, totalLines) * CODE_LINE_HEIGHT + CODE_BOTTOM_PAD;
114}
115
116/**
117 * The 1-based line at a vertical offset in the document.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected