Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

This package has been deprecated

Author message:

This package is deprecated, please use @d3fc/d3fc-pointer instead.

d3fc-pointer

1.0.3 • Public • Published

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.

Main d3fc package

Installing

npm install d3fc-pointer

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

install

npm i d3fc-pointer

Downloadsweekly downloads

255

version

1.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability