-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedge-connector.xml
More file actions
21 lines (20 loc) · 958 Bytes
/
Copy pathedge-connector.xml
File metadata and controls
21 lines (20 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<svg>
<defs>
<marker id="arrow" refX="1" refY="0.5" orient="auto-start-reverse" markerWidth="5" markerHeight="5" viewBox="0 0 1 1">
<path d="M 0 0 1 0.5 0 1" style="stroke-width: 0.2;"/>
</marker>
</defs>
<style>
<![CDATA[
rect { fill: white; stroke: black; stroke-width: 0.1px; }
line, polyline { stroke-width: 0.2px; stroke: black; fill: none; }
text { font-size: 3px; dominant-baseline: central; text-anchor: middle; }
]]>
</style>
<rect xy="10 20" wh="8" text="a" id="a"/>
<rect xy="25 30" wh="8" text="b" id="b"/>
<polyline start="#a@t:-1" end="#b@t:1" corner-offset="1" marker-end="url(#arrow)"/>
<polyline start="#a@t:-2" end="#b@t:100%" corner-offset="2" marker-end="url(#arrow)"/>
<polyline start="#a@r" end="#b@l:20%" marker-end="url(#arrow)"/>
<polyline start="#a@b:20%" end="#b@l" corner-offset="2" marker-end="url(#arrow)"/>
</svg>