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

Latest version **1.0.3** (published 2016-12-03) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install d3fc-pointer
pnpm add d3fc-pointer
yarn add d3fc-pointer
bun add d3fc-pointer
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2016-12-03 |
| First published | 2016-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | chrisprice |
| Keywords | d3, d3fc, pointer |

## Links

- npm: https://www.npmjs.com/package/d3fc-pointer
- Repository: https://github.com/d3fc/d3fc-pointer
- Issues: https://github.com/d3fc/d3fc-pointer/issues
- npm.io page: https://npm.io/package/d3fc-pointer

## Dependencies (3)

- [d3-dispatch](https://npm.io/package/d3-dispatch.md) ^1.0.1
- [d3fc-rebind](https://npm.io/package/d3fc-rebind.md) ^4.1.1
- [d3-selection](https://npm.io/package/d3-selection.md) ^1.0.2

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2016-12-03
- 1.0.2 — 2016-09-28
- 1.0.1 — 2016-09-28
- 1.0.0 — 2016-09-26

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

[Main d3fc package](https://github.com/ScottLogic/d3fc)

## Installing

```bash
npm install d3fc-pointer
```

## API Reference

<a name="pointer" href="#pointer">#</a> fc.**pointer**()

Constructs a new pointer component instance.

<a name="pointer_on" href="#pointer_on">#</a> *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`](https://github.com/d3/d3-dispatch#dispatch_on) for a full description.

---
_Source: https://npm.io/package/d3fc-pointer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
