{"_id":"@astvision/antd-img-crop","_rev":"9-913cbc543d3bd1274445bc8780638319","time":{"0.0.1":"2020-11-13T07:14:36.971Z","0.0.2":"2020-11-13T07:14:36.971Z","0.0.3":"2020-11-13T07:14:36.971Z","created":"2020-11-13T07:19:53.305Z","0.0.4":"2020-11-13T07:19:53.729Z","modified":"2022-04-04T15:59:50.797Z","0.0.5":"2020-11-13T08:03:44.323Z","0.0.6":"2020-11-13T08:15:22.320Z","0.0.7":"2020-11-13T08:26:13.336Z"},"name":"@astvision/antd-img-crop","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.4":{"name":"@astvision/antd-img-crop","version":"0.0.4","description":"An image cropper for Ant Design Upload","keywords":["react","antd","ant-design","upload","image","crop","cropper"],"license":"MIT","author":{"name":"nanxiaobei","email":"nanxiaobei@gmail.com","url":"https://github.com/nanxiaobei"},"homepage":"https://github.com/nanxiaobei/antd-img-crop","repository":{"type":"git","url":"git+https://github.com/digz6666/antd-img-crop.git"},"bugs":{"url":"https://github.com/nanxiaobei/antd-img-crop/issues"},"main":"dist/antd-img-crop.cjs.js","module":"dist/antd-img-crop.esm.js","types":"index.d.ts","scripts":{"build":"rimraf dist && rollup -c"},"peerDependencies":{"antd":"^4.0.0","prop-types":"^15.6.2","react":"^16.8.0","react-dom":"^16.8.0"},"dependencies":{"@babel/runtime":"^7.12.1","@astvision/react-easy-crop":"^0.0.1"},"devDependencies":{"@babel/core":"^7.12.3","@babel/plugin-transform-runtime":"^7.12.1","@babel/preset-env":"^7.12.1","@babel/preset-react":"^7.12.1","@rollup/plugin-replace":"^2.3.4","@types/react":"^16.9.55","antd":"^4.8.0","eslint":"^7.12.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-app":"^6.2.2","prettier":"^2.1.2","react":"^17.0.1","react-dom":"^17.0.1","rollup":"^2.33.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-less":"^1.1.2","typescript":"^4.0.5"},"eslintIgnore":["dist","index.d.ts"],"gitHead":"7cd63a5afa57111e273572ae6f230f949a15b8e8","_id":"@astvision/antd-img-crop@0.0.4","_nodeVersion":"10.19.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3BAQTKdBbZBg1Yx65Kj/cVKHQpYsFSneTbKM47Xwh/m2KiEIwF7DBKzBFp9DwgicUtDq7L0CZS1fuBvcEjtYtg==","shasum":"7492e67fe5a28cc963b13a804b0c831f35fc878b","tarball":"https://registry.npmjs.org/@astvision/antd-img-crop/-/antd-img-crop-0.0.4.tgz","fileCount":7,"unpackedSize":22175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrjOaCRA9TVsSAnZWagAAeiUQAJawTbHMZZysEcg8BGdk\nYqxXx4ARggGAJL/zA75Lx2wP3ijrtF/Jn7bqCSWFe9SzsOwDv4MOHWBnYHHR\nbDxOLlUuNcp4erAoQKsS+8BX54lME66aUXjXVCr6l4BYO9IraaOOX/wL/bYX\n6w+y68qiLMJhH5EHPDLCW1NcFxD9dAtsNZcwuAqbBGGLZWl/PSSQyRrTFIcd\nvtq5cHJZJXM09LH9OfrXFUyQ3kGUdfKp81I9XbQOkffKJ67rUD1d9NS/vHDz\nRLqUwKobYOGFE/Wyemo1n+4yJcS0y4spAJuZImtxwlrTw4YOJC1nYIwz3JHK\nayy+YonWq5tvYLLMxLPYiaHo5seEBJSt/zpksGTBOSWt5gig+d7q6tWKKAIE\nxwJ4Q9bP+kadyRoWv3Mg9i28sK6KIl5LAUBmyo3pEisrMMNwWZfZ9NM8z8gA\nz2bQGDZUf451TIHiS6CJg+AODlyMKLXJX7faBuh2qXzy8MeK2vrk2q+pnSPp\nqa/URB/fPlG+Wo7RLY7Caccf7JOLXfHnPVQoQmJn8p5dh7R6TWZVWZ978Qp/\nWlLVI+q71LEno4lm4hyEPog8l55gBz370pHvzhv91fLENrWwVJmElg9KFPuo\n7qj2+mR8PUkIkqSdLdscD0FyVRmyOjhZMJzn6otQSLzyegwd7ABBcu7lVEwu\nLTgq\r\n=fjvS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRa3nABFkuVVAZN/KnDzGJOIpheL8uEdAt48SWIjiIRwIhANNiTUnlKxomwNfz6/EL0gcweJ2VXtqwoclz1PpRC/qk"}]},"_npmUser":{"name":"digz6666","email":"digz6666@gmail.com"},"directories":{},"maintainers":[{"name":"digz6666","email":"digz6666@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/antd-img-crop_0.0.4_1605251993569_0.6331708971678078"},"_hasShrinkwrap":false},"0.0.5":{"name":"@astvision/antd-img-crop","version":"0.0.5","description":"An image cropper for Ant Design Upload","keywords":["react","antd","ant-design","upload","image","crop","cropper"],"license":"MIT","author":{"name":"nanxiaobei","email":"nanxiaobei@gmail.com","url":"https://github.com/nanxiaobei"},"homepage":"https://github.com/nanxiaobei/antd-img-crop","repository":{"type":"git","url":"git+https://github.com/digz6666/antd-img-crop.git"},"bugs":{"url":"https://github.com/nanxiaobei/antd-img-crop/issues"},"main":"dist/antd-img-crop.cjs.js","module":"dist/antd-img-crop.esm.js","types":"index.d.ts","scripts":{"build":"rimraf dist && rollup -c"},"peerDependencies":{"antd":"^4.0.0","prop-types":"^15.6.2","react":"^16.8.0","react-dom":"^16.8.0"},"dependencies":{"@babel/runtime":"^7.12.1","@astvision/react-easy-crop":"^1.0.1"},"devDependencies":{"@babel/core":"^7.12.3","@babel/plugin-transform-runtime":"^7.12.1","@babel/preset-env":"^7.12.1","@babel/preset-react":"^7.12.1","@rollup/plugin-replace":"^2.3.4","@types/react":"^16.9.55","antd":"^4.8.0","eslint":"^7.12.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-app":"^6.2.2","prettier":"^2.1.2","react":"^17.0.1","react-dom":"^17.0.1","rollup":"^2.33.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-less":"^1.1.2","typescript":"^4.0.5"},"eslintIgnore":["dist","index.d.ts"],"gitHead":"fd4e54c68ab5154a8084e79919ba57feb7434f7d","_id":"@astvision/antd-img-crop@0.0.5","_nodeVersion":"10.19.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/d/tdFHZYZHXEpH3Xe/X3Uz6FuLYU8QRT02CmltUU1coIGNACbfUqs1JEtbwLpZz2lEKSOgdpDSbzqypBz5Jkw==","shasum":"2d942a74e7020907678703fb06bc59af2f00f883","tarball":"https://registry.npmjs.org/@astvision/antd-img-crop/-/antd-img-crop-0.0.5.tgz","fileCount":9,"unpackedSize":56640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrj3gCRA9TVsSAnZWagAAGWUP/2hbsEMS3MfxmZe741gH\n6e0FxuxMJ6vaH+3+0vlNH1EpRcPMhBQpn7qVekiwS8i7ID7sT46QA7AhBQbI\nr1bxta3hpZe7cRjRNvigpKkPLzBzA1GjHCDzBxI1TN337oegcjV8T4mGeqSV\n9Nbp/m7TjKKIt+IC0BOhaD5pakMI8ZhFUF+cpj2gvE2McU+7QJr0PVQs4WWS\n46Rj/ZiBpkUVBwUeKqsYA7PD2H2PqR+Ry54fASSF3KbztlkYgt/S6YfBJLFv\n++yQ4o2a1kmEKxAuPsdp8IfWSA3D4H+8KP2S6xmfEGmKQWzvRomj8jgUuqjK\nqkRrObMnnhp7erfAsN5nSPDllHCp02kjetJrPn9AVzuE4gz+gAOT7kD7e4sv\nTQzRuVFoL5FpN2vdZokUx3jFO80ySAvI5hklT6DuCQ3hWcdy4UPPffYA/29x\ncLXZxHbah73j7BGWhikhbvmPBJHD8VGvSalgjtury/56gRc/xshBwn+d5wol\n4ZKqxDEI58ZHAtce19WjgpcbnEQweX0sNVCIEq1le28NSUgknxjACQDfi1SA\ndaY11tspu8y4aOUPA7s/JK57Q8DOrkfwe9kwxaSin9Oi/xYLHx4g82a7vEA8\nV7jAoPwZXoU6VMzC5s32gF0L9uFE/AJzdbqUmjzgNMZjk50MfxJREIrJDWIc\nXG3w\r\n=AUsA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAOHHNZzUy5fCk1o0L/h17aClIM8JfcMyS5siZQhKXUXAiAFnqS7oolZzE8UFukfN697G1vy16ac3SkcM4x1Si00fA=="}]},"_npmUser":{"name":"digz6666","email":"digz6666@gmail.com"},"directories":{},"maintainers":[{"name":"digz6666","email":"digz6666@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/antd-img-crop_0.0.5_1605254624151_0.5117129084794982"},"_hasShrinkwrap":false},"0.0.6":{"name":"@astvision/antd-img-crop","version":"0.0.6","description":"An image cropper for Ant Design Upload","keywords":["react","antd","ant-design","upload","image","crop","cropper"],"license":"MIT","author":{"name":"nanxiaobei","email":"nanxiaobei@gmail.com","url":"https://github.com/nanxiaobei"},"homepage":"https://github.com/nanxiaobei/antd-img-crop","repository":{"type":"git","url":"git+https://github.com/digz6666/antd-img-crop.git"},"bugs":{"url":"https://github.com/nanxiaobei/antd-img-crop/issues"},"main":"dist/antd-img-crop.cjs.js","module":"dist/antd-img-crop.esm.js","types":"index.d.ts","scripts":{"build":"rimraf dist && rollup -c"},"peerDependencies":{"antd":"^4.0.0","prop-types":"^15.6.2","react":"^16.8.0","react-dom":"^16.8.0"},"dependencies":{"@babel/runtime":"^7.12.1","@astvision/react-easy-crop":"^1.0.2"},"devDependencies":{"@babel/core":"^7.12.3","@babel/plugin-transform-runtime":"^7.12.1","@babel/preset-env":"^7.12.1","@babel/preset-react":"^7.12.1","@rollup/plugin-replace":"^2.3.4","@types/react":"^16.9.55","antd":"^4.8.0","eslint":"^7.12.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-app":"^6.2.2","prettier":"^2.1.2","react":"^17.0.1","react-dom":"^17.0.1","rollup":"^2.33.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-less":"^1.1.2","typescript":"^4.0.5"},"eslintIgnore":["dist","index.d.ts"],"gitHead":"fd4e54c68ab5154a8084e79919ba57feb7434f7d","_id":"@astvision/antd-img-crop@0.0.6","_nodeVersion":"10.19.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-7OvgRaThsStOdr3tH9+vJRPEhfMS2O+w01imTb0vnkraNlHcRvrKxHLlj7oahob3uSlsmppe+ZgVKfYefbDJ4A==","shasum":"71f6207bb3fa8a1579521fd55eeefa015b681d6d","tarball":"https://registry.npmjs.org/@astvision/antd-img-crop/-/antd-img-crop-0.0.6.tgz","fileCount":9,"unpackedSize":56640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrkCaCRA9TVsSAnZWagAAE/AP/R/W/oJkDuJKFFOG0Rl+\nL1o71RqmIsXAD91kDR+K16YojTdrb7e0rmwvLcci+q91jD6lV0m92L70fGF+\nsQc9/UbrTk7u/4m/uWsY4FRZnMiraVJi9id0Iad/WhwcpkyWVfjTZyXBiNkt\n0SvcfDo95aUiiXDXoAWoNoHGo6F14dNlYon7abTYlOFWr6Id76/tOJTmsTXg\nmT2xqODWSoUfqZsl+xkW7+8gUX39eTUSO/6cpAM01WFR0lNWWiIB4hB0V/4p\n6WKrNzaFsYruB3AFFhPSyEvmI/+B5KblMFcUy4ZA7bvDboID0pq24+rqHNB4\nSwA4eWsRkNT+cX7xqIv6XuLQ8uLLzLmWvKhueTxshrFOCzsITM84CZrBsKI5\nD+g2hlnS+Nl5w9EKDNo0SHeRV6S0wJ6jBMJyIw5qdkL1LQytLYhxR89j6IUq\nId4oQA0wY+RGWLU5p8ZBvzAzv1Oa7jyumxDKZ7zIKvD7lfUm+Gr0Ia+1YZ1a\nLMt6gyVHVr+whZUNRvjaJQeMHBYaXWYGDwkf6w0CsZCdeSDPyqoSo9Bcf0go\n3spV1oujW/R2Xf0d1ZrKcGdLJ6NFTTZ8OgOG18IyhzNkXuW9dtRyG3zWOOvx\ntW6uxcn0VyOkdRHUAVVAHGGU+NEM01aLpQHxlkAIfH0b3qKKnjIplIXzkJk3\nGkZd\r\n=ozxV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJxEi7Hza6WnKIZvSK0sdXqe80xxRKDZpQCnIicVdQeAiA+i3CO23cXmoH3sec4VAteoctpsFnZW8q7B3esPfXMXg=="}]},"_npmUser":{"name":"digz6666","email":"digz6666@gmail.com"},"directories":{},"maintainers":[{"name":"digz6666","email":"digz6666@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/antd-img-crop_0.0.6_1605255322228_0.5244856773678641"},"_hasShrinkwrap":false},"0.0.7":{"name":"@astvision/antd-img-crop","version":"0.0.7","description":"An image cropper for Ant Design Upload","keywords":["react","antd","ant-design","upload","image","crop","cropper"],"license":"MIT","author":{"name":"nanxiaobei","email":"nanxiaobei@gmail.com","url":"https://github.com/nanxiaobei"},"homepage":"https://github.com/nanxiaobei/antd-img-crop","repository":{"type":"git","url":"git+https://github.com/digz6666/antd-img-crop.git"},"bugs":{"url":"https://github.com/nanxiaobei/antd-img-crop/issues"},"main":"dist/antd-img-crop.cjs.js","module":"dist/antd-img-crop.esm.js","types":"index.d.ts","scripts":{"build":"rimraf dist && rollup -c"},"peerDependencies":{"antd":"^4.0.0","prop-types":"^15.6.2","react":"^16.8.0","react-dom":"^16.8.0"},"dependencies":{"@babel/runtime":"^7.12.1","@astvision/react-easy-crop":"^1.0.2"},"devDependencies":{"@babel/core":"^7.12.3","@babel/plugin-transform-runtime":"^7.12.1","@babel/preset-env":"^7.12.1","@babel/preset-react":"^7.12.1","@rollup/plugin-replace":"^2.3.4","@types/react":"^16.9.55","antd":"^4.8.0","eslint":"^7.12.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-app":"^6.2.2","prettier":"^2.1.2","react":"^17.0.1","react-dom":"^17.0.1","rollup":"^2.33.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-less":"^1.1.2","typescript":"^4.0.5"},"eslintIgnore":["dist","index.d.ts"],"licenseText":"MIT License\n\nCopyright (c) 2020 nanxiaobei\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@astvision/antd-img-crop@0.0.7","dist":{"shasum":"e7343d36fbfa0a72f7916a420bcc11755ceca58f","integrity":"sha512-GXfL8rqiiKXBe4TaY0h7NVnL+2lzFdLIDbv2ri7nxhpCtMAsF/Gos68zXlplq6PFZUpmYVzFn8z4Gcq9zIWPqw==","tarball":"https://registry.npmjs.org/@astvision/antd-img-crop/-/antd-img-crop-0.0.7.tgz","fileCount":12,"unpackedSize":56644,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrkMlCRA9TVsSAnZWagAAhm0P/iWQYoFUcesSL2tyRwg2\nhykG73SEN1XUs21wuW9KZw0c5kbb2VzfjhKP6htm8rXbvPBoIR5VFpIol6pi\nJTTRjy44vRaVqs+vUryC4bc8h/T9p13CoIKZusvAaOU7yjwGMoUPljTwmkf9\nN7GdLj9NFHtP+mXBUzomUEqIJ4CkCHG88z30XXU9479WZ0b/z9ngNCces690\nXxIgZRlf8i2gQjSmI/bAwyBwnJaQZaOESwOwltX/Hjy+8SA0WQwNtcaWBL5C\nN8Egf/+K/jcP1wvf4YN2MBt1+6/OY7dX9KYATFUGT6lCwCQ+J8RcppIOtBbI\n4GfRWfBhtP0WwdVgzERgAoB/i7wM4L31uV/TUW7efp9inYdwh1Lemj3OSHpn\nU8J2g0ygWv3Xzn7wFbAH3kSpGP8dYVhz+/GtXCwbi01qXIBWkFLfiyG9oGUo\nZtAMfqO+gHE0ktQPDzwY1ntHaPgK83KSuLQBwEYA81UO/BOLFUSIM2eCqmFt\nnx0Am5leFCi9vT2MW8kCZ3m7cHHU/yeAfX5YMEuOhJwHBtHLJwCfE5a8NhZj\nTewYd6x2Uf/AFr8XXpWyzDGRVk1hvBcFQkzGSYBOBBeSB0xcBGu6ZMmurwIB\nArKg+yYa8X06+zvXhW32jzueME3xDoE4GSOBoQCBC7s9p30HTORo86g+7j2Z\ncs2k\r\n=anZp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLZEYtwqNaeSdBrcljqW7x+pU9RJnb25T5QA2Y59Eo8gIgKHffKYVS11G07Fc3O57gI6kAZLjupNms3UqzPaenimk="}]},"_npmUser":{"name":"digz6666","email":"digz6666@gmail.com"},"directories":{},"maintainers":[{"name":"digz6666","email":"digz6666@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/antd-img-crop_0.0.7_1605255973163_0.1281299701406624"},"_hasShrinkwrap":false}},"maintainers":[{"name":"digz6666","email":"digz6666@gmail.com"}],"description":"An image cropper for Ant Design Upload","homepage":"https://github.com/nanxiaobei/antd-img-crop","keywords":["react","antd","ant-design","upload","image","crop","cropper"],"repository":{"type":"git","url":"git+https://github.com/digz6666/antd-img-crop.git"},"author":{"name":"nanxiaobei","email":"nanxiaobei@gmail.com","url":"https://github.com/nanxiaobei"},"bugs":{"url":"https://github.com/nanxiaobei/antd-img-crop/issues"},"license":"MIT","readme":"# antd-img-crop\n\nAn image cropper for Ant Design [Upload](https://ant.design/components/upload/).\n\n[![npm](https://img.shields.io/npm/v/antd-img-crop.svg?style=flat-square)](https://www.npmjs.com/package/antd-img-crop)\n[![npm](https://img.shields.io/npm/dt/antd-img-crop?style=flat-square)](https://www.npmtrends.com/antd-img-crop)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/antd-img-crop?style=flat-square)](https://bundlephobia.com/result?p=antd-img-crop)\n[![GitHub](https://img.shields.io/github/license/nanxiaobei/antd-img-crop?style=flat-square)](https://github.com/nanxiaobei/antd-img-crop/blob/master/LICENSE)\n\nEnglish | [简体中文](./README.zh-CN.md)\n\n## Demo\n\n[Live demo](https://codesandbox.io/s/antd-img-crop-4qoom5p9x4)\n\n## Install\n\n```sh\nyarn add antd-img-crop\n```\n\n## Usage\n\n```jsx harmony\nimport ImgCrop from 'antd-img-crop';\nimport { Upload } from 'antd';\n\nconst Demo = () => (\n  <ImgCrop>\n    <Upload>+ Add image</Upload>\n  </ImgCrop>\n);\n```\n\n## Props\n\n| Prop         | Type                 | Default        | Description                                                           |\n| ------------ | -------------------- | -------------- | --------------------------------------------------------------------- |\n| aspect       | `number`             | `1 / 1`        | Aspect of crop area , `width / height`                                |\n| shape        | `string`             | `'rect'`       | Shape of crop area, `'rect'` or `'round'`                             |\n| grid         | `boolean`            | `false`        | Show grid of crop area (third-lines)                                  |\n| quality      | `number`             | `0.4`          | Image quality, `0 ~ 1`                                                |\n| fillColor    | `string`             | `white`        | Fill color when cropped image smaller than canvas                     |\n| zoom         | `boolean`            | `true`         | Enable zoom for image                                                 |\n| rotate       | `boolean`            | `false`        | Enable rotate for image                                               |\n| minZoom      | `number`             | `1`            | Minimum zoom factor                                                   |\n| maxZoom      | `number`             | `3`            | Maximum zoom factor                                                   |\n| modalTitle   | `string`             | `'Edit image'` | Title of modal                                                        |\n| modalWidth   | `number` \\| `string` | `520`          | Width of modal in pixels number or percentages                        |\n| modalOk      | `string`             | `'OK'`         | Text of confirm button of modal                                       |\n| modalCancel  | `string`             | `'Cancel'`     | Text of cancel button of modal                                        |\n| beforeCrop   | `function`           | -              | Call before modal open, if return `false`, it'll not open             |\n| cropperProps | `object`             | -              | Props of [react-easy-crop] (\\* [existing props] cannot be overridden) |\n\n## Styles\n\nTo prevent overwriting the custom styles to `antd`, `antd-img-crop` does not import the style files of components.\n\nTherefore, if your project configured `babel-plugin-import`, and not use `Modal` or `Slider`, you need to import the styles yourself:\n\n```js\nimport 'antd/es/modal/style';\nimport 'antd/es/slider/style';\n```\n\n## License\n\n[MIT License](https://github.com/nanxiaobei/antd-img-crop/blob/master/LICENSE) (c) [nanxiaobei](https://mrlee.me/)\n\n[react-easy-crop]: https://github.com/ricardo-ch/react-easy-crop#props\n[existing props]: https://github.com/nanxiaobei/antd-img-crop/blob/master/src/index.jsx#L67-L83\n","readmeFilename":"README.md"}