d3 / d3-zoom

Pan and zoom SVG, HTML or Canvas using mouse or touch input.
https://d3js.org/d3-zoom
ISC License
501 stars 144 forks source link

ScaleBy not working then focus set to path in svg #245

Closed denant0 closed 2 years ago

denant0 commented 2 years ago

Hello, I have problem, ScaleBy not working then focus set to path in svg. I have an svg plan and the focus is set on it. Do the following function d3svg.transition().call(zoomer.scaleBy, 1.13) and zomm event not called. But if I removed focus to path, I have zoom Can you help run zoom when set focus?

Fil commented 2 years ago

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! 🤗