Skip to main content

Interface: SmilExportOptions

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

Options for an animated (SMIL) SVG export.

Properties​

attributes?​

optional attributes: SmilAnimatableAttribute[]

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

Which attributes may animate. Defaults to all of them.


background?​

optional background: string

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

Solid background color drawn behind everything. Omit for transparent.


duration?​

optional duration: number

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

Total animation duration in seconds. Falls back to the scene timeline.


fps?​

optional fps: number

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

Keyframes per second used to pick the sample count. Defaults to 15.


keyframes?​

optional keyframes: number

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

Explicit number of keyframes (>= 2). Overrides fps when given.


loop?​

optional loop: boolean

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

Repeat forever (repeatCount="indefinite"). Defaults to true.


precision?​

optional precision: number

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

Decimal places for numeric attributes. Defaults to 3.


preferTransform?​

optional preferTransform: boolean

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

Emit pure-translation motion as <animateTransform type="translate"> with a static path, instead of animating d. Defaults to false.