Skip to main content

Interface: MovingCameraOptions

Defined in: core/CameraExtensions.ts:30

Options for configuring a MovingCamera.

Extends

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.

Inherited from

CameraOptions.aspectMode


frameHeight?

optional frameHeight: number

Defined in: core/Camera.ts:244

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

Inherited from

CameraOptions.frameHeight


frameWidth?

optional frameWidth: number

Defined in: core/Camera.ts:242

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

Inherited from

CameraOptions.frameWidth


position?

optional position: [number, number, number]

Defined in: core/Camera.ts:246

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

Inherited from

CameraOptions.position


zoom?

optional zoom: number

Defined in: core/CameraExtensions.ts:32

Initial zoom level. Defaults to 1.