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

Function edgeArrowScreenScale

graph-ui/src/graph/EdgePulseLayer.tsx:16–19  ·  view source on GitHub ↗
(width: number, height: number)

Source from the content-addressed store, hash-verified

14/** A full arrow is 1.65 times this scale in CSS pixels. Smaller embedded views
15 * get smaller markers; even a large view stays below 4.5px, independent of zoom. */
16export function edgeArrowScreenScale(width: number, height: number): number {
17 const shortSide = Math.min(width, height);
18 return Number.isFinite(shortSide) && shortSide > 0 ? Math.min(2.7, Math.max(1.2, shortSide * .0054)) : 1.2;
19}
20/** One line batch for every curve; progress is measured from semantic source to target. */
21export function edgePulseGeometry(paths: readonly EdgePulsePath[]): BufferGeometry {
22 const positions: number[] = [], colors: number[] = [], flow: number[] = [];

Callers 2

edge-arrow.test.tsFile · 0.90
EdgePulseLayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected