Skip to content

Commit

Permalink
Merge pull request #165 from paulirish/aesthetics
Browse files Browse the repository at this point in the history
Plot nodes as boxes
  • Loading branch information
pahen authored Jun 26, 2018
2 parents be364ce + 7a7ed8c commit 007432e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const defaultConfig = {
layout: 'dot',
fontName: 'Arial',
fontSize: '14px',
backgroundColor: '#000000',
backgroundColor: '#111111',
nodeColor: '#c6c5fe',
noDependencyColor: '#cfffac',
cyclicNodeColor: '#ff6c60',
Expand Down
6 changes: 5 additions & 1 deletion lib/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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)
};
Expand Down

0 comments on commit 007432e

Please sign in to comment.