Re: What does viewBox really do?

rbw@polyglotinc.com wrote:


> HOWEVER, neither Batik-1.1.1 nor Adobe 3.0 plugin viewers agree.

[...]

> <?xml version="1.0" ?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>     "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> 
> <svg xmlns="http://www.w3.org/2000/svg"
>      viewBox="0 0 850 1100" height="11in" width="8.5in">
> <line stroke-width="10" stroke="yellow" x1="0" y1="20" x2="1in"    
> y2="20"/>
> <line stroke-width="10" stroke="orange" x1="0" y1="30" x2="100"    
> y2="30"/>
> <line stroke-width="10" stroke="green"  x1="0" y1="40" x2="100px" y2="40"/>
> </svg>


In Batik, the whole thing is placed more to the right, and the size 
changes with resizing of the window;
but with ASV, it's all the way to the left, and resizing does not change 
the size of the graphic.


http://www.pinkjuice.com/temp/SVG/vb.png


Tobi



-- 
http://www.pinkjuice.com/

Received on Sunday, 23 June 2002 16:58:56 UTC