Interface: RendererOptions
Defined in: core/Renderer.ts:7
Options for configuring the Renderer.
Properties
alpha?
optionalalpha:boolean
Defined in: core/Renderer.ts:21
Enable alpha channel. Defaults to false.
antialias?
optionalantialias:boolean
Defined in: core/Renderer.ts:15
Enable antialiasing. Defaults to true.
backgroundColor?
optionalbackgroundColor:string
Defined in: core/Renderer.ts:13
Background color as CSS color string. Defaults to '#000000'.
backgroundOpacity?
optionalbackgroundOpacity:number
Defined in: core/Renderer.ts:23
Background opacity (0 = fully transparent, 1 = fully opaque). Defaults to 1. When < 1, alpha channel is enabled automatically. Not supported when exporting to video or GIF formats.
canvas?
optionalcanvas:HTMLCanvasElement
Defined in: core/Renderer.ts:27
Existing canvas element to reuse. If not provided, a new canvas is created.
height?
optionalheight:number
Defined in: core/Renderer.ts:11
Canvas height in pixels. Defaults to container height.
pixelRatio?
optionalpixelRatio:number
Defined in: core/Renderer.ts:17
Device pixel ratio. Defaults to window.devicePixelRatio (capped at 2x for performance).
powerPreference?
optionalpowerPreference:"default"|"high-performance"|"low-power"
Defined in: core/Renderer.ts:19
GPU power preference. Defaults to 'high-performance'.
preserveDrawingBuffer?
optionalpreserveDrawingBuffer:boolean
Defined in: core/Renderer.ts:25
Preserve drawing buffer for export. Defaults to true for video/image export support.
width?
optionalwidth:number
Defined in: core/Renderer.ts:9
Canvas width in pixels. Defaults to container width.