mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Fixed node build
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
let config;
|
||||
|
||||
console.log(ENV);
|
||||
if(ENV.development){
|
||||
config = require('./config.dev.js');
|
||||
} else if (ENV.node) {
|
||||
|
||||
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user