diff --git a/bin/cli.js b/bin/cli.js index e4c787fb..2751ba60 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -101,8 +101,8 @@ if (program.includeNpm) { if (!program.color) { config.backgroundColor = '#ffffff'; - config.nodeColor = '#00000'; - config.noDependencyColor = '#00000'; + config.nodeColor = '#000000'; + config.noDependencyColor = '#000000'; config.cyclicNodeColor = '#000000'; config.edgeColor = '#757575'; } diff --git a/lib/api.js b/lib/api.js index 9556e9d8..01d89d2e 100644 --- a/lib/api.js +++ b/lib/api.js @@ -15,7 +15,7 @@ const defaultConfig = { layout: 'dot', fontName: 'Arial', fontSize: '14px', - backgroundColor: '#000000', + backgroundColor: '#111111', nodeColor: '#c6c5fe', noDependencyColor: '#cfffac', cyclicNodeColor: '#ff6c60', diff --git a/lib/graph.js b/lib/graph.js index 4e0b37a2..51cff156 100644 --- a/lib/graph.js +++ b/lib/graph.js @@ -48,7 +48,8 @@ function createGraphvizOptions(config) { return { G: Object.assign({ overlap: false, - pad: 0.111, + pad: 0.3, + rankdir: 'LR', layout: config.layout, bgcolor: config.backgroundColor }, graphVizOptions.G), @@ -59,6 +60,9 @@ function createGraphvizOptions(config) { fontname: config.fontName, fontsize: config.fontSize, color: config.nodeColor, + shape: 'box', + style: 'rounded', + height: 0, fontcolor: config.nodeColor }, graphVizOptions.N) };