react-cropper
Advanced tools
Comparing version 2.1.8-0 to 2.1.8-1
@@ -44,7 +44,7 @@ import React, { useRef, useEffect } from 'react'; | ||
if (options === void 0) { options = {}; } | ||
var _a = options.enable, enable = _a === void 0 ? true : _a, _b = options.scaleX, scaleX = _b === void 0 ? 1 : _b, _c = options.scaleY, scaleY = _c === void 0 ? 1 : _c, _d = options.zoomTo, zoomTo = _d === void 0 ? 0 : _d, _e = options.rotateTo, rotateTo = _e === void 0 ? 0 : _e; | ||
var _a = options.enable, enable = _a === void 0 ? true : _a, _b = options.scaleX, scaleX = _b === void 0 ? 1 : _b, _c = options.scaleY, scaleY = _c === void 0 ? 1 : _c, _d = options.zoomTo, zoomTo = _d === void 0 ? 0 : _d, rotateTo = options.rotateTo; | ||
enable ? cropper.enable() : cropper.disable(); | ||
cropper.scaleX(scaleX); | ||
cropper.scaleY(scaleY); | ||
cropper.rotateTo(rotateTo); | ||
rotateTo !== undefined && cropper.rotateTo(rotateTo); | ||
zoomTo > 0 && cropper.zoomTo(zoomTo); | ||
@@ -51,0 +51,0 @@ }; |
@@ -53,7 +53,7 @@ 'use strict'; | ||
if (options === void 0) { options = {}; } | ||
var _a = options.enable, enable = _a === void 0 ? true : _a, _b = options.scaleX, scaleX = _b === void 0 ? 1 : _b, _c = options.scaleY, scaleY = _c === void 0 ? 1 : _c, _d = options.zoomTo, zoomTo = _d === void 0 ? 0 : _d, _e = options.rotateTo, rotateTo = _e === void 0 ? 0 : _e; | ||
var _a = options.enable, enable = _a === void 0 ? true : _a, _b = options.scaleX, scaleX = _b === void 0 ? 1 : _b, _c = options.scaleY, scaleY = _c === void 0 ? 1 : _c, _d = options.zoomTo, zoomTo = _d === void 0 ? 0 : _d, rotateTo = options.rotateTo; | ||
enable ? cropper.enable() : cropper.disable(); | ||
cropper.scaleX(scaleX); | ||
cropper.scaleY(scaleY); | ||
cropper.rotateTo(rotateTo); | ||
rotateTo !== undefined && cropper.rotateTo(rotateTo); | ||
zoomTo > 0 && cropper.zoomTo(zoomTo); | ||
@@ -60,0 +60,0 @@ }; |
{ | ||
"name": "react-cropper", | ||
"version": "2.1.8-0", | ||
"version": "2.1.8-1", | ||
"description": "Cropper as React Component", | ||
@@ -55,3 +55,3 @@ "main": "dist/react-cropper.umd.js", | ||
"@rollup/plugin-babel": "^5.0.4", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-commonjs": "^19.0.0", | ||
"@rollup/plugin-node-resolve": "^11.0.0", | ||
@@ -72,3 +72,3 @@ "@rollup/plugin-replace": "^2.3.3", | ||
"eslint": "^7.2.0", | ||
"eslint-config-prettier": "^7.0.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.21.2", | ||
@@ -80,6 +80,6 @@ "eslint-plugin-jsx-a11y": "^6.2.3", | ||
"jest": "^26.2.2", | ||
"jest-environment-jsdom-sixteen": "^1.0.3", | ||
"jest-environment-jsdom-sixteen": "^2.0.0", | ||
"np": "^7.0.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "2.2.1", | ||
"prettier": "2.3.0", | ||
"react": "^17.0.1", | ||
@@ -86,0 +86,0 @@ "react-app-polyfill": "^2.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91770