Merge pull request #1195 from fgrandel/bug/1193_allow_multiple_relations

fix(#1193): render multiple relations
This commit is contained in:
Justin Greywolf
2020-01-15 09:29:02 -08:00
committed by GitHub

View File

@@ -540,9 +540,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) {