fix(core): add missing straight path switch case
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -60,7 +60,9 @@ const dAttr = computed(() => {
|
|||||||
targetPosition: targetPosition.value,
|
targetPosition: targetPosition.value,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (connectionLineType || connectionLineOptions.type) {
|
const type = connectionLineType ?? connectionLineOptions.type
|
||||||
|
|
||||||
|
switch (type) {
|
||||||
case ConnectionLineType.Bezier:
|
case ConnectionLineType.Bezier:
|
||||||
;[path] = getBezierPath(pathParams)
|
;[path] = getBezierPath(pathParams)
|
||||||
break
|
break
|
||||||
@@ -76,6 +78,12 @@ const dAttr = computed(() => {
|
|||||||
case ConnectionLineType.SimpleBezier:
|
case ConnectionLineType.SimpleBezier:
|
||||||
;[path] = getSimpleBezierPath(pathParams)
|
;[path] = getSimpleBezierPath(pathParams)
|
||||||
break
|
break
|
||||||
|
case ConnectionLineType.Straight:
|
||||||
|
;[path] = getStraightPath(pathParams)
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
;[path] = getBezierPath(pathParams)
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
return path
|
return path
|
||||||
|
|||||||
Reference in New Issue
Block a user