Fixed node build

This commit is contained in:
Christoph Oberhofer
2016-02-25 22:30:41 +01:00
parent 16da30652c
commit 3c020d04bf
8 changed files with 155 additions and 441 deletions
-1
View File
@@ -1,6 +1,5 @@
let config;
console.log(ENV);
if(ENV.development){
config = require('./config.dev.js');
} else if (ENV.node) {
+1 -1
View File
@@ -163,7 +163,7 @@ function boxFromPatches(patches) {
vec2.transformMat2(box[j], box[j], transMat);
}
if (ENV.development && _config.development.boxFromPatches.showBB) {
if (ENV.development && _config.debug.boxFromPatches.showBB) {
ImageDebug.drawPath(box, {x: 0, y: 1}, _canvasContainer.ctx.binary, {color: '#ff0000', lineWidth: 2});
}
+2 -2
View File
@@ -8,10 +8,10 @@ import ImageDebug from './common/image_debug';
import {vec2} from 'gl-matrix';
import ResultCollector from './analytics/result_collector';
import Config from './config/config';
import InputStream from 'input_stream';
import FrameGrabber from 'frame_grabber';
const merge = require('lodash/object/merge');
const InputStream = require('./input/input_stream');
const FrameGrabber = require('./input/frame_grabber');
var _inputStream,
_framegrabber,