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