getSimpleBezierPath()
The getSimpleBezierPath util returns the SVG path string for a simple bezier edge —
a smoother curve than the default bezier, without control-point handles — along with
the label coordinates.
import { BaseEdge, getSimpleBezierPath } from '@xyflow/vue';
const [path, labelX, labelY] = getSimpleBezierPath({
sourceX, sourceY, sourcePosition,
targetX, targetY, targetPosition,
});Signature
Parameters:| Name | Type | Default |
|---|---|---|
sourceX | number | |
sourceY | number | |
sourcePosition | Position | |
targetX | number | |
targetY | number | |
targetPosition | Position |