writeTo

Writes this scene to file as UTF-8 SVG text in the module's /v1 format.

The string entry point serializeSvg(root) with the write inline; the file is created or truncated.

Parameters

file

The destination file.

Throws

when this scene's bounds is null.

when the file cannot be written.