mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
#5237 Add data-id attr for edge
This commit is contained in:
parent
d408efdd1d
commit
5a93afa7ca
@ -33,7 +33,7 @@ export const insertEdgeLabel = (elem, edge) => {
|
||||
log.info('abc82', edge, edge.labelType);
|
||||
|
||||
// Create outer g, edgeLabel, this will be positioned after graph layout
|
||||
const edgeLabel = elem.insert('g').attr('class', 'edgeLabel');
|
||||
const edgeLabel = elem.insert('g').attr('class', 'edgeLabel').attr('data-id', edge.id);
|
||||
|
||||
// Create inner g, label, this will be positioned now for centering the text
|
||||
const label = edgeLabel.insert('g').attr('class', 'label');
|
||||
|
Loading…
x
Reference in New Issue
Block a user