Replaced h and v by x and y
This commit is contained in:
+2
-2
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user