Interface: SpecialThreeDSceneOptions
Defined in: src/core/SpecialThreeDScene.ts:29
Configuration for SpecialThreeDScene, extending the base 3D scene options with CE's extra axes, sphere, and default-camera settings.
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
ThreeDSceneOptions.backgroundColor
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
ThreeDSceneOptions.backgroundOpacity
cutAxesAtRadius?
optionalcutAxesAtRadius:boolean
Defined in: src/core/SpecialThreeDScene.ts:36
Whether getAxes() cuts each axis at radius 1. CE builds the axis from
three line pieces to do this; this port's ThreeDAxes renders a single
continuous axis with no piece sub-structure, so the flag is stored but not
applied. Defaults to true.
defaultAngledCameraPosition?
optionaldefaultAngledCameraPosition:object
Defined in: src/core/SpecialThreeDScene.ts:42
The default angled camera position, in radians.
phi
phi:
number
theta
theta:
number
distance?
optionaldistance:number
Defined in: src/core/ThreeDScene.ts:103
Initial camera distance from origin. Defaults to 15.
Inherited from
enableOrbitControls?
optionalenableOrbitControls:boolean
Defined in: src/core/ThreeDScene.ts:105
Enable orbit controls for user interaction. Defaults to true.
Inherited from
ThreeDSceneOptions.enableOrbitControls
fov?
optionalfov:number
Defined in: src/core/ThreeDScene.ts:97
Camera field of view in degrees. Defaults to 45.
Inherited from
frameHeight?
optionalframeHeight:number
Defined in: src/core/Scene.ts:66
Frame height in world units. Defaults to 8 (Manim standard).
Inherited from
ThreeDSceneOptions.frameHeight
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
ThreeDSceneOptions.frustumCulling
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
orbitControlsOptions?
optionalorbitControlsOptions:OrbitControlsOptions
Defined in: src/core/ThreeDScene.ts:109
Orbit controls configuration options.
Inherited from
ThreeDSceneOptions.orbitControlsOptions
orbitControlsUp?
optionalorbitControlsUp:"x"|"y"|"z"
Defined in: src/core/ThreeDScene.ts:107
Vertical rotation axis for orbit controls: 'x', 'y', or 'z'. If not provided, camera.up is computed from initial phi/theta via orbit() formula.
Inherited from
ThreeDSceneOptions.orbitControlsUp
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
ThreeDSceneOptions.pauseRenderingWhenHidden
phi?
optionalphi:number
Defined in: src/core/ThreeDScene.ts:99
Initial camera phi angle (polar, from Y axis). Defaults to PI/4.
Inherited from
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
ThreeDSceneOptions.powerPreference
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
ThreeDSceneOptions.preserveDrawingBuffer
setupLighting?
optionalsetupLighting:boolean
Defined in: src/core/ThreeDScene.ts:111
Whether to set up default lighting. Defaults to true.
Inherited from
ThreeDSceneOptions.setupLighting
sphereConfig?
optionalsphereConfig:SphereOptions
Defined in: src/core/SpecialThreeDScene.ts:40
Overrides merged over getDefaultSphereConfig when building spheres.
targetFps?
optionaltargetFps:number
Defined in: src/core/Scene.ts:68
Target frame rate in fps. Defaults to 60.
Inherited from
theta?
optionaltheta:number
Defined in: src/core/ThreeDScene.ts:101
Initial camera theta angle (azimuthal, in XZ plane). Defaults to -PI/4.
Inherited from
threeDAxesConfig?
optionalthreeDAxesConfig:ThreeDAxesOptions
Defined in: src/core/SpecialThreeDScene.ts:38
Overrides merged over getDefaultAxesConfig when building axes.
width?
optionalwidth:number
Defined in: src/core/Scene.ts:58
Canvas width in pixels. Defaults to container width.