feat(edges): add pointerRadius prop to edges

This commit is contained in:
braks
2022-11-13 08:42:06 +01:00
committed by Braks
parent c8c9daffb7
commit a4fd0ebda4
9 changed files with 32 additions and 1 deletions
@@ -16,6 +16,7 @@ const StraightEdge: FunctionalComponent<EdgeProps> = function ({
markerEnd,
markerStart,
style,
pointerRadius,
}) {
const [path, labelX, labelY] = getStraightPath({ sourceX, sourceY, targetX, targetY })
@@ -32,6 +33,7 @@ const StraightEdge: FunctionalComponent<EdgeProps> = function ({
style,
markerEnd,
markerStart,
pointerRadius,
})
}
@@ -49,6 +51,7 @@ StraightEdge.props = [
'markerEnd',
'markerStart',
'style',
'pointerRadius',
]
StraightEdge.inheritAttrs = false