W3C home > Mailing lists > Public > www-svg@w3.org > June 2002

Re: What does viewBox really do?

From: J. David Eisenberg <catcode@catcode.com>
Date: Sun, 23 Jun 2002 13:04:34 -0500 (CDT)
To: Bruce Wallace <jobs@polyglotinc.com>
cc: www-svg@w3.org
Message-ID: <Pine.LNX.4.44.0206231302340.25931-100000@tengu.host4u.net>

Argh. Write in haste, repent at leisure. I can't tell the difference 
between horizontal and vertical, it would seem. Last two paragraphs should 
read as follows:

Now let's look at the first <line>. Since the viewport width
is 4 cm, you would figure that the line would go only one
fourth the way across the rectangle, but it doesn't.

That's because the viewport has already been established,
and, according to the spec, the "1cm" is going to be
translated to user units. One centimeter, 
given my screen resolution, is 37.8 user units. But these
user units are now being affected by the viewBox, and
37.8 out of _64_ units is _slightly more than_ halfway across, which is
exactly what you see.  This is confirmed by the
second <line>.

J. David Eisenberg  http://catcode.com/
Received on Sunday, 23 June 2002 14:05:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:53 UTC