Thank you. It works,. I tried the same yesterday without success but
just today realize to get initial transform object I have to specifify
 initialization in SVG like this transform="matrix(1 0 0 1 0 0)" (for
the fist time). Then it works. Now I replaced the most often
setAttribute() calls and seems to be maybe a bit better. Not many, but
 I'll try to gather piece to piece and it should help in the final, I
hope...

--- In svg-developers@yahoogroups.com, Erik Dahlström <[EMAIL PROTECTED]> wrote:
>
> On Thu, 21 Sep 2006 19:28:16 +0200, revelonshift <[EMAIL PROTECTED]>  
> wrote:
> 
> > I also think that getting infoamtion from DOM on the fly is
> > slowing-down operations, so I've already cached all nodes in variables
> > and using only write - setAttributeNS method.
> > But maybe using directly SVG DOM could speed some time, but I'm not
> > sure how to apply changes to trasform matrix, especially translate, on
> > referenced element (I don't know the syntax :-( ). Do you think it
> > could be faster than setAttributeNS and translate(x y) ??
> >
> > M.
> 
> You could try this, to see if it helps:
> var svgtransform = yourelement.transform.baseVal.getItem(0);
> // now you hold a live SVGTransform object, modify it and it will
affect  
> the element directly
> svgtransform.setTranslate(x,y);
> 
> It might be faster since you will then bypass the string->matrix
parsing.
> /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