Expand description
Render backends for drawlang: SVG (native writer) and PNG (via resvg).
Text is measured (in drawlang-core) with the same bundled font the PNG rasterizer uses, so labels fit exactly. The SVG writer is deterministic: same geometry in, byte-identical output.
Modules§
- theme
- Theme palettes. Every color a diagram uses comes from here unless the
source gives an explicit
#hex;@tokensresolve against the active palette so one source renders well in both themes.
Functions§
- fmt_f
- Two-decimal fixed formatting with trailing zeros trimmed:
12,12.5,12.25. Stable across platforms. - render_
png - render_
svg