Skip to main content

Module quick

Module quick 

Source
Expand description

Text in, picture out: process text (or compact JSON) to SVG or PNG in one call.

load expands the text (content-derived ids, so the same text always draws the same picture), the renderer lays out whatever has no diagram interchange and draws it. Pure and synchronous; in an async server call it from spawn_blocking.

Functionsยง

render_png
render_svg then rasterise (feature render-png).
render_svg
Process text or compact JSON to SVG. Auto-layout is always on, whatever opts says, because expanded text carries no usable diagram of its own.