How to get absolute coordinates of object inside a group?

后端 未结 5 1261
太阳男子
太阳男子 2020-12-07 15:08

This may be a FAQ, so feel free to point me to another answer. The topic is difficult to search on.

If I want to use d3.js to get an attribute that\'s explicitly de

5条回答
  •  温柔的废话
    2020-12-07 15:34

    Nice demo here: https://codepen.io/netsi1964/pen/pWjwgP

    point = point.matrixTransform(svg.getScreenCTM().inverse())
    

提交回复
热议问题