Skip to main content

Module export

Module export 

Source
Expand description

Rust file encoders. No upstream scripts or runtime are embedded.

Structs§

ExportFile
A complete file, passed to an application-owned save/download sink.
ImageOptions
Capture and raster settings. Dimensions are measured from the live view.

Enums§

ImageFormat
Raster output encoding.

Functions§

capture_svg
Capture actual HTML layout into a self-contained SVG foreignObject image. Full canvas is exported; viewport pan and zoom are removed, editing and selection affordances are omitted. Loaded custom fonts are embedded.
rasterize
Rasterize the captured SVG with the browser’s native image/canvas codec. Detects unsupported codecs instead of returning PNG bytes with a WebP suffix.
static_html
Wrap a captured standalone SVG in a static, offline HTML document. No editor or scripts are included. SVG must come from a trusted capture source.
xmind
Encode a Zen/modern XMind ZIP with content.json, metadata.json and manifest.json. Exports the entire plain-text tree, including collapsed descendants. Arbitrary Mind Elixir metadata and CSS are not XMind fields and are not converted.