On Monday, September 10, 2007, 10:04:00 PM, Haakon wrote:
HME> Chris Lilley wrote:
> In SVG 1.2 there is a viewport-fill property to do pretty much
> what pagecolor seems to be doing.
> Notice (Example: 11_03.svg) the difference between that and a
100% rect, when the aspect
> ratio of the viewBox and the aspect ratio of the canvas are different.
> The usual hack to cover that in SVG 1.1 is to have your
> rect be something like
> <rect x="-200%" y="-200%"
width="500%" height="500%" />
> which covers a modest amount of zooming out as well.
HME> Thanks Chris, good to know! From the above, we know SVG allows us a
HME> coloured background. Since most of us don't want to read specs when
HME> drawing, how do you recommend the budding SVG web-site artist go about
HME> configuring Inkscape to take advantage of this in the easiest manner
I was more noting it for future reference - its an SVG 1.2 feature, which means that to
date, only mobile phones (and Opera 9.5 alpha, i believe) support it.
For now, the rectangle hacks are more dependable in deployed content.
However, if Inkscape were to offer a UI to set the backhround, Inkscape could make
rectangles now , and make viewport-fill later, without changing the UI (or by providing
options on export).
HME> There seems to be different zooming implementations in Mozilla Firefox
HME> 2.x and Konqueror 3.5.x. It is fairly easy to enlarge the entire drawing
HME> using Konqueror. I've used it many times to enlarge an SVG drawing, then
HME> right-clicked and selected Save as PNG, which I then could use in word
HME> processors or presentations which didn't support SVG.
This can also more conveniently be done on a command line, using Batik. you can get the
bitmap as large as you want, not limited by your screen size.
HME> Mozilla Firefox
HME> zooming seems to work on some elements and not on others, but maybe I'm
HME> doing something wrong. Do you know more about the zooming capabilities
HME> of different browsers - are there any rules for the artist?
SVG says that there must be a zooming mechanism, but not how the user gets to it.
For that reason, some people provide their own mechanisms (eg map thumbnail viewers, if
the svg content is a map) and zoom by editing the viewBox by script.
Chris Lilley mailto:chris@...214...
Interaction Domain Leader
Co-Chair, W3C SVG Working Group
W3C Graphics Activity Lead
Co-Chair, W3C Hypertext CG