Skip to main content

Function: exportAndDownloadAnimatedSVG()

exportAndDownloadAnimatedSVG(scene, filename, options?): void

Defined in: src/export/SmilExporter.ts:444

Convenience helper: export a scene as an animated SVG and download it.

Guards the DOM: it throws a clear error when no document is available.

Parameters​

scene​

SmilExportableScene

The scene to export

filename​

string = 'scene.svg'

The target filename. Defaults to 'scene.svg'.

options?​

SmilExportOptions

Export options

Returns​

void