move the source files to ./src
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
|
||||
function MirrorHandler(img) {
|
||||
|
||||
var _mirrored = 0;
|
||||
|
||||
/**
|
||||
* @param {Boolean} checked
|
||||
* @return {MirrorHandler}
|
||||
*/
|
||||
this.set = function(checked) {
|
||||
_mirrored = (img.flipX = checked) ? 1 : 0;
|
||||
img.setCoords().canvas.renderAll();
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
this.getStatus = function() {
|
||||
return _mirrored;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
module.exports = MirrorHandler;
|
||||
Reference in New Issue
Block a user