feat(edges): add labelBgBorderRadius option closes #421

This commit is contained in:
moklick
2020-08-12 13:00:54 +02:00
parent f65a29d96a
commit ee74c90f15
10 changed files with 35 additions and 4 deletions
+3 -2
View File
@@ -38,9 +38,10 @@ const initialElements = [
source: '5',
target: '7',
label: 'label with styled bg',
labelBgStyle: { fill: '#555', color: '#fff', fillOpacity: 0.7 },
arrowHeadType: 'arrowclosed',
labelBgPadding: [8, 4],
labelBgBorderRadius: 4,
labelBgStyle: { fill: '#FFCC00', color: '#fff', fillOpacity: 0.7 },
arrowHeadType: 'arrowclosed',
},
{ id: 'e5-8', source: '5', target: '8', type: 'custom', data: { text: 'custom edge' }, arrowHeadType: 'arrowclosed' },
];