Why This Is Mandatory
JSON shows you coordinates and IDs. The rendered image shows you:- Whether text is clipped or overflowing
- Whether shapes overlap unintentionally
- Whether arrows land on the right elements
- Whether spacing is consistent
- Whether the composition is balanced
- Whether the visual hierarchy matches your intent
Setup (First Time Only)
If the render script hasn’t been set up yet: You only need to do this once.The Render-View-Fix Loop
When to Stop
The loop is done when: Don’t stop after one pass just because there are no critical bugs. If the composition could be better, improve it.Common Iteration Patterns
Iteration 1: Fix Critical Issues
First render usually reveals:- Text clipping (most common)
- Major overlaps
- Broken arrow bindings
Iteration 2: Improve Spacing
Second render shows:- Uneven gaps between elements
- Sections that need more breathing room
- Elements that could be closer together
Iteration 3: Polish
Third render is for fine-tuning:- Font size adjustments
- Minor alignment tweaks
- Final arrow routing improvements
Iteration 4: Final Check
Fourth render confirms everything looks good. If new issues appear, continue iterating.Troubleshooting
Render script fails with 'uv: command not found'
Render script fails with 'uv: command not found'
Install Then retry the setup steps.
uv first:Playwright chromium not found
Playwright chromium not found
Run the install command from the references directory:
PNG looks different from expected
PNG looks different from expected
This is normal! The rendered output often reveals issues invisible in JSON. That’s exactly why this step is mandatory.Follow the fix loop to address visual problems.
How do I know which coordinates to change?
How do I know which coordinates to change?
Use the rendered PNG as a reference:
- Note which elements need to move
- Estimate the direction and distance (50px? 100px?)
- Find those elements in JSON by their
id - Adjust
x/ycoordinates - Re-render to verify
Advanced: Batch Rendering
If you’re working on multiple diagrams, you can render them all at once:.excalidraw files in the directory.
Next Steps
Creating Diagrams
Review the full end-to-end workflow
Large Diagrams
Section-by-section strategy for complex diagrams
Quality Checklist
Complete checklist for diagram quality