title: Getting the Screen Pixel coordinates of a Rect element
body: <p>I am trying to get the screen pixel coordinates of a rectangle in SVG via java script.
  When the rectangle has been clicked, I can figure out its width, height, x and y position with getBBox().</p>
  
  <p>But these positions are the original positions. I want the screen position.</p>
  
  <p>For example if I manipulate the viewBox of the whole SVG, these getBBox coordinates are not any more the same than the screen pixels. Is there a function or way to get the
  coordinates considering the current viewBox and the pixel size of svg element?</p>