# react-focuspoint

> A React component for 'responsive cropping' with jquery-focuspoint

Latest version **1.0.0** (published 2014-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-focuspoint
pnpm add react-focuspoint
yarn add react-focuspoint
bun add react-focuspoint
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-12-02 |
| First published | 2014-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Andrew Clark |
| Maintainers | acdlite |
| Keywords | react, jquery-focuspoint, focuspoint, jquery, responsive, images, cropping, art direction |

## Links

- npm: https://www.npmjs.com/package/react-focuspoint
- Repository: https://github.com/acdlite/react-focuspoint
- Issues: https://github.com/acdlite/react-focuspoint/issues
- npm.io page: https://npm.io/package/react-focuspoint

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^0.12.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-12-02

## README

react-focuspoint
=================

A React component for 'responsive cropping' with [jQuery FocusPoint](https://github.com/jonom/jquery-focuspoint).

```
npm install --save react-focuspoint
```

## Usage

```jsx

var React = require('react');
var Focuspoint = require('react-focuspoint');

var MyComponent = React.createClass({

  render() {
    return (
      <Focuspoint
        src="/img/some-image.jpg"
        imageW={800}
        imageH={450}
        focusX={0.75}
        focusY={0.75}
      />
    );
  }

});

```

Most of these props correspond to [FocusPoint](https://github.com/jonom/jquery-focuspoint) options.

Props that correspond to data FocusPoint data attributes:

- `focusX` (required)
- `focusY` (required)
- `imageW`
- `imageH`

Props that are passed to FocusPoint constructor:

- `reCalcOnWindowResize`
- `throttleDuration`

Other props:

- `src` - Image src

## License
MIT

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