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
+2 -2
View File
@@ -36,7 +36,6 @@
function handleDimensionChange() {
var noCropIsChecked = $input.noCrop.is(':checked');
var currentDimension = $(this).attr('name') === 'h' ? 'h' : 'w';
var data = editor.canvas.getViewport().getData();
var values = {
width: $input.w.val(),
@@ -44,6 +43,7 @@
};
if (noCropIsChecked) {
var currentDimension = $(this).attr('name') === 'h' ? 'h' : 'w';
values = getOptimalDimension(values, currentDimension, data.objectRatio);
}
@@ -101,7 +101,7 @@
function init() {
editor = new ImageEditor('canvas-editor', {
type: 'canvas',
type: 'wallpaper',
})
.loadImage(imageUrl, function() {
$input.w.trigger('input');