Replaced h and v by x and y

This commit is contained in:
Erik Tiekstra
2017-06-01 09:28:02 +02:00
parent 103a17decf
commit c377532138
13 changed files with 86 additions and 97 deletions
+1 -2
View File
@@ -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;
};