Skip to main content

Type Alias: GifDecoder()

GifDecoder = (source) => Promise<DecodedGif>

Defined in: src/mobjects/image/gifDecoder.ts:40

A function that decodes a GIF source (URL or data URI) to DecodedGif. This is the dependency-injection seam: tests set a mock decoder so the real gifuct-js decoder and the network are never used.

Parameters​

source​

string

Returns​

Promise<DecodedGif>