# @d3fc/d3fc-pointer

> Component which emits the current mouse or touch position over a selection

Latest version **3.0.3** (published 2024-06-13) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2024-06-13 |
| First published | 2018-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1350 |
| Maintainers | chrisprice, colineberhardt, tlsim |
| Keywords | d3, d3fc, pointer |

## Links

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

## Dependencies (1)

- [@d3fc/d3fc-rebind](https://npm.io/package/@d3fc/d3fc-rebind.md) ^6.0.1

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

- 3.0.3 (latest) — 2024-06-13
- 3.0.2 — 2020-09-23
- 3.0.1 — 2020-07-14
- 3.0.0 — 2020-04-16
- 2.2.0 — 2020-03-19
- 2.1.0 — 2020-02-13
- 2.0.11 — 2019-11-28
- 2.0.10 — 2019-09-04
- 2.0.9 — 2019-08-12
- 2.0.8 — 2019-05-28
- 2.0.7 — 2019-01-15
- 2.0.6 — 2018-08-29
- 2.0.5 — 2018-08-21
- 2.0.4 — 2018-08-21
- 2.0.3 — 2018-08-21
- … 3 more at https://npm.io/package/@d3fc/d3fc-pointer/versions

## 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/d3fc/d3fc)

## Installing

```bash
npm install @d3fc/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/d3fc-pointer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
