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

Function edgeIntensityScale

graph-ui/src/galaxy/density.ts:52–56  ·  view source on GitHub ↗
(edgeCount: number)

Source from the content-addressed store, hash-verified

50const EDGE_MIN_SCALE = 0.05;
51
52export function edgeIntensityScale(edgeCount: number): number {
53 if (edgeCount <= EDGE_REFERENCE_COUNT) return 1;
54 /* ~1/sqrt(n): 4x the edges gives each ~half the brightness, total glow ~flat. */
55 return Math.max(EDGE_MIN_SCALE, Math.sqrt(EDGE_REFERENCE_COUNT / edgeCount));
56}
57
58/* Node glow and bloom stay at full strength up to here: this covers the
59 * common "load the whole repo" case (tens of thousands of nodes) so the

Callers 4

portedFunction · 0.90
edge-lines.test.tsFile · 0.90
edgeIntensityForFunction · 0.90
createEdgeGeometryFunction · 0.90

Calls

no outgoing calls

Tested by 1

portedFunction · 0.72