Restructuring builds; Moved debug-config

This commit is contained in:
Christoph Oberhofer
2016-02-25 21:42:10 +01:00
parent 9cbfafe698
commit 16da30652c
9 changed files with 268 additions and 226 deletions
+3 -1
View File
@@ -158,7 +158,9 @@ export default {
ImageDebug.drawPath(line, {x: 'x', y: 'y'}, _canvas.ctx.overlay, {color: 'red', lineWidth: 3});
Bresenham.debug.printFrequency(barcodeLine.line, _canvas.dom.frequency);
}
Bresenham.toBinaryLine(barcodeLine);
if (ENV.development && config.debug.showPattern) {
Bresenham.debug.printPattern(barcodeLine.line, _canvas.dom.pattern);
}
@@ -251,7 +253,7 @@ export default {
return null;
}
if (result && config.drawScanline && ctx) {
if (ENV.development && result && config.debug.drawScanline && ctx) {
ImageDebug.drawPath(line, {x: 'x', y: 'y'}, ctx, {color: 'red', lineWidth: 3});
}