var clientRects = svg.select("image").node().getBoundingClientRect(); var coordinates = [ [clientRects.left, clientRects.top], [clientRects.top, clientRects.right], [clientRects.bottom, clientRects.left], [clientRects.bottom, clientRects.right] ];