Codepen: http://codepen.io/anon/pen/dfIBv
I have two rectangles in g element on which I apply transform. GetBBox method shows same numbers after and before transform.
If I apply same transform directly on those rectangles, getBBox method shows correct measurements.
Is there any way how to get "correct" measurements of these rectangles after applying transform to parent group element?
Thanks!
Ian is correct. element.node.getBoundingClientRect() shows correct measurements. Thank you :)