Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation for zoom.on does not provide sufficient information to understand its use #250

Closed
christopherreay opened this issue Mar 4, 2022 · 2 comments

Comments

@christopherreay
Copy link

christopherreay commented Mar 4, 2022

The documentation seems to be assuming knowledge of many ideas.

I have read it, and dispatcher.on, and I have looked at the source code of the d3-zoom zoom.js

There is no information describing what actually needs to be done to listen to zoom events. There is a lot of information about zoom events, but it seems to be talking around the point and assuming that someone already knows some undetermined, implicit information

Registering a listener zoom().on("zoom", event => console.log(event) prints "undefined" into the console for every event. It appears that there are possibly events like "mousewheel.zoom" or something... But there is no documentation about this.

There is no example of a working event listener, which might help.

@christopherreay
Copy link
Author

Hang on, maybe I am somehow mixing the documentation for d3fc-zoom and d3-zoom, and it is their documentation that is odd.

@Fil
Copy link
Member

Fil commented Mar 4, 2022

The documentation also has lots of links to examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants