W3C home > Mailing lists > Public > www-svg@w3.org > September 2005

[SVG] assigning to currentScale

From: Jonathan Watt <jonathan.watt@strath.ac.uk>
Date: Sun, 18 Sep 2005 21:40:24 +0100
Message-ID: <432DD0B8.9060508@strath.ac.uk>
To: www-svg@w3.org

SVG WG,

Since the implementation of SVG events in Firefox it has become apparent 
that it's necessary for us to restrict the range of values that we allow 
to be assigned to currentScale (for various reasons). ASV restricts how 
far you can zoom in/out using it's GUI, but doesn't seem to place any 
restriction on scripts. As a result it just seems to just break if you 
assign a very small or very large value to currentScale. The question 
is, how should an implementation behave when it has to limit the range 
of values that can be assigned to currentScale?

1) clamp the value to an acceptable range and return no error
2) return an error and leave currentScale with its previous value
3) something else

Having clarified this issue, please add errata items for the spec to 
inform content authors that they should check the value assigned to 
currentScale was accepted/be prepared to catch an error/something else.

On a related note, what should happen when zoomAndPan="disable" and an 
attempt is made to assign to currentScale?

Regards,
Jonathan
Received on Sunday, 18 September 2005 20:40:30 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:31 GMT