Skip to content

Commit

Permalink
Release v1.0.0-rc.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed May 30, 2017
1 parent 9d01a09 commit 39a0659
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 25 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog


## 1.0.0-rc.2 (May 30, 2017)

- Fixed the issue of canvas box initialization (#179).


## 1.0.0-rc.1 (Apr 30, 2017)

- Change the `main` field value from `dist/cropper.js` (UMD) to `dist/cropper.common.js` (CommonJS).
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ Initialize with `Cropper` constructor:

- Browser: `window.Cropper`
- CommonJS: `var Cropper = require('cropperjs')`
- NodeJS: `var Cropper = require('cropperjs')`
- ES2015: `import Cropper from 'cropperjs'`

```html
Expand Down
6 changes: 3 additions & 3 deletions dist/cropper.common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.0.0-rc.1
* Cropper.js v1.0.0-rc.2
* https://github.com/fengyuanchen/cropperjs
*
* Copyright (c) 2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-04-30T03:26:33.550Z
* Date: 2017-05-30T05:02:48.005Z
*/

'use strict';
Expand Down Expand Up @@ -949,7 +949,7 @@ var render$1 = {
var viewMode = self.options.viewMode;
var containerData = self.containerData;
var imageData = self.imageData;
var rotated = Math.abs(imageData.rotate) === 90;
var rotated = Math.abs(imageData.rotate) % 180 === 90;
var naturalWidth = rotated ? imageData.naturalHeight : imageData.naturalWidth;
var naturalHeight = rotated ? imageData.naturalWidth : imageData.naturalHeight;
var aspectRatio = naturalWidth / naturalHeight;
Expand Down
4 changes: 2 additions & 2 deletions dist/cropper.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.0.0-rc.1
* Cropper.js v1.0.0-rc.2
* https://github.com/fengyuanchen/cropperjs
*
* Copyright (c) 2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-04-30T03:26:33.550Z
* Date: 2017-05-30T05:02:48.005Z
*/

.cropper-container {
Expand Down
6 changes: 3 additions & 3 deletions dist/cropper.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.0.0-rc.1
* Cropper.js v1.0.0-rc.2
* https://github.com/fengyuanchen/cropperjs
*
* Copyright (c) 2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-04-30T03:26:33.550Z
* Date: 2017-05-30T05:02:48.005Z
*/

var DEFAULTS = {
Expand Down Expand Up @@ -947,7 +947,7 @@ var render$1 = {
var viewMode = self.options.viewMode;
var containerData = self.containerData;
var imageData = self.imageData;
var rotated = Math.abs(imageData.rotate) === 90;
var rotated = Math.abs(imageData.rotate) % 180 === 90;
var naturalWidth = rotated ? imageData.naturalHeight : imageData.naturalWidth;
var naturalHeight = rotated ? imageData.naturalWidth : imageData.naturalHeight;
var aspectRatio = naturalWidth / naturalHeight;
Expand Down
6 changes: 3 additions & 3 deletions dist/cropper.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.0.0-rc.1
* Cropper.js v1.0.0-rc.2
* https://github.com/fengyuanchen/cropperjs
*
* Copyright (c) 2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-04-30T03:26:33.550Z
* Date: 2017-05-30T05:02:48.005Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -953,7 +953,7 @@ var render$1 = {
var viewMode = self.options.viewMode;
var containerData = self.containerData;
var imageData = self.imageData;
var rotated = Math.abs(imageData.rotate) === 90;
var rotated = Math.abs(imageData.rotate) % 180 === 90;
var naturalWidth = rotated ? imageData.naturalHeight : imageData.naturalWidth;
var naturalHeight = rotated ? imageData.naturalWidth : imageData.naturalHeight;
var aspectRatio = naturalWidth / naturalHeight;
Expand Down
4 changes: 2 additions & 2 deletions dist/cropper.min.css

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

6 changes: 3 additions & 3 deletions dist/cropper.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/css/cropper.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.0.0-rc.1
* Cropper.js v1.0.0-rc.2
* https://github.com/fengyuanchen/cropperjs
*
* Copyright (c) 2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-04-30T03:26:33.550Z
* Date: 2017-05-30T05:02:48.005Z
*/

.cropper-container {
Expand Down
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 @@
<!-- Jumbotron -->
<div class="jumbotron docs-jumbotron">
<div class="container">
<h1>Cropper.js <small class="version">v1.0.0-rc.1</small></h1>
<h1>Cropper.js <small class="version">v1.0.0-rc.2</small></h1>
<p class="lead">JavaScript image cropper.</p>
<div class="docs-carbonads-container">
<div class="docs-carbonads">
Expand Down Expand Up @@ -531,7 +531,7 @@ <h4 class="modal-title" id="getCroppedCanvasTitle">Cropped</h4>
</footer>

<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script>
<script src="https://fengyuanchen.github.io/js/common.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions docs/js/cropper.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.0.0-rc.1
* Cropper.js v1.0.0-rc.2
* https://github.com/fengyuanchen/cropperjs
*
* Copyright (c) 2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-04-30T03:26:33.550Z
* Date: 2017-05-30T05:02:48.005Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -953,7 +953,7 @@ var render$1 = {
var viewMode = self.options.viewMode;
var containerData = self.containerData;
var imageData = self.imageData;
var rotated = Math.abs(imageData.rotate) === 90;
var rotated = Math.abs(imageData.rotate) % 180 === 90;
var naturalWidth = rotated ? imageData.naturalHeight : imageData.naturalWidth;
var naturalHeight = rotated ? imageData.naturalWidth : imageData.naturalHeight;
var aspectRatio = naturalWidth / naturalHeight;
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": "cropperjs",
"description": "JavaScript image cropper.",
"version": "1.0.0-rc.1",
"version": "1.0.0-rc.2",
"main": "dist/cropper.common.js",
"module": "dist/cropper.esm.js",
"browser": "dist/cropper.js",
Expand Down

0 comments on commit 39a0659

Please sign in to comment.