Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeusData/codebase-memory-mcp
/ toEditorLine
Function
toEditorLine
graph-ui/src/core/positions.ts:45–47 ·
view source on GitHub ↗
(graphLine: number)
Source
from the content-addressed store, hash-verified
43
44
/** 1-based graph line to 0-based editor line, clamped so it never goes negative. */
45
export
function
toEditorLine(graphLine: number): number {
46
return
Math.max(0, graphLine - 1);
47
}
Callers
1
toEditorRange
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected