d3 / d3-selection

Transform the DOM by selecting elements and joining to data.

Home Page:https://d3js.org/d3-selection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting inappropriate bounding of path in safari.

Aash-Kothari opened this issue · comments

Hi guys,

Actually, I want to make a selection box over the path. To create the box I need to find the actual boundings of that path but I'm getting inappropriate boundings on safari only. where I'm using getScreenCTM() function of d3.select("path").node() . I also tried with the getBBox() function but this giving the wrong result after zooming or the panning the main SVG. Could you help me to sort this out?

Please use Stack Overflow tag d3.js to ask for help. Stack Overflow provides a better collaborative forum: thousands of D3-related questions have been asked there, and some answers may be relevant to you.

When asking for help, please include a link to demonstrate the issue, preferably as an Observable notebook. It is often impossible to debug from code snippets alone. Isolate the issue and reduce your code as much as possible before asking for help. The less code you post, the easier it is for someone to debug, and the more likely you are to get a helpful response.

If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.

Thank you! 🤗