mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
feat: apply feedback
This commit is contained in:
parent
cae83e41aa
commit
fb8d224e0c
@ -309,13 +309,13 @@ export class AdvancedLinkFactory extends DefaultLinkFactory {
|
|||||||
const adjustedStartPoint: Point = getPortCenterPoint(sourcePort);
|
const adjustedStartPoint: Point = getPortCenterPoint(sourcePort);
|
||||||
// Handle self-loop (curved) links
|
// Handle self-loop (curved) links
|
||||||
const targetPortHeight = targetPort.height;
|
const targetPortHeight = targetPort.height;
|
||||||
const targetNdeHeight =
|
const targetNodeHeight =
|
||||||
(targetPort.getPosition().y -
|
(targetPort.getPosition().y -
|
||||||
targetPort.getNode().getPosition().y) *
|
targetPort.getNode().getPosition().y) *
|
||||||
2 +
|
2 +
|
||||||
targetPortHeight;
|
targetPortHeight;
|
||||||
|
|
||||||
path = createCurvedPath(adjustedStartPoint, endPoint, targetNdeHeight);
|
path = createCurvedPath(adjustedStartPoint, endPoint, targetNodeHeight);
|
||||||
} else if (isBackward) {
|
} else if (isBackward) {
|
||||||
// Handle backward (leftward) link with refined function
|
// Handle backward (leftward) link with refined function
|
||||||
path = createBackwardCurvedPath(sourcePort, targetPort);
|
path = createBackwardCurvedPath(sourcePort, targetPort);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user