name | 81 |type | 82 |default | 83 |description | 84 |
---|---|---|---|
className | 89 |String | 90 |91 | | additional css class of root dom node | 92 |
getSpinContent | 95 |Function() => React.Component |
96 | 97 | | spin content of Cropper | 98 |
renderModal | 101 |Function() => React.Component |
102 | 103 | | Modal Render of Component, you can pass any React Component to replace it. | 104 |
locale | 107 |'en-US' | 'zh-CN' | 108 |109 | | i18n locale. | 110 |
circle | 113 |boolean | 114 |false | 115 |Croppe circle image or not. If true, you'll get a circle picture. Notice: transparent background *ONLY* supported in png file, croppe jpg file will get white background. | 116 |
resizer | 119 |function | 120 |null | 121 |Cropper support custom image resize function, e.g., you can use [pica](https://github.com/nodeca/pica) to down scale your picture more perfectly | 122 |
2x: {`${this.getThumbnailSize(0)[0]}px * ${this.getThumbnailSize(0)[1]}px`}
424 |1x: {`${this.getThumbnailSize(1)[0]}px * ${this.getThumbnailSize(1)[1]}px`}
434 |