Merge pull request #435 from whyzdev/issue428_fix_gantt_cli_cfg

fix gantt and sequence digram cli cfg
This commit is contained in:
Knut Sveidqvist
2016-12-14 12:43:50 +01:00
committed by GitHub
6 changed files with 41 additions and 37 deletions

View File

@@ -34,8 +34,8 @@ var conf = {
// width of activation box
activationWidth:10,
//text placement as: tspan | fo | <else> only text as before
textPlacement: 'fo',
//text placement as: tspan | fo | old only text as before
textPlacement: 'tspan',
};
exports.bounds = {

View File

@@ -326,6 +326,6 @@ var _drawTextCandidateFunc = (function() {
return function(conf) {
return conf.textPlacement==='fo' ? byFo : (
conf.textPlacement==='tspan' ? byTspan : byText);
conf.textPlacement==='old' ? byText: byTspan);
};
})();

View File

@@ -75,8 +75,7 @@ function Log(level) {
args.unshift('[' + formatTime(new Date()) + '] ');
console.log.apply(console, args.map(function(a){
if (typeof a === "object") {
if (a.stack !== undefined) { return a.stack; }
return JSON.stringify(a, null, 2);
return a.toString() + JSON.stringify(a, null, 2);
}
return a;
}));