mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
The foreignObject approach caused canvas tainting — browsers block canvas.toBlob() when the SVG contains embedded DOM content. Extracted a shared buildCleanSvg() helper using only rect/line/text elements, reused by both PNG and SVG export. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>