D3js怎么获得SVG及其子元素在屏幕中的坐标
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] ];