Closed phbernard closed 1 year ago
In the image returned by mySvg.clone(), element IDs are rewritten, but references such as fill="url(#someId)" are not. Therefore, clone sometimes returns broken images.
mySvg.clone()
fill="url(#someId)"
clone
JSFiddle to reproduce this issue: https://jsfiddle.net/pbernard/1o56prkb/52/
Workaround PR: https://github.com/svgdotjs/svg.js/pull/1161
In the image returned by
mySvg.clone()
, element IDs are rewritten, but references such asfill="url(#someId)"
are not. Therefore,clone
sometimes returns broken images.JSFiddle to reproduce this issue: https://jsfiddle.net/pbernard/1o56prkb/52/