MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Cropper

Function Cropper

static/cropper/2.3.4/cropper.js:424–441  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

422 }
423
424 function Cropper(element, options) {
425 this.$element = $(element);
426 this.options = $.extend({}, Cropper.DEFAULTS, $.isPlainObject(options) && options);
427 this.isLoaded = false;
428 this.isBuilt = false;
429 this.isCompleted = false;
430 this.isRotated = false;
431 this.isCropped = false;
432 this.isDisabled = false;
433 this.isReplaced = false;
434 this.isLimited = false;
435 this.wheeling = false;
436 this.isImg = false;
437 this.originalUrl = '';
438 this.canvas = null;
439 this.cropBox = null;
440 this.init();
441 }
442
443 Cropper.prototype = {
444 constructor: Cropper,

Callers

nothing calls this directly

Calls 2

extendMethod · 0.80
$Function · 0.50

Tested by

no test coverage detected