0
|
1 |
<?xml version="1.0"?>
|
|
2 |
<svg width="300px" height="200px" version="1.2" baseProfile="tiny"
|
|
3 |
viewBox="0 0 1500 1000" preserveAspectRatio="none"
|
|
4 |
xmlns="http://www.w3.org/2000/svg">
|
|
5 |
<desc>Example ViewBox - uses the viewBox
|
|
6 |
attribute to automatically create an initial user coordinate
|
|
7 |
system which causes the graphic to scale to fit into the
|
|
8 |
viewport no matter what size the viewport is.</desc>
|
|
9 |
<!-- This rectangle goes from (0,0) to (1500,1000) in user space.
|
|
10 |
Because of the viewBox attribute above,
|
|
11 |
the rectangle will end up filling the entire area
|
|
12 |
reserved for the SVG content. -->
|
|
13 |
<rect x="0" y="0" width="1500" height="1000"
|
|
14 |
fill="yellow" stroke="blue" stroke-width="12" />
|
|
15 |
<!-- A large, red triangle -->
|
|
16 |
<path fill="red" d="M 750,100 L 250,900 L 1250,900 z"/>
|
|
17 |
<!-- A text string that spans most of the viewport -->
|
|
18 |
<text x="100" y="600" font-size="200" font-family="Verdana" >
|
|
19 |
Stretch to fit
|
|
20 |
</text>
|
|
21 |
</svg>
|