第一次在svg上工作.我有一个'箭头般的'路径的svg定义
<defs>
<marker id="start" refX="1" refY="5" markerUnits="userSpaceOnUse" markerWidth="17" markerHeight="11" orient="auto">
<path id="conditional" d="M 0 6 L 8 1 L 15 5 L 8 9 L 1 5" fill="white" stroke="black" stroke-width="1" />
<path id="default" d="M 5 0 L 11 10" fill="white" stroke="black" stroke-width="1" />
</marker>
<marker id="end" refX="15" refY="6" markerUnits="userSpaceOnUse" markerWidth="15" markerHeight="12" orient="auto">
<path id="arrowhead" d="M 0 1 L 15 6 L 0 11z" fill="black" stroke="black" stroke-linejoin="round" stroke-width="2" />
</marker>
</defs>
<g id="edge">
<path id="bg_frame" d="M10 50 L210 50" stroke="black" fill="none" …Run Code Online (Sandbox Code Playgroud)