add missing semicolons
This commit is contained in:
+2
-2
@@ -101,7 +101,7 @@ function ButtonMenu(canvas, settings) {
|
||||
disabled: true
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Shows all the buttons
|
||||
@@ -113,7 +113,7 @@ function ButtonMenu(canvas, settings) {
|
||||
disabled: false
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Recalculate boundaries and add all items to canvas if required
|
||||
|
||||
+1
-1
@@ -58,7 +58,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());
|
||||
|
||||
@@ -41,7 +41,7 @@ function DragbarHandler(canvas) {
|
||||
this.__handles.getHandles().forEach(function (handle) {
|
||||
handle.bringToFront();
|
||||
});
|
||||
}
|
||||
};
|
||||
/**
|
||||
* Removes dragbars from canvas
|
||||
*/
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ function FrameHandler(viewport) {
|
||||
viewport.canvas.renderAll();
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Sets passed frametype to passed viewwport
|
||||
|
||||
@@ -17,14 +17,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
|
||||
|
||||
@@ -13,11 +13,11 @@ function MirrorHandler(img) {
|
||||
img.setCoords().canvas.renderAll();
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
this.getStatus = function() {
|
||||
return _mirrored;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ function TextButton(id, text, settings, isActive) {
|
||||
|
||||
this.getId = function() {
|
||||
return _id;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @return {Boolean}
|
||||
|
||||
+1
-1
@@ -43,7 +43,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') {
|
||||
|
||||
@@ -10,7 +10,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: {
|
||||
@@ -30,7 +30,7 @@ module.exports = {
|
||||
lockMovementY: true,
|
||||
moveCursor: 'ew-resize',
|
||||
hoverCursor: 'ew-resize',
|
||||
}
|
||||
};
|
||||
},
|
||||
y: function(lines, bounds) {
|
||||
return {
|
||||
@@ -42,6 +42,6 @@ module.exports = {
|
||||
lockMovementX: true,
|
||||
moveCursor: 'ns-resize',
|
||||
hoverCursor: 'ns-resize',
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
@@ -13,7 +13,7 @@ module.exports = {
|
||||
dynamicW: !width,
|
||||
height: height || 1,
|
||||
dynamicH: !height,
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
text: {
|
||||
|
||||
Reference in New Issue
Block a user