The PreviewSupport feature clones an SVG and then applies fill and stroke on all of its elements. This leads to rendering errors like:

A better way of rendering the preview would be to render the element using the renderer but with custom colors:
graphicsFactory.drawShape(getVisual(gfx), element, {
fill: 'red',
stroke: 'green'
});
The PreviewSupport feature clones an SVG and then applies
fillandstrokeon all of its elements. This leads to rendering errors like:A better way of rendering the preview would be to render the element using the renderer but with custom colors: