Use graphlibrary

This commit is contained in:
Tyler Long
2018-03-06 16:04:40 +08:00
parent 89f3de169c
commit 7dd174642c
3 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
import graphlib from 'graphlibrary'
import graphDb from './graphDb'
import flow from './parser/flow'
import dot from './parser/dot'
@@ -265,7 +267,7 @@ export const draw = function (text, id, isDot) {
}
// Create the input mermaid.graph
const g = new dagreD3.graphlib.Graph({
const g = new graphlib.Graph({
multigraph: true,
compound: true
})