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

Function strokeWidthFor

ui/src/lib/map-model.ts:287–289  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

285}
286
287export function strokeWidthFor(count: number): number {
288 return Math.min(6, 1 + Math.log2(Math.max(1, count)) * 0.7);
289}
290
291/**
292 * A link's stable identity, and the id Svelte Flow keys its edge on.

Callers 3

packRegionsFunction · 0.90
buildMapLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected