Skip to content

Commit

Permalink
Merge pull request #1195 from fgrandel/bug/1193_allow_multiple_relations
Browse files Browse the repository at this point in the history
fix(#1193): render multiple relations
  • Loading branch information
jgreywolf committed Jan 15, 2020
2 parents 45277af + 75890f8 commit 0e02cf5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/diagrams/class/classRenderer.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 0e02cf5

Please sign in to comment.