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

Function lineCentre

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

Source from the content-addressed store, hash-verified

105
106/** Vertical centre of a line — what an arc, a port and a connector all anchor to. */
107export function lineCentre(line: number): number {
108 return lineTop(line) + CODE_LINE_HEIGHT / 2;
109}
110
111/** Total height of the scrolling document for a file of `totalLines`. */
112export function documentHeight(totalLines: number): number {

Callers 3

buildFileCallRowsFunction · 0.85
arcPathFunction · 0.85

Calls 1

lineTopFunction · 0.85

Tested by

no test coverage detected