Files
Chamilo/app/Resources/public/assets/cropper/src/js/cropper.js
2025-08-14 22:33:03 +02:00

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();
}