package
Register named callbacks and call them with arguments.
npm install d3-dispatchGitHub-flavored package documentation.
Across all versions, last 30 days.
213,886,401 in 30 days
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
11.9 kB
Includes dependencies.
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, use this mechanism to emit events to listeners. Think of this like Node’s EventEmitter, except every listener has a well-defined name so it’s easy to remove or replace them.
recifs
fil@rezo.net