Skip to content

fetchFigmaRenders

fetchFigmaRenders(token, fileKey, nodeIds, options?): Promise<Map<string, Buffer<ArrayBufferLike>>>

Defined in: api.ts:151

Render several nodes of one file to PNG with a single Images API call, then download each (Figma’s signed URLs expire, so they are never hot-linked). Nodes Figma has no render for, or whose download fails, are omitted. Throws when the Images API call itself fails.

string

string

readonly string[]

DesignCallOptions = {}

Promise<Map<string, Buffer<ArrayBufferLike>>>