fix: workflow edge curvature (#3488)
This commit is contained in:
parent
d965b91b08
commit
58cbda2950
2 changed files with 6 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ import {
|
|||
BaseEdge,
|
||||
EdgeLabelRenderer,
|
||||
Position,
|
||||
getSimpleBezierPath,
|
||||
getBezierPath,
|
||||
} from 'reactflow'
|
||||
import {
|
||||
useNodesExtraData,
|
||||
|
|
@ -38,13 +38,14 @@ const CustomEdge = ({
|
|||
edgePath,
|
||||
labelX,
|
||||
labelY,
|
||||
] = getSimpleBezierPath({
|
||||
] = getBezierPath({
|
||||
sourceX: sourceX - 8,
|
||||
sourceY,
|
||||
sourcePosition: Position.Right,
|
||||
targetX: targetX + 8,
|
||||
targetY,
|
||||
targetPosition: Position.Left,
|
||||
curvature: 0.16,
|
||||
})
|
||||
const [open, setOpen] = useState(false)
|
||||
const { handleNodeAdd } = useNodesInteractions()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue