dist/js/cropjs.js
function() {
            if (this._image instanceof IMSoftcrop.Image == false || !this._image.ready) {
                return;
            }

            // Always make sure all crops are added
            for(var n = 0; n < this._crops.length; n++) {
                var crop = this._image.getSoftcrop(this._crops[n].id);

                if (crop == null) {
                    var crop = this._image.addSoftcrop(
                        this._crops[n].id,
                        this._crops[n].setAsCurrent,
                        this._crops[n].hRatio,
                        this._crops[n].vRatio,
                        this._crops[n].x,
                        this._crops[n].y,
                        this._crops[n].exact,
                        this._crops[n].usable
                    );

                    if (this._autocrop) {
                        this._image.autocrop();
                    }

                    this._renderNewCropPreview(crop, this._crops[n].setAsCurrent);
                }


                if (this._crops[n].setAsCurrent) {
                    this.setActiveCrop(crop);
                }
            }
        }
function() {
            if (this._image instanceof IMSoftcrop.Image == false || !this._image.ready) {
                return;
            }

            // Always make sure all crops are added
            for(var n = 0; n < this._crops.length; n++) {
                var crop = this._image.getSoftcrop(this._crops[n].id);

                if (crop == null) {
                    var crop = this._image.addSoftcrop(
                        this._crops[n].id,
                        this._crops[n].setAsCurrent,
                        this._crops[n].hRatio,
                        this._crops[n].vRatio,
                        this._crops[n].x,
                        this._crops[n].y,
                        this._crops[n].exact,
                        this._crops[n].usable
                    );

                    if (this._autocrop) {
                        this._image.autocrop();
                    }

                    this._renderNewCropPreview(crop, this._crops[n].setAsCurrent);
                }


                if (this._crops[n].setAsCurrent) {
                    this.setActiveCrop(crop);
                }
            }
        }
function ( ) { if ( this . _image instanceof IMSoftcrop . Image == false || ! this . _image . ready ) { return ; } // Always make sure all crops are added for ( var n = 0 ; n < this . _crops . length ; n ++ ) { var crop = this . _image . getSoftcrop ( this . _crops [ n ] . id ) ; if ( crop == null ) { var crop = this . _image . addSoftcrop ( this . _crops [ n ] . id , this . _crops [ n ] . setAsCurrent , this . _crops [ n ] . hRatio , this . _crops [ n ] . vRatio , this . _crops [ n ] . x , this . _crops [ n ] . y , this . _crops [ n ] . exact , this . _crops [ n ] . usable ) ; if ( this . _autocrop ) { this . _image . autocrop ( ) ; } this . _renderNewCropPreview ( crop , this . _crops [ n ] . setAsCurrent ) ; } if ( this . _crops [ n ] . setAsCurrent ) { this . setActiveCrop ( crop ) ; } } }
Apply all soft crops to image
Apply all soft crops to image