How to use the cropperjs/src.setDefaults function in cropperjs

To help you get started, we’ve selected a few cropperjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fengyuanchen / cropper / src / index.js View on Github external
if (result === cropper) {
            result = undefined;
          }

          if (isDestroy) {
            $element.removeData(NAMESPACE);
          }
        }
      }
    });

    return result !== undefined ? result : this;
  };

  $.fn.cropper.Constructor = Cropper;
  $.fn.cropper.setDefaults = Cropper.setDefaults;
  $.fn.cropper.noConflict = function noConflict() {
    $.fn.cropper = AnotherCropper;
    return this;
  };
}

cropperjs

JavaScript image cropper.

MIT
Latest version published 7 months ago

Package Health Score

84 / 100
Full package analysis