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

Function lineTop

ui/src/lib/filecode-model.ts:102–104  ·  view source on GitHub ↗
(line: number)

Source from the content-addressed store, hash-verified

100
101/** Top edge of a 1-based file line, in the scrolling document's coordinates. */
102export function lineTop(line: number): number {
103 return CODE_TOP_PAD + (line - 1) * CODE_LINE_HEIGHT;
104}
105
106/** Vertical centre of a line — what an arc, a port and a connector all anchor to. */
107export function lineCentre(line: number): number {

Callers 2

lineCentreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected