MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / timeAtFraction

Function timeAtFraction

graph-ui/src/agents/agent-timeline.ts:161–164  ·  view source on GitHub ↗
(timeline: Timeline, fraction: number)

Source from the content-addressed store, hash-verified

159
160/** Die Zeit an dieser Stelle des Strahls. `fraction` liegt zwischen 0 und 1. */
161export function timeAtFraction(timeline: Timeline, fraction: number): number {
162 const clamped = fraction <= 0 ? 0 : fraction >= 1 ? 1 : fraction;
163 return Math.round(timeline.from + clamped * timeline.windowMs);
164}

Callers 2

AgentsTimelineFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected