add missing semicolons

This commit is contained in:
Martin
2017-10-13 15:40:02 +02:00
parent 885b364f08
commit 0052fdf48e
11 changed files with 32 additions and 32 deletions
+16 -16
View File
@@ -307,7 +307,7 @@ function ButtonMenu(canvas, settings) {
disabled: true
});
});
}
};
/**
* Shows all the buttons
@@ -319,7 +319,7 @@ function ButtonMenu(canvas, settings) {
disabled: false
});
});
}
};
/**
* Recalculate boundaries and add all items to canvas if required
@@ -419,7 +419,7 @@ var Canvas = fabric.util.createClass(fabric.Canvas, {
if (this.get3dHandler().isEnabled()) {
this.get3dHandler().refreshImage();
} else {
this.refreshImage(this.getResizedImage(this.getImage()))
this.refreshImage(this.getResizedImage(this.getImage()));
this.getViewport().reset();
}
this.sendToBack(this.getImage());
@@ -774,7 +774,7 @@ function DragbarHandler(canvas) {
this.__handles.getHandles().forEach(function (handle) {
handle.bringToFront();
});
}
};
/**
* Removes dragbars from canvas
*/
@@ -964,7 +964,7 @@ function FrameHandler(viewport) {
viewport.canvas.renderAll();
return this;
}
};
/**
* Sets passed frametype to passed viewwport
@@ -1144,14 +1144,14 @@ function ImageDataHandler(img) {
var cropData = {
x: dragAxis === 'x' ? (viewportBounds.left - img.left) / (img.width * img.scaleX) : 0,
y: dragAxis === 'y' ? (viewportBounds.top - img.top) / (img.height * img.scaleY) : 0,
}
};
sessionStorage.setItem('cropData', JSON.stringify(cropData));
}
};
this.removeCropData = function() {
sessionStorage.removeItem('cropData');
}
};
/**
* Gets an object containing applied transformations for the Image and also
@@ -1362,11 +1362,11 @@ function MirrorHandler(img) {
img.setCoords().canvas.renderAll();
return this;
}
};
this.getStatus = function() {
return _mirrored;
}
};
}
@@ -1556,7 +1556,7 @@ function TextButton(id, text, settings, isActive) {
this.getId = function() {
return _id;
}
};
/**
* @return {Boolean}
@@ -1662,7 +1662,7 @@ function Viewport(canvas) {
canvas.getImage().center().setCoords();
}
canvas.getImage().drag.enable(calcMinMaxBoundsForRect(_rect.getInsideBoundingRect(), canvas.getImage()))
canvas.getImage().drag.enable(calcMinMaxBoundsForRect(_rect.getInsideBoundingRect(), canvas.getImage()));
canvas.getApertures().apply(_data.axis, _rect.getBoundingRect());
if (canvas.__type !== 'canvas') {
@@ -1942,7 +1942,7 @@ module.exports = {
strokeWidth: 1,
top: axis === 'x' ? bounds.top + bounds.height / 2 : bounds.top,
left: axis === 'y' ? bounds.left + bounds.width / 2 : bounds.left
}
};
},
text: {
@@ -1962,7 +1962,7 @@ module.exports = {
lockMovementY: true,
moveCursor: 'ew-resize',
hoverCursor: 'ew-resize',
}
};
},
y: function(lines, bounds) {
return {
@@ -1974,7 +1974,7 @@ module.exports = {
lockMovementX: true,
moveCursor: 'ns-resize',
hoverCursor: 'ns-resize',
}
};
}
};
@@ -1994,7 +1994,7 @@ module.exports = {
dynamicW: !width,
height: height || 1,
dynamicH: !height,
}
};
},
text: {