On Wed, 24 Jan 2007 06:58:29 +0100, simonshutter <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I have a scenario where I need to plot hundreds of rectangles and
> each rectangle has two possible y values but all other attributes are
> static.  To save space I was hoping to add two attributes that could
> be swapped in response to events.  Does this make sense and what do
> you suggest as a method for swapping the two y attribute values?
> Would I have to loop over each element sequentially or is there a
> faster way?

One alternative is to not specify a 'y'-attribute at all (defaults to 0),  
and instead group the elements in a <g> element.
Then you give the <g> element a 'transform'-attribute to translate all the  
child elements to whatever y-value you want.

The benefit is that you then change one attribute instead of hundreds, but  
depending on how your svg looks it may or may not be possible to group the  
elements in this way.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to