Like render() with an .svg path, but returns the SVG document as a
character string instead of writing a file. This is the in-memory entry point
for hosting a scene interactively (an htmlwidget embeds the markup directly)
and for tests that assert on emitted attributes such as data-key.
Usage
scene_svg(scene, text = c("native", "outline"))Arguments
- scene
A
vl_scene().- text
For SVG output, how text is written:
"native"(default) emits selectable<text>referencing system fonts,"outline"emits glyph outlines (pixel-faithful, identical to the raster/PDF backends, but not selectable). Ignored for PNG/PDF.
