Skip to main content

Interface: MappingCameraOptions

Defined in: core/CameraExtensions.ts:996

Options for configuring a MappingCamera.

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


mappingFunction?

optional mappingFunction: MappingFunction

Defined in: core/CameraExtensions.ts:998

Initial mapping function to apply to coordinates.


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