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.
Parameters
Section titled “Parameters”string
fileKey
Section titled “fileKey”string
nodeIds
Section titled “nodeIds”readonly string[]
options?
Section titled “options?”DesignCallOptions = {}
Returns
Section titled “Returns”Promise<Map<string, Buffer<ArrayBufferLike>>>