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

Function computeFrameTarget

graph-ui/src/galaxy/GraphScene.tsx:1253–1261  ·  view source on GitHub ↗
(box: FrameBox, aspect: number)

Source from the content-addressed store, hash-verified

1251 * camera-frame.ts.
1252 */
1253export function computeFrameTarget(box: FrameBox, aspect: number): CameraTarget {
1254 const distance = frameDistance(box, GRAPH_CAMERA_FOV, aspect);
1255 return {
1256 position: new THREE.Vector3(box.centerX, box.centerY, distance),
1257 lookAt: new THREE.Vector3(box.centerX, box.centerY, 0),
1258 up: new THREE.Vector3(0, 1, 0),
1259 immediate: true,
1260 };
1261}
1262
1263/*
1264 * Aenderung 12 (W10b): die dritte Rahmung, und die einzige, die auch die

Callers 1

GalaxyPanelFunction · 0.90

Calls 1

frameDistanceFunction · 0.90

Tested by

no test coverage detected