Skip to content

Intermact API Reference / @intermact/react / FrameSequenceOptions

Interface: FrameSequenceOptions

Defined in: react/src/export/recordCanvas.ts:99

Options for deterministic frame-sequence export.

Properties

duration?

readonly optional duration?: number

Defined in: react/src/export/recordCanvas.ts:103

Seconds to export (default: the player's duration).


fps?

readonly optional fps?: number

Defined in: react/src/export/recordCanvas.ts:101

Frames per second (default 30).


renderFrame?

readonly optional renderFrame?: (time) => void

Defined in: react/src/export/recordCanvas.ts:109

Force a synchronous redraw of canvas after each player.seek. Wire this to your R3F gl.render(scene, camera) (or call from a useFrame-driven loop) so the captured pixels match the seeked frame.

Parameters

time

number

Returns

void

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)