W3C home > Mailing lists > Public > www-svg@w3.org > February 2001


From: Blaine Brodie <bbrodie@savagesoftware.com>
Date: Wed, 07 Feb 2001 13:38:04 -0800
Message-id: <fc.0085846d0002c9200085846d0002c90b.2c925@savagesoftware.com>
To: www-svg@w3.org
Some clarification please.  The SVGLength::convertToSpecifiedUnits()
method is described as follows:

"Preserve the same value, but convert to the specified unitType. Object
attributes unitType, valueAsSpecified and valueAsString
might be modified as a result of this method."

My inital interpretation of this was that the method is intended to
convert from one unit type to another so that, for example, 5 mm would be
converted to 0.5 cm.  However, on a second reading, the phrase "preserve
the same value" make me wonder if the intention is simply to change the
unit type and to leave the value unchanged so that, in the previous
example, 5mm would be converted to 5cm.  

Which of these two interpretations is the intended one? 

Steven Dickson,                        Phone:  +1 (604) 684 7793 x102
Software Devoper,                   Fax: +1 (604) 684 0298 
Savage Software,                    sdickson@savagesoftware.com
Vancouver, BC, CANADA
Received on Wednesday, 7 February 2001 16:39:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:53:51 UTC