From 7a7ed8c2f9f4f189d0ba1372d30b06fef7e50cc4 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Fri, 15 Jun 2018 11:26:36 -0700 Subject: [PATCH] aesthetic changes: plot rounded boxes, prefer left to right. --- lib/api.js | 2 +- lib/graph.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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) };