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§
- Rendered
Level - One level as the SVG exporter drew it: the source, the world-space frame
its
viewBoxcovers, and where each child block landed inside that frame. The rects come from the veryDrawingthat 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
pathofindexedto 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.