Package Exports
- @d3fc/d3fc-pointer
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@d3fc/d3fc-pointer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
d3fc-pointer
Very simple component which emits an event to indicate the current mouse or touch position over a selection. Useful for implementing uni-directional data flow in a visualisation and not a lot else.
Installing
npm install d3fc-pointerAPI Reference
# fc.pointer()
Constructs a new pointer component instance.
# pointer.on(typenames[, callback])
This component dispatches point events. The sole argument to the event handler is an array. If the mouse or touch interaction is over the selection then the array will contain a single object representing the co-ordinate (e.g. { x: 10, y: 10 }). If the mouse or touch interaction is not over the selection then the array will be empty.
See d3-dispatch's on for a full description.