mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
Merge pull request #435 from whyzdev/issue428_fix_gantt_cli_cfg
fix gantt and sequence digram cli cfg
This commit is contained in:
@@ -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 = {
|
||||
|
@@ -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);
|
||||
};
|
||||
})();
|
||||
|
@@ -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;
|
||||
}));
|
||||
|
Reference in New Issue
Block a user