Correct value for mirrored
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
function ImageTransformationHandler(img) {
|
||||
var _transformations = {
|
||||
mirrored: false
|
||||
mirrored: 0
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -54,7 +54,7 @@ function ImageTransformationHandler(img) {
|
||||
this.set = function (name, args) {
|
||||
switch (name) {
|
||||
case 'mirror':
|
||||
_transformations.mirrored = (img.flipX = args);
|
||||
_transformations.mirrored = (img.flipX = args) ? 1 : 0;
|
||||
}
|
||||
img.setCoords().canvas.renderAll();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user