Prepare frame rendering in Viewport
This commit is contained in:
+6
-1
@@ -7,7 +7,8 @@
|
||||
h: $('#form-control input[name="h"]'),
|
||||
image_id: $('#form-control input[name="image_id"]'),
|
||||
mirror: $('#form-control input[name="mirror"]'),
|
||||
noCrop: $('#form-control input[name="no-crop"]')
|
||||
noCrop: $('#form-control input[name="no-crop"]'),
|
||||
border: $('#form-control select[name="canvas-border"]'),
|
||||
};
|
||||
|
||||
var imageUrl = '//images.photowall.com/products/' + $input.image_id.val() + '.jpg?h=450';
|
||||
@@ -58,10 +59,14 @@
|
||||
NoCrop: function() {
|
||||
$input.w.trigger('input');
|
||||
},
|
||||
SetBorder: function () {
|
||||
editor.canvas.getViewport().setFrame($(this).val());
|
||||
}
|
||||
};
|
||||
|
||||
$input.w.on('input', Event.DimensionChange);
|
||||
$input.h.on('input', Event.DimensionChange);
|
||||
$input.mirror.on('change', Event.Mirror);
|
||||
$input.noCrop.on('change', Event.NoCrop);
|
||||
$input.border.on('change', Event.SetBorder);
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user