UTILITY
parse
parse converts user-provided strings into safe portable values without throwing a view runtime exception.
VIEW SYNTAX
Assign utility results inside fn
View utilities are normalized calls. source names the function, named props provide its arguments, and set writes the result to a Signal.
fn convert
set output source:parse.svg value:input fallback:""parser svg data=svg and string svg data=... are not Dowe declarations. The implemented syntax is set <Signal> source:parse.svg value:<string Signal>.
PLAYGROUND
Convert SVG text
SVG source
FUNCTIONS
Implemented parse catalog
Function | Input | Result |
|---|---|---|
No dataThere are no records to display | ||
CURRENT SUPPORT
Bounded and deterministic
parse.svg accepts at most 262144 UTF-8 bytes and 1024 paths. It imports viewBox or numeric width and height, svg, g, path, inline fill styles, and matrix transforms.
Unsupported vector elements are skipped. Invalid XML, dimensions, path data, or transforms return fallback when supplied and null otherwise.