fix(edges): use correct functions for center/path in simple bezier edge

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 2b2aad8cdc
commit 3acb43d000
3 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ const props = withDefaults(defineProps<EdgeProps>(), {
})
const centered = computed(() =>
getSimpleBezierPath({
getSimpleBezierCenter({
sourceX: props.sourceX,
sourceY: props.sourceY,
targetX: props.targetX,
@@ -26,7 +26,7 @@ const centered = computed(() =>
)
const path = computed(() => {
if (props.sourceX && props.sourceY)
return getSimpleBezierCenter({
return getSimpleBezierPath({
sourceX: props.sourceX,
sourceY: props.sourceY,
targetX: props.targetX,