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

Function fitTo

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

Source from the content-addressed store, hash-verified

29const runFrames = (count: number) => act(() => { for (let i = 0; i < count; i++) fiber.frames.at(-1)?.({}, 1 / 60); });
30const flyTo = (x: number): CameraTarget => ({ position: new Vector3(x, 0, 300), lookAt: new Vector3(x, 0, 0) });
31const fitTo = (z: number): CameraTarget => ({ position: new Vector3(0, 0, z), lookAt: new Vector3(0, 0, 0), immediate: true });
32
33describe('CameraAnimator', () => {
34 it('does not replay a fly-to that was set before the scene mounted, but flies to the next one', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected