svg.create_from_raw
Client
Creates a new SVG instance from a raw SVG string
Syntax
local instance = svg.create_from_raw(
raw
)Parameters
| Type | Name | Description |
|---|---|---|
string | raw | Raw SVG markup string |
Returns
| Type | Name | Description |
|---|---|---|
svg | instance | Created SVG instance |
Examples
local tex = svg.create_from_raw([[
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="50"/>
</svg>
]])