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

Function railHeight

ui/src/lib/filecode-model.ts:352–355  ·  view source on GitHub ↗
(rows: readonly FileCallRow[])

Source from the content-addressed store, hash-verified

350
351/** Height the rail needs, so the document never ends above its last row. */
352export function railHeight(rows: readonly FileCallRow[]): number {
353 const last = rows[rows.length - 1];
354 return last ? last.top + ROW_HEIGHT + CODE_BOTTOM_PAD : 0;
355}
356
357/* ----------------------------------------------------------------- arcs -- */
358

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected