Fix swapped label positions with bidirectional links
This commit is contained in:
@@ -348,7 +348,7 @@ export class GraphEditor extends HTMLElement {
|
||||
return `translate(${middleX},${middleY})`;
|
||||
}
|
||||
if (this.isBidirectional(d.source, d.target)) {
|
||||
const [start, end] = paddedArcPathPoints(d.source, d.target, this.config);
|
||||
const [start, end] = paddedArcPathPoints(d.target, d.source, this.config);
|
||||
const [middleX, middleY] = arcMiddlePoint(start, end, this.config);
|
||||
return `translate(${middleX},${middleY})`;
|
||||
}
|
||||
|
Reference in New Issue
Block a user