move the source files to ./src

This commit is contained in:
Martin
2017-08-04 22:28:54 +02:00
parent 58dd1c66fd
commit f36d6f5915
37 changed files with 5 additions and 5 deletions
+25
View File
@@ -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;