madskristensen / SvgViewer

Shows the rendered image of .svg files
Other
27 stars 10 forks source link

No preview shown #2

Open ThaDaVos opened 5 years ago

ThaDaVos commented 5 years ago

The extension doesn't show a preview... Example SVG used:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="2000" height="2000" version="1.0" xmlns="http://www.w3.org/2000/svg">
  <circle cx="50%" cy="50%" r="50%" stroke="red" fill="#FFF0" stroke-width="5"/>
</svg>
taarskog commented 5 years ago

Changing fill from fill="#FFF0" to fill="#FFF" works. Then add fill-opacity="0".

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<svg width="2000" height="2000" version="1.0" xmlns="http://www.w3.org/2000/svg">
    <circle 
            cx="50%" 
            cy="50%" 
            r="50%" 
            stroke="red" 
            fill="#000" 
            fill-opacity = "0"
            stroke-width="5" 
            />
</svg>