refactor(index): export getBezier ang getSimpleBezier center functions

This commit is contained in:
moklick
2022-03-23 10:43:31 +01:00
parent 1a5f691559
commit 7217cffe7e
4 changed files with 20 additions and 12 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { FC } from 'react';
import { EdgeProps, getBezierPath, EdgeText, getEdgeCenter } from 'react-flow-renderer';
import { EdgeProps, getBezierPath, EdgeText, getBezierEdgeCenter } from 'react-flow-renderer';
const CustomEdge: FC<EdgeProps> = ({
id,
@@ -12,7 +12,7 @@ const CustomEdge: FC<EdgeProps> = ({
data,
}) => {
const edgePath = getBezierPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition });
const [centerX, centerY] = getEdgeCenter({
const [centerX, centerY] = getBezierEdgeCenter({
sourceX,
sourceY,
targetX,