我想在我的SVG行的開始/結束點有實線,但標記保持使用它們的形狀的值。有什麼辦法可以防止這種情況發生?如何防止SVG標記繼承其形狀的stroke-dasharray?
這是我目前的SVG:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:oryx="http://www.b3mn.org/oryx" version="1.0" >
<defs>
<marker id="start" oryx:optional="yes" oryx:enabled="yes" refX="5" refY="5" markerUnits="userSpaceOnUse" markerWidth="10" markerHeight="10" orient="auto">
<circle cx="5" cy="5" r="5" fill="none" stroke="black" />
</marker>
<marker id="end" refX="10" refY="5" markerUnits="userSpaceOnUse" markerWidth="10" markerHeight="10" orient="auto">
<path id="arrow" d="M 0 0 L 10 5 L 0 10 L 0 0" fill="none" stroke="black" />
</marker>
</defs>
<g>
<path d="M10 50 L70 50" stroke="black" fill="none" stroke-width="0.75pt" stroke-dasharray="10,4" marker-start="url(#start)" marker-end="url(#end)" />
</g>
</svg>
我想要的圓圈和箭頭是固體。我試圖在圓圈和路徑上添加stroke-dasharray =「none」,但沒有成功。