Hi achio,
I believe that you can use transform (matrix). The matrix command allows you
to combine all transform commands on a single line. Read about it here:
http://www.w3.org/TR/SVG/coords.html#TransformAttribute
<http://www.w3.org/TR/SVG/coords.html#TransformAttribute>  
:-) 

-----Original Message-----
From: svg-developers@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of achio_84
Sent: Thursday, 27 July 2006 10:52 AM
To: svg-developers@yahoogroups.com
Subject: [svg-developers] problem regarding transform



Hi all...
I would like to ask whether it is possible to combine transform (scale) 
and transform (translate) in 1 javascript statement? 
For example:

shape1.setAttributeNS(null,"transform","scale("+scaleLevel+")");
shape1.setAttributeNS(null,"transform","translate
("+positionx+","+positiony+")");

Is there a way to combine both statement stated above to become 1 
statement? Coz after I scale the shape, and translate it, the scale 
change to it default value again... I don't know why....

Regards,
achio.



 



Australia Post is committed to providing our customers with excellent service. 
If we can assist you in any way please telephone 13 13 18 or visit our website.

The information contained in this e-mail communication may be proprietary, 
confidential or legally professionally privileged.  It is intended exclusively 
for the individual or entity to which it is addressed. You should only read, 
disclose, re-transmit, copy, distribute, act in reliance on or commercialise 
the information if you are authorised to do so. Australia Post does not 
represent, warrant or guarantee the integrity of this e-mail communication has 
been maintained nor that the communication is free of errors, virus or 
interference. 

If you are not the addressee or intended recipient please notify us by replying 
direct to the sender and then destroy any electronic or paper copy of this 
message. Any views expressed in this e-mail communication are taken to be those 
of the individual sender, except where the sender specifically attributes those 
views to Australia Post and is authorised to do so.

[Non-text portions of this message have been removed]



-----
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/
 



Reply via email to