DmitryBaranovskiy / raphael

JavaScript Vector Library
https://dmitrybaranovskiy.github.io/raphael/
MIT License
11.27k stars 1.67k forks source link

Feature Request: after transform, can Element.attr() also return transformed values? #1001

Open byuksel opened 9 years ago

byuksel commented 9 years ago

Example: var circle = paper.circle(100, 56, 50); circle.attr('r'); ---> 50 circle.transform('s0.5'); circle.attr('r'); ---> 50

Once the element is transformed, its path and attributes have changed. It will be really useful to have a method which can give you the 'transformed' attributes. For example: var circle = paper.circle(100, 56, 50); circle.attr('r'); ---> 50 circle.transform('s0.5'); circle.getCurrentAttr('r'); ---> 25

tomasAlabes commented 8 years ago

Same as #1002