mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-24 17:59:39 +02:00
Merge pull request #1195 from fgrandel/bug/1193_allow_multiple_relations
fix(#1193): render multiple relations
This commit is contained in:
@@ -540,9 +540,14 @@ export const draw = function(text, id) {
|
|||||||
logger.info(
|
logger.info(
|
||||||
'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)
|
'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)
|
||||||
);
|
);
|
||||||
g.setEdge(getGraphId(relation.id1), getGraphId(relation.id2), {
|
g.setEdge(
|
||||||
|
getGraphId(relation.id1),
|
||||||
|
getGraphId(relation.id2),
|
||||||
|
{
|
||||||
relation: relation
|
relation: relation
|
||||||
});
|
},
|
||||||
|
relation.title || 'DEFAULT'
|
||||||
|
);
|
||||||
});
|
});
|
||||||
dagre.layout(g);
|
dagre.layout(g);
|
||||||
g.nodes().forEach(function(v) {
|
g.nodes().forEach(function(v) {
|
||||||
|
Reference in New Issue
Block a user