diff options
author | Keiron Liddle <keiron@apache.org> | 2000-07-14 07:06:46 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2000-07-14 07:06:46 +0000 |
commit | 9b17c39acb66a02b8553209bc035e759413034f3 (patch) | |
tree | 571ed40e068905bce43bdb272ce4e88832fea480 /docs/examples/svg/test/viewBox2.svg | |
parent | 8b6b236b361fe4aa7f906b676f65ae6ead137d8a (diff) | |
download | xmlgraphics-fop-9b17c39acb66a02b8553209bc035e759413034f3.tar.gz xmlgraphics-fop-9b17c39acb66a02b8553209bc035e759413034f3.zip |
svg documentation
with a makedoc and build to generate the pdf docs
with a bunch of svg tests
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193500 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/examples/svg/test/viewBox2.svg')
-rw-r--r-- | docs/examples/svg/test/viewBox2.svg | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/examples/svg/test/viewBox2.svg b/docs/examples/svg/test/viewBox2.svg new file mode 100644 index 000000000..041b0d015 --- /dev/null +++ b/docs/examples/svg/test/viewBox2.svg @@ -0,0 +1,24 @@ +<?xml version="1.0" standalone="yes"?> + +<svg:svg width="150px" height="200px" + viewBox="0 0 1500 1000" preserveAspectRatio="none" xmlns:svg="http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd"> + <svg:title>ViewBox2</svg:title> + <svg:desc>Example ViewBox2 - uses the viewBox + attribute to automatically create an initial user coordinate + system which causes the graphic to scale to fit into the + viewport no matter what size the viewport is.</svg:desc> + + <!-- This rectangle goes from (0,0) to (1500,1000) in user space. + Because of the viewBox attribute above, + the rectangle will end up filling the entire area + reserved for the SVG content. --> + <svg:rect x="0" y="0" width="1500" height="1000" style="fill:yellow" /> + + <!-- A large, red triangle --> + <svg:path style="fill:red" d="M 750,100 L 250,900 L 1250,900 z"/> + + <!-- A text string that spans most of the viewport --> + <svg:text x="100" y="600" style="font-size:180; font-family:Verdana"> + Stretch to fit + </svg:text> +</svg:svg>
\ No newline at end of file |