vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
533 stars 89 forks source link

wrong color in SVG output #388

Closed hbghlyj closed 11 months ago

hbghlyj commented 11 months ago

In Asymptote gallery the example venn3.svg compared with venn.svg on the left: The intersection of big red circle A and big green circle B should be yellow, but it is white: image I compiled the code venn3.asy and exported HTML is fine, but exported SVG has wrong color: the yellow region appears white

hbghlyj commented 11 months ago

In the exported SVG, I find the yellow layer path34 is hidden by the white layer path52: image I moved the white layer, then I see the yellow layer under it.

johncbowman commented 11 months ago

Thanks; fixed in commit aa9f81bad9478bfe8b2ab5fc5376c19c6c79c708: Avoid broken dvisvgm reassign-clippaths optimization.