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

Function edgePhase

graph-ui/src/graph/edge-style.ts:36–40  ·  view source on GitHub ↗
(id: string | number)

Source from the content-addressed store, hash-verified

34}
35/** Offset each edge deterministically so the graph does not flash in unison. */
36export function edgePhase(id: string | number): number {
37 let hash = 2166136261;
38 for (const character of String(id)) hash = Math.imul(hash ^ character.charCodeAt(0), 16777619) >>> 0;
39 return hash / 4294967296;
40}

Callers 4

createEdgeGeometryFunction · 0.90
edge-style.test.tsFile · 0.90
edgePulseGeometryFunction · 0.90
edgeArrowGeometryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected