(element, options)
| 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, |