Skip to main content

Function: sceneToAnimatedSVG()

sceneToAnimatedSVG(scene, options?): string

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

Convert a scene to a complete, standalone animated SVG string (SMIL).

The scene is seeked to each keyframe to read its state, then left at time 0. An empty scene yields a valid, empty <svg> without throwing.

Parameters​

scene​

SmilExportableScene

The scene to export; must support seek

options?​

SmilExportOptions

Export options

Returns​

string

The animated SVG markup