Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Commit

Permalink
build: release 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Oct 12, 2019
1 parent fbdecf6 commit 617d9bd
Show file tree
Hide file tree
Showing 14 changed files with 11,756 additions and 13,620 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Changelog

## 4.1.0 (Oct 12, 2019)

- Upgrade the built-in Cropper.js to v1.5.6.

## 4.0.0 (Apr 1, 2018)

- Upgrade Cropper.js to 1.3.4.
- Upgrade the built-in Cropper.js to v1.3.4.

## 4.0.0-beta (Mar 3, 2018)

- Upgrade Cropper.js to 1.3.2.
- Upgrade the built-in Cropper.js to v1.3.2.

## 4.0.0-alpha (Mar 1, 2018)

Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cropper

[![Build Status](https://img.shields.io/travis/fengyuanchen/cropper.svg)](https://travis-ci.org/fengyuanchen/cropper) [![Downloads](https://img.shields.io/npm/dm/cropper.svg)](https://www.npmjs.com/package/cropper) [![Version](https://img.shields.io/npm/v/cropper.svg)](https://www.npmjs.com/package/cropper)
[![Build Status](https://img.shields.io/travis/fengyuanchen/cropper.svg)](https://travis-ci.org/fengyuanchen/cropper) [![Downloads](https://img.shields.io/npm/dm/cropper.svg)](https://www.npmjs.com/package/cropper) [![Version](https://img.shields.io/npm/v/cropper.svg)](https://www.npmjs.com/package/cropper) [![Dependencies](https://img.shields.io/david/fengyuanchen/cropper.svg)](https://www.npmjs.com/package/cropper)

> A simple jQuery image cropping plugin. As of v4.0.0, the core code of Cropper is replaced with [Cropper.js](https://github.com/fengyuanchen/cropperjs).
Expand Down Expand Up @@ -79,23 +79,25 @@ var cropper = $image.data('cropper');
See the available [options](https://github.com/fengyuanchen/cropperjs#options) of Cropper.js.

```js
$().cropper(options);
$('img').cropper(options);
```

## Methods

See the available [methods](https://github.com/fengyuanchen/cropperjs#methods) of Cropper.js.

```js
$().cropper('method', argument1, , argument2, ..., argumentN);
$('img').once('ready', function () {
$(this).cropper('method', argument1, , argument2, ..., argumentN);
});
```

## Events

See the available [events](https://github.com/fengyuanchen/cropperjs#events) of Cropper.js.

```js
$().on('event', handler);
$('img').on('event', handler);
```

## No conflict
Expand All @@ -107,7 +109,7 @@ If you have to use other plugin with the same namespace, just call the `$.fn.cro
<script src="cropper.js"></script>
<script>
$.fn.cropper.noConflict();
// Code that uses other plugin's "$().cropper" can follow here.
// Code that uses other plugin's "$('img').cropper" can follow here.
</script>
```

Expand Down
Loading

0 comments on commit 617d9bd

Please sign in to comment.