refactor(bezier): handle undirectional flows, use simple bezier for connection closes #1971

This commit is contained in:
moklick
2022-03-17 13:09:17 +01:00
parent 30e83e67c7
commit bef6157097
2 changed files with 53 additions and 13 deletions
+3 -1
View File
@@ -105,7 +105,9 @@ export default ({
};
if (connectionLineType === ConnectionLineType.Bezier) {
dAttr = getBezierPath(pathParams);
// @TODO: we need another getBezier function, that handles a connection line.
// Since we don't know the target position, we can't use the default bezier function here.
dAttr = getBezierPath({ ...pathParams, curvature: 0 });
} else if (connectionLineType === ConnectionLineType.Step) {
dAttr = getSmoothStepPath({
...pathParams,