Use orthogonal skip relation lines
This commit is contained in:
@@ -1785,7 +1785,7 @@ function RelationTreePanel({
|
||||
: getSkipLaneX(fromLevel);
|
||||
const pathD = isSkipEdge
|
||||
? isRightSkipEdge
|
||||
? `M ${from.x + miniNodeWidth} ${from.y + miniNodeHeight / 2} C ${laneX} ${from.y + miniNodeHeight + 34}, ${laneX} ${to.y - 48}, ${toCenterX} ${to.y - 8}`
|
||||
? `M ${from.x + miniNodeWidth} ${from.y + miniNodeHeight / 2} H ${laneX} V ${to.y - 18} H ${toCenterX} V ${to.y - 8}`
|
||||
: `M ${from.x} ${from.y + miniNodeHeight / 2} H ${laneX} V ${to.y + miniNodeHeight / 2} H ${isInnermostSkipEdge ? to.x - 8 : innermostLaneX}`
|
||||
: Math.abs(fromCenterX - toCenterX) < 6
|
||||
? `M ${fromCenterX} ${startY} L ${toCenterX} ${endY - 8}`
|
||||
|
||||
Reference in New Issue
Block a user