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

Function project

graph-ui/src/galaxy/GraphScene.tsx:829–836  ·  view source on GitHub ↗
(points: readonly { x: number; y: number; z: number }[])

Source from the content-addressed store, hash-verified

827 };
828 };
829 const project = (points: readonly { x: number; y: number; z: number }[]) => {
830 camera.updateMatrixWorld();
831 const point = new THREE.Vector3();
832 return points.map((entry) => {
833 point.set(entry.x, entry.y, entry.z).project(camera);
834 return { x: ((point.x + 1) / 2) * size.width, y: ((1 - point.y) / 2) * size.height };
835 });
836 };
837 globalThis.__atlasGalaxyFit = { measure, project };
838 return () => {
839 globalThis.__atlasGalaxyFit = undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected