18 lines
488 B
JavaScript
18 lines
488 B
JavaScript
function Cropper(element, options) {
|
|
this.$element = $(element);
|
|
this.options = $.extend({}, Cropper.DEFAULTS, $.isPlainObject(options) && options);
|
|
this.ready = false;
|
|
this.built = false;
|
|
this.complete = false;
|
|
this.rotated = false;
|
|
this.cropped = false;
|
|
this.disabled = false;
|
|
this.replaced = false;
|
|
this.isImg = false;
|
|
this.originalUrl = '';
|
|
this.crossOrigin = '';
|
|
this.canvas = null;
|
|
this.cropBox = null;
|
|
this.init();
|
|
}
|