Removed data-id attr from edges

This commit is contained in:
Ashish Jain
2024-06-20 13:26:12 +02:00
parent e07fdfedb6
commit f791ea00ef

View File

@@ -33,7 +33,7 @@ export const insertEdgeLabel = async (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').attr('data-id', edge.id);
const edgeLabel = elem.insert('g').attr('class', 'edgeLabel');
// Create inner g, label, this will be positioned now for centering the text
const label = edgeLabel.insert('g').attr('class', 'label');