Skip to content

CameraFraming

Defined in: packages/declarative-hex-worlds/src/camera/camera.ts:65

A computed camera framing — renderer-neutral. A binding applies it to its camera.

readonly distance: number

Defined in: packages/declarative-hex-worlds/src/camera/camera.ts:80

Distance from eye to target.


readonly fov: number

Defined in: packages/declarative-hex-worlds/src/camera/camera.ts:78

Field of view in radians (perspective).


readonly orthoHalfHeight: number

Defined in: packages/declarative-hex-worlds/src/camera/camera.ts:76

Half-height of the orthographic view volume (world units). The binding derives the ortho box from this + the viewport aspect. Present for both projections so a binding can frame consistently; ignored by a pure-perspective camera.


readonly position: WorldPosition

Defined in: packages/declarative-hex-worlds/src/camera/camera.ts:67

Eye position in world space.


readonly projection: CameraProjection

Defined in: packages/declarative-hex-worlds/src/camera/camera.ts:70


readonly target: WorldPosition

Defined in: packages/declarative-hex-worlds/src/camera/camera.ts:69

Look-at target (board center).