A React cropper component which compatible with lots of shaps such as rectangle,square,circle,polygon.The operation on PC or Mobile are both supportted.
Demo
Install
$ npm install react-tiny-cropper
or
$ yarn add react-tiny-cropper
properties
name
type
default
description
type
string
rectangle
the shap of cropper,circle,square,rectangle and polygon are allowed
image
string
-
the image need to crop
style
object
-
the custom style of cropper box
nodesNum
numberd
4
the number of nodes which could press to move(it's not effective unless type is "polygon")