I was just going through this SVG, the code can be found below too:
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 194 186" class="circliful">
<g stroke="#ccc">
<line x1="133" y1="50" x2="140" y2="40" stroke-width="2"></line>
</g>
<g stroke="#ccc">
<line x1="140" y1="40" x2="200" y2="40" stroke-width="2"></line>
</g>
<circle cx="100" cy="100" r="57" class="border" fill="#eee" stroke="none" stroke-width="15" stroke-dasharray="360" transform="rotate(-90,100,100)"></circle>
<circle class="circle" cx="100" cy="100" r="57" fill="none" stroke="#3498DB" stroke-width="5" stroke-dasharray="180, 20000" transform="rotate(-90,100,100)"></circle>
<text text-anchor="middle" x="100" y="110" class="icon" style="font-size: 40px" fill="#3498DB"></text>
<text class="timer" text-anchor="middle" x="175" y="35" style="font-size: 22px; undefined;" fill="#aaa">50%</text>
</svg>
What I wanted to know is about the below line of code:
<g stroke="#ccc">
<line x1="133" y1="50" x2="140" y2="40" stroke-width="2"></line>
</g>
I.E. the values of the x1 attribute of the line, now if you change this value to anything more than 133 you will notice there is a break in where the line starts and the circle. I believe the author of this SVG has carefully planned the value of the x1
to be 133
. I just can't seem to figure out how they came to conclude with the value of 133.
Of course, one can come to a conclusion through trial and error, but that's not the answer I am interested in. I want to know how the author really calculated the value of 133 for the starting line so that it exactly touches the edge of the circle.