(points: readonly { x: number; y: number; z: number }[])
| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected