Examples using SVG elements break upon modification in online editor
Author: phirschCreated Jun 4, 2025Updated Sep 23, 2025
Describe the bug
With the online editor, examples using SVG elements render properly initially, but fail to resolve any SVG paths after any modification.
To Reproduce
This happens with the online editor (no visible version info; tested: 2025-06-04).
Steps to reproduce the behavior:
- Go to https://penrose.cs.cmu.edu/try/?examples=set-theory-domain%2Ftree-euler-3d
- Result: Diagram renders and re-renders fine upon interaction
- Modify Line 8:
Subset(G, C)-->Subset(G, B) - Click 'compile'
- Result: SVG elements fail to render, errors like
Could not resolve image path shading.svgappear in the console log.
Expected behavior
The diagram should still render properly, including SVG elements.
Desktop (please complete the following information if applicable):
- OS: Linux
- Browser: Firefox 139.0 & Chromium 137.0.7151.55
Source: penrose/penrose