hi- I think you misunderstood the question. I know how to concatenate transformations.
What I don't know is how to set (or concatenate) the transformation matrix of the current group without nesting groups. So, it's not the concatenate part I need to know, it is the non- nested group behavior part I need to know. thanks!- -lance On May 11, 2006, at 8:32 AM, Phi Tran wrote: > On 5/11/06, lbland <[EMAIL PROTECTED]> wrote: >> >> hi- >> >> I can apply (concat) transforms using groups like this: >> >> <g transform="translate(50,50)"> >> <g transform="translate(2,2)"> >> <! do stuff /> >> <g transform="translate(2,2)"> >> <! do stuff /> >> </g> >> </g> >> </g> > > > In this case you can. As the way rendering agent do; > > - The grand parent then the parent will get first then the child. > So you can > combine as many as you want into one in the case of translate. > > - Only translate can combine with one other in the matrix let say > 'rotate'. > or scaleX > > - Be careful on the skew - If you combine then the result will not > easy to > predict.. > > - You can combine matrices up to the ancestor if they contain > translate an > ONLY one other let say 'Sacle'X' or rotate but no more then one > other than > the translate. - AND NOT THE SKEW. (if you put an r- in it will > skrew you). > in this case: > - Is you combine translate just add x to x y to y. > - If you combine 'Rotate' just add the gradient. > - If you combine scale the you need to "multiply" > - But if you combine one matrix to another: x,y you add. > but if it > indicates a rotate then you multiply. Thing will become more > complicate if > you combine one thing and a matrix, such as a rotate and a matrix that > indicate rotate. ( you need to get sin, cos then multiply ..) > > > - Hope this help > > > Phi > > but I have to do it many times, say 100 times, for 100 nested groups. >> Can I just define one group and have a transform be applied to that >> group (context) as it appears in the svg serialization? Something >> like this: >> >> <g transform="translate(50,50)"> >> <transform="translate(2,2)"> >> <! do stuff /> >> <transform="translate(2,2)"> >> <! do stuff /> >> </g> >> >> So I don't have so many nestings of the g element? What is the >> correct syntax (or better, a URL explaining this issue)? >> ------------------------ Yahoo! Groups Sponsor --------------------~--> Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- 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/ <*> 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/

