scripts/core/upload/crop-directive.ts
Function link
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem) {
var bounds, boundx, boundy;
var updateScope = _.throttle((c) => {
scope.$apply(() => {
Function onload
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
img.onload = function() {
scope.progressWidth = 80;
var size = [this['width'], this['height']];
if (size[0] < 200 || size[1] < 200) {
Function showPreview
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function showPreview(e, rx, ry, boundX, boundY, cordx, cordy) {