| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" |
| 3 |
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> |
| 4 |
<svg width="100" height="80" viewBox="0 0 100 80" |
| 5 |
xmlns="http://www.w3.org/2000/svg" version="1.1"> |
| 6 |
<desc>Using tspan's dx and dy attributes |
| 7 |
for incremental positioning adjustments, combined |
| 8 |
with dx and dy on the text.</desc> |
| 9 |
|
| 10 |
<g font-family="Liberation Sans" font-size="14"> |
| 11 |
<defs> |
| 12 |
<marker id="triangle" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="4" markerHeight="4" orient="auto" fill="#808080" stroke="none"> |
| 13 |
<path d="M 0 0 L 10 5 L 0 10 z"/> |
| 14 |
</marker> |
| 15 |
</defs> |
| 16 |
<g> |
| 17 |
<path d="M50,40L50,65" stroke="#808080" style="marker-end:url(#triangle)"/> |
| 18 |
</g> |
| 19 |
<text x="50" dx="0" y="40" dy="-16"> |
| 20 |
<tspan x="50" dx="0" text-anchor="middle">Point Load 1</tspan><tspan x="50" dx="0" dy="14" text-anchor="middle">2.70 kN</tspan> |
| 21 |
</text> |
| 22 |
<g stroke="#2c98f0"> |
| 23 |
<line x1="50" x2="80" y1="24" y2="24" /> |
| 24 |
<line x1="50" x2="80" y1="38" y2="38" /> |
| 25 |
</g> |
| 26 |
</g> |
| 27 |
</svg> |
| 28 |
|