Interface: ZoomedSceneOptions
Defined in: src/core/ZoomedScene.ts:11
Options for configuring a ZoomedScene.
Extends
Properties
antialias?
optionalantialias:boolean
Defined in: src/core/Scene.ts:89
Multisample antialiasing. Turning it off roughly halves GPU fill cost on low-end and mobile GPUs, at the price of slightly jagged edges. Defaults to true.
Inherited from
autoRender?
optionalautoRender:boolean
Defined in: src/core/Scene.ts:72
Enable auto-render on add/remove. Defaults to true.
Inherited from
autoResize?
optionalautoResize:boolean
Defined in: src/core/Scene.ts:83
Automatically resize the canvas when its container (or the window, on
mobile rotation) changes size. Only active when both width and height
are omitted — passing either dimension is treated as a request for a
pinned canvas size, so auto-resize stays off. Defaults to true.
Inherited from
backgroundColor?
optionalbackgroundColor:string
Defined in: src/core/Scene.ts:62
Background color as CSS color string. Defaults to Manim's dark gray (#1C1C1C).
Inherited from
backgroundOpacity?
optionalbackgroundOpacity:number
Defined in: src/core/Scene.ts:74
Background opacity (0 = fully transparent, 1 = fully opaque). Defaults to 1. Not supported when exporting to video or GIF formats.
Inherited from
SceneOptions.backgroundOpacity
cameraFrameColor?
optionalcameraFrameColor:string
Defined in: src/core/ZoomedScene.ts:23
Color of the camera frame border. Defaults to '#FFFF00'.
cameraFrameHeight?
optionalcameraFrameHeight:number
Defined in: src/core/ZoomedScene.ts:15
Height of the zoom camera frame in world units. Defaults to 3.
cameraFrameStrokeWidth?
optionalcameraFrameStrokeWidth:number
Defined in: src/core/ZoomedScene.ts:27
Stroke width of camera frame. Defaults to 3.
cameraFrameWidth?
optionalcameraFrameWidth:number
Defined in: src/core/ZoomedScene.ts:13
Width of the zoom camera frame in world units. Defaults to 3.
displayCorner?
optionaldisplayCorner: [number,number,number]
Defined in: src/core/ZoomedScene.ts:33
Corner direction for zoomed display [x, y, z]. Defaults to UP+RIGHT [1,1,0].
displayCornerBuff?
optionaldisplayCornerBuff:number
Defined in: src/core/ZoomedScene.ts:35
Buffer from corner edges. Defaults to 0.5.
displayFrameColor?
optionaldisplayFrameColor:string
Defined in: src/core/ZoomedScene.ts:25
Color of the display frame border. Defaults to '#FFFF00'.
displayFrameStrokeWidth?
optionaldisplayFrameStrokeWidth:number
Defined in: src/core/ZoomedScene.ts:29
Stroke width of display frame. Defaults to 3.
displayHeight?
optionaldisplayHeight:number
Defined in: src/core/ZoomedScene.ts:21
Height of the zoomed display in world units. Defaults to 3.
displayWidth?
optionaldisplayWidth:number
Defined in: src/core/ZoomedScene.ts:19
Width of the zoomed display in world units. Defaults to 3.
frameHeight?
optionalframeHeight:number
Defined in: src/core/Scene.ts:66
Frame height in world units. Defaults to 8 (Manim standard).
Inherited from
frameWidth?
optionalframeWidth:number
Defined in: src/core/Scene.ts:64
Frame width in world units. Defaults to 14 (Manim standard).
Inherited from
frustumCulling?
optionalfrustumCulling:boolean
Defined in: src/core/Scene.ts:70
Enable frustum culling optimization. Defaults to true.
Inherited from
headless?
optionalheadless:boolean
Defined in: src/core/Scene.ts:76
Enable headless mode (no WebGL renderer). Useful for testing scene logic without a DOM.
Inherited from
height?
optionalheight:number
Defined in: src/core/Scene.ts:60
Canvas height in pixels. Defaults to container height.
Inherited from
pauseRenderingWhenHidden?
optionalpauseRenderingWhenHidden:boolean
Defined in: src/core/Scene.ts:111
Skip drawing animation frames while the canvas is scrolled out of view or
its tab is hidden. Animations and updaters keep running, and the current
frame is drawn as soon as the canvas is visible again. Explicit renders
(render(), seek(), exports) always draw. Defaults to true.
Inherited from
SceneOptions.pauseRenderingWhenHidden
pixelRatio?
optionalpixelRatio:number
Defined in: src/core/Scene.ts:95
Canvas resolution multiplier. Defaults to window.devicePixelRatio,
capped at 2. Pass 1 on high-DPI phones and low-end laptops to draw a
quarter of the pixels at 2x DPR.
Inherited from
powerPreference?
optionalpowerPreference:"default"|"high-performance"|"low-power"
Defined in: src/core/Scene.ts:97
GPU power hint passed to WebGL. Defaults to 'high-performance'.
Inherited from
preserveDrawingBuffer?
optionalpreserveDrawingBuffer:boolean
Defined in: src/core/Scene.ts:104
Keep the drawing buffer after compositing. Exporters that read the canvas
asynchronously (PNG export via toBlob, for example) need it, so leave
it on for scenes you export. For playback-only scenes, turning it off
saves a per-frame buffer copy on many GPUs. Defaults to true.
Inherited from
SceneOptions.preserveDrawingBuffer
renderTargetSize?
optionalrenderTargetSize:number
Defined in: src/core/ZoomedScene.ts:31
Size of render target in pixels. Defaults to 512.
targetFps?
optionaltargetFps:number
Defined in: src/core/Scene.ts:68
Target frame rate in fps. Defaults to 60.
Inherited from
width?
optionalwidth:number
Defined in: src/core/Scene.ts:58
Canvas width in pixels. Defaults to container width.
Inherited from
zoomFactor?
optionalzoomFactor:number
Defined in: src/core/ZoomedScene.ts:17
Default zoom factor (frame.width / display.width). Defaults to 0.3.