I have rotated an SVG path element by setting the attribute transform=”rotate(45)”
Now how could i get the rotated SVG path points ?
When i checked the attribute “d” its still showing the original points [ unrotated ].
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if you get point through path.getPointAtLength(), than you need to apply the transformation of the path to result. You get the total transform by:
I have not testes this,but this might be the way…
That is good for some points on the path. If the whole list of path data should be converted to absolute, than raphael might be the fastest solution…