toSVG

Converts a Composition into its equivalent SVG representation.

This method serializes the vector composition, including its structure, style, and attributes, into an SVG string. The resulting SVG can be used for rendering or exporting the composition to an SVG file.

The method internally utilizes the writeSVG function for the conversion process.

Receiver

The Composition instance to be converted into SVG.

Return

A String representing the composition in SVG format.