W3C home > Mailing lists > Public > public-svg-wg@w3.org > January to March 2013

unit accessors

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 06 Feb 2013 16:50:26 +1100
Message-ID: <5111EF22.5040304@mcc.id.au>
To: "public-svg-wg@w3.org" <public-svg-wg@w3.org>
In doing ACTION-3414, I've added unit accessors to SVGAnimatedLength, so 
that you can now do:

   rectElement.x.px = 20;

I've also added these to SVGAnimatedLengthList, where they reflect the 
first SVGLength in the base value list.  This is so that

   textElement.x.px = 20;

will also work.

One issue: should we have one for percentages, and if so, what should it 
be named?
Received on Wednesday, 6 February 2013 05:50:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:16 UTC