Fix for issue #129 - Possibility to set the width of the generated flowchart

This commit is contained in:
knsv
2015-03-07 14:52:18 +01:00
parent cbebf126ce
commit 3ae1b5f1a3
7 changed files with 74 additions and 10 deletions

View File

@@ -111,6 +111,10 @@ var init = function (sequenceConfig) {
switch(graphType){
case 'graph':
classes = flowRenderer.getClasses(txt, false);
if(typeof mermaid.flowchartConfig === 'object'){
flowRenderer.setConf(mermaid.flowchartConfig);
}
flowRenderer.draw(txt, id, false);
utils.cloneCssStyles(element.firstChild, classes);
graph.bindFunctions();