1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
<svg id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:html="http://www.w3.org/1999/xhtml">
<g id="testmeta">
<title>Markers on Sub-Path (Linear).</title>
<html:link rel="author"
title="Tavmjong Bah"
href="http://tavmjong.free.fr"/>
</g>
<defs>
<marker id="Start"
viewBox="0 0 10 10" refX="0" refY="5"
markerUnits="strokeWidth"
markerWidth="12"
markerHeight="9"
orient="auto"
fill="green">
<path d="M 0 0 L 10 5 L 0 10 z"/>
</marker>
<marker id="Mid"
viewBox="0 0 10 10" refX="0" refY="5"
markerUnits="strokeWidth"
markerWidth="12"
markerHeight="9"
orient="auto"
fill="orange">
<path d="M 0 0 L 10 5 L 0 10 z"/>
</marker>
<marker id="End"
viewBox="0 0 10 10" refX="0" refY="5"
markerUnits="strokeWidth"
markerWidth="12"
markerHeight="9"
orient="auto"
fill="blue">
<path d="M 0 0 L 10 5 L 0 10 z"/>
</marker>
</defs>
<g id="test-body-reference" style="fill:none;stroke:black;stroke-width:2">
<path d="m 50,120 50,0 m 50,0 50,0"/>
<path d="m 50,140 50,20 m 50,-20 50,20"/>
<path d="m 50,200 l 50,0 m 50,0 l 50,0"/>
<path d="m 50,220 l 50,20 m 50,-20 l 50,20"/>
<path d="m 50,280 h 50 m 0,50 h 50"/>
<path d="M 290,120 340,120 M 390,120 440,120"/>
<path d="M 290,140 340,160 M 390,140 440,160"/>
<path d="M 290,200 L 340,200 M 390,200 L 440,200"/>
<path d="M 290,220 L 340,240 M 390,220 L 440,240"/>
<path d="M 290,280 H 340 M 340,330 H 390"/>
<g id="linear">
<path d="m 50,120 50,0" style="stroke:none;marker-start:url(#Start);marker-end:url(#Mid)"/>
<path d="m 150,120 50,0" style="stroke:none;marker-start:url(#Mid); marker-end:url(#End)"/>
</g>
<use xlink:href="#linear" transform="translate(240, 0)"/>
<use xlink:href="#linear" transform="translate( 0, 80)"/>
<use xlink:href="#linear" transform="translate(240, 80)"/>
<g id="zigzag">
<path d="m 50,140 50,20" style="stroke:none;marker-start:url(#Start);marker-end:url(#Mid)"/>
<path d="m 150,140 50,20" style="stroke:none;marker-start:url(#Mid); marker-end:url(#End)"/>
</g>
<use xlink:href="#zigzag" transform="translate(240, 0)"/>
<use xlink:href="#zigzag" transform="translate( 0, 80)"/>
<use xlink:href="#zigzag" transform="translate(240, 80)"/>
<g id="step">
<path d="m 50,280 50,0" style="stroke:none;marker-start:url(#Start);marker-end:url(#Mid)"/>
<path d="m 100,330 50,0" style="stroke:none;marker-start:url(#Mid); marker-end:url(#End)"/>
</g>
<use xlink:href="#step" transform="translate(240, 0)"/>
</g>
</svg>
|