Choosing a diagram handoff format
For a diagram that a colleague may need to reuse, choose the file around their next step—not simply the format that is easiest to send.
If they need an image for slides or offline documents, consider PNG. The export instructions describe rendering the source HTML with Playwright, capturing the SVG diagram itself at a chosen scale, and using a transparent background. But this is a documented procedure, not a guarantee of identical output in every environment: if network font fetching stalls, the exporter warns that fallback typography may be used. Check the exported image before handing it off when appearance matters. Export instructions
For browser viewing, or when the surrounding editorial cards and headers matter, send the HTML. Maintainer documentation calls the output a self-contained HTML file that can be opened offline, but also says Google Fonts are the default and system fonts are needed to remove network requests. Static inspection found Google Fonts stylesheet links in the template and three architecture HTML files. That establishes the presence of declarations, not whether a request succeeds or how a browser renders them. If network independence matters, switch to system fonts and verify the file in the recipient’s environment. Maintainer documentation · Template · Architecture example
If they need structural edits, do not treat the export as a conventional editable diagram project. The maintainer says the output is not an editable source format like Mermaid text or draw.io canvases: later changes mean asking the agent again or editing SVG markup directly. Pass along the original prompt or description if they may need the agent to revise it, or the SVG markup if they are prepared to edit it directly. An SVG export can be a vector handoff, but the instructions warn that tools unable to fetch remote fonts may substitute typography; use --system-fonts for a no-network SVG and confirm its appearance in the destination application. Maintainer documentation · Export instructions
One trade-off applies to both exports: PNG and SVG contain the diagram, not the surrounding editorial page. The instructions say headers, cards, and footers in full variants are omitted. Choose HTML when that context matters, or use a full-page screenshot or print-to-PDF for the whole layout.
The evidence combines maintainer documentation with static inspection of selected, commit-pinned files. The inspection did not test browser rendering, font downloads, offline behavior, or imports into Illustrator, PowerPoint, or Figma; it is not a repository-wide or current-branch audit. Treat fixed appearance and network independence as requirements to verify with the recipient’s actual workflow, not as tested guarantees.
Comments
Post a Comment