mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
update edge ids
This commit is contained in:
parent
71478f5a64
commit
a8fe640546
@ -231,7 +231,7 @@ export const addRelations = function (relations: ClassRelation[], g: graphlib.Gr
|
|||||||
//Set relationship style and line type
|
//Set relationship style and line type
|
||||||
classes: 'relation',
|
classes: 'relation',
|
||||||
pattern: edge.relation.lineType == 1 ? 'dashed' : 'solid',
|
pattern: edge.relation.lineType == 1 ? 'dashed' : 'solid',
|
||||||
id: 'id' + cnt,
|
id: 'id_' + edge.id1 + '_' + edge.id2 + '_' + cnt,
|
||||||
// Set link type for rendering
|
// Set link type for rendering
|
||||||
arrowhead: edge.type === 'arrow_open' ? 'none' : 'normal',
|
arrowhead: edge.type === 'arrow_open' ? 'none' : 'normal',
|
||||||
//Set edge extra labels
|
//Set edge extra labels
|
||||||
|
Loading…
x
Reference in New Issue
Block a user