Skip to content

RendererFitOptions

Defined in: renderer/src/types.ts:21

Options for the responsive-fit API.

mode: FitMode

Defined in: renderer/src/types.ts:23

Scale mode. See FitMode.


optional target?: HTMLElement

Defined in: renderer/src/types.ts:31

Element whose size the canvas matches. Defaults, in order: RendererConfig.container, then canvas.parentElement. If neither is available the controller falls back to a one-shot transform against the initial width × height and installs no ResizeObserver — pass { target: document.body } explicitly for full-page fit.