Skip to content

Commit

Permalink
aesthetic changes: plot rounded boxes, prefer left to right.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jun 15, 2018
1 parent e8e330c commit 7a7ed8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/api.js
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
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 7a7ed8c

Please sign in to comment.