Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adiciona a opção de fazer upload da mesma imagem. #97

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compile/minified/ui-cropper.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions compile/unminified/ui-cropper.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* uiCropper v1.0.9
* https://crackerakiua.github.io/ui-cropper/
* uiCropper v1.1.9
* https://emanueldsc.github.io/ui-cropper/
*
* Copyright (c) 2019 Alex Kaul
* Copyright (c) 2019 Emanuel Douglas Sousa Costa
* License: MIT
*
* Generated at Monday, May 20th, 2019, 10:17:03 PM
* Generated at Tuesday, August 6th, 2019, 6:46:29 PM
*/
(function() {
angular.module('uiCropper', []);
Expand Down Expand Up @@ -3413,7 +3413,7 @@ angular.module('uiCropper').directive('uiCropper', ['$timeout', 'cropHost', 'cro
scope.areaCoords = cropHost.getAreaCoords();
};

var updateResultImage = function (scope, force, callback) {
var updateResultImage = function (scope, force, callback, forceImageUpdate) {
if (scope.image !== '' && (!scope.liveView.block || force)) {
var resultImageObj = cropHost.getResultImage();
var resultImage;
Expand All @@ -3425,7 +3425,7 @@ angular.module('uiCropper').directive('uiCropper', ['$timeout', 'cropHost', 'cro
}

var urlCreator = window.URL || window.webkitURL;
if (storedResultImage !== resultImage) {
if (forceImageUpdate || (storedResultImage !== resultImage)) {
storedResultImage = resultImage;
scope.resultImage = resultImage;
if (scope.liveView.callback) {
Expand Down Expand Up @@ -3457,8 +3457,8 @@ angular.module('uiCropper').directive('uiCropper', ['$timeout', 'cropHost', 'cro
};

if (scope.liveView && typeof scope.liveView.block === 'boolean') {
scope.liveView.render = function (callback) {
updateResultImage(scope, true, callback);
scope.liveView.render = function (callback, forceImageUpdate) {
updateResultImage(scope, true, callback, forceImageUpdate);
};
} else {
scope.liveView = {block: false};
Expand Down
Loading