Class: SplitScreenCamera
Defined in: core/CameraExtensions.ts:963
SplitScreenCamera - A convenience class that wraps MultiCamera for split-screen comparison views.
Based on Python Manim's multi_camera module. Provides two Camera2D instances rendered side-by-side (horizontal split) or stacked (vertical split) with a configurable split ratio.
Constructors
Constructor
new SplitScreenCamera(
options):SplitScreenCamera
Defined in: core/CameraExtensions.ts:974
Create a new SplitScreenCamera.
Parameters
options
Configuration options
Returns
SplitScreenCamera
Methods
getLeftCamera()
getLeftCamera():
Camera2D
Defined in: core/CameraExtensions.ts:1015
Get the left (or top) camera.
Returns
The left Camera2D
getMultiCamera()
getMultiCamera():
MultiCamera
Defined in: core/CameraExtensions.ts:1031
Get the underlying MultiCamera instance.
Returns
The MultiCamera managing the viewports
getRightCamera()
getRightCamera():
Camera2D
Defined in: core/CameraExtensions.ts:1023
Get the right (or bottom) camera.
Returns
The right Camera2D
getSplitDirection()
getSplitDirection():
"horizontal"|"vertical"
Defined in: core/CameraExtensions.ts:1039
Get the current split direction.
Returns
"horizontal" | "vertical"
'horizontal' or 'vertical'
getSplitRatio()
getSplitRatio():
number
Defined in: core/CameraExtensions.ts:1047
Get the current split ratio.
Returns
number
Split ratio between 0.01 and 0.99
setSplit()
setSplit(
direction):this
Defined in: core/CameraExtensions.ts:1056
Set the split direction.
Parameters
direction
'horizontal' for side-by-side, 'vertical' for stacked
"horizontal" | "vertical"
Returns
this
this for chaining
setSplitRatio()
setSplitRatio(
ratio):this
Defined in: core/CameraExtensions.ts:1067
Set the split ratio.
Parameters
ratio
number
Position of the split (0-1). 0.5 = equal halves.
Returns
this
this for chaining