fix(#1193): render multiple relations

This commit is contained in:
Florian Grandel 2020-01-09 16:44:27 +01:00
parent ce02d1dc98
commit 75890f88fa
1 changed files with 8 additions and 3 deletions

View File

@ -505,9 +505,14 @@ export const draw = function(text, id) {
logger.info(
'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)
);
g.setEdge(getGraphId(relation.id1), getGraphId(relation.id2), {
relation: relation
});
g.setEdge(
getGraphId(relation.id1),
getGraphId(relation.id2),
{
relation: relation
},
relation.title || 'DEFAULT'
);
});
dagre.layout(g);
g.nodes().forEach(function(v) {