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.
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.