react-focuspoint
A React component for 'responsive cropping' with jQuery FocusPoint.
npm install --save react-focuspoint
Usage
var React = ;var Focuspoint = ; var MyComponent = React;
Most of these props correspond to 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