我使用svg路径
style="stroke: rgb(0,0,0); stroke-width: 10; stroke-linecap: round; fill: none;"
允许我不要关闭svg路径,它将具有特定的笔划宽度和形状。
但是我需要使用没有任何属性或样式的纯svg路径并获得相同的结果。 是否有任何算法可以实现它?
这是input svg。
输出应该是
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="500" height="500" xml:space="preserve">
<path d="path-data"/>
</svg>