feat(edge-options): add labelBgPadding #421

This commit is contained in:
moklick
2020-08-11 10:36:22 +02:00
parent 6d651bdc98
commit 6bbc152041
10 changed files with 57 additions and 37 deletions
+2 -1
View File
@@ -38,8 +38,9 @@ const initialElements = [
source: '5',
target: '7',
label: 'label with styled bg',
labelBgStyle: { fill: '#eee', fillOpacity: 0.7 },
labelBgStyle: { fill: '#555', color: '#fff', fillOpacity: 0.7 },
arrowHeadType: 'arrowclosed',
labelBgPadding: [8, 4],
},
{ id: 'e5-8', source: '5', target: '8', type: 'custom', data: { text: 'custom edge' }, arrowHeadType: 'arrowclosed' },
];