Interface: CameraOptions
Defined in: core/Camera.ts:240
Options for configuring a Camera2D.
Extended by
Properties
aspectMode?
optionalaspectMode: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?
optionalframeHeight:number
Defined in: core/Camera.ts:244
Height of the visible frame in world units. Defaults to 8 (Manim standard).
frameWidth?
optionalframeWidth:number
Defined in: core/Camera.ts:242
Width of the visible frame in world units. Defaults to 14 (Manim standard).
position?
optionalposition: [number,number,number]
Defined in: core/Camera.ts:246
Initial camera position [x, y, z]. Defaults to [0, 0, 10].