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

Commit

Permalink
Release v2.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Fengyuan Chen committed Jan 1, 2016
1 parent 615543e commit f0c8c4c
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog


## 2.2.4 (Jan 1, 2016)

- Fixed a dimension bug in the "getCroppedCanvas" method.
- Added an example for cropping round image.


## 2.2.3 (Dec 28, 2015)

- Supports to zoom from event triggering point.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
dist/
├── cropper.css ( 5 KB)
├── cropper.min.css ( 4 KB)
├── cropper.js (76 KB)
├── cropper.js (77 KB)
└── cropper.min.js (27 KB)
```

Expand Down
6 changes: 3 additions & 3 deletions dist/cropper.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper v2.2.3
* Cropper v2.2.4
* https://github.com/fengyuanchen/cropper
*
* Copyright (c) 2014-2015 Fengyuan Chen and contributors
* Copyright (c) 2014-2016 Fengyuan Chen and contributors
* Released under the MIT license
*
* Date: 2015-12-28T03:45:22.502Z
* Date: 2016-01-01T08:20:03.583Z
*/
.cropper-container {
font-size: 0;
Expand Down
12 changes: 6 additions & 6 deletions dist/cropper.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper v2.2.3
* Cropper v2.2.4
* https://github.com/fengyuanchen/cropper
*
* Copyright (c) 2014-2015 Fengyuan Chen and contributors
* Copyright (c) 2014-2016 Fengyuan Chen and contributors
* Released under the MIT license
*
* Date: 2015-12-28T03:45:43.533Z
* Date: 2016-01-01T08:20:32.820Z
*/

(function (factory) {
Expand Down Expand Up @@ -2664,9 +2664,9 @@
}
}


canvasWidth = round(scaledWidth || originalWidth);
canvasHeight = round(scaledHeight || originalHeight);
// The canvas element will use `Math.floor` on a float number, so floor first
canvasWidth = floor(scaledWidth || originalWidth);
canvasHeight = floor(scaledHeight || originalHeight);

canvas = $('<canvas>')[0];
canvas.width = canvasWidth;
Expand Down
6 changes: 3 additions & 3 deletions dist/cropper.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/cropper.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</div>
<nav class="collapse navbar-collapse" id="navbar-collapse-1" role="navigation">
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/fengyuanchen/cropper/tree/v2.2.3/README.md">Docs</a></li>
<li><a href="https://github.com/fengyuanchen/cropper/tree/v2.2.4/README.md">Docs</a></li>
<li><a href="https://github.com/fengyuanchen/cropper">GitHub</a></li>
<li><a href="http://chenfengyuan.com">About</a></li>
<li><a href="http://fengyuanchen.github.io/">More</a></li>
Expand All @@ -53,7 +53,7 @@
<!-- Jumbotron -->
<div class="jumbotron docs-jumbotron">
<div class="container">
<h1>Cropper <small class="version">v2.2.3</small></h1>
<h1>Cropper <small class="version">v2.2.4</small></h1>
<p class="lead">A simple jQuery image cropping plugin.</p>
<div class="docs-carbonads-container">
<div class="docs-carbonads">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cropper",
"description": "A simple jQuery image cropping plugin.",
"version": "2.2.3",
"version": "2.2.4",
"main": "dist/cropper.js",
"license": "MIT",
"repository": "fengyuanchen/cropper",
Expand Down

0 comments on commit f0c8c4c

Please sign in to comment.