An open API service indexing awesome lists of open source software.

https://github.com/d3/d3-dispatch

Register named callbacks and call them with arguments.
https://github.com/d3/d3-dispatch

Last synced: 3 months ago
JSON representation

Register named callbacks and call them with arguments.

Awesome Lists containing this project

README

        

# d3-dispatch

Dispatching is a low-level interaction mechanism that allows you to register named callbacks and then call them with arbitrary arguments. A variety of D3 interaction components, such as [d3-drag](https://github.com/d3/d3-drag), use this mechanism to emit events to listeners. Think of this like Node’s [EventEmitter](https://nodejs.org/api/events.html), except every listener has a well-defined name so it’s easy to remove or replace them.

## Resources

- [Documentation](https://d3js.org/d3-dispatch)
- [Examples](https://observablehq.com/collection/@d3/d3-dispatch)
- [Releases](https://github.com/d3/d3-dispatch/releases)
- [Getting help](https://d3js.org/community)