ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > SVG > Paint > paint-markers-BE-03


File: paint-markers-BE-03
Author: Dean Jackson
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
circlecx | cy | r | style |
descid |
gid | style | transform |
markerid | markerHeight | markerUnits | markerWidth | orient | refX | refY | viewBox |
pathd | style |
rectheight | id | style | width | x | y |
svgheight | id | width |
textstyle | x | y |
titleid |

Source

<svg id="svg-root" width="450" height="450" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
     <title id="test-title">paint-markers-BE-03</title>
     <desc id="test-desc">Checks if viewer can handle marker elements on paths</desc>
     <g id="test-body-content">
          <marker id="marker1" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth">
               <rect width="10" height="10" style="fill:red;stroke:none;"/>
          </marker>
          <marker id="marker2" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth" orient="auto">
               <path d="M 5 0 L 10 10 L 0 10 Z" style="fill:blue;stroke:none;"/>
          </marker>
          <marker id="markerStart" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth">
               <rect width="10" height="10" style="fill:red;stroke:none;"/>
          </marker>
          <marker id="markerMiddle" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth">
               <circle cx="5" cy="5" r="5" style="fill:green;stroke:none;"/>
          </marker>
          <marker id="markerEnd" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth">
               <path d="M 5 0 L 10 10 L 0 10 Z" style="fill:blue;stroke:none;"/>
          </marker>
          <text x="170" y="30" style="font-family:Helvetica;font-size:14;">Basic Markers</text>
          <path style="fill:none;stroke:black;stroke-width:8;marker:url(#marker1);" d="M 130 60 L 180 60 L 180 110"/>
          <g transform="translate(120,0)">
               <path style="fill:none;stroke:black;stroke-width:8;" d="M 130 60 L 180 60 L 180 110"/>
               <g transform="translate(130,60) scale(8) scale(0.2, 0.2) translate(-5, -5)" style="fill:none;stroke:black;stroke-width:8;">
                    <rect width="10" height="10" style="fill:red;stroke:none;"/>
               </g>
               <g transform="translate(180,60) scale(8) scale(0.2, 0.2) translate(-5, -5)" style="fill:none;stroke:black;stroke-width:8;">
                    <rect width="10" height="10" style="fill:red;stroke:none;"/>
               </g>
               <g transform="translate(180,110) scale(8) scale(0.2, 0.2) translate(-5, -5)" style="fill:none;stroke:black;stroke-width:8;">
                    <rect width="10" height="10" style="fill:red;stroke:none;"/>
               </g>
          </g>
          <text x="145" y="155" style="font-family:Helvetica;font-size:14;">Start, Middle and End</text>
          <path style="fill:none;stroke:black;stroke-width:8;marker-start:url(#markerStart);marker-mid:url(#markerMiddle);marker-end:url(#markerEnd);" d="M 130 185 L 180 185 L 180 235"/>
          <g transform="translate(120,0)">
               <path style="fill:none;stroke:black;stroke-width:8;" d="M 130 185 L 180 185 L 180 235"/>
               <g transform="translate(130,185) scale(8) scale(0.2, 0.2) translate(-5, -5)" style="fill:none;stroke:black;stroke-width:8;">
                    <rect width="10" height="10" style="fill:red;stroke:none;"/>
               </g>
               <g transform="translate(180,185) scale(8) scale(0.2, 0.2) translate(-5, -5)" style="fill:none;stroke:black;stroke-width:8;">
                    <circle cx="5" cy="5" r="5" style="fill:green;stroke:none;"/>
               </g>
               <g transform="translate(180,235) scale(8) scale(0.2, 0.2) translate(-5, -5)" style="fill:none;stroke:black;stroke-width:8;">
                    <path d="M 5 0 L 10 10 L 0 10 Z" style="fill:blue;stroke:none;"/>
               </g>
          </g>
          <text x="145" y="280" style="font-family:Helvetica;font-size:14;">Automatic Orientation</text>
          <path style="fill:none;stroke:black;stroke-width:8;marker:url(#marker2);" d="M 130 310 L 180 310 L 180 360"/>
          <g transform="translate(120,0)">
               <path style="fill:none;stroke:black;stroke-width:8;" d="M 130 310 L 180 310 L 180 360"/>
               <g transform="translate(130,310) rotate(0) scale(8) scale(0.2, 0.2) translate(-5, -5)" style="fill:none;stroke:black;stroke-width:8;">
                    <path d="M 5 0 L 10 10 L 0 10 Z" style="fill:blue;stroke:none;"/>
               </g>
               <g transform="translate(180,310) rotate(45) scale(8) scale(0.2, 0.2) translate(-5, -5)" style="fill:none;stroke:black;stroke-width:8;">
                    <path d="M 5 0 L 10 10 L 0 10 Z" style="fill:blue;stroke:none;"/>
               </g>
               <g transform="translate(180,360) rotate(90) scale(8) scale(0.2, 0.2) translate(-5, -5)" style="fill:none;stroke:black;stroke-width:8;">
                    <path d="M 5 0 L 10 10 L 0 10 Z" style="fill:blue;stroke:none;"/>
               </g>
          </g>
     </g>
     <g id="test-legend" style="fill:black;font-family:Helvetica;font-size:10;">
          <rect x="10" y="390" width="275" height="50" style="fill:none;stroke:#000000;"/>
          <path style="fill:none;stroke:#000000;" d="M10 405 h275 M205 405 v35 M10 426 h195 M205 422 h80"/>
          <text x="25" y="401">Scalable Vector Graphics (SVG) Conformance Suite</text>
          <a xlink:href="copyright-documents-19990405.html">
               <text x="12" y="437" style="fill:blue;">Copyright 2000 W3C. All Rights Reserved.</text>
          </a>
          <text style="font-size:12;" x="35" y="420">paint-markers-BE-03</text>
          <text style="font-size:10;" x="210" y="417">$Revision: 1.1 $</text>
          <text style="font-size:10;" x="210" y="435">Release 2.0</text>
          <rect id="test-frame" x="1" y="1" width="448" height="448" style="fill:none;stroke:#000000;"/>
     </g>
</svg>



Sponsored links: conference call service, VoIP Internettelefonie, DSL, SDSL, ADSL, answering service