Interface: PlayerOptions
Defined in: src/player/Player.ts:37
Options for configuring a Scene.
Extends
Properties
autoHideMs?
optionalautoHideMs:number
Defined in: src/player/Player.ts:39
Auto-hide controls after this many ms. 0 = never. Default 2500.
autoPlay?
optionalautoPlay:boolean
Defined in: src/player/Player.ts:41
Auto-play after sequence() finishes recording. Default false.
autoRender?
optionalautoRender:boolean
Defined in: src/core/Scene.ts:70
Enable auto-render on add/remove. Defaults to true.
Inherited from
autoResize?
optionalautoResize:boolean
Defined in: src/core/Scene.ts:81
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:60
Background color as CSS color string. Defaults to Manim's dark gray (#1C1C1C).
Inherited from
backgroundOpacity?
optionalbackgroundOpacity:number
Defined in: src/core/Scene.ts:72
Background opacity (0 = fully transparent, 1 = fully opaque). Defaults to 1. Not supported when exporting to video or GIF formats.
Inherited from
SceneOptions.backgroundOpacity
exportControls?
optionalexportControls:boolean
Defined in: src/player/Player.ts:57
Show an fps/resolution/quality panel in the export menu, so viewers can pick export settings without subclassing the Player. Default false.
frameHeight?
optionalframeHeight:number
Defined in: src/core/Scene.ts:64
Frame height in world units. Defaults to 8 (Manim standard).
Inherited from
frameWidth?
optionalframeWidth:number
Defined in: src/core/Scene.ts:62
Frame width in world units. Defaults to 14 (Manim standard).
Inherited from
frustumCulling?
optionalfrustumCulling:boolean
Defined in: src/core/Scene.ts:68
Enable frustum culling optimization. Defaults to true.
Inherited from
headless?
optionalheadless:boolean
Defined in: src/core/Scene.ts:74
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:58
Canvas height in pixels. Defaults to container height.
Inherited from
interactiveSlides?
optionalinteractiveSlides:boolean
Defined in: src/player/Player.ts:52
Keep the scene interactive while paused. When true, a Draggable, Clickable or Hoverable object responds on a paused slide: a pointer event triggers one scene render without advancing the timeline. Default false, so normal slides keep their cheap paused behavior (no extra renders).
loop?
optionalloop:boolean
Defined in: src/player/Player.ts:43
Loop playback. Default false.
slidesMode?
optionalslidesMode:boolean
Defined in: src/player/Player.ts:45
Slides mode: arrows play/pause at slide boundaries like a presentation. Default false.
targetFps?
optionaltargetFps:number
Defined in: src/core/Scene.ts:66
Target frame rate in fps. Defaults to 60.
Inherited from
width?
optionalwidth:number
Defined in: src/core/Scene.ts:56
Canvas width in pixels. Defaults to container width.