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
View File
@@ -53,6 +53,7 @@ export default memo(
style,
arrowHeadType,
markerEndId,
labelBgPadding,
}: EdgeBezierProps) => {
const [centerX, centerY] = getCenter({ sourceX, sourceY, targetX, targetY });
const path = getBezierPath({
@@ -72,6 +73,7 @@ export default memo(
labelStyle={labelStyle}
labelShowBg={labelShowBg}
labelBgStyle={labelBgStyle}
labelBgPadding={labelBgPadding}
/>
) : null;