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

Function reach

graph-ui/src/galaxy/GraphScene.camera.test.tsx:58–58  ·  view source on GitHub ↗
(y: number)

Source from the content-addressed store, hash-verified

56 const half = Math.tan(25 * Math.PI / 180);
57 /** How much of the half-height the outermost node uses, margin included. */
58 const reach = (y: number) => y * FRAME_MARGIN / (scene.camera.position.z * half);
59
60 it('frames the next picture along the kept view direction: back for a larger one, forward for a smaller one', () => {
61 moved.current = false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected