fix(core,edges): use nullish check to fallback to default center
This commit is contained in:
@@ -85,8 +85,8 @@ function getPoints({
|
||||
|
||||
// opposite handle positions, default case
|
||||
if (sourceDir[dirAccessor] * targetDir[dirAccessor] === -1) {
|
||||
centerX = center.x || defaultCenterX
|
||||
centerY = center.y || defaultCenterY
|
||||
centerX = center.x ?? defaultCenterX
|
||||
centerY = center.y ?? defaultCenterY
|
||||
// --->
|
||||
// |
|
||||
// >---
|
||||
|
||||
Reference in New Issue
Block a user