Converts a Graphics object or GraphicsContext into an SVG string.
This is a pure function — it reads from the context's instructions and
returns a self-contained SVG document string. Texture instructions are
skipped since they have no SVG equivalent.
Converts a Graphics object or GraphicsContext into an SVG string.
This is a pure function — it reads from the context's instructions and returns a self-contained SVG document string. Texture instructions are skipped since they have no SVG equivalent.