W3C home > Mailing lists > Public > public-webcgm-wg@w3.org > November 2008

RE: Question about setView()

From: Lofton Henderson <lofton@rockynet.com>
Date: Tue, 18 Nov 2008 17:19:52 -0700
Message-Id: <5.1.0.14.2.20081118171013.032cb9c0@localhost>
To: "Bezaire, Benoit" <bbezaire@ptc.com>, "WebCGM WG" <public-webcgm-wg@w3.org>
At 11:51 AM 11/18/2008 -0500, Bezaire, Benoit wrote:
>Also, there is nothing in the wording explaining how to handle view 
>rectangles which have a different aspect ratio than the viewer's viewport. 
>Which will happen in 99% of the cases.

Good point.  I raised this myself some time back, and it got lost before 
any resolution.

There is some guidance in the stuff of section 3.4, where we have <param>s 
that specify mapping, halign, valign of the picture into the <object>'s 
rectangle.  I think something similar is reasonable here.  (Alternatively, 
if we don't want the mapping options, we have to specify how it happens 
unambiguously.)

-Lofton.


>
>----------
>From: public-webcgm-wg-request@w3.org 
>[mailto:public-webcgm-wg-request@w3.org] On Behalf Of Bezaire, Benoit
>Sent: Tuesday, November 18, 2008 8:58 AM
>To: WebCGM WG
>Subject: Question about setView()
>
>I'm wondering if the wording of setView() is not a bit short? The draft 
>doesn't say anything about invalid rectangles being passed in for example.
>
>Should more feedback be sent to the user? Currently, the function 
>prototype has a void return type. Should we change that to a boolean or 
>something else? or throw an exception perhaps.
>
>I also question the possibility of a major scale change, ex: scaling in by 
>a factor of 100 (and loosing sight of the overall picture). Should the 
>user be told that such a change occurred?
>
>Thoughts?
>Benoit.
Received on Wednesday, 19 November 2008 00:20:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 19 November 2008 00:20:40 GMT