From b2e489b6899cb9766a5b381485f64c643daa90cf Mon Sep 17 00:00:00 2001 From: knsv Date: Thu, 28 May 2015 23:02:41 +0200 Subject: [PATCH] Fix for issue #161 concering nested subgraphs and correct labels for each subgraph. --- package.json | 3 +- src/diagrams/flowchart/flowRenderer.js | 66 ++++++++++++-------------- 2 files changed, 31 insertions(+), 38 deletions(-) diff --git a/package.json b/package.json index 54af4dfccf..93e892a583 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dependencies": { "chalk": "^0.5.1", "d3": "~3.4.13", - "dagre-d3": "~0.4.2", + "dagre-d3": "~0.4.8", "he": "^0.5.0", "minimist": "^1.1.0", "mkdirp": "^0.5.0", @@ -39,7 +39,6 @@ "clone": "^0.2.0", "codeclimate-test-reporter": "0.0.4", "d3": "~3.4.13", - "dagre-d3": "~0.3.3", "dateformat": "^1.0.11", "event-stream": "^3.2.0", "foundation": "^4.2.1-1", diff --git a/src/diagrams/flowchart/flowRenderer.js b/src/diagrams/flowchart/flowRenderer.js index ca07955073..a353c84c76 100644 --- a/src/diagrams/flowchart/flowRenderer.js +++ b/src/diagrams/flowchart/flowRenderer.js @@ -421,43 +421,37 @@ exports.draw = function (text, id,isDot) { // Index nodes graph.indexNodes('sunGraph'+i); - setTimeout(function(){ - var i = 0; - //subGraphs.forEach(function(subG) { - for(i=0;i