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 disabled: true
}); });
}); });
} };
/** /**
* Shows all the buttons * Shows all the buttons
@@ -319,7 +319,7 @@ function ButtonMenu(canvas, settings) {
disabled: false disabled: false
}); });
}); });
} };
/** /**
* Recalculate boundaries and add all items to canvas if required * 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()) { if (this.get3dHandler().isEnabled()) {
this.get3dHandler().refreshImage(); this.get3dHandler().refreshImage();
} else { } else {
this.refreshImage(this.getResizedImage(this.getImage())) this.refreshImage(this.getResizedImage(this.getImage()));
this.getViewport().reset(); this.getViewport().reset();
} }
this.sendToBack(this.getImage()); this.sendToBack(this.getImage());
@@ -774,7 +774,7 @@ function DragbarHandler(canvas) {
this.__handles.getHandles().forEach(function (handle) { this.__handles.getHandles().forEach(function (handle) {
handle.bringToFront(); handle.bringToFront();
}); });
} };
/** /**
* Removes dragbars from canvas * Removes dragbars from canvas
*/ */
@@ -964,7 +964,7 @@ function FrameHandler(viewport) {
viewport.canvas.renderAll(); viewport.canvas.renderAll();
return this; return this;
} };
/** /**
* Sets passed frametype to passed viewwport * Sets passed frametype to passed viewwport
@@ -1144,14 +1144,14 @@ function ImageDataHandler(img) {
var cropData = { var cropData = {
x: dragAxis === 'x' ? (viewportBounds.left - img.left) / (img.width * img.scaleX) : 0, x: dragAxis === 'x' ? (viewportBounds.left - img.left) / (img.width * img.scaleX) : 0,
y: dragAxis === 'y' ? (viewportBounds.top - img.top) / (img.height * img.scaleY) : 0, y: dragAxis === 'y' ? (viewportBounds.top - img.top) / (img.height * img.scaleY) : 0,
} };
sessionStorage.setItem('cropData', JSON.stringify(cropData)); sessionStorage.setItem('cropData', JSON.stringify(cropData));
} };
this.removeCropData = function() { this.removeCropData = function() {
sessionStorage.removeItem('cropData'); sessionStorage.removeItem('cropData');
} };
/** /**
* Gets an object containing applied transformations for the Image and also * Gets an object containing applied transformations for the Image and also
@@ -1362,11 +1362,11 @@ function MirrorHandler(img) {
img.setCoords().canvas.renderAll(); img.setCoords().canvas.renderAll();
return this; return this;
} };
this.getStatus = function() { this.getStatus = function() {
return _mirrored; return _mirrored;
} };
} }
@@ -1556,7 +1556,7 @@ function TextButton(id, text, settings, isActive) {
this.getId = function() { this.getId = function() {
return _id; return _id;
} };
/** /**
* @return {Boolean} * @return {Boolean}
@@ -1662,7 +1662,7 @@ function Viewport(canvas) {
canvas.getImage().center().setCoords(); 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()); canvas.getApertures().apply(_data.axis, _rect.getBoundingRect());
if (canvas.__type !== 'canvas') { if (canvas.__type !== 'canvas') {
@@ -1942,7 +1942,7 @@ module.exports = {
strokeWidth: 1, strokeWidth: 1,
top: axis === 'x' ? bounds.top + bounds.height / 2 : bounds.top, top: axis === 'x' ? bounds.top + bounds.height / 2 : bounds.top,
left: axis === 'y' ? bounds.left + bounds.width / 2 : bounds.left left: axis === 'y' ? bounds.left + bounds.width / 2 : bounds.left
} };
}, },
text: { text: {
@@ -1962,7 +1962,7 @@ module.exports = {
lockMovementY: true, lockMovementY: true,
moveCursor: 'ew-resize', moveCursor: 'ew-resize',
hoverCursor: 'ew-resize', hoverCursor: 'ew-resize',
} };
}, },
y: function(lines, bounds) { y: function(lines, bounds) {
return { return {
@@ -1974,7 +1974,7 @@ module.exports = {
lockMovementX: true, lockMovementX: true,
moveCursor: 'ns-resize', moveCursor: 'ns-resize',
hoverCursor: 'ns-resize', hoverCursor: 'ns-resize',
} };
} }
}; };
@@ -1994,7 +1994,7 @@ module.exports = {
dynamicW: !width, dynamicW: !width,
height: height || 1, height: height || 1,
dynamicH: !height, dynamicH: !height,
} };
}, },
text: { text: {
+2 -2
View File
@@ -101,7 +101,7 @@ function ButtonMenu(canvas, settings) {
disabled: true disabled: true
}); });
}); });
} };
/** /**
* Shows all the buttons * Shows all the buttons
@@ -113,7 +113,7 @@ function ButtonMenu(canvas, settings) {
disabled: false disabled: false
}); });
}); });
} };
/** /**
* Recalculate boundaries and add all items to canvas if required * Recalculate boundaries and add all items to canvas if required
+1 -1
View File
@@ -58,7 +58,7 @@ var Canvas = fabric.util.createClass(fabric.Canvas, {
if (this.get3dHandler().isEnabled()) { if (this.get3dHandler().isEnabled()) {
this.get3dHandler().refreshImage(); this.get3dHandler().refreshImage();
} else { } else {
this.refreshImage(this.getResizedImage(this.getImage())) this.refreshImage(this.getResizedImage(this.getImage()));
this.getViewport().reset(); this.getViewport().reset();
} }
this.sendToBack(this.getImage()); this.sendToBack(this.getImage());
+1 -1
View File
@@ -41,7 +41,7 @@ function DragbarHandler(canvas) {
this.__handles.getHandles().forEach(function (handle) { this.__handles.getHandles().forEach(function (handle) {
handle.bringToFront(); handle.bringToFront();
}); });
} };
/** /**
* Removes dragbars from canvas * Removes dragbars from canvas
*/ */
+1 -1
View File
@@ -53,7 +53,7 @@ function FrameHandler(viewport) {
viewport.canvas.renderAll(); viewport.canvas.renderAll();
return this; return this;
} };
/** /**
* Sets passed frametype to passed viewwport * Sets passed frametype to passed viewwport
+3 -3
View File
@@ -17,14 +17,14 @@ function ImageDataHandler(img) {
var cropData = { var cropData = {
x: dragAxis === 'x' ? (viewportBounds.left - img.left) / (img.width * img.scaleX) : 0, x: dragAxis === 'x' ? (viewportBounds.left - img.left) / (img.width * img.scaleX) : 0,
y: dragAxis === 'y' ? (viewportBounds.top - img.top) / (img.height * img.scaleY) : 0, y: dragAxis === 'y' ? (viewportBounds.top - img.top) / (img.height * img.scaleY) : 0,
} };
sessionStorage.setItem('cropData', JSON.stringify(cropData)); sessionStorage.setItem('cropData', JSON.stringify(cropData));
} };
this.removeCropData = function() { this.removeCropData = function() {
sessionStorage.removeItem('cropData'); sessionStorage.removeItem('cropData');
} };
/** /**
* Gets an object containing applied transformations for the Image and also * Gets an object containing applied transformations for the Image and also
+2 -2
View File
@@ -13,11 +13,11 @@ function MirrorHandler(img) {
img.setCoords().canvas.renderAll(); img.setCoords().canvas.renderAll();
return this; return this;
} };
this.getStatus = function() { this.getStatus = function() {
return _mirrored; return _mirrored;
} };
} }
+1 -1
View File
@@ -56,7 +56,7 @@ function TextButton(id, text, settings, isActive) {
this.getId = function() { this.getId = function() {
return _id; return _id;
} };
/** /**
* @return {Boolean} * @return {Boolean}
+1 -1
View File
@@ -43,7 +43,7 @@ function Viewport(canvas) {
canvas.getImage().center().setCoords(); 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()); canvas.getApertures().apply(_data.axis, _rect.getBoundingRect());
if (canvas.__type !== 'canvas') { if (canvas.__type !== 'canvas') {
+3 -3
View File
@@ -10,7 +10,7 @@ module.exports = {
strokeWidth: 1, strokeWidth: 1,
top: axis === 'x' ? bounds.top + bounds.height / 2 : bounds.top, top: axis === 'x' ? bounds.top + bounds.height / 2 : bounds.top,
left: axis === 'y' ? bounds.left + bounds.width / 2 : bounds.left left: axis === 'y' ? bounds.left + bounds.width / 2 : bounds.left
} };
}, },
text: { text: {
@@ -30,7 +30,7 @@ module.exports = {
lockMovementY: true, lockMovementY: true,
moveCursor: 'ew-resize', moveCursor: 'ew-resize',
hoverCursor: 'ew-resize', hoverCursor: 'ew-resize',
} };
}, },
y: function(lines, bounds) { y: function(lines, bounds) {
return { return {
@@ -42,6 +42,6 @@ module.exports = {
lockMovementX: true, lockMovementX: true,
moveCursor: 'ns-resize', moveCursor: 'ns-resize',
hoverCursor: 'ns-resize', hoverCursor: 'ns-resize',
} };
} }
}; };
+1 -1
View File
@@ -13,7 +13,7 @@ module.exports = {
dynamicW: !width, dynamicW: !width,
height: height || 1, height: height || 1,
dynamicH: !height, dynamicH: !height,
} };
}, },
text: { text: {