(box: FrameBox, aspect: number)
| 1251 | * camera-frame.ts. |
| 1252 | */ |
| 1253 | export 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 |
no test coverage detected