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

Function directionSeed

graph-ui/src/galaxy/screen-node-spacing.ts:15–19  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

13const GOLDEN_ANGLE = Math.PI * (3 - Math.sqrt(5));
14
15function directionSeed(id: number): number {
16 let seed = Math.imul(id ^ (id >>> 16), 0x45d9f3b);
17 seed = Math.imul(seed ^ (seed >>> 16), 0x45d9f3b);
18 return ((seed ^ (seed >>> 16)) >>> 0) / 0x100000000 * Math.PI * 2;
19}
20
21/** Screen-space presentation only. Pinned disks (a scope root) never move and
22 * are placed first; then the largest disks, preserving their preferred

Callers 1

separateScreenNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected