Skip to content

Intermact API Reference / @intermact/react / ExportGifOptions

Interface: ExportGifOptions ​

Defined in: react/src/export/gif.ts:201

Options for exportCanvasGif.

Properties ​

duration? ​

readonly optional duration?: number

Defined in: react/src/export/gif.ts:205

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


fps? ​

readonly optional fps?: number

Defined in: react/src/export/gif.ts:203

Frames per second (default 15 for GIF).


loop? ​

readonly optional loop?: number

Defined in: react/src/export/gif.ts:207

Loop count: 0 = forever (default).


renderFrame? ​

readonly optional renderFrame?: (time) => void

Defined in: react/src/export/gif.ts:209

Force a synchronous redraw after each seek (wire to your gl.render).

Parameters ​

time ​

number

Returns ​

void

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