Crate typst_svg

Crate typst_svg 

Source
Expand description

Rendering of Typst documents into SVG images.

Functionsยง

convert_image_scaling
Converts an image scaling to a CSS image-rendering property value.
convert_image_to_base64_url
Encode an image into a data URL. The format of the URL is data:image/{format};base64,.
svg
Export a frame into a SVG file.
svg_frame
Export a frame into a SVG file.
svg_html_frame
Export a frame into an SVG suitable for embedding into HTML.
svg_merged
Export a document with potentially multiple pages into a single SVG file.