Skip to main content

Interface: CameraOptions

Defined in: core/Camera.ts:240

Options for configuring a Camera2D.

Extended by

Properties

aspectMode?

optional aspectMode: Camera2DAspectMode

Defined in: core/Camera.ts:254

Behaviour of setAspectRatio when the viewport aspect doesn't match this camera's frame. Defaults to 'fill' for back-compat — set to 'contain' (recommended for multi-camera layouts) to make per-camera frameWidth/frameHeight zoom intent survive the per-viewport aspect adjustment.


frameHeight?

optional frameHeight: number

Defined in: core/Camera.ts:244

Height of the visible frame in world units. Defaults to 8 (Manim standard).


frameWidth?

optional frameWidth: number

Defined in: core/Camera.ts:242

Width of the visible frame in world units. Defaults to 14 (Manim standard).


position?

optional position: [number, number, number]

Defined in: core/Camera.ts:246

Initial camera position [x, y, z]. Defaults to [0, 0, 10].