Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/thatdeveloperguy-website / app/experience/scene-coordinate-map.ts |
| Date | Not specified in source |
| Repository | Janady13/thatdeveloperguy-website |
| Revision | 2bea2ebdff0e34494bff597d4fa9c8422a0c3a94 |
| Branch | main |
| Path or archive member | app/experience/scene-coordinate-map.ts |
| Original SHA-256 | 98b1dabe80455c79674c3f69970a049ba1e20bad105a8b7c59785d243fa78484 |
| Git blob SHA | 576c52cd11a319eea7e7226dd76da937aafe57b9 |
| Reading-copy SHA-256 | 98b1dabe80455c79674c3f69970a049ba1e20bad105a8b7c59785d243fa78484 |
Recovered source transcript
Download complete source text ↓7 lines · 0.6 KB
import { ROOM, type Hitbox, type SceneCanvas } from '../../src/contracts/scene';
/** Room coordinates come from the scene manifest; the overlay SVG shares the poster/Rive viewBox so hit targets stay on the doors at any size. */
export const DEFAULT_CANVAS = ROOM;
export function sceneViewBox(canvas: SceneCanvas = DEFAULT_CANVAS): string { return `0 0 ${canvas.width} ${canvas.height}`; }
export function sceneAspect(canvas: SceneCanvas = DEFAULT_CANVAS): string { return `${canvas.width} / ${canvas.height}`; }
export function hitCenter(hit: Hitbox): { x: number; y: number } { return { x: hit.x + hit.width / 2, y: hit.y + hit.height / 2 }; }