jquery-cropper
Advanced tools
Comparing version 1.0.0-alpha to 1.0.0-beta
# Changelog | ||
## 1.0.0-beta (Mar 3, 2018) | ||
- Release the beta version. | ||
## 1.0.0-alpha (Feb 28, 2018) | ||
- Init | ||
- Init. |
/*! | ||
* jQuery Cropper v1.0.0-alpha | ||
* jQuery Cropper v1.0.0-beta | ||
* https://github.com/fengyuanchen/jquery-cropper | ||
@@ -8,3 +8,3 @@ * | ||
* | ||
* Date: 2018-02-28T13:54:23.767Z | ||
* Date: 2018-03-03T04:12:17.906Z | ||
*/ | ||
@@ -11,0 +11,0 @@ |
/*! | ||
* jQuery Cropper v1.0.0-alpha | ||
* jQuery Cropper v1.0.0-beta | ||
* https://github.com/fengyuanchen/jquery-cropper | ||
@@ -8,3 +8,3 @@ * | ||
* | ||
* Date: 2018-02-28T13:54:23.767Z | ||
* Date: 2018-03-03T04:12:17.906Z | ||
*/ | ||
@@ -11,0 +11,0 @@ |
/*! | ||
* jQuery Cropper v1.0.0-alpha | ||
* jQuery Cropper v1.0.0-beta | ||
* https://github.com/fengyuanchen/jquery-cropper | ||
@@ -8,3 +8,3 @@ * | ||
* | ||
* Date: 2018-02-28T13:54:23.767Z | ||
* Date: 2018-03-03T04:12:17.906Z | ||
*/ | ||
@@ -11,0 +11,0 @@ |
/*! | ||
* jQuery Cropper v1.0.0-alpha | ||
* jQuery Cropper v1.0.0-beta | ||
* https://github.com/fengyuanchen/jquery-cropper | ||
@@ -8,4 +8,4 @@ * | ||
* | ||
* Date: 2018-02-28T13:54:23.767Z | ||
* Date: 2018-03-03T04:12:17.906Z | ||
*/ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(require("jquery"),require("cropperjs")):"function"==typeof define&&define.amd?define(["jquery","cropperjs"],r):r(e.jQuery,e.Cropper)}(this,function(e,r){"use strict";if(e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r,e.fn){var t=e.fn.cropper,n="cropper";e.fn.cropper=function(t){for(var o=arguments.length,f=Array(o>1?o-1:0),i=1;i<o;i++)f[i-1]=arguments[i];var p=void 0;return this.each(function(o,i){var a=e(i),u="destroy"===t,c=a.data(n);if(!c){if(u)return;var s=e.extend({},a.data(),e.isPlainObject(t)&&t);c=new r(i,s),a.data(n,c)}if("string"==typeof t){var d=c[t];e.isFunction(d)&&((p=d.apply(c,f))===c&&(p=void 0),u&&a.removeData(n))}}),void 0===p?this:p},e.fn.cropper.Constructor=r,e.fn.cropper.setDefaults=r.setDefaults,e.fn.cropper.noConflict=function(){return e.fn.cropper=t,this}}}); |
{ | ||
"name": "jquery-cropper", | ||
"description": "A jQuery plugin wrapper for Cropper.js.", | ||
"version": "1.0.0-alpha", | ||
"version": "1.0.0-beta", | ||
"main": "dist/jquery-cropper.common.js", | ||
@@ -52,4 +52,4 @@ "module": "dist/jquery-cropper.esm.js", | ||
"devDependencies": { | ||
"@commitlint/cli": "^6.1.2", | ||
"@commitlint/config-angular": "^6.1.2", | ||
"@commitlint/cli": "^6.1.3", | ||
"@commitlint/config-angular": "^6.1.3", | ||
"babel-core": "^6.26.0", | ||
@@ -59,5 +59,5 @@ "babel-plugin-external-helpers": "^6.22.0", | ||
"chai": "^4.1.2", | ||
"cropperjs": "^1.3.1", | ||
"cropperjs": "^1.3.2", | ||
"del-cli": "^1.1.0", | ||
"eslint": "^4.18.1", | ||
"eslint": "^4.18.2", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
@@ -64,0 +64,0 @@ "eslint-plugin-import": "^2.9.0", |
@@ -55,6 +55,7 @@ # jquery-cropper | ||
```js | ||
$('#image').cropper({ | ||
var $image = $('#image'); | ||
$image.cropper({ | ||
aspectRatio: 16 / 9, | ||
crop: function(event) { | ||
// Output the result data for cropping image. | ||
console.log(event.detail.x); | ||
@@ -69,2 +70,5 @@ console.log(event.detail.y); | ||
}); | ||
// Get the Cropper.js instance after initialized | ||
var cropper = $image.data('cropper'); | ||
``` | ||
@@ -71,0 +75,0 @@ |
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
14467
126