Skip to main content

Module level

Module level 

Source
Expand description

One level of the document, rendered to SVG — the entry both the SVG/PNG export and the PDF’s per-scope pages draw through, so a page and a saved picture cannot disagree about what the level looks like.

Structs§

RenderedLevel
One level as the SVG exporter drew it: the source, the world-space frame its viewBox covers, and where each child block landed inside that frame. The rects come from the very Drawing that was drawn, so a consumer placing them back onto the diagram (the PDF export’s scope links) cannot disagree with it.

Functions§

render_level
render_svg, keeping what the render learned about the diagram’s extent and the blocks in it.
render_svg
Render the level framed by path of indexed to an SVG string (also the source PNG export rasterizes). The sink is local because a render authors nothing: whatever it were handed would come back empty.