Replaced h and v by x and y
This commit is contained in:
@@ -18,8 +18,6 @@ function ImageEditor(canvasId, args) {
|
||||
__type: _settings.type
|
||||
});
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @TODO: Refactor this. Since Canvas knows the type of editor it probably
|
||||
* better could reside there.
|
||||
@@ -69,6 +67,7 @@ function ImageEditor(canvasId, args) {
|
||||
*/
|
||||
this.crop = function (width, height) {
|
||||
_canvas.getImage().__cropped = false;
|
||||
_canvas.getImage().transformation.removeCropData();
|
||||
_canvas.getViewport().set(width, height);
|
||||
return this;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user