Version 1, Update 128
Video export
exportAsync can now export a top-level frame with animated content as video. Pass one of the new export settings types to receive a Uint8Array of the encoded file. Video export is only available when running in Figma.
New types
ExportSettingsMP4: Export an animated top-level frame as an MP4. Supportsfps, aqualitypreset, and a sizeconstraint.ExportSettingsGIF: Export an animated top-level frame as a GIF. Supportsfps,loopCount, and a sizeconstraint.ExportSettingsWEBM: Export an animated top-level frame as a WebM. Supportsfps, aqualitypreset, and a sizeconstraint.
Updated methods
exportAsync(): Added an overload acceptingExportSettingsMP4 | ExportSettingsGIF | ExportSettingsWEBM.