Skip to content

Commit

Permalink
fix: subscription edges should into from promote button
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
  • Loading branch information
alexmt committed Sep 13, 2023
1 parent 046e6d3 commit 1a41427
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/src/features/project/project-details/project-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@ export const ProjectDetails = () => {
const upstreamNode = g.node(item.v);
points[0] = { x: upstreamNode.x + upstreamNode.width / 2, y: upstreamNode.y };
}
if (points.length > 1) {
// replace last point with the right side of the downstream node
const upstreamNode = g.node(item.w);
points[points.length - 1] = {
x: upstreamNode.x - upstreamNode.width / 2,
y: upstreamNode.y
};
}

const lines = new Array<{ x: number; y: number; width: number; angle: number }>();
for (let i = 0; i < points.length - 1; i++) {
Expand Down

0 comments on commit 1a41427

Please sign in to comment.