Skip to main content

Class: GifExporter

Defined in: src/export/GifExporter.ts:29

Constructors​

Constructor​

new GifExporter(scene, options?): GifExporter

Defined in: src/export/GifExporter.ts:33

Parameters​

scene​

ExportableScene

options?​

GifExportOptions

Returns​

GifExporter

Methods​

exportAndDownload()​

exportAndDownload(filename, duration?): Promise<void>

Defined in: src/export/GifExporter.ts:189

Convenience method: export and download

Parameters​

filename​

string = 'animation.gif'

duration?​

number

Returns​

Promise<void>


exportTimeline()​

exportTimeline(duration?): Promise<Blob>

Defined in: src/export/GifExporter.ts:52

Export the timeline as a GIF

Parameters​

duration?​

number

Returns​

Promise<Blob>


download()​

static download(blob, filename): void

Defined in: src/export/GifExporter.ts:175

Download the GIF

Parameters​

blob​

Blob

filename​

string = 'animation.gif'

Returns​

void