make
Returns a new canvas that will generate SVG commands from its draw calls, and send them to the provided stream. Ownership of the stream is not transfered, and it must remain valid for the lifetime of the returned canvas.
The canvas may buffer some drawing calls, so the output is not guaranteed to be valid or complete until the canvas instance is deleted.
Return
new Canvas
Parameters
defines an initial SVG viewport (viewBox attribute on the root SVG element).
stream SVG commands will be written to
Returns a new canvas that will generate SVG commands from its draw calls, and send them to the provided stream. Ownership of the stream is not transfered, and it must remain valid for the lifetime of the returned canvas.
The canvas may buffer some drawing calls, so the output is not guaranteed to be valid or complete until the canvas instance is deleted.
Return
new Canvas
Parameters
left coordinate of an initial SVG viewport (viewBox attribute on the root SVG element).
top coordinate of an initial SVG viewport (viewBox attribute on the root SVG element).
right coordinate of an initial SVG viewport (viewBox attribute on the root SVG element).
bottom coordinate of an initial SVG viewport (viewBox attribute on the root SVG element).
stream SVG commands will be written to
emit text as
add newlines and tabs in output
Returns a new canvas that will generate SVG commands from its draw calls, and send them to the provided stream. Ownership of the stream is not transfered, and it must remain valid for the lifetime of the returned canvas.
The canvas may buffer some drawing calls, so the output is not guaranteed to be valid or complete until the canvas instance is deleted.
Return
new Canvas
Parameters
defines an initial SVG viewport (viewBox attribute on the root SVG element).
stream SVG commands will be written to
emit text as
add newlines and tabs in output