memononen / nanosvg

Simple stupid SVG parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stroke-dashoffset error

jiongt opened this issue · comments

error svg sample:

    <linearGradient id="Gradient-3" x1="-58.064" y1="-3.352" x2="49.041" y2="-3.352" >
        <stop offset="0" stop-color="#f0a532"/>
        <stop offset="0.5" stop-color="#f8b645"/>
        <stop offset="1" stop-color="#ffc758"/>
    </linearGradient>


</defs>



        <g id="Comp-3" transform="translate(190,190)">
            <g id="Group-1-3" opacity="1">
                <path id="Path-1-3" fill="none" d="M49.302,-49.302C-5.156,-49.302,-49.302,-5.156,-49.302,49.302" stroke="url(#Gradient-3)" stroke-opacity="1" stroke-width="17" stroke-miterlimit="10"  stroke-dasharray="70" stroke-dashoffset="70.001" />
            </g>
        </g>

change stroke-dashoffset="70", it's ok

error bitmap:
temp

svg file
xxx pridemonth-celebrate-onvideo
: